字符串拼接
This commit is contained in:
@@ -217,7 +217,7 @@ public class SchDicSubjectService implements ISchDicSubjectService {
|
||||
Map<Integer,String> schsystemMap= schBinSchsystemService.getSchBinSchsystemMap(user.getSchId());
|
||||
String schsystemName= schsystemMap.get(entity.getSchSystemId());
|
||||
if (isNew) {
|
||||
String content = String.format("新增学科:%s(学制:%d)", entity.getName(), schsystemName);
|
||||
String content = String.format("新增学科:%s(学制:%s)", entity.getName(), schsystemName);
|
||||
return content;
|
||||
} else {
|
||||
// 对比旧实体与新实体
|
||||
@@ -232,7 +232,7 @@ public class SchDicSubjectService implements ISchDicSubjectService {
|
||||
// 若有其他可修改字段,同样处理
|
||||
} else {
|
||||
// 如果oldEntity为空,直接记录新名称(但更新时一定会有oldEntity)
|
||||
detail.append(String.format("%s(学制:%d)", entity.getName(), schsystemName));
|
||||
detail.append(String.format("%s(学制:%s)", entity.getName(), schsystemName));
|
||||
}
|
||||
if (detail.length() == "更新学科:".length()) {
|
||||
detail.append("无实际变更");
|
||||
|
||||
Reference in New Issue
Block a user