|
|
@ -677,6 +677,7 @@ public class IcEventServiceImpl extends BaseServiceImpl<IcEventDao, IcEventEntit |
|
|
|
if (StringUtils.isNotBlank(formDTO.getOperationType()) && StringUtils.isNotBlank(formDTO.getStatus()) && "closed_case".equals(formDTO.getStatus())){ |
|
|
|
entity.setStatus(formDTO.getStatus()); |
|
|
|
entity.setCloseCaseTime(new Date()); |
|
|
|
entity.setDifficultPoint("0"); |
|
|
|
} |
|
|
|
entity.setOperationType(NumConstant.ZERO_STR); |
|
|
|
entity.setLatestOperatedTime(new Date()); |
|
|
@ -1196,6 +1197,7 @@ public class IcEventServiceImpl extends BaseServiceImpl<IcEventDao, IcEventEntit |
|
|
|
entity.setStatus("closed_case"); |
|
|
|
entity.setCloseCaseTime(new Date()); |
|
|
|
entity.setLatestOperatedTime(new Date()); |
|
|
|
entity.setDifficultPoint("0"); |
|
|
|
baseDao.updateById(entity); |
|
|
|
|
|
|
|
//3.判断新增操作记录
|
|
|
@ -1580,4 +1582,31 @@ public class IcEventServiceImpl extends BaseServiceImpl<IcEventDao, IcEventEntit |
|
|
|
baseDao.updateById(entity); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public void difficultPointEvent(IcEventListFormDTO formDTO) { |
|
|
|
if (CollectionUtils.isEmpty(formDTO.getIcEventIdList())) { |
|
|
|
return; |
|
|
|
} |
|
|
|
//1.校验是否存在已结案事件或已标记事件
|
|
|
|
if ("1".equals(formDTO.getType())) { |
|
|
|
List<IcEventDTO> list = baseDao.getByEventIds(formDTO.getIcEventIdList()); |
|
|
|
if (!CollectionUtils.isEmpty(list)) { |
|
|
|
throw new EpmetException(EpmetErrorCode.EPMET_COMMON_OPERATION_FAIL.getCode(), "存在已结案或已标记为难点堵点的事件,不允许重复操作", "存在已结案或已标记为难点堵点的事件,不允许重复操作"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
List<IcEventEntity> entityList = new ArrayList<>(); |
|
|
|
String userId = EpmetRequestHolder.getHeader(AppClientConstant.USER_ID); |
|
|
|
formDTO.getIcEventIdList().forEach(ev -> { |
|
|
|
IcEventEntity entity = new IcEventEntity(); |
|
|
|
entity.setId(ev); |
|
|
|
entity.setDifficultPoint(formDTO.getType()); |
|
|
|
entity.setUpdatedBy(userId); |
|
|
|
entity.setUpdatedTime(new Date()); |
|
|
|
entityList.add(entity); |
|
|
|
}); |
|
|
|
updateBatchById(entityList); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |