|
|
@ -25,6 +25,7 @@ import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
|
|
|
|
|
import java.util.Date; |
|
|
|
import java.util.List; |
|
|
|
import java.util.Map; |
|
|
|
|
|
|
@ -88,9 +89,12 @@ public class IcEmployeeRegisterServiceImpl extends BaseServiceImpl<IcEmployeeReg |
|
|
|
insert(insertEntity); |
|
|
|
detailEntity.setRegisterId(insertEntity.getId()); |
|
|
|
}else { |
|
|
|
origin.setMobile(dto.getMobile()); |
|
|
|
origin.setName(dto.getName()); |
|
|
|
updateById(origin); |
|
|
|
if(!origin.getName().equals(dto.getName())||!origin.getMobile().equals(dto.getMobile())){ |
|
|
|
origin.setMobile(dto.getMobile()); |
|
|
|
origin.setName(dto.getName()); |
|
|
|
origin.setUpdatedTime(new Date()); |
|
|
|
updateById(origin); |
|
|
|
} |
|
|
|
detailEntity.setRegisterId(origin.getId()); |
|
|
|
} |
|
|
|
icEmployeeRegisterDetailService.insert(detailEntity); |
|
|
|