Browse Source

增加必要参数校验

dev
sunyuchao 3 years ago
parent
commit
7f24fa932f
  1. 2
      epmet-module/gov-project/gov-project-client/src/main/java/com/epmet/dto/form/IcEventReplyFormDTO.java
  2. 2
      epmet-module/gov-project/gov-project-server/src/main/java/com/epmet/service/impl/IcEventServiceImpl.java

2
epmet-module/gov-project/gov-project-client/src/main/java/com/epmet/dto/form/IcEventReplyFormDTO.java

@ -32,10 +32,12 @@ public class IcEventReplyFormDTO implements Serializable {
/**
* 回复内容
*/
@NotBlank(message = "回复内容不能为空", groups = {UpdateGroup.class})
private String content;
/**
* 处理方式[0:已回复 1:已转项目 1:已转需求]
*/
@NotBlank(message = "处理方式不能为空", groups = {UpdateGroup.class})
private String operationType;
/**
* 处理中processing已办结closed_case

2
epmet-module/gov-project/gov-project-server/src/main/java/com/epmet/service/impl/IcEventServiceImpl.java

@ -660,7 +660,7 @@ public class IcEventServiceImpl extends BaseServiceImpl<IcEventDao, IcEventEntit
throw new EpmetException(EpmetErrorCode.EPMET_COMMON_OPERATION_FAIL.getCode(), "当前事件不允许回复");
}
//2.修改事件数据
if (StringUtils.isNotBlank(formDTO.getOperationType()) && "closed_case".equals(formDTO.getStatus())){
if (StringUtils.isNotBlank(formDTO.getOperationType()) && StringUtils.isNotBlank(formDTO.getStatus()) && "closed_case".equals(formDTO.getStatus())){
entity.setStatus(formDTO.getStatus());
entity.setCloseCaseTime(new Date());
}

Loading…
Cancel
Save