|  | @ -7,10 +7,13 @@ import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; | 
			
		
	
		
		
			
				
					|  |  | import com.epmet.commons.tools.constant.FieldConstant; |  |  | import com.epmet.commons.tools.constant.FieldConstant; | 
			
		
	
		
		
			
				
					|  |  | import com.epmet.commons.tools.constant.NumConstant; |  |  | import com.epmet.commons.tools.constant.NumConstant; | 
			
		
	
		
		
			
				
					|  |  | import com.epmet.commons.tools.dto.result.CustomerStaffInfoCacheResult; |  |  | import com.epmet.commons.tools.dto.result.CustomerStaffInfoCacheResult; | 
			
		
	
		
		
			
				
					|  |  |  |  |  | import com.epmet.commons.tools.exception.EpmetErrorCode; | 
			
		
	
		
		
			
				
					|  |  | import com.epmet.commons.tools.exception.EpmetException; |  |  | import com.epmet.commons.tools.exception.EpmetException; | 
			
		
	
		
		
			
				
					|  |  |  |  |  | import com.epmet.commons.tools.exception.ErrorCode; | 
			
		
	
		
		
			
				
					|  |  | import com.epmet.commons.tools.page.PageData; |  |  | import com.epmet.commons.tools.page.PageData; | 
			
		
	
		
		
			
				
					|  |  | import com.epmet.commons.tools.redis.common.CustomerStaffRedis; |  |  | import com.epmet.commons.tools.redis.common.CustomerStaffRedis; | 
			
		
	
		
		
			
				
					|  |  | import com.epmet.commons.tools.utils.ConvertUtils; |  |  | import com.epmet.commons.tools.utils.ConvertUtils; | 
			
		
	
		
		
			
				
					|  |  |  |  |  | import com.epmet.commons.tools.utils.IdCardRegexUtils; | 
			
		
	
		
		
			
				
					|  |  | import com.epmet.dao.IcEmployeeRegisterDao; |  |  | import com.epmet.dao.IcEmployeeRegisterDao; | 
			
		
	
		
		
			
				
					|  |  | import com.epmet.dto.IcEmployeeRegisterDTO; |  |  | import com.epmet.dto.IcEmployeeRegisterDTO; | 
			
		
	
		
		
			
				
					|  |  | import com.epmet.dto.form.EmployeeRegisterListFormDTO; |  |  | import com.epmet.dto.form.EmployeeRegisterListFormDTO; | 
			
		
	
	
		
		
			
				
					|  | @ -22,6 +25,7 @@ import com.epmet.service.IcEmployeeRegisterService; | 
			
		
	
		
		
			
				
					|  |  | import com.github.pagehelper.PageHelper; |  |  | import com.github.pagehelper.PageHelper; | 
			
		
	
		
		
			
				
					|  |  | import com.github.pagehelper.PageInfo; |  |  | import com.github.pagehelper.PageInfo; | 
			
		
	
		
		
			
				
					|  |  | import org.apache.commons.collections4.CollectionUtils; |  |  | import org.apache.commons.collections4.CollectionUtils; | 
			
		
	
		
		
			
				
					|  |  |  |  |  | import org.apache.commons.lang3.RegExUtils; | 
			
		
	
		
		
			
				
					|  |  | import org.apache.commons.lang3.StringUtils; |  |  | import org.apache.commons.lang3.StringUtils; | 
			
		
	
		
		
			
				
					|  |  | import org.springframework.beans.factory.annotation.Autowired; |  |  | import org.springframework.beans.factory.annotation.Autowired; | 
			
		
	
		
		
			
				
					|  |  | import org.springframework.stereotype.Service; |  |  | import org.springframework.stereotype.Service; | 
			
		
	
	
		
		
			
				
					|  | @ -84,6 +88,9 @@ public class IcEmployeeRegisterServiceImpl extends BaseServiceImpl<IcEmployeeReg | 
			
		
	
		
		
			
				
					|  |  |     @Override |  |  |     @Override | 
			
		
	
		
		
			
				
					|  |  |     @Transactional(rollbackFor = Exception.class) |  |  |     @Transactional(rollbackFor = Exception.class) | 
			
		
	
		
		
			
				
					|  |  |     public void save(IcEmployeeRegisterDTO dto) { |  |  |     public void save(IcEmployeeRegisterDTO dto) { | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         if (!IdCardRegexUtils.validateIdCard(dto.getIdCard())) { | 
			
		
	
		
		
			
				
					|  |  |  |  |  |             throw new EpmetException(EpmetErrorCode.ID_CARD_ERROR.getCode()); | 
			
		
	
		
		
			
				
					|  |  |  |  |  |         } | 
			
		
	
		
		
			
				
					|  |  |         IcEmployeeRegisterDetailEntity detailEntity = ConvertUtils.sourceToTarget(dto, IcEmployeeRegisterDetailEntity.class); |  |  |         IcEmployeeRegisterDetailEntity detailEntity = ConvertUtils.sourceToTarget(dto, IcEmployeeRegisterDetailEntity.class); | 
			
		
	
		
		
			
				
					|  |  |         // 先看看存在不
 |  |  |         // 先看看存在不
 | 
			
		
	
		
		
			
				
					|  |  |         IcEmployeeRegisterEntity origin = baseDao.getEmployeeRegisterByIdCard(dto.getIdCard()); |  |  |         IcEmployeeRegisterEntity origin = baseDao.getEmployeeRegisterByIdCard(dto.getIdCard()); | 
			
		
	
	
		
		
			
				
					|  | 
 |