diff --git a/src/main/java/com/cm/systemcity/controller/apis/reportcase/ReportCaseController.java b/src/main/java/com/cm/systemcity/controller/apis/reportcase/ReportCaseController.java index 962fdd9..54b048f 100755 --- a/src/main/java/com/cm/systemcity/controller/apis/reportcase/ReportCaseController.java +++ b/src/main/java/com/cm/systemcity/controller/apis/reportcase/ReportCaseController.java @@ -19,6 +19,7 @@ import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; +import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; @@ -62,6 +63,17 @@ public class ReportCaseController extends AbstractController { reportCaseService.updateBackDeleteCase(query); return new SuccessResult(); } + + /** + * 恢复已争议案件 + */ + @GetMapping("update-back-disputed-case/{reportCaseId}") + public SuccessResult updateBackDisputedCase(@PathVariable("reportCaseId") String reportCaseId){ + Map query = new HashMap<>(8); + query.put("reportCaseId", reportCaseId); + reportCaseService.updateBackDisputedCase(query); + return new SuccessResult(); + } /** * 已删除案件列表 */ @@ -71,6 +83,15 @@ public class ReportCaseController extends AbstractController { page.setParams(params); return reportCaseService.listPageReportDelete(page); } + /** + * 已删除且有争议案件 + */ + @GetMapping("list-page-report-disputed") + public SuccessResultList> listPageReportDisputed(ListPage page) throws SearchException { + Map params = requestParams(); + page.setParams(params); + return reportCaseService.listPageReportDisputed(page); + } @ApiOperation(value = "上报案件新增", notes = "上报案件新增接口") @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) @@ -93,6 +114,21 @@ public class ReportCaseController extends AbstractController { return reportCaseService.removeReportCase(params); } + @ApiOperation(value = "删除为争议案件", notes = "删除为争议案件接口") + @ApiImplicitParams({ + @ApiImplicitParam(name = "ids", value = "上报案件ID列表,用下划线分隔", paramType = "path", example = "1_2_3") + }) + @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) + @DeleteMapping("remove-to-disputed-cases/{id}") + public SuccessResult removeToDisputedCases(@PathVariable("id") String id) throws RemoveException { + Map params = getParams(); + params.put("reportCaseIds", Arrays.asList(id)); + reportCaseService.removeToDisputedCases(params); + return new SuccessResult(); + } + + + @ApiOperation(value = "上报案件修改", notes = "上报案件修改接口") @ApiImplicitParams({ @ApiImplicitParam(name = "reportCaseId", value = "上报案件ID", paramType = "path") diff --git a/src/main/java/com/cm/systemcity/dao/reportcase/IReportCaseDao.java b/src/main/java/com/cm/systemcity/dao/reportcase/IReportCaseDao.java index af33053..dc3ed08 100755 --- a/src/main/java/com/cm/systemcity/dao/reportcase/IReportCaseDao.java +++ b/src/main/java/com/cm/systemcity/dao/reportcase/IReportCaseDao.java @@ -36,6 +36,9 @@ public interface IReportCaseDao { */ void removeReportCase(Map params) throws RemoveException; + void removeToDisputedCases(Map params); + + /** * 修改上报案件 * @@ -382,4 +385,5 @@ public interface IReportCaseDao { Integer countReportCaseAssign(Map reportCaseAssignMap); + } diff --git a/src/main/java/com/cm/systemcity/service/reportcase/IReportCaseService.java b/src/main/java/com/cm/systemcity/service/reportcase/IReportCaseService.java index e0ff926..e7287fd 100755 --- a/src/main/java/com/cm/systemcity/service/reportcase/IReportCaseService.java +++ b/src/main/java/com/cm/systemcity/service/reportcase/IReportCaseService.java @@ -77,6 +77,8 @@ public interface IReportCaseService { */ SuccessResult removeReportCase(Map params) throws RemoveException; + void removeToDisputedCases(Map params); + /** * 修改上报案件 * @@ -449,11 +451,19 @@ public interface IReportCaseService { */ SuccessResultList> listPageReportDelete(ListPage page); + SuccessResultList> listPageReportDisputed(ListPage page); + + /** * 恢复已删除案件 * @param query */ void updateBackDeleteCase(Map query); + void updateBackDisputedCase(Map query); + + ReportCaseDTO getReportCaseForDel(Map params); + + } 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 4686f9d..33643e1 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 @@ -57,6 +57,23 @@ import java.util.stream.Collectors; /** * @ClassName: ReportCaseServiceImpl * @Description: 上报案件 + * 案件状态: + * case '0': + * value = '待受理'; + * case '1': + * value = '待立案'; + * case '2': + * value = '待转派'; + * case '3': + * value = '待处理'; + * case '4': + * value = '待检查'; + * case '5': + * value = '待结案'; + * case '6': + * value = '已归档'; + * case '7': + * value = '删除且有争议'; * @Author: admin * @Date: 2019-07-28 16:56:15 * @Version: 1.0 @@ -123,9 +140,40 @@ public class ReportCaseServiceImpl extends BaseService implements IReportCaseSer reportCaseDao.saveReportCaseLog(log); } + @Override + public void updateBackDisputedCase(Map query) { + setUpdateInfo(query); + query.put("isDelete", '0'); + // 恢复为归档 + query.put("caseStatus", 6); + reportCaseDao.updateReportCase(query); + // 保存案件恢复日志 + Map log = new HashMap<>(8); + log.put("caseId", query.get("reportCaseId")); + log.put("optionType", "案件恢复"); + log.put("userId", "1"); + log.put("userName", "系统管理员"); + log.put("userPhone", "系统管理员"); + log.put("userOpinion", "系统管理员手动恢复已争议的案件"); + log.put("handleStatus", "1"); + log.put("gmtCreate", DateUtil.getTime()); + reportCaseDao.saveReportCaseLog(log); + } + @Override public SuccessResultList> listPageReportDelete(ListPage page) { setNPersonAreaParams(page.getParams()); + page.getParams().put("caseStatusNot", 7); + PageHelper.startPage(page.getPage(), page.getRows()); + List deleteList = reportCaseDao.listPageReportDelete(page.getParams()); + PageInfo pageInfo = new PageInfo<>(deleteList); + return new SuccessResultList<>(deleteList, pageInfo.getPageNum(), pageInfo.getTotal()); + } + + @Override + public SuccessResultList> listPageReportDisputed(ListPage page) { + setNPersonAreaParams(page.getParams()); + page.getParams().put("caseStatus", 7); PageHelper.startPage(page.getPage(), page.getRows()); List deleteList = reportCaseDao.listPageReportDelete(page.getParams()); PageInfo pageInfo = new PageInfo<>(deleteList); @@ -237,6 +285,13 @@ public class ReportCaseServiceImpl extends BaseService implements IReportCaseSer return new SuccessResult(); } + @Override + public void removeToDisputedCases(Map params) { + setUpdateInfo(params); + params.put("caseStatus", 7); + reportCaseDao.removeToDisputedCases(params); + } + @Override public SuccessResult updateReportCase(Map params) throws UpdateException { setUpdateInfo(params); diff --git a/src/main/resources/mybatis/mapper/reportcase/reportcase-mapper.xml b/src/main/resources/mybatis/mapper/reportcase/reportcase-mapper.xml index 86a78c9..b1bc7d9 100755 --- a/src/main/resources/mybatis/mapper/reportcase/reportcase-mapper.xml +++ b/src/main/resources/mybatis/mapper/reportcase/reportcase-mapper.xml @@ -150,6 +150,12 @@ AND t1.case_type_id = #{caseTypeId} + + AND t1.case_status = #{caseStatus} + + + AND t1.case_status != #{caseStatus} + AND LEFT(t1.gmt_create, 10) = ]]> #{startTime} @@ -266,6 +272,22 @@ + + + UPDATE + city_report_case + SET + is_delete = 1, + case_status = #{caseStatus}, + modifier = #{modifier}, + gmt_modified = #{gmtModified} + WHERE + report_case_id IN + + #{reportCaseIds[${index}]} + + + UPDATE diff --git a/src/main/resources/static/route/bigdata/list-case-info-7dayajjz.html b/src/main/resources/static/route/bigdata/list-case-info-7dayajjz.html index f10bcc2..644e834 100644 --- a/src/main/resources/static/route/bigdata/list-case-info-7dayajjz.html +++ b/src/main/resources/static/route/bigdata/list-case-info-7dayajjz.html @@ -392,6 +392,9 @@ case '6': value = '已归档'; break; + case '7': + value = '删除且有争议'; + break; default: value = '异常'; } diff --git a/src/main/resources/static/route/bigdata/list-case-info-ajlx.html b/src/main/resources/static/route/bigdata/list-case-info-ajlx.html index 89215b8..b5245b7 100644 --- a/src/main/resources/static/route/bigdata/list-case-info-ajlx.html +++ b/src/main/resources/static/route/bigdata/list-case-info-ajlx.html @@ -406,6 +406,9 @@ case '6': value = '已归档'; break; + case '7': + value = '删除且有争议'; + break; default: value = '异常'; } diff --git a/src/main/resources/static/route/bigdata/list-case-info-ajlxtop10.html b/src/main/resources/static/route/bigdata/list-case-info-ajlxtop10.html index 702aab3..5672358 100644 --- a/src/main/resources/static/route/bigdata/list-case-info-ajlxtop10.html +++ b/src/main/resources/static/route/bigdata/list-case-info-ajlxtop10.html @@ -277,6 +277,9 @@ case '6': value = '已归档'; break; + case '7': + value = '删除且有争议'; + break; default: value = '异常'; } diff --git a/src/main/resources/static/route/bigdata/list-case-info-gqyajzb.html b/src/main/resources/static/route/bigdata/list-case-info-gqyajzb.html index 69f5622..87a098c 100644 --- a/src/main/resources/static/route/bigdata/list-case-info-gqyajzb.html +++ b/src/main/resources/static/route/bigdata/list-case-info-gqyajzb.html @@ -382,6 +382,9 @@ case '6': value = '已归档'; break; + case '7': + value = '删除且有争议'; + break; default: value = '异常'; } diff --git a/src/main/resources/static/route/bigdata/list-case-info.html b/src/main/resources/static/route/bigdata/list-case-info.html index 087a80e..a45f644 100644 --- a/src/main/resources/static/route/bigdata/list-case-info.html +++ b/src/main/resources/static/route/bigdata/list-case-info.html @@ -388,6 +388,9 @@ case '6': value = '已归档'; break; + case '7': + value = '删除且有争议'; + break; default: value = '异常'; } diff --git a/src/main/resources/static/route/reportcase/list.html b/src/main/resources/static/route/reportcase/list.html index b5349ac..d646ab0 100755 --- a/src/main/resources/static/route/reportcase/list.html +++ b/src/main/resources/static/route/reportcase/list.html @@ -355,6 +355,9 @@ case '6': value = '已归档'; break; + case '7': + value = '删除且有争议'; + break; default: value = '异常'; } diff --git a/src/main/resources/static/route/reportcase/list_accept.html b/src/main/resources/static/route/reportcase/list_accept.html index 07ddeca..4c6114f 100755 --- a/src/main/resources/static/route/reportcase/list_accept.html +++ b/src/main/resources/static/route/reportcase/list_accept.html @@ -366,6 +366,9 @@ case '6': value = '已归档'; break; + case '7': + value = '删除且有争议'; + break; default: value = '异常'; } diff --git a/src/main/resources/static/route/reportcase/list_assign.html b/src/main/resources/static/route/reportcase/list_assign.html index a727953..16df733 100755 --- a/src/main/resources/static/route/reportcase/list_assign.html +++ b/src/main/resources/static/route/reportcase/list_assign.html @@ -375,6 +375,9 @@ case '6': value = '已归档'; break; + case '7': + value = '删除且有争议'; + break; default: value = '异常'; } diff --git a/src/main/resources/static/route/reportcase/list_close.html b/src/main/resources/static/route/reportcase/list_close.html index 8174941..6e58668 100755 --- a/src/main/resources/static/route/reportcase/list_close.html +++ b/src/main/resources/static/route/reportcase/list_close.html @@ -389,6 +389,9 @@ case '6': value = '已归档'; break; + case '7': + value = '删除且有争议'; + break; default: value = '异常'; } diff --git a/src/main/resources/static/route/reportcase/list_community_accept.html b/src/main/resources/static/route/reportcase/list_community_accept.html index 03e3e75..c4254f2 100644 --- a/src/main/resources/static/route/reportcase/list_community_accept.html +++ b/src/main/resources/static/route/reportcase/list_community_accept.html @@ -361,6 +361,9 @@ case '6': value = '已归档'; break; + case '7': + value = '删除且有争议'; + break; default: value = '异常'; } diff --git a/src/main/resources/static/route/reportcase/list_community_assign.html b/src/main/resources/static/route/reportcase/list_community_assign.html index 469b067..47bc898 100644 --- a/src/main/resources/static/route/reportcase/list_community_assign.html +++ b/src/main/resources/static/route/reportcase/list_community_assign.html @@ -381,6 +381,9 @@ case '6': value = '已归档'; break; + case '7': + value = '删除且有争议'; + break; default: value = '异常'; } diff --git a/src/main/resources/static/route/reportcase/list_community_close.html b/src/main/resources/static/route/reportcase/list_community_close.html index 4ab7d65..2325ad7 100644 --- a/src/main/resources/static/route/reportcase/list_community_close.html +++ b/src/main/resources/static/route/reportcase/list_community_close.html @@ -387,6 +387,9 @@ case '6': value = '已归档'; break; + case '7': + value = '删除且有争议'; + break; default: value = '异常'; } diff --git a/src/main/resources/static/route/reportcase/list_community_handle.html b/src/main/resources/static/route/reportcase/list_community_handle.html index 32f210a..7bf49aa 100644 --- a/src/main/resources/static/route/reportcase/list_community_handle.html +++ b/src/main/resources/static/route/reportcase/list_community_handle.html @@ -376,6 +376,9 @@ case '6': value = '已归档'; break; + case '7': + value = '删除且有争议'; + break; default: value = '异常'; } diff --git a/src/main/resources/static/route/reportcase/list_community_handle_ga.html b/src/main/resources/static/route/reportcase/list_community_handle_ga.html index 86bcd86..8483bb8 100644 --- a/src/main/resources/static/route/reportcase/list_community_handle_ga.html +++ b/src/main/resources/static/route/reportcase/list_community_handle_ga.html @@ -357,6 +357,9 @@ case '6': value = '已归档'; break; + case '7': + value = '删除且有争议'; + break; default: value = '异常'; } diff --git a/src/main/resources/static/route/reportcase/list_community_handle_zf.html b/src/main/resources/static/route/reportcase/list_community_handle_zf.html index 14bb1cc..64555cd 100644 --- a/src/main/resources/static/route/reportcase/list_community_handle_zf.html +++ b/src/main/resources/static/route/reportcase/list_community_handle_zf.html @@ -357,6 +357,9 @@ case '6': value = '已归档'; break; + case '7': + value = '删除且有争议'; + break; default: value = '异常'; } diff --git a/src/main/resources/static/route/reportcase/list_community_inspect.html b/src/main/resources/static/route/reportcase/list_community_inspect.html index 0e33048..290e1df 100644 --- a/src/main/resources/static/route/reportcase/list_community_inspect.html +++ b/src/main/resources/static/route/reportcase/list_community_inspect.html @@ -362,6 +362,9 @@ case '6': value = '已归档'; break; + case '7': + value = '删除且有争议'; + break; default: value = '异常'; } diff --git a/src/main/resources/static/route/reportcase/list_community_inspect_ga.html b/src/main/resources/static/route/reportcase/list_community_inspect_ga.html index c35b479..a53f6d1 100644 --- a/src/main/resources/static/route/reportcase/list_community_inspect_ga.html +++ b/src/main/resources/static/route/reportcase/list_community_inspect_ga.html @@ -346,6 +346,9 @@ case '6': value = '已归档'; break; + case '7': + value = '删除且有争议'; + break; default: value = '异常'; } diff --git a/src/main/resources/static/route/reportcase/list_community_inspect_zf.html b/src/main/resources/static/route/reportcase/list_community_inspect_zf.html index c8079f2..675e528 100644 --- a/src/main/resources/static/route/reportcase/list_community_inspect_zf.html +++ b/src/main/resources/static/route/reportcase/list_community_inspect_zf.html @@ -346,6 +346,9 @@ case '6': value = '已归档'; break; + case '7': + value = '删除且有争议'; + break; default: value = '异常'; } diff --git a/src/main/resources/static/route/reportcase/list_community_placeonfile.html b/src/main/resources/static/route/reportcase/list_community_placeonfile.html index 4c37043..8ee74d0 100644 --- a/src/main/resources/static/route/reportcase/list_community_placeonfile.html +++ b/src/main/resources/static/route/reportcase/list_community_placeonfile.html @@ -350,6 +350,9 @@ case '6': value = '已归档'; break; + case '7': + value = '删除且有争议'; + break; default: value = '异常'; } diff --git a/src/main/resources/static/route/reportcase/list_community_placeonfile_ga.html b/src/main/resources/static/route/reportcase/list_community_placeonfile_ga.html index 171f38d..26adefe 100644 --- a/src/main/resources/static/route/reportcase/list_community_placeonfile_ga.html +++ b/src/main/resources/static/route/reportcase/list_community_placeonfile_ga.html @@ -334,6 +334,9 @@ case '6': value = '已归档'; break; + case '7': + value = '删除且有争议'; + break; default: value = '异常'; } diff --git a/src/main/resources/static/route/reportcase/list_community_placeonfile_zf.html b/src/main/resources/static/route/reportcase/list_community_placeonfile_zf.html index 9efcd7e..6711c62 100644 --- a/src/main/resources/static/route/reportcase/list_community_placeonfile_zf.html +++ b/src/main/resources/static/route/reportcase/list_community_placeonfile_zf.html @@ -334,6 +334,9 @@ case '6': value = '已归档'; break; + case '7': + value = '删除且有争议'; + break; default: value = '异常'; } diff --git a/src/main/resources/static/route/reportcase/list_community_register.html b/src/main/resources/static/route/reportcase/list_community_register.html index 429f6f5..f3e0b39 100644 --- a/src/main/resources/static/route/reportcase/list_community_register.html +++ b/src/main/resources/static/route/reportcase/list_community_register.html @@ -350,6 +350,9 @@ case '6': value = '已归档'; break; + case '7': + value = '删除且有争议'; + break; default: value = '异常'; } diff --git a/src/main/resources/static/route/reportcase/list_delete.html b/src/main/resources/static/route/reportcase/list_delete.html index a69e52c..64ebb4a 100644 --- a/src/main/resources/static/route/reportcase/list_delete.html +++ b/src/main/resources/static/route/reportcase/list_delete.html @@ -353,6 +353,9 @@ case '6': value = '已归档'; break; + case '7': + value = '删除且有争议'; + break; default: value = '异常'; } diff --git a/src/main/resources/static/route/reportcase/list_disputed.html b/src/main/resources/static/route/reportcase/list_disputed.html new file mode 100644 index 0000000..3396129 --- /dev/null +++ b/src/main/resources/static/route/reportcase/list_disputed.html @@ -0,0 +1,423 @@ + + + + + + + + + + + + + + + + + + +
+
+
+
+
+
+
+ +
+
+ +
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+
+
+
+
+ + + + + + + + + \ No newline at end of file diff --git a/src/main/resources/static/route/reportcase/list_exception.html b/src/main/resources/static/route/reportcase/list_exception.html index 8495ecb..e1c16bf 100755 --- a/src/main/resources/static/route/reportcase/list_exception.html +++ b/src/main/resources/static/route/reportcase/list_exception.html @@ -357,6 +357,9 @@ case '6': value = '已归档'; break; + case '7': + value = '删除且有争议'; + break; default: value = '异常'; } diff --git a/src/main/resources/static/route/reportcase/list_handle.html b/src/main/resources/static/route/reportcase/list_handle.html index 24a3f98..d48cc81 100755 --- a/src/main/resources/static/route/reportcase/list_handle.html +++ b/src/main/resources/static/route/reportcase/list_handle.html @@ -377,6 +377,9 @@ case '6': value = '已归档'; break; + case '7': + value = '删除且有争议'; + break; default: value = '异常'; } diff --git a/src/main/resources/static/route/reportcase/list_inspect.html b/src/main/resources/static/route/reportcase/list_inspect.html index 8396952..4ff1215 100755 --- a/src/main/resources/static/route/reportcase/list_inspect.html +++ b/src/main/resources/static/route/reportcase/list_inspect.html @@ -364,6 +364,9 @@ case '6': value = '已归档'; break; + case '7': + value = '删除且有争议'; + break; default: value = '异常'; } diff --git a/src/main/resources/static/route/reportcase/list_placeonfile.html b/src/main/resources/static/route/reportcase/list_placeonfile.html index 5fdbb41..b7d5fbb 100755 --- a/src/main/resources/static/route/reportcase/list_placeonfile.html +++ b/src/main/resources/static/route/reportcase/list_placeonfile.html @@ -161,6 +161,7 @@ '
' + ''+ ''+ + ''+ '
'+ ''+ ''+ @@ -349,6 +350,9 @@ case '6': value = '已归档'; break; + case '7': + value = '删除且有争议'; + break; default: value = '异常'; } @@ -429,6 +433,32 @@ if(obj.event === 'deleteEvent'){ remove(obj.data.reportCaseId); } + if(obj.event === 'disputedEvent') { + top.dialog.msg('确定删除为争议案件吗?', { + time: 0, + btn: [top.dataMessage.button.yes, top.dataMessage.button.no], + shade: 0.3, + yes: function (index) { + top.dialog.close(index); + var layIndex; + top.restAjax.delete(top.restAjax.path('api/reportcase/remove-to-disputed-cases/{id}', [obj.data.reportCaseId]), {}, null, function (code, data) { + // success + top.dialog.msg(top.dataMessage.deleteSuccess, {time: 1000}, function () { + reloadTable(); + }); + }, function (code, data) { + // error + top.dialog.msg(data.msg); + }, function () { + // before + layIndex = top.dialog.msg('正在提交...', {icon: 16, time: 0, shade: 0.3}); + }, function () { + // complete + top.dialog.close(layIndex); + }); + } + }); + } }); form.on('select(changeCaseType)',function(data){ diff --git a/src/main/resources/static/route/reportcase/list_register.html b/src/main/resources/static/route/reportcase/list_register.html index 21fa0a8..2c703b6 100755 --- a/src/main/resources/static/route/reportcase/list_register.html +++ b/src/main/resources/static/route/reportcase/list_register.html @@ -352,6 +352,9 @@ case '6': value = '已归档'; break; + case '7': + value = '删除且有争议'; + break; default: value = '异常'; }