【泛微其他出库接口】处理库管员
This commit is contained in:
		
							parent
							
								
									976638f4b9
								
							
						
					
					
						commit
						0f8a81eca4
					
				|  | @ -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"); | ||||
|             } | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue