增加单位的预警案件/超时案件
This commit is contained in:
parent
6564da0af1
commit
34925ddaf5
4
pom.xml
4
pom.xml
@ -118,8 +118,6 @@
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
</dependency>
|
||||
|
||||
|
||||
|
||||
<dependency>
|
||||
<groupId>ink.wgink</groupId>
|
||||
<artifactId>mongo-module-dictionary</artifactId>
|
||||
@ -148,8 +146,6 @@
|
||||
<!-- session share end -->
|
||||
|
||||
|
||||
|
||||
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
|
@ -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<Integer> countDept() {
|
||||
UserInfoBO userInfoBO = securityComponent.getCurrentUser();
|
||||
/**
|
||||
* 封装当前人所在的单位集
|
||||
*/
|
||||
List<String> departmentIdList = new ArrayList<String>();
|
||||
List<DepartmentSimpleDTO> departmentSimpleDTOList = userInfoBO.getDepartments();
|
||||
for (DepartmentSimpleDTO departmentSimpleDTO : departmentSimpleDTOList) {
|
||||
List<DepartmentDTO> departmentPOList = iDepartmentBaseService.listByParentId(departmentSimpleDTO.getDepartmentId());
|
||||
for (DepartmentDTO departmentDTO : departmentPOList) {
|
||||
departmentIdList.add(departmentDTO.getDepartmentId());
|
||||
}
|
||||
departmentIdList.add(departmentSimpleDTO.getDepartmentId());
|
||||
}
|
||||
return new SuccessResultData<Integer>(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<List<DifficultReportDTO>> listPageDept(ListPage page) {
|
||||
Map<String, Object> params = requestParams();
|
||||
page.setParams(params);
|
||||
UserInfoBO userInfoBO = securityComponent.getCurrentUser();
|
||||
/**
|
||||
* 封装当前人所在的单位集
|
||||
*/
|
||||
List<String> departmentIdList = new ArrayList<String>();
|
||||
List<DepartmentSimpleDTO> departmentSimpleDTOList = userInfoBO.getDepartments();
|
||||
for (DepartmentSimpleDTO departmentSimpleDTO : departmentSimpleDTOList) {
|
||||
List<DepartmentDTO> 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)})
|
||||
|
@ -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<Integer> countDept() {
|
||||
UserInfoBO userInfoBO = securityComponent.getCurrentUser();
|
||||
/**
|
||||
* 封装当前人所在的单位集
|
||||
*/
|
||||
List<String> departmentIdList = new ArrayList<String>();
|
||||
List<DepartmentSimpleDTO> departmentSimpleDTOList = userInfoBO.getDepartments();
|
||||
for (DepartmentSimpleDTO departmentSimpleDTO : departmentSimpleDTOList) {
|
||||
List<DepartmentDTO> departmentPOList = iDepartmentBaseService.listByParentId(departmentSimpleDTO.getDepartmentId());
|
||||
for (DepartmentDTO departmentDTO : departmentPOList) {
|
||||
departmentIdList.add(departmentDTO.getDepartmentId());
|
||||
}
|
||||
departmentIdList.add(departmentSimpleDTO.getDepartmentId());
|
||||
}
|
||||
return new SuccessResultData<Integer>(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<List<TimeoutDTO>> listPageDept(ListPage page) {
|
||||
Map<String, Object> params = requestParams();
|
||||
page.setParams(params);
|
||||
UserInfoBO userInfoBO = securityComponent.getCurrentUser();
|
||||
/**
|
||||
* 封装当前人所在的单位集
|
||||
*/
|
||||
List<String> departmentIdList = new ArrayList<String>();
|
||||
List<DepartmentSimpleDTO> departmentSimpleDTOList = userInfoBO.getDepartments();
|
||||
for (DepartmentSimpleDTO departmentSimpleDTO : departmentSimpleDTOList) {
|
||||
List<DepartmentDTO> 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({
|
||||
|
@ -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<Integer> countDept() {
|
||||
UserInfoBO userInfoBO = securityComponent.getCurrentUser();
|
||||
/**
|
||||
* 封装当前人所在的单位集
|
||||
*/
|
||||
List<String> departmentIdList = new ArrayList<String>();
|
||||
List<DepartmentSimpleDTO> departmentSimpleDTOList = userInfoBO.getDepartments();
|
||||
for (DepartmentSimpleDTO departmentSimpleDTO : departmentSimpleDTOList) {
|
||||
List<DepartmentDTO> departmentPOList = iDepartmentBaseService.listByParentId(departmentSimpleDTO.getDepartmentId());
|
||||
for (DepartmentDTO departmentDTO : departmentPOList) {
|
||||
departmentIdList.add(departmentDTO.getDepartmentId());
|
||||
}
|
||||
departmentIdList.add(departmentSimpleDTO.getDepartmentId());
|
||||
}
|
||||
return new SuccessResultData<Integer>(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<List<WarningDTO>> listPageDept(ListPage page) {
|
||||
Map<String, Object> params = requestParams();
|
||||
page.setParams(params);
|
||||
UserInfoBO userInfoBO = securityComponent.getCurrentUser();
|
||||
/**
|
||||
* 封装当前人所在的单位集
|
||||
*/
|
||||
List<String> departmentIdList = new ArrayList<String>();
|
||||
List<DepartmentSimpleDTO> departmentSimpleDTOList = userInfoBO.getDepartments();
|
||||
for (DepartmentSimpleDTO departmentSimpleDTO : departmentSimpleDTOList) {
|
||||
List<DepartmentDTO> 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 = "案件预警分页列表接口")
|
||||
|
@ -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<Integer> countDept(@RequestHeader("token") String token) throws ReflectUtil.ReflectException {
|
||||
AppTokenUser userInfoBO = securityComponent.getAppTokenUser(token);
|
||||
/**
|
||||
* 封装当前人所在的单位集
|
||||
*/
|
||||
List<String> departmentIdList = new ArrayList<String>();
|
||||
List<AppTokenUserDepartment> departmentSimpleDTOList = userInfoBO.getDepartments();
|
||||
for (AppTokenUserDepartment departmentSimpleDTO : departmentSimpleDTOList) {
|
||||
List<DepartmentDTO> departmentPOList = iDepartmentBaseService.listByParentId(departmentSimpleDTO.getDepartmentId());
|
||||
for (DepartmentDTO departmentDTO : departmentPOList) {
|
||||
departmentIdList.add(departmentDTO.getDepartmentId());
|
||||
}
|
||||
departmentIdList.add(departmentSimpleDTO.getDepartmentId());
|
||||
}
|
||||
return new SuccessResultData<Integer>(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<List<TimeoutDTO>> listPageDept(@RequestHeader("token") String token, ListPage page) throws ReflectUtil.ReflectException {
|
||||
Map<String, Object> params = requestParams();
|
||||
page.setParams(params);
|
||||
AppTokenUser userInfoBO = securityComponent.getAppTokenUser(token);
|
||||
/**
|
||||
* 封装当前人所在的单位集
|
||||
*/
|
||||
List<String> departmentIdList = new ArrayList<String>();
|
||||
List<AppTokenUserDepartment> departmentSimpleDTOList = userInfoBO.getDepartments();
|
||||
for (AppTokenUserDepartment departmentSimpleDTO : departmentSimpleDTOList) {
|
||||
List<DepartmentDTO> 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({
|
||||
|
@ -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<Integer> countDept(@RequestHeader("token") String token) throws ReflectUtil.ReflectException {
|
||||
AppTokenUser userInfoBO = securityComponent.getAppTokenUser(token);
|
||||
/**
|
||||
* 封装当前人所在的单位集
|
||||
*/
|
||||
List<String> departmentIdList = new ArrayList<String>();
|
||||
List<AppTokenUserDepartment> departmentSimpleDTOList = userInfoBO.getDepartments();
|
||||
for (AppTokenUserDepartment departmentSimpleDTO : departmentSimpleDTOList) {
|
||||
List<DepartmentDTO> departmentPOList = iDepartmentBaseService.listByParentId(departmentSimpleDTO.getDepartmentId());
|
||||
for (DepartmentDTO departmentDTO : departmentPOList) {
|
||||
departmentIdList.add(departmentDTO.getDepartmentId());
|
||||
}
|
||||
departmentIdList.add(departmentSimpleDTO.getDepartmentId());
|
||||
}
|
||||
return new SuccessResultData<Integer>(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<List<WarningDTO>> listPageDept(@RequestHeader("token") String token, ListPage page) throws ReflectUtil.ReflectException {
|
||||
Map<String, Object> params = requestParams();
|
||||
page.setParams(params);
|
||||
AppTokenUser userInfoBO = securityComponent.getAppTokenUser(token);
|
||||
/**
|
||||
* 封装当前人所在的单位集
|
||||
*/
|
||||
List<String> departmentIdList = new ArrayList<String>();
|
||||
List<AppTokenUserDepartment> departmentSimpleDTOList = userInfoBO.getDepartments();
|
||||
for (AppTokenUserDepartment departmentSimpleDTO : departmentSimpleDTOList) {
|
||||
List<DepartmentDTO> 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({
|
||||
|
@ -129,4 +129,17 @@ public interface IDifficultDao {
|
||||
*/
|
||||
Integer countByAreaCode(Map<String, Object> params) throws SearchException;
|
||||
|
||||
/**
|
||||
* 单位疑难案件分页列表
|
||||
* @param params
|
||||
* @return
|
||||
*/
|
||||
List<DifficultReportDTO> listDept(Map<String, Object> params);
|
||||
|
||||
/**
|
||||
* 单位疑难案件数量
|
||||
* @param params
|
||||
* @return
|
||||
*/
|
||||
Integer countDept(Map<String, Object> params);
|
||||
}
|
@ -134,4 +134,17 @@ public interface ITimeoutDao {
|
||||
*/
|
||||
void updateStatus(Map<String,Object> params) throws UpdateException;
|
||||
|
||||
/**
|
||||
* 单位超时事件分页列表
|
||||
* @param params
|
||||
* @return
|
||||
*/
|
||||
List<TimeoutDTO> listDept(Map<String, Object> params);
|
||||
|
||||
/**
|
||||
* 单位超时案件数量
|
||||
* @param params
|
||||
* @return
|
||||
*/
|
||||
Integer countDept(Map<String, Object> params);
|
||||
}
|
@ -136,4 +136,20 @@ public interface IWarningDao {
|
||||
*/
|
||||
Integer countByAreaCode(Map<String, Object> params) throws SearchException;
|
||||
|
||||
/**
|
||||
* 单位案件预警列表
|
||||
* @param params
|
||||
* @return
|
||||
* @throws SearchException
|
||||
*/
|
||||
List<WarningDTO> listDept(Map<String, Object> params) throws SearchException;
|
||||
|
||||
/**
|
||||
* 统计单位下的预警事件
|
||||
* @param params
|
||||
* @return
|
||||
* @throws SearchException
|
||||
*/
|
||||
Integer countDept(Map<String, Object> params) throws SearchException;
|
||||
|
||||
}
|
@ -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<String, Object> params) {
|
||||
CaseStatisticsAreaDataDTO dto = new CaseStatisticsAreaDataDTO();
|
||||
|
||||
|
||||
return dto;
|
||||
}
|
||||
/**
|
||||
@ -94,6 +97,8 @@ public class ICaseStatisticsServiceImpl extends DefaultBaseService implements IC
|
||||
*/
|
||||
public CaseStatisticsAreaDataDTO getGridAreaList(String userId, Map<String, Object> params) {
|
||||
CaseStatisticsAreaDataDTO dto = new CaseStatisticsAreaDataDTO();
|
||||
|
||||
|
||||
return dto;
|
||||
}
|
||||
/**
|
||||
@ -114,11 +119,13 @@ public class ICaseStatisticsServiceImpl extends DefaultBaseService implements IC
|
||||
@Override
|
||||
public CaseStatisticsDTO list(Map<String, Object> 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<List<CaseStatisticsAreaDataDTO>> departmentAreaListPage(ListPage page) {
|
||||
Map<String, Object> 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<DepartmentDTO> departmentList = new ArrayList<DepartmentDTO>();
|
||||
@ -167,7 +175,8 @@ public class ICaseStatisticsServiceImpl extends DefaultBaseService implements IC
|
||||
public CaseStatisticsAreaDTO departmentListExcel(Map<String, Object> 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<String, Object> 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<List<CaseStatisticsAreaDataDTO>> gridAreaListPage(ListPage page) {
|
||||
Map<String, Object> 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<String, Object> 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());
|
||||
|
@ -208,4 +208,18 @@ public interface IDifficultService {
|
||||
*/
|
||||
Integer count(Map<String, Object> params);
|
||||
|
||||
/**
|
||||
* 单位疑难案件分页列表
|
||||
* @param page
|
||||
* @param departmentIdList
|
||||
* @return
|
||||
*/
|
||||
SuccessResultList<List<DifficultReportDTO>> listPageDept(ListPage page, List<String> departmentIdList);
|
||||
|
||||
/**
|
||||
* 单位疑难案件数量
|
||||
* @param departmentIdList
|
||||
* @return
|
||||
*/
|
||||
Integer countDept(List<String> departmentIdList);
|
||||
}
|
@ -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<List<DifficultReportDTO>> listPageDept(ListPage page, List<String> departmentIdList) {
|
||||
String departmentListIds = "-1";
|
||||
for (String k : departmentIdList) {
|
||||
departmentListIds = departmentListIds + "|" + k ;
|
||||
}
|
||||
page.getParams().put("departmentListIds", departmentListIds);
|
||||
PageHelper.startPage(page.getPage(), page.getRows());
|
||||
List<DifficultReportDTO> difficultReportDTOList = difficultDao.listDept(page.getParams());
|
||||
PageInfo<DifficultReportDTO> pageInfo = new PageInfo<>(difficultReportDTOList);
|
||||
return new SuccessResultList<>(difficultReportDTOList, pageInfo.getPageNum(), pageInfo.getTotal());
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer countDept(List<String> departmentIdList) {
|
||||
Map<String, Object> 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<String,Object> params = new HashMap<>();
|
||||
@ -225,4 +249,5 @@ public class DifficultServiceImpl extends DefaultBaseService implements IDifficu
|
||||
return count == null ? 0 : count;
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -224,4 +224,18 @@ public interface ITimeoutService {
|
||||
*/
|
||||
Integer count(Map<String, Object> params);
|
||||
|
||||
/**
|
||||
* 单位超时案件数量
|
||||
* @param departmentIdList
|
||||
* @return
|
||||
*/
|
||||
Integer countDept(List<String> departmentIdList);
|
||||
|
||||
/**
|
||||
* 单位超时事件分页列表
|
||||
* @param page
|
||||
* @param departmentIdList
|
||||
* @return
|
||||
*/
|
||||
SuccessResultList<List<TimeoutDTO>> listPageDept(ListPage page, List<String> departmentIdList);
|
||||
}
|
@ -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<String> departmentIdList) {
|
||||
Map<String, Object> 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<List<TimeoutDTO>> listPageDept(ListPage page, List<String> 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<TimeoutDTO> timeoutDTOList = timeoutDao.listDept(page.getParams());
|
||||
PageInfo<TimeoutDTO> pageInfo = new PageInfo<>(timeoutDTOList);
|
||||
return new SuccessResultList<>(timeoutDTOList, pageInfo.getPageNum(), pageInfo.getTotal());
|
||||
}
|
||||
|
||||
public void saveSystem(TimeoutVO timeoutVO){
|
||||
//效验参数
|
||||
|
@ -221,4 +221,19 @@ public interface IWarningService {
|
||||
*/
|
||||
Integer count(Map<String, Object> params);
|
||||
|
||||
/**
|
||||
* 单位预警案件(分页列表)
|
||||
* @param page
|
||||
* @param departmentIdList
|
||||
* @return
|
||||
*/
|
||||
SuccessResultList<List<WarningDTO>> listPageDept(ListPage page, List<String> departmentIdList);
|
||||
|
||||
/**
|
||||
* 单位预警案件(分页列表)
|
||||
* @param departmentIdList
|
||||
* @return
|
||||
*/
|
||||
Integer countDept(List<String> departmentIdList);
|
||||
|
||||
}
|
@ -343,4 +343,30 @@ public class WarningServiceImpl extends DefaultBaseService implements IWarningSe
|
||||
return count == null ? 0 : count;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SuccessResultList<List<WarningDTO>> listPageDept(ListPage page, List<String> 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<WarningDTO> warningDTOList = warningDao.listDept(page.getParams());
|
||||
PageInfo<WarningDTO> pageInfo = new PageInfo<>(warningDTOList);
|
||||
return new SuccessResultList<>(warningDTOList, pageInfo.getPageNum(), pageInfo.getTotal());
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer countDept(List<String> departmentIdList) {
|
||||
Map<String, Object> 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);
|
||||
}
|
||||
|
||||
}
|
@ -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
|
@ -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
|
||||
|
@ -64,6 +64,49 @@
|
||||
<result column="creator" property="creator"/>
|
||||
</resultMap>
|
||||
|
||||
<!-- 统计单位下的预警事件 -->
|
||||
<select id="countDept" parameterType="map" resultType="Integer">
|
||||
SELECT
|
||||
COUNT(t1.id)
|
||||
FROM
|
||||
case_difficult t1
|
||||
LEFT JOIN
|
||||
case_report t2
|
||||
ON
|
||||
t1.report_id = t2.report_id
|
||||
WHERE
|
||||
t1.is_delete = 0 AND t2.is_delete = 0
|
||||
</select>
|
||||
|
||||
<!-- 单位案件预警列表 -->
|
||||
<select id="listDept" parameterType="map" resultMap="difficultReportDTO">
|
||||
SELECT
|
||||
t1.*
|
||||
FROM
|
||||
case_difficult t1
|
||||
LEFT JOIN
|
||||
case_report t2
|
||||
ON
|
||||
t1.report_id = t2.report_id
|
||||
WHERE
|
||||
t1.is_delete = 0 AND t2.is_delete = 0
|
||||
<if test="keywords != null and keywords != ''">
|
||||
AND (
|
||||
t2.report_area_name LIKE CONCAT('%', #{keywords}, '%')
|
||||
OR
|
||||
t2.case_parts_obj_name LIKE CONCAT('%', #{keywords}, '%')
|
||||
OR
|
||||
t2.case_type_name1 LIKE CONCAT('%', #{keywords}, '%')
|
||||
OR
|
||||
t2.case_type_name2 LIKE CONCAT('%', #{keywords}, '%')
|
||||
OR
|
||||
t2.report_content LIKE CONCAT('%', #{keywords}, '%')
|
||||
)
|
||||
</if>
|
||||
ORDER BY
|
||||
t1.gmt_create DESC
|
||||
</select>
|
||||
|
||||
<!-- 新增疑难案件 -->
|
||||
<insert id="save" parameterType="map">
|
||||
INSERT INTO case_difficult(
|
||||
|
@ -40,6 +40,64 @@
|
||||
<result column="is_delete" property="isDelete"/>
|
||||
</resultMap>
|
||||
|
||||
<!-- 统计单位下的预警事件 -->
|
||||
<select id="countDept" parameterType="map" resultType="Integer">
|
||||
SELECT
|
||||
COUNT(t1.id)
|
||||
FROM
|
||||
case_timeout t1
|
||||
LEFT JOIN
|
||||
case_report t2
|
||||
ON
|
||||
t1.report_id = t2.report_id
|
||||
WHERE
|
||||
t1.is_delete = 0 AND t2.is_delete = 0 AND t1.task_dept_id IS NOT NULL AND t1.task_dept_id != '' AND t1.status = #{status}
|
||||
AND t1.task_dept_id REGEXP '${departmentListIds}'
|
||||
</select>
|
||||
|
||||
<!-- 单位案件预警列表 -->
|
||||
<select id="listDept" parameterType="map" resultMap="timeoutDTO">
|
||||
SELECT
|
||||
t1.timeout_id,
|
||||
t1.report_id,
|
||||
t1.report_code,
|
||||
t1.task_id,
|
||||
t1.task_name,
|
||||
t1.task_user_id,
|
||||
t1.task_user_name,
|
||||
t1.status,
|
||||
t1.gmt_create
|
||||
FROM
|
||||
case_timeout t1
|
||||
LEFT JOIN
|
||||
case_report t2
|
||||
ON
|
||||
t1.report_id = t2.report_id
|
||||
WHERE
|
||||
t1.is_delete = 0 AND t2.is_delete = 0 AND t1.task_dept_id IS NOT NULL AND t1.task_dept_id != '' AND t1.status = #{status}
|
||||
<if test="keywords != null and keywords != ''">
|
||||
AND (
|
||||
t1.task_name LIKE CONCAT('%', #{keywords}, '%')
|
||||
OR
|
||||
t1.report_code LIKE CONCAT('%', #{keywords}, '%')
|
||||
OR
|
||||
t2.report_area_name LIKE CONCAT('%', #{keywords}, '%')
|
||||
OR
|
||||
t2.case_parts_obj_name LIKE CONCAT('%', #{keywords}, '%')
|
||||
OR
|
||||
t2.case_type_name1 LIKE CONCAT('%', #{keywords}, '%')
|
||||
OR
|
||||
t2.case_type_name2 LIKE CONCAT('%', #{keywords}, '%')
|
||||
OR
|
||||
t2.report_content LIKE CONCAT('%', #{keywords}, '%')
|
||||
)
|
||||
</if>
|
||||
AND
|
||||
t1.task_dept_id REGEXP '${departmentListIds}'
|
||||
ORDER BY
|
||||
t1.gmt_create DESC
|
||||
</select>
|
||||
|
||||
<!-- 新增超时事件 -->
|
||||
<insert id="save" parameterType="map">
|
||||
INSERT INTO case_timeout(
|
||||
|
@ -75,8 +75,64 @@
|
||||
<result column="creator" property="creator"/>
|
||||
</resultMap>
|
||||
|
||||
<!-- 统计单位下的预警事件 -->
|
||||
<select id="countDept" parameterType="map" resultType="Integer">
|
||||
SELECT
|
||||
COUNT(t1.id)
|
||||
FROM
|
||||
case_warning t1
|
||||
LEFT JOIN
|
||||
case_report t2
|
||||
ON
|
||||
t1.report_id = t2.report_id
|
||||
WHERE
|
||||
t1.is_delete = 0 AND t2.is_delete = 0 AND t1.task_dept_id IS NOT NULL AND t1.task_dept_id != '' AND t1.warning_status = #{warningStatus} AND t1.task_dept_id REGEXP '${departmentListIds}'
|
||||
</select>
|
||||
|
||||
|
||||
<!-- 单位案件预警列表 -->
|
||||
<select id="listDept" parameterType="map" resultMap="warningDTO">
|
||||
SELECT
|
||||
t1.warning_id,
|
||||
t1.report_id,
|
||||
t1.report_code,
|
||||
t1.task_name,
|
||||
t1.task_id,
|
||||
t1.task_user_id,
|
||||
t1.task_user_name,
|
||||
t1.warning_type,
|
||||
t1.warning_level,
|
||||
t1.warning_status,
|
||||
t1.gmt_create
|
||||
FROM
|
||||
case_warning t1
|
||||
LEFT JOIN
|
||||
case_report t2
|
||||
ON
|
||||
t1.report_id = t2.report_id
|
||||
WHERE
|
||||
t1.is_delete = 0 AND t2.is_delete = 0 AND t1.task_dept_id IS NOT NULL AND t1.task_dept_id != '' AND t1.warning_status = #{warningStatus}
|
||||
<if test="keywords != null and keywords != ''">
|
||||
AND (
|
||||
t1.task_name LIKE CONCAT('%', #{keywords}, '%')
|
||||
OR
|
||||
t1.report_code LIKE CONCAT('%', #{keywords}, '%')
|
||||
OR
|
||||
t2.report_area_name LIKE CONCAT('%', #{keywords}, '%')
|
||||
OR
|
||||
t2.case_parts_obj_name LIKE CONCAT('%', #{keywords}, '%')
|
||||
OR
|
||||
t2.case_type_name1 LIKE CONCAT('%', #{keywords}, '%')
|
||||
OR
|
||||
t2.case_type_name2 LIKE CONCAT('%', #{keywords}, '%')
|
||||
OR
|
||||
t2.report_content LIKE CONCAT('%', #{keywords}, '%')
|
||||
)
|
||||
</if>
|
||||
AND
|
||||
t1.task_dept_id REGEXP '${departmentListIds}'
|
||||
ORDER BY
|
||||
t1.gmt_create DESC
|
||||
</select>
|
||||
|
||||
|
||||
<!-- 新增案件预警 -->
|
||||
|
@ -47,7 +47,17 @@
|
||||
<div style="text-align: center;width:100% !important;font-size: 17px">
|
||||
<input id="areaParentId" type="hidden" value="{{d.areaParentId}}"/>
|
||||
<input id="areaId" type="hidden" value="{{d.areaId}}"/>
|
||||
<h2 style="cursor:pointer;" class="{{d.areaId == '110889' ? '' : 'callback'}}">{{d.areaId == '110889' ? '' : '<i class="fa fa-lg fa-reply-all "></i>'}}<u >{{d.areaName}}</u> <!--{{d.title}}--></h2>
|
||||
<h2 style="cursor:pointer;" class="{{d.areaId == d.areaParentId ? '' : 'callback'}}">
|
||||
<button type="button" id="back" class="layui-btn layui-btn-sm layui-left callback" style="float:left;">
|
||||
<i class="fa fa-lg fa-reply-all"></i> 后退
|
||||
</button>
|
||||
{{d.areaName}}
|
||||
</h2>
|
||||
<!-- dto.setAreaParentName(areaDTO.getAreaLevel().equals(areaDataDTO.getAreaLevel()) ?areaDataDTO.getAreaName() : areaDTO.getAreaParentName());-->
|
||||
<!-- dto.setAreaParentId(areaDTO.getAreaLevel().equals(areaDataDTO.getAreaLevel()) ? areaDataDTO.getAreaId() : areaDTO.getAreaParentId());-->
|
||||
<!-- -->
|
||||
|
||||
<!-- <h2 style="cursor:pointer;" class="{{d.areaId == d.areaParentId ? '' : 'callback'}}">{{d.areaId == d.areaParentId ? '' : '<i class="fa fa-lg fa-reply-all "></i>'}}<u >{{d.areaName}}</u> <!–{{d.title}}–></h2>-->
|
||||
</div>
|
||||
</script>
|
||||
</div>
|
||||
|
@ -149,6 +149,44 @@
|
||||
<div class="layui-card-header">
|
||||
统一监管
|
||||
</div>
|
||||
<div class="layui-card-body">
|
||||
<div class="layui-row layui-col-space10 ">
|
||||
<div class="layui-col-xs3 ">
|
||||
<a href="javascript:;" lay-href="route/warning/list-dept.html" class="openUrl">
|
||||
<i class="layui-icon layui-icon-notice"></i>
|
||||
<cite>
|
||||
预警事件
|
||||
<span class="layui-badge" id="warningNum">0</span>
|
||||
</cite>
|
||||
</a>
|
||||
</div>
|
||||
<div class="layui-col-xs3 ">
|
||||
<a href="javascript:;" lay-href="route/difficult/list-area.html" class="openUrl">
|
||||
<i class="layui-icon layui-icon-tips"></i>
|
||||
<cite>
|
||||
疑难事件<span class="layui-badge layui-bg-orange" id="difficultNum">0</span>
|
||||
</cite>
|
||||
</a>
|
||||
</div>
|
||||
<div class="layui-col-xs3 ">
|
||||
<a href="javascript:;" lay-href="route/sample/list-area.html" class="openUrl">
|
||||
<i class="layui-icon layui-icon-note"></i>
|
||||
<cite>
|
||||
标杆事件<span class="layui-badge layui-bg-green" id="sampleNum">0</span>
|
||||
</cite>
|
||||
</a>
|
||||
</div>
|
||||
<div class="layui-col-xs3 ">
|
||||
<a href="javascript:;" lay-href="route/timeout/list-dept.html" class="openUrl">
|
||||
<i class="layui-icon layui-icon-notice"></i>
|
||||
<cite>
|
||||
超时事件
|
||||
<span class="layui-badge" id="timeoutNum">0</span>
|
||||
</cite>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-card-body">
|
||||
<div class="layui-row layui-col-space10 ">
|
||||
<div class="layui-col-xs3 ">
|
||||
@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* 统计案件数量
|
||||
|
Loading…
Reference in New Issue
Block a user