fix(文档拆分): 批量编辑
This commit is contained in:
+1
-1
@@ -224,7 +224,7 @@ public class DocumentSplitController {
|
||||
@PostMapping("/editBatchDocumentSplitDetail")
|
||||
public Result<T> editBatchDocumentSplitDetail(@RequestBody Map<String, Object> parameter) {
|
||||
documentSplitService.editBatchDocumentSplitDetail(parameter);
|
||||
return Result.OK(DocumentSplitCommon.MEG_DEL_BATCH);
|
||||
return Result.OK("批量编辑成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
+2
-2
@@ -81,7 +81,7 @@
|
||||
<delete id="deleteItemsValByItemIds">
|
||||
delete from sar_file_split_items_val
|
||||
where item_id in
|
||||
<foreach collection="itemIds.split(',')" item="item" separator="or" open="(" close=")">
|
||||
<foreach collection="itemIds.split(',')" item="item" separator="," open="(" close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
|
||||
@@ -193,7 +193,7 @@
|
||||
select *
|
||||
from laws_document_split
|
||||
where id in
|
||||
<foreach collection="idList.split(',')" item="item" separator="or" open="(" close=")">
|
||||
<foreach collection="idList.split(',')" item="item" separator="," open="(" close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</select>
|
||||
|
||||
+1
-1
@@ -416,7 +416,7 @@ public class DocumentSplitServiceImpl implements IDocumentSplitService {
|
||||
|
||||
// 条文解读更新
|
||||
// 删除旧数据
|
||||
documentSplitMapper.deleteItemsValByItemIds((String) parameter.get(ID), DocumentSplitCommon.INTERPRETATION);
|
||||
documentSplitMapper.deleteItemsValByItemIds((String) parameter.get("ids"), DocumentSplitCommon.INTERPRETATION);
|
||||
if (!Objects.isNull(articlesList) && !articlesList.isEmpty()){
|
||||
// 添加新数据
|
||||
documentSplitMapper.addBatchItemsVal(articlesList);
|
||||
|
||||
Reference in New Issue
Block a user