合同的负责人主属部门key修复
This commit is contained in:
parent
d12b922326
commit
f1ba57ada3
@ -469,8 +469,8 @@ public class FrameContractController {
|
||||
}
|
||||
|
||||
String deptERPCode = deptRes.getJSONObject("data").getJSONArray("dataList").getJSONObject(0).getString("field_Vj6sf__c");
|
||||
//YQBGMap.put("dept", deptERPCode);//部门编码
|
||||
frameContractBGMap.put("dept", "ZHY");//部门编码
|
||||
frameContractBGMap.put("dept", deptERPCode);//部门编码
|
||||
//frameContractBGMap.put("dept", "ZHY");//部门编码
|
||||
|
||||
List ownerId = frameContractBGData.getJSONArray("change_owner") != null ? frameContractBGData.getJSONArray("change_owner") : new ArrayList<>();
|
||||
|
||||
|
@ -735,7 +735,12 @@ public class XSHTController {
|
||||
|
||||
System.out.println("负责人数据为:" + ownerRes);
|
||||
|
||||
String ownerUserId = ownerRes.getJSONObject("data").getJSONArray("dataList").getJSONObject(0).getString("field_T1xid__c");
|
||||
String ownerUserId = "";
|
||||
|
||||
if ("success".equals(ownerRes.getString("errorDescription")) && !ownerRes.getJSONObject("data").getJSONArray("dataList").isEmpty()) {
|
||||
JSONObject ownerData = ownerRes.getJSONObject("data").getJSONArray("dataList").getJSONObject(0);
|
||||
ownerUserId = ownerData.getString("field_T1xid__c") != null ? ownerData.getString("field_T1xid__c") : "";
|
||||
}
|
||||
contractBGMap.put("operator", ownerUserId);//负责人
|
||||
//contractBGMap.put("operator", "ID-000016");//负责人
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user