|
@@ -301,11 +301,22 @@ public class WorkerManagerLogic {
|
|
|
|
|
|
for (WorkerPolicy workerPolicy : workerPolicies) {
|
|
|
|
|
|
+ String policy ="";
|
|
|
+
|
|
|
+ if (workerPolicy.getPolicyType().equals(PolicyTypeEnum.AC.getKey()))
|
|
|
+ policy = "意外险:";
|
|
|
+
|
|
|
+ if (workerPolicy.getPolicyType().equals(PolicyTypeEnum.EM.getKey()))
|
|
|
+ policy = "雇主险:";
|
|
|
+
|
|
|
+ if (workerPolicy.getPolicyType().equals(PolicyTypeEnum.IN.getKey()))
|
|
|
+ policy = "工伤险:";
|
|
|
+
|
|
|
if (StringUtil.isEmpty(workerPolicy.getId())){
|
|
|
WebsitUserLog websitUserLog = new WebsitUserLog();
|
|
|
|
|
|
websitUserLog.setTypeText("添加保险");
|
|
|
- websitUserLog.setOpRemark("保险时间为"+ DateUtil.format(workerPolicy.getStartTime(),"yyyy-MM-dd")+","+
|
|
|
+ websitUserLog.setOpRemark(policy+"保险时间为"+ DateUtil.format(workerPolicy.getStartTime(),"yyyy-MM-dd")+","+
|
|
|
DateUtil.format(workerPolicy.getEndTime(),"yyyy-MM-dd"));
|
|
|
|
|
|
websitUserLog.setWebsitUserId(workerPolicy.getWebsitUserId());
|
|
@@ -325,7 +336,7 @@ public class WorkerManagerLogic {
|
|
|
WebsitUserLog websitUserLog = new WebsitUserLog();
|
|
|
|
|
|
websitUserLog.setTypeText("更改保险日期");
|
|
|
- websitUserLog.setOpRemark("原保险时间为"+ DateUtil.format(workerPolicyOne.getStartTime(),"yyyy-MM-dd")+","+
|
|
|
+ websitUserLog.setOpRemark(policy+"原保险时间为"+ DateUtil.format(workerPolicyOne.getStartTime(),"yyyy-MM-dd")+","+
|
|
|
DateUtil.format(workerPolicyOne.getEndTime(),"yyyy-MM-dd")+",变更为"+ DateUtil.format(workerPolicy.getStartTime(),"yyyy-MM-dd")+","+
|
|
|
DateUtil.format(workerPolicy.getEndTime(),"yyyy-MM-dd"));
|
|
|
|