|
|
@ -229,7 +229,7 @@ public class ResrceController {
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 资源负荷率报表
|
|
|
|
* 资源负荷率报表
|
|
|
|
* 存入 周产能、月产能
|
|
|
|
* 存入 周产能、月产能、日产能
|
|
|
|
* @param paramMap
|
|
|
|
* @param paramMap
|
|
|
|
* @return
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
*/
|
|
|
@ -246,7 +246,7 @@ public class ResrceController {
|
|
|
|
customFields.setValue(hashMap.get("weekCapacity"));
|
|
|
|
customFields.setValue(hashMap.get("weekCapacity"));
|
|
|
|
CustomFieldsList.add(customFields);
|
|
|
|
CustomFieldsList.add(customFields);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
} else if (paramMap.get("capacity").equals("monthCapacity")){
|
|
|
|
for (HashMap<String, String> hashMap : resultList) {
|
|
|
|
for (HashMap<String, String> hashMap : resultList) {
|
|
|
|
CustomFields customFields = new CustomFields();
|
|
|
|
CustomFields customFields = new CustomFields();
|
|
|
|
customFields.setHandle(HandleEnum.OPERATION.getHandle(CommonMethods.getSite(), hashMap.get("operation"),"1.0"));
|
|
|
|
customFields.setHandle(HandleEnum.OPERATION.getHandle(CommonMethods.getSite(), hashMap.get("operation"),"1.0"));
|
|
|
@ -254,6 +254,14 @@ public class ResrceController {
|
|
|
|
customFields.setValue(hashMap.get("monthCapacity"));
|
|
|
|
customFields.setValue(hashMap.get("monthCapacity"));
|
|
|
|
CustomFieldsList.add(customFields);
|
|
|
|
CustomFieldsList.add(customFields);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}else if (paramMap.get("capacity").equals("dayCapacity")){
|
|
|
|
|
|
|
|
for (HashMap<String, String> hashMap : resultList) {
|
|
|
|
|
|
|
|
CustomFields customFields = new CustomFields();
|
|
|
|
|
|
|
|
customFields.setHandle(HandleEnum.OPERATION.getHandle(CommonMethods.getSite(), hashMap.get("operation"),"1.0"));
|
|
|
|
|
|
|
|
customFields.setAttribute("DAY_CAPACITY");
|
|
|
|
|
|
|
|
customFields.setValue(hashMap.get("dayCapacity"));
|
|
|
|
|
|
|
|
CustomFieldsList.add(customFields);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
customFieldsService.saveOrUpdateCustomFields(CustomFieldsList);
|
|
|
|
customFieldsService.saveOrUpdateCustomFields(CustomFieldsList);
|
|
|
|
return R.ok("保存成功");
|
|
|
|
return R.ok("保存成功");
|
|
|
|