修复bug
This commit is contained in:
@@ -233,8 +233,8 @@ public class IndustryMaterialServiceImpl implements IIndustryMaterialService {
|
||||
List<IndustryMaterialVo> industryMaterialVos = industryMaterialMapper.selectIndustryMaterialByBatchId(batchId);
|
||||
// 进行重新排列
|
||||
for (int i = 1; i <= industryMaterialVos.size(); i++) {
|
||||
industryMaterialVos.get(i).setSort((long) i);
|
||||
industryMaterialMapper.updateIndustryMaterial(industryMaterialVos.get(i));
|
||||
industryMaterialVos.get(i-1).setSort((long) i);
|
||||
industryMaterialMapper.updateIndustryMaterial(industryMaterialVos.get(i-1));
|
||||
}
|
||||
|
||||
// 下面处理redis的问题
|
||||
|
||||
Reference in New Issue
Block a user