|
|
@ -1,6 +1,7 @@
|
|
|
|
package com.ruoyi.quartz.task.CJT;
|
|
|
|
package com.ruoyi.quartz.task.CJT;
|
|
|
|
|
|
|
|
|
|
|
|
import com.ruoyi.common.enums.AppType;
|
|
|
|
import com.ruoyi.common.enums.AppType;
|
|
|
|
|
|
|
|
import com.ruoyi.common.enums.CjtAccountEnum;
|
|
|
|
import com.ruoyi.common.enums.TableFieldTypeEnum;
|
|
|
|
import com.ruoyi.common.enums.TableFieldTypeEnum;
|
|
|
|
import com.ruoyi.common.enums.TableRelationTypeEnum;
|
|
|
|
import com.ruoyi.common.enums.TableRelationTypeEnum;
|
|
|
|
import com.ruoyi.quartz.domain.CJTSyncTypeRelation;
|
|
|
|
import com.ruoyi.quartz.domain.CJTSyncTypeRelation;
|
|
|
@ -56,38 +57,44 @@ public class ManufactureOrderSyncJob extends SyncAccountsJobAbstract{
|
|
|
|
"ManufactureOrder.VoucherDate",
|
|
|
|
"ManufactureOrder.VoucherDate",
|
|
|
|
"ManufactureOrder.ManufactureOrderDetails.SourceVoucherCode",
|
|
|
|
"ManufactureOrder.ManufactureOrderDetails.SourceVoucherCode",
|
|
|
|
"ManufactureOrder.Code",
|
|
|
|
"ManufactureOrder.Code",
|
|
|
|
"ManufactureOrderDetails.pubuserdefnvc1",
|
|
|
|
|
|
|
|
"ManufactureOrder.CreatedTime",
|
|
|
|
"ManufactureOrder.CreatedTime",
|
|
|
|
"ManufactureOrder.Department.Name",
|
|
|
|
"ManufactureOrder.Department.Name",
|
|
|
|
"ManufactureOrder.Person.Code",
|
|
|
|
"ManufactureOrder.Person.Name",
|
|
|
|
"ManufactureOrder.ManufactureOrderDetails.Inventory.Code",
|
|
|
|
"ManufactureOrder.ManufactureOrderDetails.Inventory.Code",
|
|
|
|
"ManufactureOrder.ManufactureOrderDetails.Inventory.Name",
|
|
|
|
"ManufactureOrder.ManufactureOrderDetails.Inventory.Name",
|
|
|
|
"ManufactureOrder.ManufactureOrderDetails.Inventory.Specification",
|
|
|
|
"ManufactureOrder.ManufactureOrderDetails.Inventory.Specification",
|
|
|
|
"ManufactureOrder.ManufactureOrderDetails.Unit.Name",
|
|
|
|
"ManufactureOrder.ManufactureOrderDetails.Unit.Name",
|
|
|
|
"ManufactureOrder.ManufactureOrderDetails.Quantity",
|
|
|
|
"ManufactureOrder.ManufactureOrderDetails.Quantity",
|
|
|
|
"ManufactureOrder.Memo",
|
|
|
|
"ManufactureOrder.ManufactureOrderDetails.pubuserdefnvc2",
|
|
|
|
"ManufactureOrder.Customer.Name",
|
|
|
|
"ManufactureOrder.Customer.Name",
|
|
|
|
"ManufactureOrder.ManufactureOrderDetails.priuserdefnvc1");
|
|
|
|
"ManufactureOrder.ManufactureOrderDetails.priuserdefnvc1");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
protected Map<String, CJTSyncTypeRelation> getQueryFieldsMap() {
|
|
|
|
protected Map<String, CJTSyncTypeRelation> getQueryFieldsMap(String cjt) {
|
|
|
|
Map<String, CJTSyncTypeRelation> map = new CaseInsensitiveMap<>();
|
|
|
|
Map<String, CJTSyncTypeRelation> map = new CaseInsensitiveMap<>();
|
|
|
|
map.put("VoucherDate", new CJTSyncTypeRelation("单据日期"));
|
|
|
|
map.put("VoucherDate", new CJTSyncTypeRelation("单据日期"));
|
|
|
|
map.put("manufactureorderdetails_sourcevouchercode",new CJTSyncTypeRelation("存货编码"));
|
|
|
|
map.put("manufactureorderdetails_sourcevouchercode",new CJTSyncTypeRelation("存货编码"));
|
|
|
|
map.put("Code",new CJTSyncTypeRelation("单据编码"));
|
|
|
|
map.put("Code",new CJTSyncTypeRelation("单据编码"));
|
|
|
|
map.put("pubuserdefnvc1",new CJTSyncTypeRelation("钢板面"));
|
|
|
|
|
|
|
|
map.put("CreatedTime",new CJTSyncTypeRelation("创建时间"));
|
|
|
|
map.put("CreatedTime",new CJTSyncTypeRelation("创建时间"));
|
|
|
|
map.put("Department_Name",new CJTSyncTypeRelation("生产车间"));
|
|
|
|
map.put("Department_Name",new CJTSyncTypeRelation("生产车间"));
|
|
|
|
map.put("person_code",new CJTSyncTypeRelation("负责人"));
|
|
|
|
map.put("person_name",new CJTSyncTypeRelation("负责人"));
|
|
|
|
map.put("ManufactureOrderDetails_Inventory_Code",new CJTSyncTypeRelation("产品编码"));
|
|
|
|
map.put("ManufactureOrderDetails_Inventory_Code",new CJTSyncTypeRelation("产品编码"));
|
|
|
|
map.put("ManufactureOrderDetails_Inventory_Name",new CJTSyncTypeRelation("产品"));
|
|
|
|
map.put("ManufactureOrderDetails_Inventory_Name",new CJTSyncTypeRelation("产品"));
|
|
|
|
map.put("ManufactureOrderDetails_Inventory_Specification",new CJTSyncTypeRelation("规格型号"));
|
|
|
|
map.put("ManufactureOrderDetails_Inventory_Specification",new CJTSyncTypeRelation("规格型号"));
|
|
|
|
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("Memo",new CJTSyncTypeRelation("备注1"));
|
|
|
|
map.put("manufactureorderdetails_pubuserdefnvc2",new CJTSyncTypeRelation("备注1"));
|
|
|
|
map.put("Customer_Name",new CJTSyncTypeRelation("客户"));
|
|
|
|
map.put("Customer_Name",new CJTSyncTypeRelation("客户"));
|
|
|
|
|
|
|
|
CjtAccountEnum cjtAccountEnum = CjtAccountEnum.valueOf(cjt);
|
|
|
|
|
|
|
|
switch (cjtAccountEnum){
|
|
|
|
|
|
|
|
case ONE:
|
|
|
|
map.put("ManufactureOrderDetails_priuserdefnvc1",new CJTSyncTypeRelation("合并字段"));
|
|
|
|
map.put("ManufactureOrderDetails_priuserdefnvc1",new CJTSyncTypeRelation("合并字段"));
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case TWO:
|
|
|
|
|
|
|
|
map.put("manufactureorderdetails_priuserdefnvc1",new CJTSyncTypeRelation("钢板面"));
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
return map;
|
|
|
|
return map;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|