add:添加一个单位code

This commit is contained in:
zhangzq
2024-12-01 10:37:48 +08:00
parent 13e35b6adb
commit a0b8c280af
2 changed files with 25 additions and 17 deletions

View File

@@ -108,6 +108,14 @@ public class MappingHandler extends TypeHandler<JSONObject, JSONObject> {
resultT.put("t",t);
return resultT;
}
public static void main(String[] args) {
String a = "#V['\"\"']";
String value = a.split("'")[1];
System.out.println(value);
HashMap sss = MapOf.of("sss", value);
System.out.println(sss);
}
private Object velueMapping(JSONObject sourceFormData,String key,Object valueStruc,JSONObject formDataMapping){
Object value = null;
String skip = formDataMapping.getString(key);
@@ -161,15 +169,4 @@ public class MappingHandler extends TypeHandler<JSONObject, JSONObject> {
}
return value;
}
public static void main(String[] args) {
String struc = "{\"Model\":{\"FBillTypeID\":\"单据类型\",\"FStockOrgId\":{\"FNumber\":\"入库日期\"}}}";
JSONObject strucJson = JSON.parseObject(struc);
JSONObject sourceData = new JSONObject(MapOf.of("Model", MapOf.of("FBillTypeID", "123", "FStockOrgId", MapOf.of("FNumber", "shouliao"))));
JSONObject formDataMapping = new JSONObject(MapOf.of("FBillTypeID", "#M['Model']['FBillTypeID']", "FStockOrgId", "#M['Model']['FStockOrgId']['FNumber']"));
MappingHandler handler = new MappingHandler();
Object result = handler.velueMapping(sourceData, "Model", strucJson.get("Model"), formDataMapping);
System.out.println(result);
}
}

View File

@@ -2,10 +2,21 @@
托盘库编码FStockPallet
料箱库编码: FStockId
虚拟库编码: FicStockId
-- 清库存
update st_ivt_structattr set vehicle_code = null;
-- 删除组盘信息
update md_pb_vehiclemater set is_delete = '1';
-- 任务
update sch_base_task set `status` = '90' where `status` < 80;
-- 初始化仓库
UPDATE st_ivt_structattr set lock_type = '00' where stor_code = 'FStockId' and vehicle_code is not null;
UPDATE st_ivt_structattr set vehicle_code = null where stor_code = 'FStockId';
-- 初始化流程数据
delete from act_hi_execution;
delete from act_ru_execution;
-- 初始化出入库
delete from st_ivt_structivtflow;
delete from st_ivt_iostorinv;
delete from st_ivt_iostorinvdtl;
-- 初始化单据
delete from pm_form_data;
-- 初始化组盘
delete from md_group_dick;
delete from md_pb_vehiclemater;
-- 初始化任务
delete from sch_base_task;
------------------------------