文件上传和排序接口整合
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -153,7 +153,7 @@ public class DgFileServiceImpl extends ServiceImpl<DgFileMapper, DgFileDO> imple | ... | @@ -153,7 +153,7 @@ public class DgFileServiceImpl extends ServiceImpl<DgFileMapper, DgFileDO> imple |
153 | fileWrapper.lambda().eq(DgFileDO::getBsmCatalog, firstBsmCatalog).ge(DgFileDO::getXh, firstXh + 1); | 153 | fileWrapper.lambda().eq(DgFileDO::getBsmCatalog, firstBsmCatalog).ge(DgFileDO::getXh, firstXh + 1); |
154 | List<DgFileDO> list = this.list(fileWrapper); | 154 | List<DgFileDO> list = this.list(fileWrapper); |
155 | list.forEach(item -> item.setXh(item.getXh() + 1)); | 155 | list.forEach(item -> item.setXh(item.getXh() + 1)); |
156 | return this.saveBatch(list); | 156 | return this.updateBatchById(list); |
157 | } | 157 | } |
158 | 158 | ||
159 | 159 | ... | ... |
-
Please register or sign in to post a comment