Merge remote-tracking branch 'origin/main'
This commit is contained in:
commit
05e1a6e0ee
|
|
@ -68,7 +68,7 @@ public class ErpIaI2billFromGyImsPlugin implements IBackgroundWorkPlugin {
|
|||
headJson.put("cfanaceorgvid", map.get("cfanaceorgvid"));// 结算财务组织
|
||||
headJson.put("ccostdomainid", map.get("ccostdomainid"));// 结算成本域
|
||||
headJson.put("cdptvid", map.get("cdptvid"));// 采购部门
|
||||
headJson.put("cbizid", map.get("cbizid"));// ²É¹ºÔ±
|
||||
headJson.put("cbizid", MyHelper.getpsndocId(map.get("cbizid").toString()));// ²É¹ºÔ±
|
||||
headJson.put("vnote", map.get("vnote"));// 备注
|
||||
headJson.put("cpurorgoid", map.get("cpurorgoid"));// 采购组织
|
||||
// 购销类型 2=国内采购;
|
||||
|
|
@ -104,7 +104,6 @@ public class ErpIaI2billFromGyImsPlugin implements IBackgroundWorkPlugin {
|
|||
bodyJson.put("nnum", body.get("nnum"));// 实收主数量
|
||||
bodyJson.put("nassistnum", body.get("nassistnum"));// 实收数量
|
||||
bodyJson.put("vchangerate", "1/1");// 换算率
|
||||
|
||||
Object nqtorigprice = body.get("nqtorigprice");// 无税单价
|
||||
Object nqtorigtaxprice = body.get("nqtorigtaxprice");// 含税单价
|
||||
bodyJson.put("nqtorignetprice", nqtorigprice);// 无税净价
|
||||
|
|
@ -126,7 +125,14 @@ public class ErpIaI2billFromGyImsPlugin implements IBackgroundWorkPlugin {
|
|||
bodyJson.put("ntaxmny", body.get("norigtaxmny"));// 本币价税合计
|
||||
// bodyJson.put("ntaxrate", body.get("ntaxrate"));// 税率
|
||||
bodyJson.put("vnotebody", body.get("vnotebody"));// 行备注
|
||||
|
||||
// bodyJson.put("dbizdate", body.get("dbizdate"));// Ðб¸×¢
|
||||
// Èë¿âʱ¼ä
|
||||
if (body.get("dbizdate") != null && body.get("dbizdate") instanceof Timestamp dbizdate) {
|
||||
String creationtimeStr = DATETIME_FORMATTER.format(dbizdate);
|
||||
bodyJson.put("dbizdate", creationtimeStr);
|
||||
}else{
|
||||
bodyJson.put("dbizdate", "2025-12-01 20:42:24");
|
||||
}
|
||||
bodyJsonArr.add(bodyJson);
|
||||
}
|
||||
Map<String, Object> param = new HashMap<>();
|
||||
|
|
|
|||
|
|
@ -220,6 +220,14 @@ public class MyHelper {
|
|||
}
|
||||
return Erpuser!=null?Erpuser.trim():"";
|
||||
}
|
||||
|
||||
public static String getpsndocId(String userId) throws DAOException {
|
||||
String sql = "select pk_psndoc from bd_psndoc where code = '" + userId + "' ";
|
||||
String Erpuser = (String) dao.executeQuery(sql, new ColumnProcessor());
|
||||
if(Erpuser == null) {
|
||||
String bipsql = " select pk_psndoc from bd_psndoc where code = '1004170009' and dr = 0";
|
||||
Erpuser = (String) dao.executeQuery(bipsql, new ColumnProcessor());
|
||||
}
|
||||
return Erpuser!=null?Erpuser.trim():"";
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue