diff --git a/pom.xml b/pom.xml index 2f72055..f633402 100644 --- a/pom.xml +++ b/pom.xml @@ -118,8 +118,6 @@ 1.0-SNAPSHOT - - ink.wgink mongo-module-dictionary @@ -148,8 +146,6 @@ - - diff --git a/src/main/java/cn/com/tenlion/controller/api/difficult/DifficultController.java b/src/main/java/cn/com/tenlion/controller/api/difficult/DifficultController.java index ae26c9b..6944156 100644 --- a/src/main/java/cn/com/tenlion/controller/api/difficult/DifficultController.java +++ b/src/main/java/cn/com/tenlion/controller/api/difficult/DifficultController.java @@ -3,8 +3,13 @@ package cn.com.tenlion.controller.api.difficult; import cn.com.tenlion.pojo.dtos.difficult.DifficultReportDTO; import ink.wgink.annotation.CheckRequestBodyAnnotation; import ink.wgink.common.base.DefaultBaseController; +import ink.wgink.common.component.SecurityComponent; import ink.wgink.interfaces.consts.ISystemConstant; +import ink.wgink.interfaces.department.IDepartmentBaseService; import ink.wgink.pojo.ListPage; +import ink.wgink.pojo.bos.UserInfoBO; +import ink.wgink.pojo.dtos.department.DepartmentDTO; +import ink.wgink.pojo.dtos.department.DepartmentSimpleDTO; import ink.wgink.pojo.result.ErrorResult; import ink.wgink.pojo.result.SuccessResult; import ink.wgink.pojo.result.SuccessResultData; @@ -16,6 +21,7 @@ import io.swagger.annotations.*; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; +import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.Map; @@ -34,6 +40,59 @@ public class DifficultController extends DefaultBaseController { @Autowired private IDifficultService difficultService; + @Autowired + private SecurityComponent securityComponent; + @Autowired + private IDepartmentBaseService iDepartmentBaseService; + + @ApiOperation(value = "单位疑难案件数量", notes = "单位疑难案件数量接口") + @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) + @GetMapping("count-dept") + public SuccessResultData countDept() { + UserInfoBO userInfoBO = securityComponent.getCurrentUser(); + /** + * 封装当前人所在的单位集 + */ + List departmentIdList = new ArrayList(); + List departmentSimpleDTOList = userInfoBO.getDepartments(); + for (DepartmentSimpleDTO departmentSimpleDTO : departmentSimpleDTOList) { + List departmentPOList = iDepartmentBaseService.listByParentId(departmentSimpleDTO.getDepartmentId()); + for (DepartmentDTO departmentDTO : departmentPOList) { + departmentIdList.add(departmentDTO.getDepartmentId()); + } + departmentIdList.add(departmentSimpleDTO.getDepartmentId()); + } + return new SuccessResultData(difficultService.countDept(departmentIdList)); + } + + @ApiOperation(value = "单位疑难案件分页列表", notes = "单位疑难案件分页列表接口") + @ApiImplicitParams({ + @ApiImplicitParam(name = "page", value = "当前页码", paramType = "query", dataType = "int", defaultValue = "1"), + @ApiImplicitParam(name = "rows", value = "显示数量", paramType = "query", dataType = "int", defaultValue = "20"), + @ApiImplicitParam(name = "keywords", value = "关键字", paramType = "query", dataType = "String"), + @ApiImplicitParam(name = "startTime", value = "开始时间", paramType = "query", dataType = "String"), + @ApiImplicitParam(name = "endTime", value = "结束时间", paramType = "query", dataType = "String") + }) + @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) + @GetMapping("listpage-dept") + public SuccessResultList> listPageDept(ListPage page) { + Map params = requestParams(); + page.setParams(params); + UserInfoBO userInfoBO = securityComponent.getCurrentUser(); + /** + * 封装当前人所在的单位集 + */ + List departmentIdList = new ArrayList(); + List departmentSimpleDTOList = userInfoBO.getDepartments(); + for (DepartmentSimpleDTO departmentSimpleDTO : departmentSimpleDTOList) { + List departmentPOList = iDepartmentBaseService.listByParentId(departmentSimpleDTO.getDepartmentId()); + for (DepartmentDTO departmentDTO : departmentPOList) { + departmentIdList.add(departmentDTO.getDepartmentId()); + } + departmentIdList.add(departmentSimpleDTO.getDepartmentId()); + } + return difficultService.listPageDept(page,departmentIdList); + } @ApiOperation(value = "新增疑难案件", notes = "新增疑难案件接口") @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) diff --git a/src/main/java/cn/com/tenlion/controller/api/timeout/TimeoutController.java b/src/main/java/cn/com/tenlion/controller/api/timeout/TimeoutController.java index 22a7b16..7225c07 100644 --- a/src/main/java/cn/com/tenlion/controller/api/timeout/TimeoutController.java +++ b/src/main/java/cn/com/tenlion/controller/api/timeout/TimeoutController.java @@ -6,7 +6,11 @@ import ink.wgink.annotation.CheckRequestBodyAnnotation; import ink.wgink.common.base.DefaultBaseController; import ink.wgink.common.component.SecurityComponent; import ink.wgink.interfaces.consts.ISystemConstant; +import ink.wgink.interfaces.department.IDepartmentBaseService; import ink.wgink.pojo.ListPage; +import ink.wgink.pojo.bos.UserInfoBO; +import ink.wgink.pojo.dtos.department.DepartmentDTO; +import ink.wgink.pojo.dtos.department.DepartmentSimpleDTO; import ink.wgink.pojo.result.ErrorResult; import ink.wgink.pojo.result.SuccessResult; import ink.wgink.pojo.result.SuccessResultData; @@ -19,6 +23,7 @@ import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; +import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.Map; @@ -41,7 +46,57 @@ public class TimeoutController extends DefaultBaseController { private SecurityComponent securityComponent; @Autowired private UserUtil userUtil; + @Autowired + private IDepartmentBaseService iDepartmentBaseService; + @ApiOperation(value = "单位超时案件数量", notes = "单位超时案件数量接口") + @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) + @GetMapping("count-dept") + public SuccessResultData countDept() { + UserInfoBO userInfoBO = securityComponent.getCurrentUser(); + /** + * 封装当前人所在的单位集 + */ + List departmentIdList = new ArrayList(); + List departmentSimpleDTOList = userInfoBO.getDepartments(); + for (DepartmentSimpleDTO departmentSimpleDTO : departmentSimpleDTOList) { + List departmentPOList = iDepartmentBaseService.listByParentId(departmentSimpleDTO.getDepartmentId()); + for (DepartmentDTO departmentDTO : departmentPOList) { + departmentIdList.add(departmentDTO.getDepartmentId()); + } + departmentIdList.add(departmentSimpleDTO.getDepartmentId()); + } + return new SuccessResultData(timeoutService.countDept(departmentIdList)); + } + + @ApiOperation(value = "单位超时事件分页列表", notes = "单位超时事件分页列表接口") + @ApiImplicitParams({ + @ApiImplicitParam(name = "page", value = "当前页码", paramType = "query", dataType = "int", defaultValue = "1"), + @ApiImplicitParam(name = "rows", value = "显示数量", paramType = "query", dataType = "int", defaultValue = "20"), + @ApiImplicitParam(name = "keywords", value = "关键字", paramType = "query", dataType = "String"), + @ApiImplicitParam(name = "startTime", value = "开始时间", paramType = "query", dataType = "String"), + @ApiImplicitParam(name = "endTime", value = "结束时间", paramType = "query", dataType = "String") + }) + @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) + @GetMapping("listpage-dept") + public SuccessResultList> listPageDept(ListPage page) { + Map params = requestParams(); + page.setParams(params); + UserInfoBO userInfoBO = securityComponent.getCurrentUser(); + /** + * 封装当前人所在的单位集 + */ + List departmentIdList = new ArrayList(); + List departmentSimpleDTOList = userInfoBO.getDepartments(); + for (DepartmentSimpleDTO departmentSimpleDTO : departmentSimpleDTOList) { + List departmentPOList = iDepartmentBaseService.listByParentId(departmentSimpleDTO.getDepartmentId()); + for (DepartmentDTO departmentDTO : departmentPOList) { + departmentIdList.add(departmentDTO.getDepartmentId()); + } + departmentIdList.add(departmentSimpleDTO.getDepartmentId()); + } + return timeoutService.listPageDept(page,departmentIdList); + } @ApiOperation(value = "超时事件详情", notes = "超时事件详情接口") @ApiImplicitParams({ diff --git a/src/main/java/cn/com/tenlion/controller/api/warning/WarningController.java b/src/main/java/cn/com/tenlion/controller/api/warning/WarningController.java index be5c48b..f3e5539 100644 --- a/src/main/java/cn/com/tenlion/controller/api/warning/WarningController.java +++ b/src/main/java/cn/com/tenlion/controller/api/warning/WarningController.java @@ -6,7 +6,12 @@ import ink.wgink.annotation.CheckRequestBodyAnnotation; import ink.wgink.common.base.DefaultBaseController; import ink.wgink.common.component.SecurityComponent; import ink.wgink.interfaces.consts.ISystemConstant; +import ink.wgink.interfaces.department.IDepartmentBaseService; import ink.wgink.pojo.ListPage; +import ink.wgink.pojo.bos.UserInfoBO; +import ink.wgink.pojo.dtos.department.DepartmentDTO; +import ink.wgink.pojo.dtos.department.DepartmentSimpleDTO; +import ink.wgink.pojo.pos.DepartmentPO; import ink.wgink.pojo.result.ErrorResult; import ink.wgink.pojo.result.SuccessResult; import ink.wgink.pojo.result.SuccessResultData; @@ -19,6 +24,8 @@ import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; +import java.lang.reflect.Array; +import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.Map; @@ -39,6 +46,57 @@ public class WarningController extends DefaultBaseController { private IWarningService warningService; @Autowired private SecurityComponent securityComponent; + @Autowired + private IDepartmentBaseService iDepartmentBaseService; + + @ApiOperation(value = "单位案件预警数量", notes = "单位案件预警数量接口") + @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) + @GetMapping("count-dept") + public SuccessResultData countDept() { + UserInfoBO userInfoBO = securityComponent.getCurrentUser(); + /** + * 封装当前人所在的单位集 + */ + List departmentIdList = new ArrayList(); + List departmentSimpleDTOList = userInfoBO.getDepartments(); + for (DepartmentSimpleDTO departmentSimpleDTO : departmentSimpleDTOList) { + List departmentPOList = iDepartmentBaseService.listByParentId(departmentSimpleDTO.getDepartmentId()); + for (DepartmentDTO departmentDTO : departmentPOList) { + departmentIdList.add(departmentDTO.getDepartmentId()); + } + departmentIdList.add(departmentSimpleDTO.getDepartmentId()); + } + return new SuccessResultData(warningService.countDept(departmentIdList)); + } + + @ApiOperation(value = "单位案件预警分页列表", notes = "单位预警分页列表接口") + @ApiImplicitParams({ + @ApiImplicitParam(name = "page", value = "当前页码", paramType = "query", dataType = "int", defaultValue = "1"), + @ApiImplicitParam(name = "rows", value = "显示数量", paramType = "query", dataType = "int", defaultValue = "20"), + @ApiImplicitParam(name = "keywords", value = "关键字", paramType = "query", dataType = "String"), + @ApiImplicitParam(name = "startTime", value = "开始时间", paramType = "query", dataType = "String"), + @ApiImplicitParam(name = "endTime", value = "结束时间", paramType = "query", dataType = "String") + }) + @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) + @GetMapping("listpage-dept") + public SuccessResultList> listPageDept(ListPage page) { + Map params = requestParams(); + page.setParams(params); + UserInfoBO userInfoBO = securityComponent.getCurrentUser(); + /** + * 封装当前人所在的单位集 + */ + List departmentIdList = new ArrayList(); + List departmentSimpleDTOList = userInfoBO.getDepartments(); + for (DepartmentSimpleDTO departmentSimpleDTO : departmentSimpleDTOList) { + List departmentPOList = iDepartmentBaseService.listByParentId(departmentSimpleDTO.getDepartmentId()); + for (DepartmentDTO departmentDTO : departmentPOList) { + departmentIdList.add(departmentDTO.getDepartmentId()); + } + departmentIdList.add(departmentSimpleDTO.getDepartmentId()); + } + return warningService.listPageDept(page,departmentIdList); + } @ApiOperation(value = "区域案件预警分页列表", notes = "案件预警分页列表接口") diff --git a/src/main/java/cn/com/tenlion/controller/app/api/timeout/TimeoutAppController.java b/src/main/java/cn/com/tenlion/controller/app/api/timeout/TimeoutAppController.java index bbf1176..ffe697f 100644 --- a/src/main/java/cn/com/tenlion/controller/app/api/timeout/TimeoutAppController.java +++ b/src/main/java/cn/com/tenlion/controller/app/api/timeout/TimeoutAppController.java @@ -2,8 +2,15 @@ package cn.com.tenlion.controller.app.api.timeout; import ink.wgink.annotation.CheckRequestBodyAnnotation; import ink.wgink.common.base.DefaultBaseController; +import ink.wgink.common.component.SecurityComponent; import ink.wgink.interfaces.consts.ISystemConstant; +import ink.wgink.interfaces.department.IDepartmentBaseService; import ink.wgink.pojo.ListPage; +import ink.wgink.pojo.app.AppTokenUser; +import ink.wgink.pojo.app.AppTokenUserDepartment; +import ink.wgink.pojo.bos.UserInfoBO; +import ink.wgink.pojo.dtos.department.DepartmentDTO; +import ink.wgink.pojo.dtos.department.DepartmentSimpleDTO; import ink.wgink.pojo.result.ErrorResult; import ink.wgink.pojo.result.SuccessResult; import ink.wgink.pojo.result.SuccessResultData; @@ -11,10 +18,12 @@ import ink.wgink.pojo.result.SuccessResultList; import cn.com.tenlion.pojo.dtos.timeout.TimeoutDTO; import cn.com.tenlion.pojo.vos.timeout.TimeoutVO; import cn.com.tenlion.service.timeout.ITimeoutService; +import ink.wgink.util.ReflectUtil; import io.swagger.annotations.*; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; +import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.Map; @@ -33,10 +42,63 @@ public class TimeoutAppController extends DefaultBaseController { @Autowired private ITimeoutService timeoutService; + @Autowired + private IDepartmentBaseService iDepartmentBaseService; + @Autowired + private SecurityComponent securityComponent; + @ApiOperation(value = "单位超时案件数量", notes = "单位超时案件数量接口") + @ApiImplicitParams({ + @ApiImplicitParam(name = "token", value = "token", paramType = "header"), + }) + @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) + @GetMapping("count-dept") + public SuccessResultData countDept(@RequestHeader("token") String token) throws ReflectUtil.ReflectException { + AppTokenUser userInfoBO = securityComponent.getAppTokenUser(token); + /** + * 封装当前人所在的单位集 + */ + List departmentIdList = new ArrayList(); + List departmentSimpleDTOList = userInfoBO.getDepartments(); + for (AppTokenUserDepartment departmentSimpleDTO : departmentSimpleDTOList) { + List departmentPOList = iDepartmentBaseService.listByParentId(departmentSimpleDTO.getDepartmentId()); + for (DepartmentDTO departmentDTO : departmentPOList) { + departmentIdList.add(departmentDTO.getDepartmentId()); + } + departmentIdList.add(departmentSimpleDTO.getDepartmentId()); + } + return new SuccessResultData(timeoutService.countDept(departmentIdList)); + } - - + @ApiOperation(value = "单位超时事件分页列表", notes = "单位超时事件分页列表接口") + @ApiImplicitParams({ + @ApiImplicitParam(name = "token", value = "token", paramType = "header"), + @ApiImplicitParam(name = "page", value = "当前页码", paramType = "query", dataType = "int", defaultValue = "1"), + @ApiImplicitParam(name = "rows", value = "显示数量", paramType = "query", dataType = "int", defaultValue = "20"), + @ApiImplicitParam(name = "keywords", value = "关键字", paramType = "query", dataType = "String"), + @ApiImplicitParam(name = "startTime", value = "开始时间", paramType = "query", dataType = "String"), + @ApiImplicitParam(name = "endTime", value = "结束时间", paramType = "query", dataType = "String") + }) + @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) + @GetMapping("listpage-dept") + public SuccessResultList> listPageDept(@RequestHeader("token") String token, ListPage page) throws ReflectUtil.ReflectException { + Map params = requestParams(); + page.setParams(params); + AppTokenUser userInfoBO = securityComponent.getAppTokenUser(token); + /** + * 封装当前人所在的单位集 + */ + List departmentIdList = new ArrayList(); + List departmentSimpleDTOList = userInfoBO.getDepartments(); + for (AppTokenUserDepartment departmentSimpleDTO : departmentSimpleDTOList) { + List departmentPOList = iDepartmentBaseService.listByParentId(departmentSimpleDTO.getDepartmentId()); + for (DepartmentDTO departmentDTO : departmentPOList) { + departmentIdList.add(departmentDTO.getDepartmentId()); + } + departmentIdList.add(departmentSimpleDTO.getDepartmentId()); + } + return timeoutService.listPageDept(page,departmentIdList); + } @ApiOperation(value = "超时事件详情(通过ID)", notes = "超时事件详情(通过ID)接口") @ApiImplicitParams({ diff --git a/src/main/java/cn/com/tenlion/controller/app/api/warning/WarningAppController.java b/src/main/java/cn/com/tenlion/controller/app/api/warning/WarningAppController.java index 3f989a1..e4314aa 100644 --- a/src/main/java/cn/com/tenlion/controller/app/api/warning/WarningAppController.java +++ b/src/main/java/cn/com/tenlion/controller/app/api/warning/WarningAppController.java @@ -2,8 +2,15 @@ package cn.com.tenlion.controller.app.api.warning; import ink.wgink.annotation.CheckRequestBodyAnnotation; import ink.wgink.common.base.DefaultBaseController; +import ink.wgink.common.component.SecurityComponent; import ink.wgink.interfaces.consts.ISystemConstant; +import ink.wgink.interfaces.department.IDepartmentBaseService; import ink.wgink.pojo.ListPage; +import ink.wgink.pojo.app.AppTokenUser; +import ink.wgink.pojo.app.AppTokenUserDepartment; +import ink.wgink.pojo.bos.UserInfoBO; +import ink.wgink.pojo.dtos.department.DepartmentDTO; +import ink.wgink.pojo.dtos.department.DepartmentSimpleDTO; import ink.wgink.pojo.result.ErrorResult; import ink.wgink.pojo.result.SuccessResult; import ink.wgink.pojo.result.SuccessResultData; @@ -11,10 +18,12 @@ import ink.wgink.pojo.result.SuccessResultList; import cn.com.tenlion.pojo.dtos.warning.WarningDTO; import cn.com.tenlion.pojo.vos.warning.WarningVO; import cn.com.tenlion.service.warning.IWarningService; +import ink.wgink.util.ReflectUtil; import io.swagger.annotations.*; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; +import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.Map; @@ -33,8 +42,63 @@ public class WarningAppController extends DefaultBaseController { @Autowired private IWarningService warningService; + @Autowired + private SecurityComponent securityComponent; + @Autowired + private IDepartmentBaseService iDepartmentBaseService; + @ApiOperation(value = "单位案件预警数量", notes = "单位案件预警数量接口") + @ApiImplicitParams({ + @ApiImplicitParam(name = "token", value = "token", paramType = "header"), + }) + @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) + @GetMapping("count-dept") + public SuccessResultData countDept(@RequestHeader("token") String token) throws ReflectUtil.ReflectException { + AppTokenUser userInfoBO = securityComponent.getAppTokenUser(token); + /** + * 封装当前人所在的单位集 + */ + List departmentIdList = new ArrayList(); + List departmentSimpleDTOList = userInfoBO.getDepartments(); + for (AppTokenUserDepartment departmentSimpleDTO : departmentSimpleDTOList) { + List departmentPOList = iDepartmentBaseService.listByParentId(departmentSimpleDTO.getDepartmentId()); + for (DepartmentDTO departmentDTO : departmentPOList) { + departmentIdList.add(departmentDTO.getDepartmentId()); + } + departmentIdList.add(departmentSimpleDTO.getDepartmentId()); + } + return new SuccessResultData(warningService.countDept(departmentIdList)); + } + @ApiOperation(value = "单位案件预警分页列表", notes = "单位预警分页列表接口") + @ApiImplicitParams({ + @ApiImplicitParam(name = "token", value = "token", paramType = "header"), + @ApiImplicitParam(name = "page", value = "当前页码", paramType = "query", dataType = "int", defaultValue = "1"), + @ApiImplicitParam(name = "rows", value = "显示数量", paramType = "query", dataType = "int", defaultValue = "20"), + @ApiImplicitParam(name = "keywords", value = "关键字", paramType = "query", dataType = "String"), + @ApiImplicitParam(name = "startTime", value = "开始时间", paramType = "query", dataType = "String"), + @ApiImplicitParam(name = "endTime", value = "结束时间", paramType = "query", dataType = "String") + }) + @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) + @GetMapping("listpage-dept") + public SuccessResultList> listPageDept(@RequestHeader("token") String token, ListPage page) throws ReflectUtil.ReflectException { + Map params = requestParams(); + page.setParams(params); + AppTokenUser userInfoBO = securityComponent.getAppTokenUser(token); + /** + * 封装当前人所在的单位集 + */ + List departmentIdList = new ArrayList(); + List departmentSimpleDTOList = userInfoBO.getDepartments(); + for (AppTokenUserDepartment departmentSimpleDTO : departmentSimpleDTOList) { + List departmentPOList = iDepartmentBaseService.listByParentId(departmentSimpleDTO.getDepartmentId()); + for (DepartmentDTO departmentDTO : departmentPOList) { + departmentIdList.add(departmentDTO.getDepartmentId()); + } + departmentIdList.add(departmentSimpleDTO.getDepartmentId()); + } + return warningService.listPageDept(page,departmentIdList); + } @ApiOperation(value = "区域事件预警分页列表", notes = "区域事件预警分页列表接口") @ApiImplicitParams({ diff --git a/src/main/java/cn/com/tenlion/dao/difficult/IDifficultDao.java b/src/main/java/cn/com/tenlion/dao/difficult/IDifficultDao.java index 8075d54..61c0b77 100644 --- a/src/main/java/cn/com/tenlion/dao/difficult/IDifficultDao.java +++ b/src/main/java/cn/com/tenlion/dao/difficult/IDifficultDao.java @@ -129,4 +129,17 @@ public interface IDifficultDao { */ Integer countByAreaCode(Map params) throws SearchException; + /** + * 单位疑难案件分页列表 + * @param params + * @return + */ + List listDept(Map params); + + /** + * 单位疑难案件数量 + * @param params + * @return + */ + Integer countDept(Map params); } \ No newline at end of file diff --git a/src/main/java/cn/com/tenlion/dao/timeout/ITimeoutDao.java b/src/main/java/cn/com/tenlion/dao/timeout/ITimeoutDao.java index 5bb18db..b42389e 100644 --- a/src/main/java/cn/com/tenlion/dao/timeout/ITimeoutDao.java +++ b/src/main/java/cn/com/tenlion/dao/timeout/ITimeoutDao.java @@ -134,4 +134,17 @@ public interface ITimeoutDao { */ void updateStatus(Map params) throws UpdateException; + /** + * 单位超时事件分页列表 + * @param params + * @return + */ + List listDept(Map params); + + /** + * 单位超时案件数量 + * @param params + * @return + */ + Integer countDept(Map params); } \ No newline at end of file diff --git a/src/main/java/cn/com/tenlion/dao/warning/IWarningDao.java b/src/main/java/cn/com/tenlion/dao/warning/IWarningDao.java index d15f632..a6aa47b 100644 --- a/src/main/java/cn/com/tenlion/dao/warning/IWarningDao.java +++ b/src/main/java/cn/com/tenlion/dao/warning/IWarningDao.java @@ -136,4 +136,20 @@ public interface IWarningDao { */ Integer countByAreaCode(Map params) throws SearchException; + /** + * 单位案件预警列表 + * @param params + * @return + * @throws SearchException + */ + List listDept(Map params) throws SearchException; + + /** + * 统计单位下的预警事件 + * @param params + * @return + * @throws SearchException + */ + Integer countDept(Map params) throws SearchException; + } \ No newline at end of file diff --git a/src/main/java/cn/com/tenlion/service/casestatistics/impl/ICaseStatisticsServiceImpl.java b/src/main/java/cn/com/tenlion/service/casestatistics/impl/ICaseStatisticsServiceImpl.java index e3be949..453dec9 100644 --- a/src/main/java/cn/com/tenlion/service/casestatistics/impl/ICaseStatisticsServiceImpl.java +++ b/src/main/java/cn/com/tenlion/service/casestatistics/impl/ICaseStatisticsServiceImpl.java @@ -46,23 +46,24 @@ public class ICaseStatisticsServiceImpl extends DefaultBaseService implements IC @Autowired private SecurityComponent securityComponent; - - - - - private static String areaRoot = "110889"; - private static String areaName = "乌兰察布市"; + //private static String areaRoot = "110889"; + //private static String areaName = "乌兰察布市"; private static String title = "事件统计"; - private static String areaLevel = "1"; - - - - - - - - + //private static String areaLevel = "1"; + public AreaDataDTO getCurrentAreaRoot() { + AreaDataDTO areaDataDTO = new AreaDataDTO(); + UserExpandBO expandData = securityComponent.getExpandData(UserExpandBO.class); + String areaCode = expandData.getAreaCode(); + if(StringUtils.isEmpty(areaCode)) { + throw new SearchException("当前登录人未设置区域"); + } + AreaDTO areaDTO = areaService.getByCode(areaCode); + areaDataDTO.setAreaId(areaDTO.getAreaId()); + areaDataDTO.setAreaName(areaDTO.getAreaName()); + areaDataDTO.setAreaLevel(areaDTO.getAreaLevel()); + return areaDataDTO; + } /** * 区域统计 @@ -84,6 +85,8 @@ public class ICaseStatisticsServiceImpl extends DefaultBaseService implements IC */ public CaseStatisticsAreaDataDTO getDepartmentAreaList(String departmentId, Map params) { CaseStatisticsAreaDataDTO dto = new CaseStatisticsAreaDataDTO(); + + return dto; } /** @@ -94,6 +97,8 @@ public class ICaseStatisticsServiceImpl extends DefaultBaseService implements IC */ public CaseStatisticsAreaDataDTO getGridAreaList(String userId, Map params) { CaseStatisticsAreaDataDTO dto = new CaseStatisticsAreaDataDTO(); + + return dto; } /** @@ -114,11 +119,13 @@ public class ICaseStatisticsServiceImpl extends DefaultBaseService implements IC @Override public CaseStatisticsDTO list(Map params) { CaseStatisticsDTO dto = new CaseStatisticsDTO(); - String areaId = params.get("areaId") == null ? areaRoot : params.get("areaId").toString(); - + AreaDataDTO areaDataDTO = getCurrentAreaRoot(); + String areaId = params.get("areaId") == null ? areaDataDTO.getAreaId() : params.get("areaId").toString(); AreaDTO areaDTO = areaService.get(areaId); - dto.setAreaParentName(areaDTO.getAreaParentName()); - dto.setAreaParentId(areaDTO.getAreaParentId()); + dto.setAreaParentName(areaDTO.getAreaLevel().equals(areaDataDTO.getAreaLevel()) ?areaDataDTO.getAreaName() : areaDTO.getAreaParentName()); + dto.setAreaParentId(areaDTO.getAreaLevel().equals(areaDataDTO.getAreaLevel()) ? areaDataDTO.getAreaId() : areaDTO.getAreaParentId()); +// dto.setAreaParentName(areaDTO.getAreaParentName()); +// dto.setAreaParentId(areaDTO.getAreaParentId()); dto.setAreaId(areaId); dto.setAreaName(areaDTO.getAreaName()); dto.setTitle(title); @@ -140,7 +147,8 @@ public class ICaseStatisticsServiceImpl extends DefaultBaseService implements IC @Override public SuccessResultList> departmentAreaListPage(ListPage page) { Map params = page.getParams(); - String areaId = params.get("areaId") == null ? areaRoot : params.get("areaId").toString(); + AreaDataDTO areaDataDTO = getCurrentAreaRoot(); + String areaId = params.get("areaId") == null ? areaDataDTO.getAreaId() : params.get("areaId").toString(); AreaDTO areaDTO = areaService.get(areaId); // 区域查询 List departmentList = new ArrayList(); @@ -167,7 +175,8 @@ public class ICaseStatisticsServiceImpl extends DefaultBaseService implements IC public CaseStatisticsAreaDTO departmentListExcel(Map params) { if(params.get("queryMode") != null && "queryCurrentArea".equals(params.get("queryMode").toString())) { // 导出当前区域的数据 - String areaId = params.get("areaId") == null ? areaRoot : params.get("areaId").toString(); + AreaDataDTO areaDataDTO = getCurrentAreaRoot(); + String areaId = params.get("areaId") == null ? areaDataDTO.getAreaId() : params.get("areaId").toString(); AreaDTO areaDTO = areaService.get(areaId); CaseStatisticsAreaDTO caseAreaDTO = new CaseStatisticsAreaDTO(); caseAreaDTO.setAreaName(areaDTO.getAreaName()); @@ -227,10 +236,11 @@ public class ICaseStatisticsServiceImpl extends DefaultBaseService implements IC public CaseStatisticsAreaDTO departmentAreaList(Map params) { CaseStatisticsAreaDTO dto = new CaseStatisticsAreaDTO(); // 父区域 - String areaId = params.get("areaId") == null ? areaRoot : params.get("areaId").toString(); + AreaDataDTO areaDataDTO = getCurrentAreaRoot(); + String areaId = params.get("areaId") == null ? areaDataDTO.getAreaId() : params.get("areaId").toString(); AreaDTO areaDTO = areaService.get(areaId); - dto.setAreaParentName(areaDTO.getAreaLevel().equals(areaLevel) ?areaName : areaDTO.getAreaParentName()); - dto.setAreaParentId(areaDTO.getAreaLevel().equals(areaLevel) ? areaRoot : areaDTO.getAreaParentId()); + dto.setAreaParentName(areaDTO.getAreaLevel().equals(areaDataDTO.getAreaLevel()) ?areaDataDTO.getAreaName() : areaDTO.getAreaParentName()); + dto.setAreaParentId(areaDTO.getAreaLevel().equals(areaDataDTO.getAreaLevel()) ? areaDataDTO.getAreaId() : areaDTO.getAreaParentId()); dto.setAreaId(areaId); dto.setAreaCode(areaDTO.getAreaCode()); dto.setAreaName(areaDTO.getAreaName()); @@ -262,7 +272,8 @@ public class ICaseStatisticsServiceImpl extends DefaultBaseService implements IC @Override public SuccessResultList> gridAreaListPage(ListPage page) { Map params = page.getParams(); - String areaId = params.get("areaId") == null ? areaRoot : params.get("areaId").toString(); + AreaDataDTO areaDataDTO = getCurrentAreaRoot(); + String areaId = params.get("areaId") == null ? areaDataDTO.getAreaId() : params.get("areaId").toString(); AreaDTO areaDTO = areaService.get(areaId); // 区域查询 String accessToken = OAuth2ClientTokenManager.getInstance().getToken().getAccessToken(); @@ -299,7 +310,8 @@ public class ICaseStatisticsServiceImpl extends DefaultBaseService implements IC queryParams.put("sort", "ASC"); if(params.get("queryMode") != null && "queryCurrentArea".equals(params.get("queryMode").toString())) { // 导出当前区域的数据 - String areaId = params.get("areaId") == null ? areaRoot : params.get("areaId").toString(); + AreaDataDTO areaDataDTO = getCurrentAreaRoot(); + String areaId = params.get("areaId") == null ? areaDataDTO.getAreaId() : params.get("areaId").toString(); AreaDTO areaDTO = areaService.get(areaId); CaseStatisticsAreaDTO caseAreaDTO = new CaseStatisticsAreaDTO(); caseAreaDTO.setAreaName(areaDTO.getAreaName()); @@ -364,10 +376,11 @@ public class ICaseStatisticsServiceImpl extends DefaultBaseService implements IC public CaseStatisticsAreaDTO gridAreaList(Map params) { CaseStatisticsAreaDTO dto = new CaseStatisticsAreaDTO(); // 父区域 - String areaId = params.get("areaId") == null ? areaRoot : params.get("areaId").toString(); + AreaDataDTO areaDataDTO = getCurrentAreaRoot(); + String areaId = params.get("areaId") == null ? areaDataDTO.getAreaId() : params.get("areaId").toString(); AreaDTO areaDTO = areaService.get(areaId); - dto.setAreaParentName(areaDTO.getAreaLevel().equals(areaLevel) ?areaName : areaDTO.getAreaParentName()); - dto.setAreaParentId(areaDTO.getAreaLevel().equals(areaLevel) ? areaRoot : areaDTO.getAreaParentId()); + dto.setAreaParentName(areaDTO.getAreaLevel().equals(areaDataDTO.getAreaLevel()) ?areaDataDTO.getAreaName() : areaDTO.getAreaParentName()); + dto.setAreaParentId(areaDTO.getAreaLevel().equals(areaDataDTO.getAreaLevel()) ? areaDataDTO.getAreaId() : areaDTO.getAreaParentId()); dto.setAreaId(areaId); dto.setAreaCode(areaDTO.getAreaCode()); dto.setAreaName(areaDTO.getAreaName()); diff --git a/src/main/java/cn/com/tenlion/service/difficult/IDifficultService.java b/src/main/java/cn/com/tenlion/service/difficult/IDifficultService.java index d99799a..e020432 100644 --- a/src/main/java/cn/com/tenlion/service/difficult/IDifficultService.java +++ b/src/main/java/cn/com/tenlion/service/difficult/IDifficultService.java @@ -208,4 +208,18 @@ public interface IDifficultService { */ Integer count(Map params); + /** + * 单位疑难案件分页列表 + * @param page + * @param departmentIdList + * @return + */ + SuccessResultList> listPageDept(ListPage page, List departmentIdList); + + /** + * 单位疑难案件数量 + * @param departmentIdList + * @return + */ + Integer countDept(List departmentIdList); } \ No newline at end of file diff --git a/src/main/java/cn/com/tenlion/service/difficult/impl/DifficultServiceImpl.java b/src/main/java/cn/com/tenlion/service/difficult/impl/DifficultServiceImpl.java index 1bc7a03..0071003 100644 --- a/src/main/java/cn/com/tenlion/service/difficult/impl/DifficultServiceImpl.java +++ b/src/main/java/cn/com/tenlion/service/difficult/impl/DifficultServiceImpl.java @@ -2,6 +2,7 @@ package cn.com.tenlion.service.difficult.impl; import cn.com.tenlion.pojo.bos.userexpand.UserExpandBO; import cn.com.tenlion.pojo.dtos.difficult.DifficultReportDTO; +import cn.com.tenlion.pojo.dtos.warning.WarningDTO; import cn.com.tenlion.util.UserUtil; import ink.wgink.common.base.DefaultBaseService; import ink.wgink.exceptions.SearchException; @@ -39,7 +40,30 @@ public class DifficultServiceImpl extends DefaultBaseService implements IDifficu @Autowired private UserUtil userUtil; + @Override + public SuccessResultList> listPageDept(ListPage page, List departmentIdList) { + String departmentListIds = "-1"; + for (String k : departmentIdList) { + departmentListIds = departmentListIds + "|" + k ; + } + page.getParams().put("departmentListIds", departmentListIds); + PageHelper.startPage(page.getPage(), page.getRows()); + List difficultReportDTOList = difficultDao.listDept(page.getParams()); + PageInfo pageInfo = new PageInfo<>(difficultReportDTOList); + return new SuccessResultList<>(difficultReportDTOList, pageInfo.getPageNum(), pageInfo.getTotal()); + } + @Override + public Integer countDept(List departmentIdList) { + Map params = getHashMap(2); + String departmentListIds = "-1"; + for (String k : departmentIdList) { + departmentListIds = departmentListIds + "|" + k ; + } + params.put("departmentListIds", departmentListIds); + params.put("warningStatus", "0"); + return difficultDao.countDept(params); + } public Integer countByAreaCode(String areaCode){ Map params = new HashMap<>(); @@ -225,4 +249,5 @@ public class DifficultServiceImpl extends DefaultBaseService implements IDifficu return count == null ? 0 : count; } + } \ No newline at end of file diff --git a/src/main/java/cn/com/tenlion/service/timeout/ITimeoutService.java b/src/main/java/cn/com/tenlion/service/timeout/ITimeoutService.java index 74d61dd..f610e10 100644 --- a/src/main/java/cn/com/tenlion/service/timeout/ITimeoutService.java +++ b/src/main/java/cn/com/tenlion/service/timeout/ITimeoutService.java @@ -224,4 +224,18 @@ public interface ITimeoutService { */ Integer count(Map params); + /** + * 单位超时案件数量 + * @param departmentIdList + * @return + */ + Integer countDept(List departmentIdList); + + /** + * 单位超时事件分页列表 + * @param page + * @param departmentIdList + * @return + */ + SuccessResultList> listPageDept(ListPage page, List departmentIdList); } \ No newline at end of file diff --git a/src/main/java/cn/com/tenlion/service/timeout/impl/TimeoutServiceImpl.java b/src/main/java/cn/com/tenlion/service/timeout/impl/TimeoutServiceImpl.java index 93db604..7990f07 100644 --- a/src/main/java/cn/com/tenlion/service/timeout/impl/TimeoutServiceImpl.java +++ b/src/main/java/cn/com/tenlion/service/timeout/impl/TimeoutServiceImpl.java @@ -1,5 +1,6 @@ package cn.com.tenlion.service.timeout.impl; +import cn.com.tenlion.pojo.dtos.warning.WarningDTO; import cn.com.tenlion.pojo.vos.taskmsg.SocketVO; import cn.com.tenlion.service.remotebase.IRemoteBaseService; import ink.wgink.common.base.DefaultBaseService; @@ -47,9 +48,31 @@ public class TimeoutServiceImpl extends DefaultBaseService implements ITimeoutSe @Autowired private IDepartmentUserBaseService departmentUserBaseService; + @Override + public Integer countDept(List departmentIdList) { + Map params = getHashMap(2); + String departmentListIds = "-1"; + for (String k : departmentIdList) { + departmentListIds = departmentListIds + "|" + k ; + } + params.put("departmentListIds", departmentListIds); + params.put("status", "0"); + return timeoutDao.countDept(params); + } - - + @Override + public SuccessResultList> listPageDept(ListPage page, List departmentIdList) { + String departmentListIds = "-1"; + for (String k : departmentIdList) { + departmentListIds = departmentListIds + "|" + k ; + } + page.getParams().put("departmentListIds", departmentListIds); + page.getParams().put("status", "0"); + PageHelper.startPage(page.getPage(), page.getRows()); + List timeoutDTOList = timeoutDao.listDept(page.getParams()); + PageInfo pageInfo = new PageInfo<>(timeoutDTOList); + return new SuccessResultList<>(timeoutDTOList, pageInfo.getPageNum(), pageInfo.getTotal()); + } public void saveSystem(TimeoutVO timeoutVO){ //效验参数 diff --git a/src/main/java/cn/com/tenlion/service/warning/IWarningService.java b/src/main/java/cn/com/tenlion/service/warning/IWarningService.java index 1ec8aad..752e8d3 100644 --- a/src/main/java/cn/com/tenlion/service/warning/IWarningService.java +++ b/src/main/java/cn/com/tenlion/service/warning/IWarningService.java @@ -221,4 +221,19 @@ public interface IWarningService { */ Integer count(Map params); + /** + * 单位预警案件(分页列表) + * @param page + * @param departmentIdList + * @return + */ + SuccessResultList> listPageDept(ListPage page, List departmentIdList); + + /** + * 单位预警案件(分页列表) + * @param departmentIdList + * @return + */ + Integer countDept(List departmentIdList); + } \ No newline at end of file diff --git a/src/main/java/cn/com/tenlion/service/warning/impl/WarningServiceImpl.java b/src/main/java/cn/com/tenlion/service/warning/impl/WarningServiceImpl.java index 1bc201d..8434c3f 100644 --- a/src/main/java/cn/com/tenlion/service/warning/impl/WarningServiceImpl.java +++ b/src/main/java/cn/com/tenlion/service/warning/impl/WarningServiceImpl.java @@ -343,4 +343,30 @@ public class WarningServiceImpl extends DefaultBaseService implements IWarningSe return count == null ? 0 : count; } + @Override + public SuccessResultList> listPageDept(ListPage page, List departmentIdList) { + String departmentListIds = "-1"; + for (String k : departmentIdList) { + departmentListIds = departmentListIds + "|" + k ; + } + page.getParams().put("departmentListIds", departmentListIds); + page.getParams().put("warningStatus", "0"); + PageHelper.startPage(page.getPage(), page.getRows()); + List warningDTOList = warningDao.listDept(page.getParams()); + PageInfo pageInfo = new PageInfo<>(warningDTOList); + return new SuccessResultList<>(warningDTOList, pageInfo.getPageNum(), pageInfo.getTotal()); + } + + @Override + public Integer countDept(List departmentIdList) { + Map params = getHashMap(2); + String departmentListIds = "-1"; + for (String k : departmentIdList) { + departmentListIds = departmentListIds + "|" + k ; + } + params.put("departmentListIds", departmentListIds); + params.put("warningStatus", "0"); + return warningDao.countDept(params); + } + } \ No newline at end of file diff --git a/src/main/resources/application.yml b/src/main/resources/application-prod.yml similarity index 91% rename from src/main/resources/application.yml rename to src/main/resources/application-prod.yml index a0dde98..60af225 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application-prod.yml @@ -4,7 +4,7 @@ server: system-title: 案件系统 system-sub-title: 案件系统 servlet: - context-path: /twoduty + context-path: /case spring: @@ -26,11 +26,11 @@ spring: max-request-size: 1GB datasource: druid: - url: jdbc:mysql://127.0.0.1:3306/db_cloud_case?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&autoReconnect=true&failOverReadOnly=false&useSSL=false&serverTimezone=UTC + url: jdbc:mysql://192.168.0.151:3306/db_cloud_case?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&autoReconnect=true&failOverReadOnly=false&useSSL=false&serverTimezone=UTC db-type: mysql driver-class-name: com.mysql.cj.jdbc.Driver username: root - password: 123456 + password: root initial-size: 2 min-idle: 2 max-active: 10 diff --git a/src/main/resources/application-text.yml b/src/main/resources/application-text.yml index 93a16e2..fd0f68a 100644 --- a/src/main/resources/application-text.yml +++ b/src/main/resources/application-text.yml @@ -1,6 +1,6 @@ server: - port: 8080 - url: http://192.168.0.120:8080/case + port: 8087 + url: http://192.168.0.115:8087/case system-title: 统一事件协同系统 system-sub-title: 统一事件协同系统 default-index-page: indexWorkHome @@ -34,11 +34,11 @@ spring: max-request-size: 1GB datasource: druid: - url: jdbc:mysql://127.0.0.1:3306/db_cloud_case?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&autoReconnect=true&failOverReadOnly=false&useSSL=false&serverTimezone=UTC&nullCatalogMeansCurrent=true + url: jdbc:mysql://192.168.0.151:3306/db_cloud_case?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&autoReconnect=true&failOverReadOnly=false&useSSL=false&serverTimezone=UTC&nullCatalogMeansCurrent=true db-type: mysql driver-class-name: com.mysql.cj.jdbc.Driver username: root - password: 123456 + password: root initial-size: 2 min-idle: 2 max-active: 10 @@ -155,8 +155,8 @@ security: oauth-server: ${api-path.user-center} oauth-logout: ${security.oauth2.oauth-server}/logout?redirect_uri=${server.url} client: - client-id: 0173fa13b1e74945a2916668ecabfd74 - client-secret: SlBKeThRaFU3TmZQakZXbkVaVWFDUytVZlBiMlo3dmFDeWxCUnRzdC9hVGxIdG9KZmEyTjJIRnI0dG1McEdEVA== + client-id: ce6b07ce4a3c44baa47be519c1383530 + client-secret: OE5LNXhmOE0ydFJBQ0xNRmNNelExR1k1TkVaWVQ3ZDRGZFRvcThxSWRaSGxIdG9KZmEyTjJIRnI0dG1McEdEVA== user-authorization-uri: ${security.oauth2.oauth-server}/oauth2_client/authorize access-token-uri: ${security.oauth2.oauth-server}/oauth2_client/token grant-type: authorization_code diff --git a/src/main/resources/mybatis/mapper/difficult/difficult-mapper.xml b/src/main/resources/mybatis/mapper/difficult/difficult-mapper.xml index d0de383..b5fea2a 100644 --- a/src/main/resources/mybatis/mapper/difficult/difficult-mapper.xml +++ b/src/main/resources/mybatis/mapper/difficult/difficult-mapper.xml @@ -64,6 +64,49 @@ + + + + + + INSERT INTO case_difficult( diff --git a/src/main/resources/mybatis/mapper/timeout/timeout-mapper.xml b/src/main/resources/mybatis/mapper/timeout/timeout-mapper.xml index ef00999..4e31eac 100644 --- a/src/main/resources/mybatis/mapper/timeout/timeout-mapper.xml +++ b/src/main/resources/mybatis/mapper/timeout/timeout-mapper.xml @@ -40,6 +40,64 @@ + + + + + + INSERT INTO case_timeout( diff --git a/src/main/resources/mybatis/mapper/warning/warning-mapper.xml b/src/main/resources/mybatis/mapper/warning/warning-mapper.xml index 76c5a45..e42a66c 100644 --- a/src/main/resources/mybatis/mapper/warning/warning-mapper.xml +++ b/src/main/resources/mybatis/mapper/warning/warning-mapper.xml @@ -75,8 +75,64 @@ + + - + + diff --git a/src/main/resources/static/route/casestatistics/list.html b/src/main/resources/static/route/casestatistics/list.html index d63597e..10fd2e1 100644 --- a/src/main/resources/static/route/casestatistics/list.html +++ b/src/main/resources/static/route/casestatistics/list.html @@ -47,7 +47,17 @@
-

{{d.areaId == '110889' ? '' : ''}}{{d.areaName}}

+

+ + {{d.areaName}} +

+ + + + +
diff --git a/src/main/resources/templates/workbench/dept-work.html b/src/main/resources/templates/workbench/dept-work.html index 10edcaf..9baec8d 100644 --- a/src/main/resources/templates/workbench/dept-work.html +++ b/src/main/resources/templates/workbench/dept-work.html @@ -149,6 +149,44 @@
统一监管
+
@@ -230,12 +268,10 @@ countMeCollect(); countCaseUserType(); countCaseSevenDays(); + countDeptWarningCaseNum(); + countDeptTimeoutCaseNum(); } - - - - $('#LAY-logout').on('click', function() { top.dialog.confirm('确认退出?', function() { window.location.href = 'logout'; @@ -387,6 +423,44 @@ /*top.*/dialog.close(loadLayerIndex); }); } + + /** + * + * 统计单位预警事件数量 + */ + function countDeptWarningCaseNum() { + var loadLayerIndex; + /*top.*/ + restAjax.get(/*top.*/restAjax.path('api/warning/count-dept', []), {}, null, function (code, data) { + $("#warningNum").html(data.data); + }, function (code, data) { + /*top.*/ + dialog.msg(data.msg); + }, function () { + loadLayerIndex = /*top.*/dialog.msg(/*top.*/dataMessage.loading, {icon: 16, time: 0, shade: 0.3}); + }, function () { + /*top.*/ + dialog.close(loadLayerIndex); + }); + } + + /** + * + * 统计单位超时事件数量 + */ + function countDeptTimeoutCaseNum(){ + var loadLayerIndex; + /*top.*/restAjax.get(/*top.*/restAjax.path('api/timeout/count-dept', []), {}, null, function(code, data) { + $("#timeoutNum").html(data.data); + }, function(code, data) { + /*top.*/dialog.msg(data.msg); + }, function() { + loadLayerIndex = /*top.*/dialog.msg(/*top.*/dataMessage.loading, {icon: 16, time: 0, shade: 0.3}); + }, function() { + /*top.*/dialog.close(loadLayerIndex); + }); + } + /** * * 统计案件数量