|
@@ -244,6 +244,7 @@ public class DzfQuestionController {
|
|
@ApiOperation(value = "获取进度统计数据")
|
|
@ApiOperation(value = "获取进度统计数据")
|
|
@GetMapping("getProgressStatistics")
|
|
@GetMapping("getProgressStatistics")
|
|
public ResponseEntity<HashMap<Object,String>> getProgressStatistics(String start, String end) {
|
|
public ResponseEntity<HashMap<Object,String>> getProgressStatistics(String start, String end) {
|
|
|
|
+ HashMap<Object,String> result = new HashMap<>();
|
|
if (start.equals("")){
|
|
if (start.equals("")){
|
|
Calendar calendar = Calendar.getInstance();
|
|
Calendar calendar = Calendar.getInstance();
|
|
int year = calendar.get(Calendar.YEAR);
|
|
int year = calendar.get(Calendar.YEAR);
|
|
@@ -252,35 +253,17 @@ public class DzfQuestionController {
|
|
end = year+"-"+ month + "-" + day;
|
|
end = year+"-"+ month + "-" + day;
|
|
start =year+"-"+month+"-01";
|
|
start =year+"-"+month+"-01";
|
|
}
|
|
}
|
|
- DzfQuestionDTO dzfQuestionDTO=new DzfQuestionDTO();
|
|
|
|
- // UserDTO userDTO = UserUtils.getCurrentUserDTO();
|
|
|
|
-// //企业(能看到自己企业的问题)
|
|
|
|
-// if(userDTO.getRoleIds().equals("38a14f1f42ed424eab4cb5d489596b0d")){
|
|
|
|
-// EnterpriseInfoDTO ei=enterpriseInfoService.findByUserid ( userDTO.getLoginName());
|
|
|
|
-// dzfQuestionDTO.setQyId(ei.getId());
|
|
|
|
-// }
|
|
|
|
-//
|
|
|
|
-// QueryWrapper queryWrapper = QueryWrapperGenerator.buildQueryCondition (dzfQuestionDTO, DzfQuestionDTO.class);
|
|
|
|
-// //挂钩干部(能看到对应企业)
|
|
|
|
-// if(userDTO.getRoleIds().equals("1910141956174053377")){
|
|
|
|
-// queryWrapper.eq ("ei.bz6", userDTO.getLoginName() ); // 排除已经删除
|
|
|
|
-// }
|
|
|
|
-// //办公室(能看到所有提交的问题)
|
|
|
|
-// if(userDTO.getRoleIds().equals("1910175386924417025")){
|
|
|
|
-// queryWrapper.ne ("a.states", "0" ); // 排除已经删除
|
|
|
|
-// }
|
|
|
|
-// //办理部门
|
|
|
|
-// if(userDTO.getRoleIds().equals("1910175949166673921")){
|
|
|
|
-// queryWrapper.eq ("c.des3", userDTO.getLoginName() ); // 筛选流程中涉及到自己的
|
|
|
|
-// IPage<DzfQuestionDTO> result = dzfQuestionService.findPage2 (page, queryWrapper);
|
|
|
|
-// return ResponseEntity.ok (result);
|
|
|
|
-// }else{
|
|
|
|
-// IPage<DzfQuestionDTO> result = dzfQuestionService.findPage (page, queryWrapper);
|
|
|
|
-// return ResponseEntity.ok (result);
|
|
|
|
-// }
|
|
|
|
- HashMap<Object,String> result = dzfQuestionService.getProgressStatistics(start,end);
|
|
|
|
|
|
+ UserDTO userDTO = UserUtils.getCurrentUserDTO();
|
|
|
|
+ //办理部门
|
|
|
|
+ if(userDTO.getRoleIds().equals("1910175949166673921")){
|
|
|
|
+ result = dzfQuestionService.getProgressStatistics2(start,end,userDTO.getLoginName());
|
|
|
|
+ }else{
|
|
|
|
+ result = dzfQuestionService.getProgressStatistics(start,end);
|
|
|
|
+ }
|
|
|
|
+
|
|
return ResponseEntity.ok ( result );
|
|
return ResponseEntity.ok ( result );
|
|
}
|
|
}
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 问题诉求列表数据
|
|
* 问题诉求列表数据
|
|
*/
|
|
*/
|
|
@@ -288,7 +271,25 @@ public class DzfQuestionController {
|
|
@ApiOperation(value = "查询问题诉求列表数据")
|
|
@ApiOperation(value = "查询问题诉求列表数据")
|
|
@PreAuthorize("hasAuthority('question:dzfQuestion:list')")
|
|
@PreAuthorize("hasAuthority('question:dzfQuestion:list')")
|
|
@GetMapping("list2")
|
|
@GetMapping("list2")
|
|
- public ResponseEntity<IPage<DzfQuestionDTO>> list2(String state, Page<DzfQuestionDTO> page) throws Exception {
|
|
|
|
|
|
+ public ResponseEntity<IPage<DzfQuestionDTO>> list2(String start,String end,String state, Page<DzfQuestionDTO> page) throws Exception {
|
|
|
|
+
|
|
|
|
+ UserDTO userDTO = UserUtils.getCurrentUserDTO();
|
|
|
|
+ //办理部门
|
|
|
|
+ if(userDTO.getRoleIds().equals("1910175949166673921")){
|
|
|
|
+ IPage<DzfQuestionDTO> result = dzfQuestionService.findPage4 (page, state,start,end,userDTO.getLoginName());
|
|
|
|
+ return ResponseEntity.ok (result);
|
|
|
|
+ }else{
|
|
|
|
+ IPage<DzfQuestionDTO> result = dzfQuestionService.findPage3 (page, state,start,end);
|
|
|
|
+ return ResponseEntity.ok (result);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 已办结统计
|
|
|
|
+ */
|
|
|
|
+ @ApiLog("已办结统计")
|
|
|
|
+ @GetMapping("getReportFinishVisit")
|
|
|
|
+ public ResponseEntity<List<List<HashMap<String, Object>>>> getReportFinishVisit(String start, String end) throws Exception {
|
|
|
|
|
|
// UserDTO userDTO = UserUtils.getCurrentUserDTO();
|
|
// UserDTO userDTO = UserUtils.getCurrentUserDTO();
|
|
// //企业(能看到自己企业的问题)
|
|
// //企业(能看到自己企业的问题)
|
|
@@ -315,10 +316,46 @@ public class DzfQuestionController {
|
|
// IPage<DzfQuestionDTO> result = dzfQuestionService.findPage (page, queryWrapper);
|
|
// IPage<DzfQuestionDTO> result = dzfQuestionService.findPage (page, queryWrapper);
|
|
// return ResponseEntity.ok (result);
|
|
// return ResponseEntity.ok (result);
|
|
// }
|
|
// }
|
|
- IPage<DzfQuestionDTO> result = dzfQuestionService.findPage3 (page, state);
|
|
|
|
- return ResponseEntity.ok (result);
|
|
|
|
|
|
+ List<List<HashMap<String, Object>>> result = dzfQuestionService.getFinish (start, end);
|
|
|
|
+ return ResponseEntity.ok (result);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 正在处理统计
|
|
|
|
+ */
|
|
|
|
+// @ApiLog("正在处理统计")
|
|
|
|
+// @GetMapping("getReportContinueVisit")
|
|
|
|
+// public ResponseEntity<List<List<HashMap<String, Object>>>> getReportContinueVisit(String start, String end) throws Exception {
|
|
|
|
+//
|
|
|
|
+//// UserDTO userDTO = UserUtils.getCurrentUserDTO();
|
|
|
|
+//// //企业(能看到自己企业的问题)
|
|
|
|
+//// if(userDTO.getRoleIds().equals("38a14f1f42ed424eab4cb5d489596b0d")){
|
|
|
|
+//// EnterpriseInfoDTO ei=enterpriseInfoService.findByUserid ( userDTO.getLoginName());
|
|
|
|
+//// dzfQuestionDTO.setQyId(ei.getId());
|
|
|
|
+//// }
|
|
|
|
+////
|
|
|
|
+//// QueryWrapper queryWrapper = QueryWrapperGenerator.buildQueryCondition (dzfQuestionDTO, DzfQuestionDTO.class);
|
|
|
|
+//// //挂钩干部(能看到对应企业)
|
|
|
|
+//// if(userDTO.getRoleIds().equals("1915280292672946177")){
|
|
|
|
+//// queryWrapper.eq ("ei.bz6", userDTO.getLoginName() ); // 排除已经删除
|
|
|
|
+//// }
|
|
|
|
+//// //办公室(能看到所有提交的问题)
|
|
|
|
+//// if(userDTO.getRoleIds().equals("1910175386924417025")){
|
|
|
|
+//// queryWrapper.ne ("a.states", "0" ); // 排除已经删除
|
|
|
|
+//// }
|
|
|
|
+//// //办理部门
|
|
|
|
+//// if(userDTO.getRoleIds().equals("1910175949166673921")){
|
|
|
|
+//// queryWrapper.eq ("c.des3", userDTO.getLoginName() ); // 筛选流程中涉及到自己的
|
|
|
|
+//// IPage<DzfQuestionDTO> result = dzfQuestionService.findPage2 (page, queryWrapper);
|
|
|
|
+//// return ResponseEntity.ok (result);
|
|
|
|
+//// }else{
|
|
|
|
+//// IPage<DzfQuestionDTO> result = dzfQuestionService.findPage (page, queryWrapper);
|
|
|
|
+//// return ResponseEntity.ok (result);
|
|
|
|
+//// }
|
|
|
|
+// List<List<HashMap<String, Object>>> result = dzfQuestionService.getReportContinueVisit (start, end);
|
|
|
|
+// return ResponseEntity.ok (result);
|
|
|
|
+// }
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 导出问题诉求数据
|
|
* 导出问题诉求数据
|
|
*
|
|
*
|