|
@@ -300,7 +300,7 @@ public class UserLogic {
|
|
|
User user = userList.get(0);
|
|
|
if (websitUserService.lambdaQuery().eq(WebsitUser::getWebsitId, adminWebsit.getWebsitId())
|
|
|
.eq(WebsitUser::getUserId, user.getUserId()).count() > 0)
|
|
|
- throw new RemoteServiceException(idcard + "该师傅已有入驻信息");
|
|
|
+ throw new RemoteServiceException(errPrefix+idcard + "该师傅已有入驻信息");
|
|
|
}
|
|
|
|
|
|
|
|
@@ -317,7 +317,7 @@ public class UserLogic {
|
|
|
userWait.setInPolicyStartTime(DateUtil.parse(in_policy_start_time, "yyyy-MM-dd"));
|
|
|
userWait.setInPolicyEndTime(DateUtil.offsetSecond(DateUtil.endOfDay(DateUtil.parse(in_policy_end_time, "yyyy-MM-dd")),-1));
|
|
|
if (userWait.getInPolicyEndTime().before(new Date()))
|
|
|
- throw new RemoteServiceException(userWait.getIdcard()+"导入师傅保险已过期");
|
|
|
+ throw new RemoteServiceException(errPrefix+userWait.getIdcard()+"导入师傅保险已过期");
|
|
|
userWait.setInPolicyName(in_policy_name);
|
|
|
userWait.setInPolicyOrder(in_policy_order);
|
|
|
|
|
@@ -335,7 +335,7 @@ public class UserLogic {
|
|
|
|
|
|
|
|
|
if (StringUtil.isEmpty(in_company))
|
|
|
- throw new RemoteServiceException(userWait.getIdcard()+"必须导入工伤险");
|
|
|
+ throw new RemoteServiceException(errPrefix+userWait.getIdcard()+"必须导入工伤险");
|
|
|
}else {
|
|
|
|
|
|
String em_company = (String) row.get(17);
|
|
@@ -351,7 +351,7 @@ public class UserLogic {
|
|
|
userWait.setEmPolicyEndTime(DateUtil.offsetSecond(DateUtil.endOfDay(DateUtil.parse(em_policy_end_time, "yyyy-MM-dd")),-1));
|
|
|
|
|
|
if (userWait.getEmPolicyEndTime().before(new Date()))
|
|
|
- throw new RemoteServiceException(userWait.getIdcard()+"导入师傅保险已过期");
|
|
|
+ throw new RemoteServiceException(errPrefix+userWait.getIdcard()+"导入师傅保险已过期");
|
|
|
userWait.setEmPolicyName(em_policy_name);
|
|
|
userWait.setEmPolicyOrder(em_policy_order);
|
|
|
|
|
@@ -372,7 +372,7 @@ public class UserLogic {
|
|
|
|
|
|
|
|
|
if (StringUtil.isEmpty(em_company))
|
|
|
- throw new RemoteServiceException(userWait.getIdcard()+"必须导入雇主险");
|
|
|
+ throw new RemoteServiceException(errPrefix+userWait.getIdcard()+"必须导入雇主险");
|
|
|
}
|
|
|
|
|
|
|
|
@@ -385,7 +385,7 @@ public class UserLogic {
|
|
|
userWait.setPolicyEndTime(DateUtil.offsetSecond(DateUtil.endOfDay(DateUtil.parse(policy_end_time, "yyyy-MM-dd")), -1));
|
|
|
|
|
|
if (userWait.getPolicyEndTime().before(new Date()))
|
|
|
- throw new RemoteServiceException(userWait.getIdcard() + "导入师傅保险已过期");
|
|
|
+ throw new RemoteServiceException(errPrefix+userWait.getIdcard() + "导入师傅保险已过期");
|
|
|
|
|
|
userWait.setPolicyName(policy_name);
|
|
|
userWait.setPolicyOrder(policy_order);
|
|
@@ -393,7 +393,7 @@ public class UserLogic {
|
|
|
|
|
|
UserWaitPolicy userWaitPolicy = new UserWaitPolicy();
|
|
|
|
|
|
- userWaitPolicy.setUserWaitId(userWait.getId());
|
|
|
+ userWaitPolicy.setUserWaitId(errPrefix+userWait.getId());
|
|
|
userWaitPolicy.setCompany(company);
|
|
|
userWaitPolicy.setPolicyName(policy_name);
|
|
|
userWaitPolicy.setPolicyOrder(policy_order);
|
|
@@ -402,7 +402,7 @@ public class UserLogic {
|
|
|
|
|
|
userWaitPolicies.add(userWaitPolicy);
|
|
|
} else {
|
|
|
- throw new RemoteServiceException(userWait.getEmCompany() + "必须导入意外险");
|
|
|
+ throw new RemoteServiceException(errPrefix+userWait.getEmCompany() + "必须导入意外险");
|
|
|
}
|
|
|
|
|
|
|