Browse Source

fit:优化信访

master
pengwei 3 months ago
parent
commit
fef879602f
  1. 1
      src/main/java/com/biutag/supervision/service/DataThreadService.java
  2. 4
      src/main/java/com/biutag/supervision/service/MailService.java

1
src/main/java/com/biutag/supervision/service/DataThreadService.java

@ -71,6 +71,7 @@ public class DataThreadService {
LambdaQueryWrapper<DataMailbox> wrapper = new LambdaQueryWrapper<DataMailbox>()
.eq(DataMailbox::getProblemSourcesCode, ProblemSourcesEnum.JZXX.getValue())
.like(StrUtil.isNotBlank(queryParam.getOriginId()), DataMailbox::getOriginId, queryParam.getOriginId())
.in(CollectionUtil.isNotEmpty(queryParam.getInvolvedIssue()),DataMailbox::getInvolvedIssue,queryParam.getInvolvedIssue())
.like(StrUtil.isNotBlank(queryParam.getThingDesc()), DataMailbox::getThingDesc, queryParam.getThingDesc());
if (queryParam.getDiscoveryTime().size() == 2) {
wrapper.between(DataMailbox::getDiscoveryTime, queryParam.getDiscoveryTime().get(0), queryParam.getDiscoveryTime().get(1));

4
src/main/java/com/biutag/supervision/service/MailService.java

@ -74,6 +74,7 @@ public class MailService extends ServiceImpl<MailMapper, Mail> {
negative.setProblemSources(ProblemSourcesEnum.JZXX.getLabel());
negative.setProblemSourcesCode(ProblemSourcesEnum.JZXX.getValue());
negative.setBusinessTypeCode(BusinessTypeEnum.QT.getValue());
negative.setBusinessTypeName(BusinessTypeEnum.QT.getLabel());
if ("属实".equals(item.getVerifyIsTrue())) {
negative.setCheckStatus(InspectCaseEnum.TRUE.getValue());
@ -187,13 +188,14 @@ public class MailService extends ServiceImpl<MailMapper, Mail> {
// 涉及个人
dataMailbox.setAccountabilityTarget(AccountabilityTargetEnum.PERSONAL.getValue());
dataMailbox.setCrtTime(LocalDateTime.now());
if("涉冻".equals(item.getMailCategory())){
dataMailbox.setInvolvedIssue("涉冻问题");
}
if("涉企".equals(item.getMailCategory())){
dataMailbox.setInvolvedIssue("涉企问题");
}
dataMailboxService.save(dataMailbox);
dataMailboxService.saveOrUpdate(dataMailbox);
// 被举报人
List<MailBlame> blames = mailBlames.stream().filter(mailBlame -> item.getId().equals(mailBlame.getMailId())).toList();

Loading…
Cancel
Save