|
@@ -13,6 +13,7 @@ import com.jeeplus.common.TokenProvider;
|
|
|
import com.jeeplus.core.query.QueryWrapperGenerator;
|
|
|
import com.jeeplus.flowable.feign.IFlowableApi;
|
|
|
import com.jeeplus.human.enrollment.enrollmentRegistration.service.EnrollmentRegistrationService;
|
|
|
+import com.jeeplus.human.enrollment.enrollmentRegistration.utils.SnowFlake;
|
|
|
import com.jeeplus.human.practice.register.domain.Registration;
|
|
|
import com.jeeplus.human.practice.register.domain.RegistrationBank;
|
|
|
import com.jeeplus.human.practice.register.domain.RegistrationExperience;
|
|
@@ -167,7 +168,7 @@ public class RegistrationService extends ServiceImpl<InterRegistrationMapper, Re
|
|
|
UserDTO dto = new UserDTO();
|
|
|
//设置信息
|
|
|
// 生成id
|
|
|
- String amountId = UUID.randomUUID().toString().replace("-", "");
|
|
|
+ String amountId = SnowFlake.getId();
|
|
|
dto.setId(amountId);
|
|
|
dto.setName(report.getName());
|
|
|
dto.setPassword(SecurityUtils.encryptPassword("123456"));
|
|
@@ -244,7 +245,7 @@ public class RegistrationService extends ServiceImpl<InterRegistrationMapper, Re
|
|
|
String procDefId = map.get("id")+"";
|
|
|
|
|
|
//当流程结束的时候,发起工资卡信息完善流程
|
|
|
- String uid = UUID.randomUUID().toString().replace("-", "");
|
|
|
+ String uid = SnowFlake.getId();
|
|
|
RegistrationBank wageCard = new RegistrationBank();
|
|
|
wageCard.setId(uid);
|
|
|
wageCard.setCreateById("1");
|
|
@@ -279,7 +280,7 @@ public class RegistrationService extends ServiceImpl<InterRegistrationMapper, Re
|
|
|
if (CollectionUtils.isNotEmpty(familyMembers)){
|
|
|
familyMembers.forEach(fa->{
|
|
|
// 生成id
|
|
|
- String amountId = UUID.randomUUID().toString().replace("-", "");
|
|
|
+ String amountId = SnowFlake.getId();
|
|
|
fa.setId(amountId);
|
|
|
fa.setCreateById(userDTO.getId());
|
|
|
fa.setCreateTime(new Date());
|
|
@@ -333,14 +334,14 @@ public class RegistrationService extends ServiceImpl<InterRegistrationMapper, Re
|
|
|
// 删除基础信息表
|
|
|
if (integer <=0 && mobilePhoneOnly <=0){
|
|
|
|
|
|
- String id = UUID.randomUUID().toString().replace("-", "");
|
|
|
+ String id = SnowFlake.getId();
|
|
|
report.setId(id);
|
|
|
report.setCreateById("1");
|
|
|
report.setCreateTime(new Date());
|
|
|
report.setUpdateById("1");
|
|
|
report.setUpdateTime(new Date());
|
|
|
|
|
|
- String uid = UUID.randomUUID().toString().replace("-", "");
|
|
|
+ String uid = SnowFlake.getId();
|
|
|
report.setId(uid);
|
|
|
|
|
|
//先删除家庭成员信息,在重新添加
|
|
@@ -350,7 +351,7 @@ public class RegistrationService extends ServiceImpl<InterRegistrationMapper, Re
|
|
|
|
|
|
for (RegistrationFamilyMembers familyMember : familyMembers) {
|
|
|
// 生成id
|
|
|
- String amountId = UUID.randomUUID().toString().replace("-", "");
|
|
|
+ String amountId = SnowFlake.getId();
|
|
|
familyMember.setId(amountId);
|
|
|
familyMember.setCreateById("1");
|
|
|
familyMember.setCreateTime(new Date());
|
|
@@ -367,7 +368,7 @@ public class RegistrationService extends ServiceImpl<InterRegistrationMapper, Re
|
|
|
if (CollectionUtils.isNotEmpty(experiences)){
|
|
|
for (RegistrationExperience experience : experiences) {
|
|
|
// 生成id
|
|
|
- String amountId = UUID.randomUUID().toString().replace("-", "");
|
|
|
+ String amountId = SnowFlake.getId();
|
|
|
experience.setId(amountId);
|
|
|
experience.setCreateById("1");
|
|
|
experience.setCreateTime(new Date());
|
|
@@ -488,7 +489,7 @@ public class RegistrationService extends ServiceImpl<InterRegistrationMapper, Re
|
|
|
if (CollectionUtils.isNotEmpty(familyMembers)){
|
|
|
familyMembers.forEach(fa->{
|
|
|
// 生成id
|
|
|
- String amountId = UUID.randomUUID().toString().replace("-", "");
|
|
|
+ String amountId = SnowFlake.getId();
|
|
|
fa.setId(amountId);
|
|
|
fa.setCreateById(userDTO.getId());
|
|
|
fa.setCreateTime(new Date());
|
|
@@ -506,7 +507,7 @@ public class RegistrationService extends ServiceImpl<InterRegistrationMapper, Re
|
|
|
if (CollectionUtils.isNotEmpty(experiences)){
|
|
|
experiences.forEach(fa->{
|
|
|
// 生成id
|
|
|
- String amountId = UUID.randomUUID().toString().replace("-", "");
|
|
|
+ String amountId = SnowFlake.getId();
|
|
|
fa.setId(amountId);
|
|
|
fa.setCreateById(userDTO.getId());
|
|
|
fa.setCreateTime(new Date());
|