Commit f6930f20 authored by alex yao's avatar alex yao

feat:关闭对话[批量]

parent 5a3353da
...@@ -139,9 +139,10 @@ public class BizAgentApplicationDialoguesRecordServiceImpl extends BaseServiceIm ...@@ -139,9 +139,10 @@ public class BizAgentApplicationDialoguesRecordServiceImpl extends BaseServiceIm
model.setIsDeleted(CommonConstant.IsDeleted.N); model.setIsDeleted(CommonConstant.IsDeleted.N);
List<BizAgentApplicationDialoguesRecordModel> models = this.repository.findByExample(model); List<BizAgentApplicationDialoguesRecordModel> models = this.repository.findByExample(model);
if (CollectionUtils.isNotEmpty(models)) { if (CollectionUtils.isNotEmpty(models)) {
model = models.get(0); for (BizAgentApplicationDialoguesRecordModel bizAgentApplicationDialoguesRecordModel : models) {
model.setIsDeleted(CommonConstant.IsDeleted.Y); bizAgentApplicationDialoguesRecordModel.setIsDeleted(CommonConstant.IsDeleted.Y);
delModels.add(model); delModels.add(bizAgentApplicationDialoguesRecordModel);
}
} }
} }
this.repository.saveAll(delModels); this.repository.saveAll(delModels);
......
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