|
@@ -83,7 +83,7 @@ public class GwCirculationCard2Controller {
|
|
@ApiOperation(value = "查询公文流转列表数据(含待办筛选)")
|
|
@ApiOperation(value = "查询公文流转列表数据(含待办筛选)")
|
|
@PreAuthorize("hasAuthority('circulation2:gwCirculationCard2:list')")
|
|
@PreAuthorize("hasAuthority('circulation2:gwCirculationCard2:list')")
|
|
@GetMapping("list2")
|
|
@GetMapping("list2")
|
|
- public ResponseEntity<IPage<GwCirculationCard2DTO>> list2(GwCirculationCard2DTO gwCirculationCard2DTO, Page<GwCirculationCard2DTO> page) throws Exception {
|
|
|
|
|
|
+ public ResponseEntity<IPage<GwCirculationCard2DTO>> list2(GwCirculationCard2DTO gwCirculationCard2DTO, Page<GwCirculationCard2> page) throws Exception {
|
|
//除 管理员、办公室管理员 之外的角色需要判断是否涉及自己流程
|
|
//除 管理员、办公室管理员 之外的角色需要判断是否涉及自己流程
|
|
UserDTO userDTO=UserUtils.getCurrentUserDTO();
|
|
UserDTO userDTO=UserUtils.getCurrentUserDTO();
|
|
List<RoleDTO> list=userDTO.getRoleDTOList();
|
|
List<RoleDTO> list=userDTO.getRoleDTOList();
|
|
@@ -100,17 +100,21 @@ public class GwCirculationCard2Controller {
|
|
// result = gwCirculationCard2Wrapper.toDTO ( gwCirculationCard2Service.page (page, queryWrapper) );
|
|
// result = gwCirculationCard2Wrapper.toDTO ( gwCirculationCard2Service.page (page, queryWrapper) );
|
|
// }else{
|
|
// }else{
|
|
//
|
|
//
|
|
- GwCirculationCard2DTO gwCirculationCard2DTO2=new GwCirculationCard2DTO();
|
|
|
|
- QueryWrapper queryWrapper = QueryWrapperGenerator.buildQueryCondition (gwCirculationCard2DTO2, GwCirculationCard2DTO.class);
|
|
|
|
-
|
|
|
|
|
|
+ String state=gwCirculationCard2DTO.getState();
|
|
|
|
+ gwCirculationCard2DTO.setState("");
|
|
|
|
+ QueryWrapper queryWrapper = QueryWrapperGenerator.buildQueryCondition (gwCirculationCard2DTO, GwCirculationCard2DTO.class);
|
|
|
|
|
|
queryWrapper.eq ("a.del_flag", 0 ); // 排除已经删除
|
|
queryWrapper.eq ("a.del_flag", 0 ); // 排除已经删除
|
|
queryWrapper.eq ("b.del_flag", 0 ); // 排除已经删除
|
|
queryWrapper.eq ("b.del_flag", 0 ); // 排除已经删除
|
|
- queryWrapper.eq ("b.update_by_id", userDTO.getId() );
|
|
|
|
- if(gwCirculationCard2DTO.getState()!=null&&!gwCirculationCard2DTO.getState().equals("null")&&!gwCirculationCard2DTO.getState().equals("")){
|
|
|
|
- queryWrapper.ne ("a.state", gwCirculationCard2DTO.getState() );
|
|
|
|
- if(!gwCirculationCard2DTO.getState().equals("1")){
|
|
|
|
- queryWrapper.ne ("b.state", gwCirculationCard2DTO.getState() );
|
|
|
|
|
|
+
|
|
|
|
+ if(!isadmin){
|
|
|
|
+ queryWrapper.eq ("b.update_by_id", userDTO.getId() );
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if(state!=null&&!state.equals("null")&&!state.equals("")){
|
|
|
|
+ queryWrapper.eq ("a.state", state );
|
|
|
|
+ if(!state.equals("1")){
|
|
|
|
+ queryWrapper.eq ("b.state", state );
|
|
}
|
|
}
|
|
}
|
|
}
|
|
queryWrapper.groupBy("a.id");
|
|
queryWrapper.groupBy("a.id");
|