更新
This commit is contained in:
+1
-1
@@ -211,7 +211,7 @@ public class EntrustAlterApplyServiceImpl extends ServiceImpl<EntrustAlterApplyM
|
|||||||
caseEventService.update(Wrappers.<CaseEvent>lambdaUpdate().eq(CaseEvent::getId, entrustment.getCaseId()).set(CaseEvent::getCaseBrief, dto.getCaseBrief()));
|
caseEventService.update(Wrappers.<CaseEvent>lambdaUpdate().eq(CaseEvent::getId, entrustment.getCaseId()).set(CaseEvent::getCaseBrief, dto.getCaseBrief()));
|
||||||
// 添加更新记录 | <br> 代表换行
|
// 添加更新记录 | <br> 代表换行
|
||||||
LocalDateTime opDate = null; // 操作的时间,这里也用来标识是否有更新
|
LocalDateTime opDate = null; // 操作的时间,这里也用来标识是否有更新
|
||||||
if (!oldCaseInfo.equals(dto.getCaseBrief())) {
|
if (!oldCaseInfo.getCaseBrief().equals(dto.getCaseBrief())) {
|
||||||
opDate = LocalDateTime.now();
|
opDate = LocalDateTime.now();
|
||||||
updateRecordBuilder.append(opDate.format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"))).append("<br>案件更新记录:").append("<br>该委托案件的案件简要由 [").append(oldCaseInfo.getCaseBrief()).append("] 更改为 [").append(dto.getCaseBrief()).append("] 。");
|
updateRecordBuilder.append(opDate.format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"))).append("<br>案件更新记录:").append("<br>该委托案件的案件简要由 [").append(oldCaseInfo.getCaseBrief()).append("] 更改为 [").append(dto.getCaseBrief()).append("] 。");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user