增加缺少的字段

2024年7月15日 18:22:22
This commit is contained in:
xiang2lin 2024-07-15 18:22:28 +08:00
parent 30e35f622b
commit b98da3d866
1 changed files with 40 additions and 16 deletions

View File

@ -236,12 +236,12 @@ public class SeeyonExtServiceImpl implements ISeeyonExtService {
oArchives.put("cInvStd", formson0228.getString("field0004"));
oArchives.put("iSafeNum", formson0228.getString("field0008"));
oArchives.put("bPurchase","0");
oArchives.put("bComsume","0");
oArchives.put("bSale","0");
oArchives.put("bSelf","0");
oArchives.put("bInvAsset","0");
oArchives.put("bService","0");
oArchives.put("bPurchase",0);
oArchives.put("bComsume",0);
oArchives.put("bSale",0);
oArchives.put("bSelf",0);
oArchives.put("bInvAsset",0);
oArchives.put("bService",0);
//存货属性勾选
String attr = formson0228.getString("field0007");
@ -250,28 +250,28 @@ public class SeeyonExtServiceImpl implements ISeeyonExtService {
for (String s : attrArr) {
switch (s){
case "4447593729630683530"://采购
oArchives.put("bPurchase","1");
oArchives.put("bPurchase",1);
break;
case "-387621385918919664"://生产耗用
oArchives.put("bComsume","1");
oArchives.put("bComsume",1);
break;
case "5069685839370801039"://内销
oArchives.put("bSale","1");
oArchives.put("bSale",1);
break;
case "6067929382885409752"://自制
oArchives.put("bSelf","1");
oArchives.put("bSelf",1);
break;
case "-8216072224610695901"://资产
oArchives.put("bInvAsset","1");
oArchives.put("bInvAsset",1);
break;
case "-949779340021054755"://应税劳务
oArchives.put("bService","1");
oArchives.put("bService",1);
break;
}
}
}
oArchives.put("iSupplyType","0");
oArchives.put("idrawtype","申请领用");
oArchives.put("iSupplyType",0);
oArchives.put("idrawtype",0);
oArchives.put("cValueType","全月平均法");
oArchives.put("iImpTaxRate","13");
oArchives.put("iTaxRate","13");
@ -295,13 +295,17 @@ public class SeeyonExtServiceImpl implements ISeeyonExtService {
jsonObject.put("Token", "Hzya1314_CheckSkip");
JSONObject oArchives = new JSONObject();
//供应商编码由U8生成
//oArchives.put("cVenCode", formmain0225.getString("field0002"));
oArchives.put("cVenCode", formmain0225.getString("field0002"));
oArchives.put("cVenName", formmain0225.getString("field0003"));
oArchives.put("cVenAbbName", formmain0225.getString("field0004"));
oArchives.put("cVCCode", formmain0225.getString("field0021"));
oArchives.put("iVenTaxRate", formmain0225.getString("field0007"));
oArchives.put("cDCCode", formmain0225.getString("field0005"));
oArchives.put("cDCCode", formmain0225.getString("field0026"));
oArchives.put("cVenExch_name", getExchName(formmain0225.getString("field0010")));
oArchives.put("cVenAddress", formmain0225.getString("field0017"));
oArchives.put("cVenPerson", formmain0225.getString("field0014"));
oArchives.put("cVenPhone", formmain0225.getString("field0015"));
oArchives.put("cVenHand", formmain0225.getString("field0015"));
//oArchives.put("bVenTax", "false");
//oArchives.put("bLicenceDate", "false");
//oArchives.put("bBusinessDate", "false");
@ -318,6 +322,10 @@ public class SeeyonExtServiceImpl implements ISeeyonExtService {
oArchives.put("cVenRegCode", formmain0225.getString("field0009"));
oArchives.put("cVenBank", formmain0225.getString("field0011"));
oArchives.put("cVenAccount", formmain0225.getString("field0012"));
if (StrUtil.isNotEmpty(formmain0225.getString("field0018"))){
String field0018 = DateUtil.format(formmain0225.getDate("field0018"), "yyyy-MM-dd");
oArchives.put("dVenDevDate", field0018);
}
//专管业务员 09001是张燕
//oArchives.put("cVenPPerson",formmain0225.getString("field0016"));
oArchives.put("cVenPPerson","09001");
@ -346,6 +354,22 @@ public class SeeyonExtServiceImpl implements ISeeyonExtService {
oArchives.put("cCusAbbName", formmain0226.getString("field0008"));
oArchives.put("cCCCode", formmain0226.getString("field0026"));
oArchives.put("cCusExch_name", getExchName(formmain0226.getString("field0013")));
oArchives.put("cCusAddress", formmain0226.getString("field0009"));
oArchives.put("dCusDevDate", formmain0226.getString("field0010"));
if (StrUtil.isNotEmpty(formmain0226.getString("field0010"))) {
String field0010 = DateUtil.format(formmain0226.getDate("field0010"), "yyyy-MM-dd");
oArchives.put("dDepBeginDate", field0010);
}
oArchives.put("dCusDevDate", DateUtil.today());
oArchives.put("cDCCode", formmain0226.getString("field0029"));
oArchives.put("cCusRegCode", formmain0226.getString("field0014"));
oArchives.put("cCusAccount", formmain0226.getString("field0015"));
oArchives.put("cCusBank", formmain0226.getString("field0016"));
oArchives.put("cCusPerson", formmain0226.getString("field0020"));
oArchives.put("cCusHand", formmain0226.getString("field0021"));
oArchives.put("cCusPhone", formmain0226.getString("field0021"));
//客户管理类型 默认 999
oArchives.put("cCusMngTypeCode", "999");
//bCusOverseas 是否国外