Browse Source

事件工作端红点问题

feature/teamB_zz_wgh
sunyuchao 3 years ago
parent
commit
2ebf7edffe
  1. 4
      epmet-module/gov-project/gov-project-client/src/main/java/com/epmet/dto/form/IcEventListFormDTO.java
  2. 11
      epmet-module/gov-project/gov-project-server/src/main/java/com/epmet/controller/IcEventController.java
  3. 5
      epmet-module/gov-project/gov-project-server/src/main/java/com/epmet/service/IcEventService.java
  4. 7
      epmet-module/gov-project/gov-project-server/src/main/java/com/epmet/service/impl/IcEventServiceImpl.java
  5. 6
      epmet-module/gov-project/gov-project-server/src/main/resources/db/migration/V0.0.24__alter_ic_event.sql

4
epmet-module/gov-project/gov-project-client/src/main/java/com/epmet/dto/form/IcEventListFormDTO.java

@ -17,11 +17,13 @@ public class IcEventListFormDTO implements Serializable {
public interface Detail extends CustomerClientShowGroup {
}
public interface GovRedDot extends CustomerClientShowGroup {
}
/**
* 事件ID
*/
@NotBlank(message = "事件ID不能为空", groups = Detail.class)
@NotBlank(message = "事件ID不能为空", groups = {Detail.class, GovRedDot.class})
private String icEventId;
/**
* 所属组织

11
epmet-module/gov-project/gov-project-server/src/main/java/com/epmet/controller/IcEventController.java

@ -449,4 +449,15 @@ public class IcEventController {
}
}
/**
* @Author sun
* @Description 工作端事件红点消除
**/
@PostMapping("govRedDot")
public Result govRedDot(@RequestBody IcEventListFormDTO formDTO) {
ValidatorUtils.validateEntity(formDTO, IcEventListFormDTO.GovRedDot.class);
icEventService.govRedDot(formDTO.getIcEventId());
return new Result();
}
}

5
epmet-module/gov-project/gov-project-server/src/main/java/com/epmet/service/IcEventService.java

@ -215,4 +215,9 @@ public interface IcEventService extends BaseService<IcEventEntity> {
* @return
*/
MyReportIcEvResDTO myReportDetail(MyReportIcEvFormDTO formDTO);
/**
* @Description 工作端事件红点消除
**/
void govRedDot(String icEventId);
}

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

@ -1522,5 +1522,12 @@ public class IcEventServiceImpl extends BaseServiceImpl<IcEventDao, IcEventEntit
return entity;
}
@Override
public void govRedDot(String icEventId) {
IcEventEntity entity = new IcEventEntity();
entity.setId(icEventId);
entity.setGovRedDot(NumConstant.ZERO);
baseDao.updateById(entity);
}
}

6
epmet-module/gov-project/gov-project-server/src/main/resources/db/migration/V0.0.24__alter_ic_event.sql

@ -0,0 +1,6 @@
ALTER TABLE `ic_event`
ADD COLUMN `GOV_RED_DOT` tinyint(1) NOT NULL DEFAULT 0 COMMENT '工作端的红点:展示1;不展示:0;【居民报事、回复更新为1】' AFTER `RED_DOT`;
ALTER TABLE `ic_event`
MODIFY COLUMN `CREATED_TIME` datetime NOT NULL COMMENT '创建时间' AFTER `CREATED_BY`;
Loading…
Cancel
Save