|
|
|
@ -284,8 +284,7 @@ public class DepositoryRecordController { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
else { |
|
|
|
} else { |
|
|
|
List<Object> errMsg = new ArrayList<>(); |
|
|
|
List<Object> successMsg = new ArrayList<>(); |
|
|
|
for (Integer param : params) { |
|
|
|
@ -1110,11 +1109,30 @@ public class DepositoryRecordController { |
|
|
|
) { |
|
|
|
depositoryName.append(depository.getDname()).append(","); |
|
|
|
} |
|
|
|
// 部门负责人
|
|
|
|
String departmentHead = outRecordP.getDepartmenthead(); |
|
|
|
String[] split = departmentHead.split(","); |
|
|
|
if ("".equals(departmentHead) || departmentHead.isEmpty()) { |
|
|
|
// 如果当前没有部门负责人
|
|
|
|
split = new String[0]; |
|
|
|
} |
|
|
|
String useAdminorgName = ""; |
|
|
|
for (String value : split) { |
|
|
|
if ("".equals(value)) { |
|
|
|
continue; |
|
|
|
} |
|
|
|
UserByPort departmenthead = LinkInterfaceUtil.FindUserById(ObjectFormatUtil.toInteger(value), userKey, token); |
|
|
|
if ("".equals(useAdminorgName)) { |
|
|
|
useAdminorgName = departmenthead.getMaindeparmentname(); |
|
|
|
} else { |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
outRecordP.setUseAdminorgName(useAdminorgName); |
|
|
|
outRecordP.setDepositoryName(depositoryName.toString()); |
|
|
|
outRecordP.setQuantity(sumQuantity); |
|
|
|
outRecordP.setPrice(sumPrice); |
|
|
|
outRecordP.setMnameStringList(mnameForMobiles); |
|
|
|
|
|
|
|
} |
|
|
|
return new RestResponse(list, countBy, 200); |
|
|
|
} |
|
|
|
@ -1685,8 +1703,7 @@ public class DepositoryRecordController { |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
else if ("out".equals(type)) { |
|
|
|
} else if ("out".equals(type)) { |
|
|
|
// 获取部门负责人
|
|
|
|
List<UserByPort> departmentHeadByUsers = PublicConfig.findDepartmentHeadByUser(userToken.getMaindeparment(), userkey, usertoken); |
|
|
|
StringBuilder departmentHeadId = new StringBuilder(); |
|
|
|
@ -1969,8 +1986,7 @@ public class DepositoryRecordController { |
|
|
|
|
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
else if ("out".equals(type)) { |
|
|
|
} else if ("out".equals(type)) { |
|
|
|
Map<String, Object> mainRecord = new HashMap<>(); |
|
|
|
Integer sumQuantity = 0; |
|
|
|
for (Object o : quantitys) { |
|
|
|
|