|
|
@ -116,7 +116,7 @@ public class PatrolRoutineWorkServiceImpl extends BaseServiceImpl<PatrolRoutineW |
|
|
|
typeEntity.setRoutineWorkId(entity.getId()); |
|
|
|
typeEntity.setWorkTypeCode(code); |
|
|
|
StringBuilder pids = pidsMap.get(code); |
|
|
|
typeEntity.setAllPCode(pids.length() == 0 ? NumConstant.ZERO_STR : pids.toString()); |
|
|
|
typeEntity.setAllPCode(pids.length() == NumConstant.ZERO ? NumConstant.ZERO_STR : pids.toString()); |
|
|
|
workTypeList.add(typeEntity); |
|
|
|
}); |
|
|
|
patrolRoutineWorkTypeService.insertBatch(workTypeList); |
|
|
@ -137,8 +137,8 @@ public class PatrolRoutineWorkServiceImpl extends BaseServiceImpl<PatrolRoutineW |
|
|
|
StringBuilder pidSb = result.get(pid); |
|
|
|
if (pidSb == null) { |
|
|
|
pidSb = new StringBuilder(); |
|
|
|
} else if (pidSb.indexOf(pid) == -1) { |
|
|
|
if (pidSb.length() > 0) { |
|
|
|
} else if (pidSb.indexOf(pid) == NumConstant.ONE_NEG) { |
|
|
|
if (pidSb.length() > NumConstant.ZERO) { |
|
|
|
pidSb.append(StrConstant.COLON); |
|
|
|
} |
|
|
|
pidSb.append(pid); |
|
|
|