|
@@ -372,6 +372,10 @@ public class AdminWebsitLogic {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ if (!adminWebsit.getAttr().equals(WebsitAttrEnum.SELF.getKey()) && adminWebsit.getInsureType().contains("工伤险")) {
|
|
|
+ throw new RemoteServiceException("第三方网点是只有意外+雇主险");
|
|
|
+ }
|
|
|
+
|
|
|
if (adminWebsit.getInsureType().contains("工伤险")
|
|
|
&& org.apache.commons.lang3.StringUtils.isBlank(adminWebsit.getInsureSteadUnit())) {
|
|
|
throw new RemoteServiceException("工伤险代买单位不能为空");
|
|
@@ -539,6 +543,11 @@ public class AdminWebsitLogic {
|
|
|
.eq(AdminUserWebsitRela::getCompanyWechatId, adminWebsit.getCompanyWechatId())
|
|
|
.eq(AdminUserWebsitRela::getAdminWebsitId, id)
|
|
|
.remove();
|
|
|
+
|
|
|
+ adminWebsitPayConfigService.lambdaUpdate()
|
|
|
+ .eq(AdminWebsitPayConfig::getCompanyWechatId, adminWebsit.getCompanyWechatId())
|
|
|
+ .eq(AdminWebsitPayConfig::getWebsitId, id)
|
|
|
+ .remove();
|
|
|
}
|
|
|
// 备份删除的网点
|
|
|
final List<AdminWebsitBak> websitBaks = BeanUtil.copyToList(list, AdminWebsitBak.class);
|
|
@@ -826,6 +835,10 @@ public class AdminWebsitLogic {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ if (!websitAttrEnum.getKey().equals(WebsitAttrEnum.SELF.getKey()) && insureType.contains("工伤险")) {
|
|
|
+ throw new RemoteServiceException("第" + rowIndex + "行, 第三方网点是只有意外+雇主险");
|
|
|
+ }
|
|
|
+
|
|
|
final String insureSteadUnitName = row.get(14).toString().trim();
|
|
|
if (insureType.contains("工伤险")
|
|
|
&& org.apache.commons.lang3.StringUtils.isBlank(insureSteadUnitName)) {
|