| | |
| | | List<Worktype> list = worktypeMapper.selectList(new QueryWrapper<Worktype>().lambda() |
| | | .eq(Worktype::getIsdeleted,Constants.ZERO) |
| | | .eq(Worktype::getDataType,Constants.TWO) |
| | | .eq(Worktype::getStatus,Constants.ZERO) |
| | | .apply(workTypeQueryDTO.getQueryType().equals(Constants.ZERO), |
| | | "id in ( select sw.worktype_id from solution_worktype sw where sw.SOLUTION_ID = "+workTypeQueryDTO.getId()+" )") |
| | | .apply(workTypeQueryDTO.getQueryType().equals(Constants.ONE), |
| | | "id in ( select dw.work_type_id from du_worktype dw where dw.du_solution_id = "+workTypeQueryDTO.getId()+" )") |
| | | "id in ( select dw.work_type_id from du_worktype dw where dw.status = 1 and dw.du_solution_id = "+workTypeQueryDTO.getId()+" )") |
| | | .apply(workTypeQueryDTO.getQueryType().equals(Constants.TWO), |
| | | "id in ( select dw.WORKTYPE_ID from apply_detail dw where dw.APPLY_ID = "+workTypeQueryDTO.getId()+" )") |
| | | ); |
| | |
| | | ExcelImporter ie = null; |
| | | List<WorktypeImport> dataList =null; |
| | | try { |
| | | ie = new ExcelImporter(file,0,0); |
| | | ie = new ExcelImporter(file,1,0); |
| | | dataList = ie.getDataList(WorktypeImport.class,null); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | |
| | | } |
| | | List<String> result = new ArrayList<>(); |
| | | for(WorktypeImport model : dataList){ |
| | | if(StringUtils.isBlank(model.getName())){ |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(),"对不起,录入数据存在异常"); |
| | | } |
| | | // if(StringUtils.isNotBlank(model.getName()) && !isNewWorkTypeByName(model.getName(),list)){ |
| | | result.add(model.getName()); |
| | | // } |