|
@@ -687,6 +687,7 @@ public class AgreementLogic {
|
|
|
workerPolicy.setWebsitName(policyOrder.getWebsitName());
|
|
|
workerPolicy.setWorkerName(policyOrder.getWorkerName());
|
|
|
workerPolicy.setWorkerName(policyOrder.getWorkerName());
|
|
|
+ workerPolicy.setCompany(policyOrder.getCompany());
|
|
|
|
|
|
if (new Date().after(workerPolicy.getStartTime()))
|
|
|
workerPolicy.setStatus("BZZ");
|
|
@@ -778,12 +779,17 @@ public class AgreementLogic {
|
|
|
|
|
|
User user = userService.getById(websitUser.getUserId());
|
|
|
|
|
|
- String remark = "";
|
|
|
- if (!(websitUser.getOverdueRemark().split("高空证").length > 0) && user.getEndTime().before(DateUtil.offsetMonth(new Date(),1))) {
|
|
|
+ String remark = StringUtil.isEmpty(websitUser.getOverdueRemark())?"":websitUser.getOverdueRemark();
|
|
|
+ if ((StringUtil.isEmpty(remark) && user.getEndTime() != null && user.getEndTime().before(DateUtil.offsetMonth(new Date(),1)))
|
|
|
+ || (!StringUtil.isEmpty(remark) && remark.split("高空证").length < 1
|
|
|
+ && user.getEndTime() != null && user.getEndTime().before(DateUtil.offsetMonth(new Date(),1))) ){
|
|
|
remark = remark+"高空证"+DateUtil.format(user.getEndTime(),"yyyy-MM-dd");
|
|
|
}
|
|
|
|
|
|
- if (!(websitUser.getOverdueRemark().split("身份证").length > 0) && user.getIdCardEndTime().before(DateUtil.offsetMonth(new Date(),1))) {
|
|
|
+
|
|
|
+ if ((StringUtil.isEmpty(remark) && user.getIdCardEndTime() != null && user.getIdCardEndTime().before(DateUtil.offsetMonth(new Date(),1)))
|
|
|
+ || (!StringUtil.isEmpty(remark) && remark.split("身份证").length < 1
|
|
|
+ && user.getIdCardEndTime() != null && user.getIdCardEndTime().before(DateUtil.offsetMonth(new Date(),1))) ){
|
|
|
remark = remark+"身份证"+DateUtil.format(user.getIdCardEndTime(),"yyyy-MM-dd");
|
|
|
}
|
|
|
|
|
@@ -792,15 +798,37 @@ public class AgreementLogic {
|
|
|
.list();
|
|
|
|
|
|
for (WorkerPolicy workerPolicy : workerPolicies) {
|
|
|
- if (workerPolicy.getPolicyType().equals(PolicyTypeEnum.AC.getKey()) && workerPolicy.getEndTime().before(DateUtil.offsetMonth(new Date(),1))) {
|
|
|
+ if (workerPolicy.getPolicyType().equals(PolicyTypeEnum.AC.getKey()) &&
|
|
|
+ (
|
|
|
+ (StringUtil.isEmpty(remark) && workerPolicy.getEndTime() != null && workerPolicy.getEndTime().before(DateUtil.offsetMonth(new Date(),1)))
|
|
|
+ || (!StringUtil.isEmpty(remark) && remark.split("意外险").length < 1
|
|
|
+ && workerPolicy.getEndTime() != null && workerPolicy.getEndTime().before(DateUtil.offsetMonth(new Date(),1))
|
|
|
+ && workerPolicy.getEndTime().before(DateUtil.offsetMonth(new Date(),1)))
|
|
|
+ )
|
|
|
+ ) {
|
|
|
+
|
|
|
remark = remark+"意外险"+DateUtil.format(workerPolicy.getEndTime(),"yyyy-MM-dd");
|
|
|
}
|
|
|
- if (workerPolicy.getPolicyType().equals(PolicyTypeEnum.EM.getKey()) && workerPolicy.getEndTime().before(DateUtil.offsetMonth(new Date(),1))) {
|
|
|
+ if (workerPolicy.getPolicyType().equals(PolicyTypeEnum.EM.getKey()) &&
|
|
|
+ (
|
|
|
+ (StringUtil.isEmpty(remark) && workerPolicy.getEndTime() != null && workerPolicy.getEndTime().before(DateUtil.offsetMonth(new Date(),1)))
|
|
|
+ || (!StringUtil.isEmpty(remark) && remark.split("雇主险").length < 1
|
|
|
+ && workerPolicy.getEndTime() != null && workerPolicy.getEndTime().before(DateUtil.offsetMonth(new Date(),1))
|
|
|
+ && workerPolicy.getEndTime().before(DateUtil.offsetMonth(new Date(),1)))
|
|
|
+ )
|
|
|
+ ) {
|
|
|
remark = remark+"雇主险"+DateUtil.format(workerPolicy.getEndTime(),"yyyy-MM-dd");
|
|
|
}
|
|
|
|
|
|
- if (workerPolicy.getPolicyType().equals(PolicyTypeEnum.IN.getKey()) && workerPolicy.getEndTime().before(DateUtil.offsetDay(new Date(),3))) {
|
|
|
- remark = remark+"工伤"+DateUtil.format(workerPolicy.getEndTime(),"yyyy-MM-dd");
|
|
|
+ if (workerPolicy.getPolicyType().equals(PolicyTypeEnum.IN.getKey()) &&
|
|
|
+ (
|
|
|
+ (StringUtil.isEmpty(remark) && workerPolicy.getEndTime() != null && workerPolicy.getEndTime().before(DateUtil.offsetMonth(new Date(),1)))
|
|
|
+ || (!StringUtil.isEmpty(remark) && remark.split("工伤险").length < 1
|
|
|
+ && workerPolicy.getEndTime() != null && workerPolicy.getEndTime().before(DateUtil.offsetMonth(new Date(),1))
|
|
|
+ && workerPolicy.getEndTime().before(DateUtil.offsetMonth(new Date(),1)))
|
|
|
+ )
|
|
|
+ ) {
|
|
|
+ remark = remark+"工伤险"+DateUtil.format(workerPolicy.getEndTime(),"yyyy-MM-dd");
|
|
|
}
|
|
|
}
|
|
|
|