refactor(task): 优化同步高压IMS同步
This commit is contained in:
parent
598da93dd1
commit
5850a574fe
|
|
@ -87,9 +87,13 @@ public class ErpIaI2billFromGyImsPlugin implements IBackgroundWorkPlugin {
|
||||||
headJson.put("cpayfinorgoid", "C003");// 应付财务组织
|
headJson.put("cpayfinorgoid", "C003");// 应付财务组织
|
||||||
headJson.put("creator", "BIP");
|
headJson.put("creator", "BIP");
|
||||||
headJson.put("billmaker", "BIP");
|
headJson.put("billmaker", "BIP");
|
||||||
|
if (map.get("dbilldate") != null && map.get("dbilldate") instanceof Timestamp dbilldate) {
|
||||||
|
String dbilldateStr = DATETIME_FORMATTER.format(dbilldate);
|
||||||
|
headJson.put("dbilldate", dbilldateStr); // 单据日期
|
||||||
|
}
|
||||||
if (map.get("dmakedate") != null && map.get("dmakedate") instanceof Timestamp dmakedate1) {
|
if (map.get("dmakedate") != null && map.get("dmakedate") instanceof Timestamp dmakedate1) {
|
||||||
String dmakedateStr = DATETIME_FORMATTER.format(dmakedate1);
|
String dmakedateStr = DATETIME_FORMATTER.format(dmakedate1);
|
||||||
headJson.put("dmakedate", dmakedateStr); // µ¥¾ÝÈÕÆÚ
|
headJson.put("dmakedate", dmakedateStr); // 制单日期
|
||||||
}
|
}
|
||||||
if (map.get("creationtime") != null && map.get("creationtime") instanceof Timestamp creationtime1) {
|
if (map.get("creationtime") != null && map.get("creationtime") instanceof Timestamp creationtime1) {
|
||||||
String creationtimeStr = DATETIME_FORMATTER.format(creationtime1);
|
String creationtimeStr = DATETIME_FORMATTER.format(creationtime1);
|
||||||
|
|
@ -106,12 +110,27 @@ public class ErpIaI2billFromGyImsPlugin implements IBackgroundWorkPlugin {
|
||||||
bodyJson.put("nnum", body.get("nnum"));// 实收主数量
|
bodyJson.put("nnum", body.get("nnum"));// 实收主数量
|
||||||
bodyJson.put("nassistnum", body.get("nassistnum"));// 实收数量
|
bodyJson.put("nassistnum", body.get("nassistnum"));// 实收数量
|
||||||
bodyJson.put("vchangerate", "1/1");// 换算率
|
bodyJson.put("vchangerate", "1/1");// 换算率
|
||||||
// bodyJson.put("nqtprice", body.get("nqtprice"));//
|
|
||||||
// bodyJson.put("nqttaxprice", body.get("nqttaxprice"));//
|
Object nqtorigprice = body.get("nqtorigprice");// 无税单价
|
||||||
// bodyJson.put("norigtaxmny", body.get("norigtaxmny"));//
|
Object nqtorigtaxprice = body.get("nqtorigtaxprice");// 含税单价
|
||||||
// bodyJson.put("ntaxmny", body.get("ntaxmny"));//
|
bodyJson.put("nqtorignetprice", nqtorigprice);// 无税净价
|
||||||
// bodyJson.put("nmny", body.get("nmny"));//
|
bodyJson.put("nqtorigtaxnetprice", nqtorigtaxprice);// 含税净价
|
||||||
// bodyJson.put("ntax", body.get("ntax"));//
|
bodyJson.put("nqtnetprice", nqtorigprice);// 本币无税净价
|
||||||
|
bodyJson.put("nqttaxnetprice", nqtorigtaxprice);// 本币含税净价
|
||||||
|
bodyJson.put("norigprice", nqtorigprice);// 主无税单价
|
||||||
|
bodyJson.put("norigtaxprice", nqtorigtaxprice);// 主含税单价
|
||||||
|
bodyJson.put("nprice", nqtorigprice);// 主本币无税单价
|
||||||
|
bodyJson.put("ntaxprice", nqtorigtaxprice);// 主本币含税单价
|
||||||
|
bodyJson.put("nqtorigprice", nqtorigprice);// 无税单价
|
||||||
|
bodyJson.put("nqtorigtaxprice", nqtorigtaxprice);// 含税单价
|
||||||
|
bodyJson.put("nqtprice", nqtorigprice);// 本币无税单价
|
||||||
|
bodyJson.put("nqttaxprice", nqtorigtaxprice);// 本币含税单价
|
||||||
|
|
||||||
|
bodyJson.put("norigmny", body.get("norigmny"));// 无税金额
|
||||||
|
bodyJson.put("norigtaxmny", body.get("norigtaxmny"));// 价税合计
|
||||||
|
bodyJson.put("nmny", body.get("norigmny"));// 本币无税金额
|
||||||
|
bodyJson.put("ntaxmny", body.get("norigtaxmny"));// 本币价税合计
|
||||||
|
bodyJson.put("ntaxrate", body.get("ntaxrate"));// 税率
|
||||||
bodyJson.put("vnotebody", body.get("vnotebody"));// 行备注
|
bodyJson.put("vnotebody", body.get("vnotebody"));// 行备注
|
||||||
|
|
||||||
bodyJsonArr.add(bodyJson);
|
bodyJsonArr.add(bodyJson);
|
||||||
|
|
|
||||||
|
|
@ -116,6 +116,11 @@ public class MaterialOutGyImsPlugin implements IBackgroundWorkPlugin {
|
||||||
whereStorSql);
|
whereStorSql);
|
||||||
// NCCForUAPLogger.debug("cwarehouseid = " + cwarehouseid);
|
// NCCForUAPLogger.debug("cwarehouseid = " + cwarehouseid);
|
||||||
hvo.setCwarehouseid(warehousePk);
|
hvo.setCwarehouseid(warehousePk);
|
||||||
|
if (mainMap.get("dbilldate") != null && mainMap.get("dbilldate") instanceof Timestamp dbilldate) {
|
||||||
|
String dbilldateStr = DATETIME_FORMATTER.format(dbilldate);
|
||||||
|
UFDate dbilldate1 = new UFDate(dbilldateStr);
|
||||||
|
hvo.setDbilldate(dbilldate1);
|
||||||
|
}
|
||||||
if (mainMap.get("dmakedate") != null && mainMap.get("dmakedate") instanceof Timestamp dmakedate1) {
|
if (mainMap.get("dmakedate") != null && mainMap.get("dmakedate") instanceof Timestamp dmakedate1) {
|
||||||
String dmakedateStr = DATE_FORMATTER.format(dmakedate1);
|
String dmakedateStr = DATE_FORMATTER.format(dmakedate1);
|
||||||
UFDate dmakedate = new UFDate(dmakedateStr);
|
UFDate dmakedate = new UFDate(dmakedateStr);
|
||||||
|
|
|
||||||
|
|
@ -114,6 +114,11 @@ public class ProductReportGyImsPlugin implements IBackgroundWorkPlugin {
|
||||||
UFDateTime creationtime = new UFDateTime(creationtimeStr);
|
UFDateTime creationtime = new UFDateTime(creationtimeStr);
|
||||||
hvo.setCreationtime(creationtime);
|
hvo.setCreationtime(creationtime);
|
||||||
}
|
}
|
||||||
|
if (mainMap.get("dbilldate") != null && mainMap.get("dbilldate") instanceof Timestamp dbilldate) {
|
||||||
|
String dbilldateStr = DATETIME_FORMATTER.format(dbilldate);
|
||||||
|
UFDate dbilldate1 = new UFDate(dbilldateStr);
|
||||||
|
hvo.setDbilldate(dbilldate1);
|
||||||
|
}
|
||||||
for (WrItemVO bvo : bvos) {
|
for (WrItemVO bvo : bvos) {
|
||||||
bvo.setFbproducttype(1);// 产品类型 1.主产品
|
bvo.setFbproducttype(1);// 产品类型 1.主产品
|
||||||
bvo.setTbstarttime(new UFDateTime(dmakedateStr + " 00:00:00"));// 开始时间
|
bvo.setTbstarttime(new UFDateTime(dmakedateStr + " 00:00:00"));// 开始时间
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue