| | |
| | | public void invoke(SysExpertInfoExcelVO sysExpertInfoExcelVO, AnalysisContext analysisContext) { |
| | | if(!StringUtils.isBlank(sysExpertInfoExcelVO.getName())){ |
| | | cachedDateList.add(sysExpertInfoExcelVO); |
| | | }else{ |
| | | System.out.println("ffffff"); |
| | | } |
| | | if(cachedDateList.size()>=BATCH_COUNT){ |
| | | saveData(); |
| | |
| | | SysExpertInfo existExpertInfo = SpringUtil.getBean(SysExpertInfoService.class).getOne(Wrappers.<SysExpertInfo>lambdaQuery() |
| | | .eq(true, SysExpertInfo::getIdCard, idCard) |
| | | .last(" limit 1")); |
| | | List<String> safetyArray = new ArrayList<>(); |
| | | if(!StringUtils.isBlank(direction)) { |
| | | direction=direction.replace("安全生产:","").trim(); |
| | | String[] splits = direction.split("、"); |
| | | List<String> safetyArray=new ArrayList<>(); |
| | | for(String str:splits){ |
| | | str=str.trim(); |
| | | String code="1"; |
| | |
| | | } |
| | | safetyArray.add(code); |
| | | } |
| | | }else{ |
| | | safetyArray.add("5"); |
| | | } |
| | | if(existExpertInfo!=null){ |
| | | existExpertInfo.setState(2); |
| | | existExpertInfo.setSupportDirectionSafety(String.join( ",",safetyArray)); |