bug
This commit is contained in:
@ -5696,6 +5696,14 @@ public class EquipmentCardController {
|
||||
* @param model
|
||||
* @return
|
||||
*/
|
||||
// ├── Water Plant (水厂)
|
||||
//│ ├── Process Section A (工艺段) ← Previously lost
|
||||
//│ ├── Process Section B (工艺段) ← Previously lost
|
||||
//│ ├── Pump Station 1 (泵站) ← Was overwriting above
|
||||
//│ │ ├── Process Section C (工艺段)
|
||||
//│ │ └── Process Section D (工艺段)
|
||||
//│ └── Pump Station 2 (泵站)
|
||||
// │ └── Process Section E (工艺段)
|
||||
@RequestMapping("/getProcessSection4EquipmentCardTree.do")
|
||||
public String getProcessSection4EquipmentCardTree(HttpServletRequest request, Model model) {
|
||||
String unitId = request.getParameter("unitId");
|
||||
|
||||
@ -211,7 +211,8 @@ public class SafetyCheckDaylyController {
|
||||
@ResponseBody
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public Result saveApply(HttpServletRequest request, SafetyCheckDayly bean, MultipartFile file) throws Exception {
|
||||
if(StringUtils.isEmpty(bean.getDutyUserId())){
|
||||
if(bean.getCheckResult() != 1 && StringUtils.isEmpty(bean.getDutyUserId())){
|
||||
// 弱智东西,不相符的才需要整改负责人
|
||||
return Result.failed("整改负责人不能为空!");
|
||||
}
|
||||
|
||||
|
||||
@ -8424,7 +8424,13 @@ public class EquipmentCardService implements CommService<EquipmentCard> {
|
||||
}
|
||||
}
|
||||
if (childlist.size() > 0) {
|
||||
mp.put("nodes", childlist);
|
||||
// 保留已有的nodes(如工艺段),将子单元添加到现有nodes中
|
||||
List<Map<String, Object>> existingNodes = (List<Map<String, Object>>) mp.get("nodes");
|
||||
if (existingNodes != null && existingNodes.size() > 0) {
|
||||
existingNodes.addAll(childlist);
|
||||
} else {
|
||||
mp.put("nodes", childlist);
|
||||
}
|
||||
getTreeList4ProcessSection(childlist, list);
|
||||
}
|
||||
}
|
||||
@ -8491,7 +8497,13 @@ public class EquipmentCardService implements CommService<EquipmentCard> {
|
||||
}
|
||||
}
|
||||
if (childlist.size() > 0) {
|
||||
mp.put("nodes", childlist);
|
||||
// 保留已有的nodes(如设备类型),将子单元添加到现有nodes中
|
||||
List<Map<String, Object>> existingNodes = (List<Map<String, Object>>) mp.get("nodes");
|
||||
if (existingNodes != null && existingNodes.size() > 0) {
|
||||
existingNodes.addAll(childlist);
|
||||
} else {
|
||||
mp.put("nodes", childlist);
|
||||
}
|
||||
getTreeList4EquipmentClass(childlist, list);
|
||||
}
|
||||
}
|
||||
|
||||
@ -1661,7 +1661,7 @@ public class MPointService {
|
||||
for (int i = minCellNum; i < maxCellNum; i++) {
|
||||
HSSFCell mpidCell = mpidRow.getCell(i);
|
||||
String mpidStr = getStringVal(mpidCell);
|
||||
MPoint mPoint = this.selectByWhere(unitId, "where MPointCode like '%" + mpidStr + "%' or ParmName like '%" + mpidStr + "%' ");
|
||||
MPoint mPoint = this.selectByWhere(unitId, "where MPointCode = '"+ mpidStr+"'");
|
||||
if (mPoint != null) {
|
||||
String mpid = mPoint.getMpointcode();
|
||||
MPointHistory mPointHistory = new MPointHistory();
|
||||
|
||||
Reference in New Issue
Block a user