From b512f03e1ea30e22209ec5a889d568c45f3e03c9 Mon Sep 17 00:00:00 2001
From: wangwh <2397901735@qq.com>
Date: Fri, 13 Sep 2024 10:41:03 +0800
Subject: [PATCH] 1、删除经办人 2、规范代码
---
dyh-service/dyh-mediate/src/main/java/cn/huge/module/cases/service/CaseWindupApplyService.java | 64 +++++++++++++++++++++++++++++++
1 files changed, 63 insertions(+), 1 deletions(-)
diff --git a/dyh-service/dyh-mediate/src/main/java/cn/huge/module/cases/service/CaseWindupApplyService.java b/dyh-service/dyh-mediate/src/main/java/cn/huge/module/cases/service/CaseWindupApplyService.java
index 1289d14..42a6a3d 100644
--- a/dyh-service/dyh-mediate/src/main/java/cn/huge/module/cases/service/CaseWindupApplyService.java
+++ b/dyh-service/dyh-mediate/src/main/java/cn/huge/module/cases/service/CaseWindupApplyService.java
@@ -3,6 +3,9 @@
import cn.huge.base.common.exception.ServiceException;
import cn.huge.base.common.utils.DateUtils;
import cn.huge.base.common.utils.IdUtils;
+import cn.huge.base.common.utils.ObjectUtils;
+import cn.huge.module.cases.domain.dto.FrontPageListDTO;
+import cn.huge.module.cases.domain.po.CaseInfo;
import cn.huge.module.client.api.impl.UtilsClientImpl;
import cn.huge.module.cases.dao.mapper.CaseWindupApplyMapper;
import cn.huge.module.cases.domain.po.CaseWindupApply;
@@ -40,6 +43,8 @@
@Autowired
private UtilsClientImpl utilsClient;
+ @Autowired
+ private CaseInfoService caseInfoService;
/**
* 更新对象
@@ -140,11 +145,68 @@
try{
QueryWrapper<CaseWindupApply> caseWindupApplyQueryWrapper = new QueryWrapper<>();
caseWindupApplyQueryWrapper.eq("case_task_id", caseTaskId);
- return mapper.selectOne(caseWindupApplyQueryWrapper);
+ CaseWindupApply caseWindupApply = mapper.selectOne(caseWindupApplyQueryWrapper);
+ if (ObjectUtils.isNotEmpty(caseWindupApply)) {
+ QueryWrapper<CaseInfo> caseInfoQueryWrapper =new QueryWrapper<>();
+ caseInfoQueryWrapper.eq("id", caseWindupApply.getCaseId()).select("case_level");
+ CaseInfo caseInfo = caseInfoService.getOne(caseInfoQueryWrapper);
+ caseWindupApply.setCaseLevel(caseInfo.getCaseLevel());
+ }
+ return caseWindupApply;
}catch (Exception e){
log.error("[CaseWindupApplyService.getByCaseTaskId]调用失败,异常信息:"+e, e);
throw new ServiceException("CaseWindupApplyService.getByCaseTaskId", e);
}
}
+ /**
+ * 首页-待审核分页查询
+ * @param terms 条件
+ * @return Page
+ */
+ public long countMyTaskApplyReview(Map<String, Object> terms){
+ long total = mapper.countMyTaskApplyReview(terms);
+ return total;
+ }
+
+ /**
+ * 首页-待审核查询
+ * @param page 分页对象
+ * @param terms 条件
+ * @return Page
+ */
+ public List<FrontPageListDTO> listMyTaskApplyReview(PageRequest page, Map<String, Object> terms){
+ List<FrontPageListDTO> frontPageListDTOList = mapper.listMyTaskApplyReview(page, terms);
+ return frontPageListDTOList;
+ }
+
+ /**
+ * 首页-查询数量
+ * @param auditUnitId 条件
+ * @return Page
+ */
+ public long countApplyReview(String auditUnitId){
+ return mapper.countApplyReview(auditUnitId);
+ }
+
+ /**
+ * 首页-查询待办任务-办理任务数量统计
+ * @param terms 条件
+ * @return Page
+ */
+ public long countMySubmitApplyReview(Map<String, Object> terms){
+ long total = mapper.countMySubmitApplyReview(terms);
+ return total;
+ }
+
+ /**
+ * 首页-查询待办任务-办理任务
+ * @param page 分页对象
+ * @param terms 条件
+ * @return Page
+ */
+ public List<FrontPageListDTO> listMySubmitApplyReview(PageRequest page, Map<String, Object> terms){
+ List<FrontPageListDTO> frontPageListDTOList = mapper.listMySubmitApplyReview(page, terms);
+ return frontPageListDTOList;
+ }
}
--
Gitblit v1.8.0