| | |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.*; |
| | | import java.util.regex.Matcher; |
| | | import java.util.regex.Pattern; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | |
| | | 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; |