Commit 61e8a861 by 徐高华

log

parent b5750abc
...@@ -219,7 +219,7 @@ public class HmLinkController { ...@@ -219,7 +219,7 @@ public class HmLinkController {
newValue = ""; newValue = "";
} }
if (type == 0 && !oldValue.equals(newValue)) { if (type == 0 && !oldValue.equals(newValue)) {
sb.append(title).append("「").append(oldValue).append("」变更「").append(newValue).append("」"); sb.append(title).append("「").append(oldValue).append("」变更「").append(newValue).append("」");
return sb.toString(); return sb.toString();
} }
// 会员标签 // 会员标签
...@@ -232,7 +232,7 @@ public class HmLinkController { ...@@ -232,7 +232,7 @@ public class HmLinkController {
if (null != newResp) { if (null != newResp) {
newValue = newResp.getTagName() + "-" + newResp.getTagItemName(); newValue = newResp.getTagName() + "-" + newResp.getTagItemName();
} }
sb.append(title).append("「").append(oldValue).append("」变更「").append(newValue).append("」"); sb.append(title).append("「").append(oldValue).append("」变更「").append(newValue).append("」");
return sb.toString(); return sb.toString();
} }
// 欢迎语 // 欢迎语
...@@ -344,8 +344,9 @@ public class HmLinkController { ...@@ -344,8 +344,9 @@ public class HmLinkController {
addList.add(dto.getStoreName() + "(" + dto.getStoreCode() + ")"); addList.add(dto.getStoreName() + "(" + dto.getStoreCode() + ")");
} }
} }
tempSb.append("新增门店「").append(addList.stream().collect(Collectors.joining("、"))); if(CollectionUtils.isNotEmpty(addList)) {
tempSb.append("」"); tempSb.append("新增门店「").append(addList.stream().collect(Collectors.joining("、"))).append("」");
}
} }
if (CollectionUtils.isNotEmpty(newList)) { if (CollectionUtils.isNotEmpty(newList)) {
...@@ -356,10 +357,10 @@ public class HmLinkController { ...@@ -356,10 +357,10 @@ public class HmLinkController {
delIdList.add(item.getStoreName() + "(" + item.getStoreCode() + ")"); delIdList.add(item.getStoreName() + "(" + item.getStoreCode() + ")");
} }
} }
tempSb.append("删除门店「").append(delIdList.stream().collect(Collectors.joining("、"))); if(CollectionUtils.isNotEmpty(delIdList)) {
tempSb.append("」"); tempSb.append("删除门店「").append(delIdList.stream().collect(Collectors.joining("、"))).append("」");
}
} }
} }
// 更新 // 更新
return tempSb.toString(); return tempSb.toString();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment