| | |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.*; |
| | | import java.util.regex.Matcher; |
| | | import java.util.regex.Pattern; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | |
| | | .eq(ApplyDetail::getApplyId,insuranceApply.getId()) |
| | | .eq(ApplyDetail::getIdcardNo,model.getIdCard()) |
| | | /* .le(ApplyDetail::getStartTime,DateUtil.getMontageDate(new Date(),1))*/ |
| | | .ge(ApplyDetail::getEndTime,DateUtil.getMontageDate(new Date(),3))); |
| | | .ge(ApplyDetail::getEndTime,DateUtil.getMontageDate(new Date(),3)) |
| | | .orderByAsc(ApplyDetail::getEndTime) |
| | | .last(" limit 1 ") |
| | | ); |
| | | if(detail == null){ |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(), "当前保单下,员工【" + model.getName()+model.getIdCard() + "】非在保人员,无法进行该操作"); |
| | | } |
| | |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(),"对不起,保险方案下未查询到工种信息"); |
| | | } |
| | | } |
| | | |
| | | //String pattern = "^[\\u4e00-\\u9fa5\\d·]+$"; |
| | | String pattern = "^[\\u4e00-\\u9fa5·]*$"; |
| | | Pattern r = Pattern.compile(pattern); |
| | | index = Constants.TWO; |
| | | for(MemberImport model : dataList){ |
| | | Matcher m = r.matcher(model.getName()); |
| | | if (!m.matches()) { |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(),"对不起,"+model.getName() + "姓名无效,请检查后重试"); |
| | | } |
| | | //检查派遣单位和工种有效性 |
| | | dealDuAndWorktype(model,index,dispatchUnitList,solutions,solutionWorktypeList); |
| | | index += 1; |