Browse Source

优化完善

厅长信箱
wxc 2 months ago
parent
commit
b667133e38
  1. 6
      mailbox-lan/src/main/java/com/biutag/lan/domain/Mail.java
  2. 1
      mailbox-lan/src/main/java/com/biutag/lan/flow/node/DistributeFlow.java
  3. 37
      mailbox-lan/src/main/java/com/biutag/lan/service/WorkService.java

6
mailbox-lan/src/main/java/com/biutag/lan/domain/Mail.java

@ -457,4 +457,10 @@ public class Mail {
// 提交办结时间 // 提交办结时间
private LocalDateTime submitCompletionTime; private LocalDateTime submitCompletionTime;
// 本级办理流程
private Boolean localProcessingFlag = false;
// 本级办理
private String localProcessing;
} }

1
mailbox-lan/src/main/java/com/biutag/lan/flow/node/DistributeFlow.java

@ -136,6 +136,7 @@ public class DistributeFlow extends Flow {
.setDistributeTime(now) .setDistributeTime(now)
.setMainDeptLevel(mainDeptLevel) .setMainDeptLevel(mainDeptLevel)
.setFirstDeptId(mainDeptId) .setFirstDeptId(mainDeptId)
.setLocalProcessingFlag(data.getBoolean("localProcessingFlag"))
.setDistributeFiles(data.getString("files")) .setDistributeFiles(data.getString("files"))
.setDistributeComment(data.getString("comments")); .setDistributeComment(data.getString("comments"));
mailService.updateById(mail); mailService.updateById(mail);

37
mailbox-lan/src/main/java/com/biutag/lan/service/WorkService.java

@ -655,22 +655,24 @@ public class WorkService extends ServiceImpl<WorkMapper, Work> {
if (workVo.getStep() == null) { if (workVo.getStep() == null) {
workVo.setStep("0"); workVo.setStep("0");
} }
switch (workVo.getStep()) { if (AppealState.ON_APPEAL.getValue().equals(workVo.getAppealState())) {
case "1": switch (workVo.getStep()) {
if (AdminThreadLocal.getRoleId().equals(RoleEnum.SECOND_DEPT_CLASSES.getRoleId())) { case "1":
workVo.setIfHandle(1); if (AdminThreadLocal.getRoleId().equals(RoleEnum.SECOND_DEPT_CLASSES.getRoleId())) {
} workVo.setIfHandle(1);
break; }
case "2": break;
if (AdminThreadLocal.getRoleId().equals(RoleEnum.MUNICIPAL_DEPT_CLASSES.getRoleId())) { case "2":
workVo.setIfHandle(1); if (AdminThreadLocal.getRoleId().equals(RoleEnum.MUNICIPAL_DEPT_CLASSES.getRoleId())) {
} workVo.setIfHandle(1);
break; }
case "3": break;
if (AdminThreadLocal.getRoleId().equals(RoleEnum.PROVINCIAL_CLASSES.getRoleId())) { case "3":
workVo.setIfHandle(1); if (AdminThreadLocal.getRoleId().equals(RoleEnum.PROVINCIAL_CLASSES.getRoleId())) {
} workVo.setIfHandle(1);
break; }
break;
}
} }
} }
return result; return result;
@ -686,7 +688,8 @@ public class WorkService extends ServiceImpl<WorkMapper, Work> {
.eq(StrUtil.isNotBlank(mailQuery.getMailLevel()), "m.mail_level", mailQuery.getMailLevel()) .eq(StrUtil.isNotBlank(mailQuery.getMailLevel()), "m.mail_level", mailQuery.getMailLevel())
.and(query -> { .and(query -> {
query.eq("mm.satisfied", AppConstants.FALSE).or().eq("ma.appeal_state", AppealState.SUCCESS.getValue()); query.eq("mm.satisfied", AppConstants.FALSE).or().eq("ma.appeal_state", AppealState.SUCCESS.getValue());
}); })
.eq("ma.appeal_state", AppealState.ON_APPEAL.getValue());
if (StrUtil.isNotBlank(mailQuery.getAppealState())) { if (StrUtil.isNotBlank(mailQuery.getAppealState())) {
if (mailQuery.getAppealState().equals(AppealState.UN_APPEAL.getValue())) if (mailQuery.getAppealState().equals(AppealState.UN_APPEAL.getValue()))
queryWrapper.nested(q -> q.eq("ma.appeal_state", AppealState.UN_APPEAL.getValue()).or().isNull("ma.appeal_state")); queryWrapper.nested(q -> q.eq("ma.appeal_state", AppealState.UN_APPEAL.getValue()).or().isNull("ma.appeal_state"));

Loading…
Cancel
Save