|  |  |  | 
|---|
|  |  |  | if(user.getProcedureIds()!=null){ | 
|---|
|  |  |  | pageWrap.setProcedureIds(user.getProcedureIds()); | 
|---|
|  |  |  | }else{ | 
|---|
|  |  |  | pageWrap.setUserId(user.getId()); | 
|---|
|  |  |  | pageWrap.setCreateUser(user.getId()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | List<PlansExtListVO> result = plansExtMapper.selectList(pageWrap); | 
|---|
|  |  |  | if(result==null||result.size()==0){ | 
|---|
|  |  |  | 
|---|
|  |  |  | pageWrap.getModel().setCreateUser(user.getId()); | 
|---|
|  |  |  | //否则走数据权限 | 
|---|
|  |  |  | pageWrap.getModel().setDepartIds(dataPermission); | 
|---|
|  |  |  | /*   if(dataPermission.size() == 0){ | 
|---|
|  |  |  | //只能看自己的 | 
|---|
|  |  |  | pageWrap.getModel().setCreateUser(user.getId()); | 
|---|
|  |  |  | }else{ | 
|---|
|  |  |  |  | 
|---|
|  |  |  | }*/ | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if(user.getProcedureIds()!=null){ | 
|---|
|  |  |  | pageWrap.getModel().setProcedureIds(user.getProcedureIds()); | 
|---|
|  |  |  | 
|---|
|  |  |  | public void autoWorkReport(LoginUserInfo user, AutoWorkReportDTO autoWorkReportDTO){ | 
|---|
|  |  |  | if(Objects.isNull(autoWorkReportDTO) | 
|---|
|  |  |  | || Objects.isNull(autoWorkReportDTO.getCreateWorkorderRecordDTO()) | 
|---|
|  |  |  | || Objects.isNull(autoWorkReportDTO.getProUserList()) | 
|---|
|  |  |  | || Objects.isNull(autoWorkReportDTO.getProUserList().size()==0) | 
|---|
|  |  |  | || Objects.isNull(autoWorkReportDTO.getCreateWorkorderRecordDTO().getUnQualifiedNum())|| autoWorkReportDTO.getCreateWorkorderRecordDTO().getUnQualifiedNum().compareTo(BigDecimal.ZERO) < Constants.ZERO | 
|---|
|  |  |  | || Objects.isNull(autoWorkReportDTO.getCreateWorkorderRecordDTO().getQualifiedNum())|| autoWorkReportDTO.getCreateWorkorderRecordDTO().getQualifiedNum().compareTo(BigDecimal.ZERO) < Constants.ZERO){ | 
|---|
|  |  |  | throw new BusinessException(ResponseStatus.BAD_REQUEST); | 
|---|