|
@@ -297,6 +297,8 @@ public class UserLogic {
|
|
|
|
|
|
userWait.setName(name);
|
|
|
userWait.setIdcard(idcard);
|
|
|
+ userWait.setIdCardStartTime(DateUtil.parse(idcardStartTime, "yyyy/MM/dd"));
|
|
|
+ userWait.setIdCardEndTime(DateUtil.parse(idcardEndTime, "yyyy/MM/dd"));
|
|
|
userWait.setCompanyWechatId(adminUser.getCompanyWechatId());
|
|
|
userWait.setCompanyWechatName(adminUser.getCompanyName());
|
|
|
userWait.setBankAccount(brank);
|
|
@@ -309,6 +311,15 @@ public class UserLogic {
|
|
|
userWait.setHightExamineTime(DateUtil.parse(hightExamineTime, "yyyy/MM/dd"));
|
|
|
}
|
|
|
|
|
|
+ if (adminWebsit.getInsureType().equals("意外险,工伤险")) {
|
|
|
+
|
|
|
+ if (StringUtil.isEmpty(in_company))
|
|
|
+ throw new RemoteServiceException(userWait.getWorkerNumber()+"必须导入工伤险");
|
|
|
+ }else {
|
|
|
+ if (StringUtil.isEmpty(em_company))
|
|
|
+ throw new RemoteServiceException(userWait.getEmCompany()+"必须导入雇主险");
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
if (!StringUtil.isEmpty(company)) {
|
|
|
userWait.setCompany(company);
|
|
@@ -316,6 +327,8 @@ public class UserLogic {
|
|
|
userWait.setPolicyEndTime(DateUtil.offsetSecond(DateUtil.endOfDay(DateUtil.parse(policy_end_time, "yyyy/MM/dd")),-1));
|
|
|
userWait.setPolicyName(policy_name);
|
|
|
userWait.setPolicyOrder(policy_order);
|
|
|
+ }else {
|
|
|
+ throw new RemoteServiceException(userWait.getEmCompany()+"必须导入意外险");
|
|
|
}
|
|
|
|
|
|
if (!StringUtil.isEmpty(em_company)) {
|