【泛微其他出库接口】处理库管员

This commit is contained in:
tanfengling@x-ri.com 2025-10-23 16:59:02 +08:00
parent 976638f4b9
commit 0f8a81eca4
1 changed files with 15 additions and 1 deletions

View File

@ -73,6 +73,21 @@ public class FWOtheroutApplySavePlugin implements ApiSavePlugin {
tqq9_dept.put("number", kdDept.getString("number"));
reqDatum.put("tqq9_dept", tqq9_dept);
}
//库管员 tqq9_operator_operatorid_number
Map<String, Object> tqq9_operator = (Map<String, Object>) reqDatum.get("tqq9_operator");
if(tqq9_operator != null && tqq9_operator.size() > 0){
Map<String, Object> operatorid = (Map<String, Object>) tqq9_operator.get("operatorid");
if(operatorid != null && operatorid.size() > 0){
String operatorNumber = (String) operatorid.get("number");
DynamicObject kdOperator = FWUtils.getKdUserByFwUserID(operatorNumber);
if (kdOperator != null){
operatorid.put("number", kdOperator.getString("number"));
tqq9_operator.put("operatorid", operatorid);
reqDatum.put("tqq9_operator", tqq9_operator);
}
}
}
String ckNumber = null;
//明细
@ -88,7 +103,6 @@ public class FWOtheroutApplySavePlugin implements ApiSavePlugin {
entry.put("tqq9_outowner", org);//出库货主
entry.put("tqq9_outkeepertype", "bos_org");//出库保管者类型
entry.put("tqq9_outkeeper", org);//出库保管者
Map<String, Object> tqq9_dcck = (Map<String, Object>) entry.get("tqq9_dcck");
ckNumber = (String) tqq9_dcck.get("number");
}