Browse Source

12312312

master
jianjun 4 years ago
parent
commit
d32f970d95
  1. 2
      epmet-user/epmet-user-client/src/main/java/com/epmet/dto/form/PatrolRoutineWorkFormDTO.java
  2. 6
      epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/PatrolRoutineWorkServiceImpl.java

2
epmet-user/epmet-user-client/src/main/java/com/epmet/dto/form/PatrolRoutineWorkFormDTO.java

@ -55,7 +55,7 @@ public class PatrolRoutineWorkFormDTO implements Serializable {
@Range(min = 0, max = 1, message = "重点人员是否在当地格式错误", groups = AddOrUpdateForm.class) @Range(min = 0, max = 1, message = "重点人员是否在当地格式错误", groups = AddOrUpdateForm.class)
private Integer isKeyPeopleLocate; private Integer isKeyPeopleLocate;
/** /**
* 重点人员现状 * 当事件类型为特殊人群服务与管理时必填 重点人员现状
*/ */
private String keyPeopleStatus; private String keyPeopleStatus;
/** /**

6
epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/PatrolRoutineWorkServiceImpl.java

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

Loading…
Cancel
Save