| | |
| | | @Autowired |
| | | private WorkPlansExtMapper workPlansExtMapper; |
| | | @Autowired |
| | | private CompanyExtService companyExtService; |
| | | @Autowired |
| | | private DepartmentExtService departmentExtService; |
| | | @Autowired |
| | | private RouteProcedureExtMapper routeProcedureExtMapper; |
| | | @Autowired |
| | | private PlansExtMapper plansExtMapper; |
| | |
| | | private WStockExtMapper stockExtMapper; |
| | | @Autowired |
| | | private WorkorderRecordExtMapper workorderRecordExtMapper; |
| | | @Autowired |
| | | private DepartmentExtService departmentExtService; |
| | | @Autowired |
| | | private DeviceCheckExtService deviceCheckExtService; |
| | | @Autowired |
| | |
| | | return result; |
| | | } |
| | | @Override |
| | | public List<DepartmentExtListVO> getDepartmentList(Integer companyId){ |
| | | CompanyExtListVO companyExtListVO = companyExtService.getModelById(companyId); |
| | | if(companyExtListVO == null || Constants.equalsInteger(companyExtListVO.getDeleted(), Constants.ONE)){ |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY.getCode(),"对不起,企业或者部门信息不合法,如有疑问,请联系系统管理员"); |
| | | } |
| | | QueryDepartmentExtDTO param = new QueryDepartmentExtDTO(); |
| | | param.setDeleted(Constants.ZERO); |
| | | param.setCompanyId(companyId); |
| | | param.setType(Constants.DEPART_TYPE.com); |
| | | List<DepartmentExtListVO> result = departmentExtService.findList(param); |
| | | return result; |
| | | } |
| | | @Override |
| | | public List<Unqualified7DayModel> getUnqualified7DayData(Integer companyId, Integer departId, Integer procedureId) { |
| | | DepartmentExtListVO department = departmentExtService.getModelById(companyId,departId); |
| | | if(department == null || Constants.equalsInteger(department.getDeleted(), Constants.ONE)){ |