畅捷通 增加联系人信息
continuous-integration/drone/push Build is passing Details

沃森川job同步飞书
YXY 1 year ago
parent 7c5094a168
commit bc3364c66a

@ -67,7 +67,7 @@ public class ManufactureOrderSyncJob extends SyncAccountsJobAbstract {
"ManufactureOrder.ManufactureOrderDetails.Unit.Name", "ManufactureOrder.ManufactureOrderDetails.Unit.Name",
"ManufactureOrder.ManufactureOrderDetails.Quantity", "ManufactureOrder.ManufactureOrderDetails.Quantity",
"ManufactureOrder.ManufactureOrderDetails.pubuserdefnvc2", "ManufactureOrder.ManufactureOrderDetails.pubuserdefnvc2",
"ManufactureOrder.Customer.Name", "ManufactureOrder.ManufactureOrderDetails.Customer.Name",
"ManufactureOrder.ManufactureOrderDetails.priuserdefnvc1", "ManufactureOrder.ManufactureOrderDetails.priuserdefnvc1",
"ManufactureOrder.ManufactureOrderDetails.pubuserdefnvc1"); "ManufactureOrder.ManufactureOrderDetails.pubuserdefnvc1");
} }
@ -87,7 +87,7 @@ public class ManufactureOrderSyncJob extends SyncAccountsJobAbstract {
map.put("ManufactureOrderDetails_Unit_Name", new CJTSyncTypeRelation("生产单位")); map.put("ManufactureOrderDetails_Unit_Name", new CJTSyncTypeRelation("生产单位"));
map.put("ManufactureOrderDetails_Quantity", new CJTSyncTypeRelation("数量", TableFieldTypeEnum.NUMBER)); map.put("ManufactureOrderDetails_Quantity", new CJTSyncTypeRelation("数量", TableFieldTypeEnum.NUMBER));
map.put("ManufactureOrderDetails_pubuserdefnvc2", new CJTSyncTypeRelation("备注1")); map.put("ManufactureOrderDetails_pubuserdefnvc2", new CJTSyncTypeRelation("备注1"));
map.put("Customer_Name", new CJTSyncTypeRelation("客户")); map.put("manufactureorderdetails_customer_name", new CJTSyncTypeRelation("客户"));
map.put("ManufactureOrderDetails_priuserdefnvc1", new CJTSyncTypeRelation("合并字段")); map.put("ManufactureOrderDetails_priuserdefnvc1", new CJTSyncTypeRelation("合并字段"));
CjtAccountEnum cjtAccountEnum = CjtAccountEnum.getByCode(cjt); CjtAccountEnum cjtAccountEnum = CjtAccountEnum.getByCode(cjt);
switch (cjtAccountEnum) { switch (cjtAccountEnum) {

@ -72,7 +72,9 @@ public class SaleDispatchSyncJob extends SyncAccountsJobAbstract{
"RDRecord.RDRecordDetails.OrigSalePrice", "RDRecord.RDRecordDetails.OrigSalePrice",
"RDRecord.RDRecordDetails.OrigSaleAmount", "RDRecord.RDRecordDetails.OrigSaleAmount",
"RDRecord.Partner.priuserdefnvc1", "RDRecord.Partner.priuserdefnvc1",
"RDRecord.Partner.priuserdefnvc2"); "RDRecord.Partner.priuserdefnvc2",
"RDRecord.Contact",
"RDRecord.ContactPhone");
} }
@Override @Override
@ -95,6 +97,15 @@ public class SaleDispatchSyncJob extends SyncAccountsJobAbstract{
map.put("RDRecordDetails_OrigSaleAmount",new CJTSyncTypeRelation("销售金额", TableFieldTypeEnum.NUMBER)); map.put("RDRecordDetails_OrigSaleAmount",new CJTSyncTypeRelation("销售金额", TableFieldTypeEnum.NUMBER));
map.put("partner_priuserdefnvc1",new CJTSyncTypeRelation("客服")); map.put("partner_priuserdefnvc1",new CJTSyncTypeRelation("客服"));
map.put("partner_priuserdefnvc2",new CJTSyncTypeRelation("配送路线")); map.put("partner_priuserdefnvc2",new CJTSyncTypeRelation("配送路线"));
CjtAccountEnum cjtAccountEnum = CjtAccountEnum.getByCode(cjt);
switch (cjtAccountEnum){
case ONE:
map.put("contact",new CJTSyncTypeRelation("联系人"));
map.put("contactphone",new CJTSyncTypeRelation("联系电话"));
break;
case TWO:
break;
}
return map; return map;
} }

Loading…
Cancel
Save