From 5b65b67e758f9f4e081e910969cab47fc9c63813 Mon Sep 17 00:00:00 2001 From: wans <747101512@qq.com> Date: Wed, 7 Jul 2021 18:14:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E8=81=8C=E8=83=BD=E6=A1=88?= =?UTF-8?q?=E4=BB=B6=E5=92=8C=E8=A1=97=E9=81=93=E6=A1=88=E4=BB=B6=E7=9A=84?= =?UTF-8?q?=E5=A4=84=E7=90=86=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ReportCaseCommunityController.java | 7 ++++++ .../impl/ReportCaseServiceImpl.java | 20 ++++++++++++++++ .../mapper/reportcase/reportcase-mapper.xml | 15 ++++++------ .../static/route/reportcase/case_forward.html | 6 ++--- .../route/reportcase/case_forward_back.html | 8 +++---- .../static/route/reportcase/list_accept.html | 23 ++++++++----------- .../reportcase/list_community_accept.html | 13 ++++------- 7 files changed, 57 insertions(+), 35 deletions(-) diff --git a/src/main/java/com/cm/systemcity/controller/apis/reportcase/ReportCaseCommunityController.java b/src/main/java/com/cm/systemcity/controller/apis/reportcase/ReportCaseCommunityController.java index 3023fb8..c0e4195 100644 --- a/src/main/java/com/cm/systemcity/controller/apis/reportcase/ReportCaseCommunityController.java +++ b/src/main/java/com/cm/systemcity/controller/apis/reportcase/ReportCaseCommunityController.java @@ -33,6 +33,13 @@ public class ReportCaseCommunityController extends AbstractController { @Autowired private IReportCaseService reportCaseService; + /** + * 这个方法好像弃用掉了 wans + * 2021年7月7日16:39:41 + * @param page + * @return + * @throws SearchException + */ @ApiOperation(value = "镇街案件受理分页列表", notes = "镇街案件受理分页列表接口") @ApiImplicitParams({ @ApiImplicitParam(name = "page", value = "当前页码", paramType = "form", dataType = "Integer", defaultValue = "1"), diff --git a/src/main/java/com/cm/systemcity/service/reportcase/impl/ReportCaseServiceImpl.java b/src/main/java/com/cm/systemcity/service/reportcase/impl/ReportCaseServiceImpl.java index 17c6923..5f169b9 100755 --- a/src/main/java/com/cm/systemcity/service/reportcase/impl/ReportCaseServiceImpl.java +++ b/src/main/java/com/cm/systemcity/service/reportcase/impl/ReportCaseServiceImpl.java @@ -227,6 +227,26 @@ public class ReportCaseServiceImpl extends BaseService implements IReportCaseSer page.getParams().put("reporterId", appTokenUser.getId()); } PageHelper.startPage(page.getPage(), page.getRows()); + /** + * 案件需要判断是否有areaId地区ID + * 如果存在则需要加上转发状态,只有转发到街镇或者案件类型为街镇案件的才显示 + * 如果不存在则需要查询所有职能部门案件及未转发的案件 + * 如果查询已经归档的案件的话 不区分职能部门案件还是街镇案件 全部显示 + */ + if(page.getParams().get("areaId") != null + && !"".equals(page.getParams().get("areaId").toString())){ + // 查询街镇案件与转发案件 + page.getParams().put("streetCase", "1"); + } else { + // 查询职能部门案件及未转发的案件 + page.getParams().put("deptCase", "1"); + } + // 如果查询已经归档的案件的话 不区分职能部门案件还是街镇案件 全部显示 + if(page.getParams().get("caseStatus") != null + && "6".equals(page.getParams().get("caseStatus").toString())){ + page.getParams().remove("streetCase"); + page.getParams().remove("deptCase"); + } List reportCaseDTOs = reportCaseDao.listReportCase(page.getParams()); PageInfo pageInfo = new PageInfo<>(reportCaseDTOs); return new SuccessResultList<>(reportCaseDTOs, pageInfo.getPageNum(), pageInfo.getTotal()); diff --git a/src/main/resources/mybatis/mapper/reportcase/reportcase-mapper.xml b/src/main/resources/mybatis/mapper/reportcase/reportcase-mapper.xml index f4e9a33..20e4a1f 100755 --- a/src/main/resources/mybatis/mapper/reportcase/reportcase-mapper.xml +++ b/src/main/resources/mybatis/mapper/reportcase/reportcase-mapper.xml @@ -318,14 +318,15 @@ AND t1.creator = #{userId} - - - AND (t1.case_flow_forward = '1' OR t1.case_flow_forward IS NULL OR t1.case_flow_type = '1') + + + AND ( + t1.case_flow_forward = '0' + ) - - - AND (t1.case_flow_type = '2') - AND (t1.case_flow_forward = '0' OR t1.case_flow_forward = '2') + + + AND (t1.case_flow_type = '2' OR t1.case_flow_forward = '1') ORDER BY t1.gmt_create DESC diff --git a/src/main/resources/static/route/reportcase/case_forward.html b/src/main/resources/static/route/reportcase/case_forward.html index 726e9f8..0aa9fc6 100644 --- a/src/main/resources/static/route/reportcase/case_forward.html +++ b/src/main/resources/static/route/reportcase/case_forward.html @@ -18,10 +18,10 @@
- +
- +
diff --git a/src/main/resources/static/route/reportcase/case_forward_back.html b/src/main/resources/static/route/reportcase/case_forward_back.html index dda95b0..e3805d1 100644 --- a/src/main/resources/static/route/reportcase/case_forward_back.html +++ b/src/main/resources/static/route/reportcase/case_forward_back.html @@ -18,10 +18,10 @@
- +
- +
@@ -63,7 +63,7 @@ //封装数据 var formObject = {}; formObject['opinion'] = formData.field['opinion']; - formObject['caseFlowForward'] = '2'; + formObject['caseFlowForward'] = '0'; var loadLayerIndex; top.restAjax.get(top.restAjax.path('api/reportcase/getforwardreportcaseback/{reportCaseId}', [reportCaseId]), formObject, null, function(code, data) { // success diff --git a/src/main/resources/static/route/reportcase/list_accept.html b/src/main/resources/static/route/reportcase/list_accept.html index 55ed4dc..07ddeca 100755 --- a/src/main/resources/static/route/reportcase/list_accept.html +++ b/src/main/resources/static/route/reportcase/list_accept.html @@ -39,10 +39,10 @@
-
+