|
@@ -34,6 +34,7 @@ import com.jeeplus.circulation2.service.GwCirculationCard2Service;
|
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
|
|
|
import java.io.IOException;
|
|
|
+import java.util.HashMap;
|
|
|
import java.util.List;
|
|
|
import java.util.UUID;
|
|
|
|
|
@@ -123,37 +124,18 @@ public class GwCirculationCard2Controller {
|
|
|
|
|
|
// }
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
return ResponseEntity.ok (result);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 公文流转列表数据(含待办筛选)
|
|
|
+ * 获取统计
|
|
|
*/
|
|
|
- @ApiLog("查询公文流转列表数据(含待办筛选)")
|
|
|
- @ApiOperation(value = "查询公文流转列表数据(含待办筛选)")
|
|
|
- @GetMapping("list3")
|
|
|
- public ResponseEntity<IPage<GwCirculationCard2DTO>> list3(String state,String size,String current) throws Exception {
|
|
|
- //除 管理员、办公室管理员 之外的角色需要判断是否涉及自己流程
|
|
|
+ @ApiLog("获取统计")
|
|
|
+ @ApiOperation(value = "获取统计")
|
|
|
+ @GetMapping("getStatistics")
|
|
|
+ public ResponseEntity<HashMap<String, Object>> getStatistics() {
|
|
|
UserDTO userDTO=UserUtils.getCurrentUserDTO();
|
|
|
- List<RoleDTO> list=userDTO.getRoleDTOList();
|
|
|
- boolean isadmin=false;
|
|
|
- for (RoleDTO aa:list) {
|
|
|
- if(aa.getName().equals("租户管理员")||aa.getName().equals("管理员")||aa.getName().equals("办公室管理员")){
|
|
|
- isadmin=true;
|
|
|
- }
|
|
|
- }
|
|
|
- IPage<GwCirculationCard2DTO> result = null;
|
|
|
- if(isadmin){
|
|
|
-
|
|
|
- }else{
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- return ResponseEntity.ok (result);
|
|
|
+ return ResponseEntity.ok ( gwCirculationCard2Service.getStatistics ( userDTO.getId() ) );
|
|
|
}
|
|
|
|
|
|
|