| | |
| | | import cn.huge.module.cust.constant.UserBaseConsts; |
| | | import cn.huge.module.cust.dto.CtUnitDTO; |
| | | import cn.huge.module.cust.dto.CtUserDTO; |
| | | import cn.huge.module.draft.domain.po.CasedraftInfo; |
| | | import cn.huge.module.draft.service.CasedraftInfoService; |
| | | import cn.huge.module.mediate.constant.AuditBaseConsts; |
| | | import cn.huge.module.mediate.constant.AuditBaseConstsEnum; |
| | | import cn.huge.module.disp.constant.DispBaseConstsEnum; |
| | |
| | | private CaseAssistInfoService caseAssistInfoService; |
| | | @Autowired |
| | | private CaseDismissService caseDismissService; |
| | | @Autowired |
| | | private CasedraftInfoService casedraftInfoService; |
| | | |
| | | /** |
| | | * 更新对象 |
| | |
| | | TabButtonInfoDTO daxx = new TabButtonInfoDTO(); |
| | | daxx.setId("daxx"); |
| | | daxx.setName("档案信息"); |
| | | TabButtonInfoDTO byslxq = new TabButtonInfoDTO(); |
| | | byslxq.setId("byslxq"); |
| | | byslxq.setName("详情"); |
| | | |
| | | // 定义button |
| | | TabButtonInfoDTO tjbljl = new TabButtonInfoDTO(); |
| | |
| | | List<TabButtonInfoDTO> buttonList = new LinkedList<>(); |
| | | if (ObjectUtils.isNotEmpty(caseTask)) { |
| | | // 不予受理 |
| | | if (CaseTaskConsts.HANDLE_RESULT_3 == caseTask.getHandleResult()){ |
| | | tabList.add(daxx); |
| | | if (ObjectUtils.isNotEmpty(caseTask.getHandleResult()) && CaseTaskConsts.HANDLE_RESULT_3 == caseTask.getHandleResult()){ |
| | | tabList.add(byslxq); |
| | | tabList.add(sqjl); |
| | | |
| | | }else { |
| | |
| | | long countAppearReview = caseAppearService.countAppearReview(loginUser.getUnitId()); |
| | | long countAssistReview = caseAssistApplyService.countAssistReview(loginUser.getUnitId()); |
| | | frontPageCountDTO.setWaitReview(countApplyReview+countReturnReview+countAppearReview+countAssistReview); |
| | | // 已办 |
| | | Map<String, Object> ybTerms = new HashMap<>(); |
| | | ybTerms.put("handleUnitId", loginUser.getUnitId()); |
| | | long alreadyDone = mapper.countMyTaskYb(ybTerms); |
| | | frontPageCountDTO.setAlreadyDone(alreadyDone); |
| | | // 已办 |
| | | Map<String, Object> cgTerms = new HashMap<>(); |
| | | cgTerms.put("inputUnitId", loginUser.getUnitId()); |
| | | long caseDraft = casedraftInfoService.countTerms(cgTerms); |
| | | frontPageCountDTO.setCaseDraft(caseDraft); |
| | | return frontPageCountDTO; |
| | | }catch (Exception e) { |
| | | log.error("[CaseTaskService.getCountList]调用失败,异常信息:" + e, e); |
| | |
| | | try { |
| | | long total = mapper.countMyTaskFp(terms); |
| | | List<FrontPageListFPDTO> frontPageListFPDTOList = mapper.pageMyTaskFp(page, terms); |
| | | for (FrontPageListFPDTO frontPageListFPDTO: frontPageListFPDTOList){ |
| | | // 查询督办次数 |
| | | |
| | | } |
| | | return new PageImpl<FrontPageListFPDTO>(frontPageListFPDTOList, page, total); |
| | | }catch (Exception e) { |
| | | log.error("[CaseTaskService.pageMyTaskFp]调用失败,异常信息:" + e, e); |
| | |
| | | public List<SignTaskDTO> listIdByTerms(Map<String, Object> terms){ |
| | | return mapper.listIdByTerms(terms); |
| | | } |
| | | |
| | | /** |
| | | * web端-工作台-已办事项 |
| | | * @param page 分页对象 |
| | | * @param terms 条件 |
| | | * @return Page |
| | | */ |
| | | public Page<FrontPageListYBDTO> pageMyTaskYb(PageRequest page, Map<String, Object> terms){ |
| | | try { |
| | | long total = mapper.countMyTaskYb(terms); |
| | | List<FrontPageListYBDTO> frontPageListYBDTOList = mapper.pageMyTaskYb(page, terms); |
| | | return new PageImpl<FrontPageListYBDTO>(frontPageListYBDTOList, page, total); |
| | | }catch (Exception e) { |
| | | log.error("[CaseTaskService.pageMyTaskYb]调用失败,异常信息:" + e, e); |
| | | throw new ServiceException("CaseTaskService.pageMyTaskYb", e); |
| | | } |
| | | } |
| | | |
| | | } |