正常json文件无法打开的处理,属性更新顺序打乱

This commit is contained in:
446052889@qq.com 2023-02-15 18:01:59 +08:00
parent 196b49c68e
commit 0b4864503c
2 changed files with 1 additions and 0 deletions

View File

@ -739,6 +739,7 @@ public class PalManageWeb extends ActionWeb {
progressBarModel.setTotalCount(palList.size()); progressBarModel.setTotalCount(palList.size());
ProgressBarCache.getCache().put(progressBarCacheId, progressBarModel);// 放入进度缓存 ProgressBarCache.getCache().put(progressBarCacheId, progressBarModel);// 放入进度缓存
new Thread(()->{ new Thread(()->{
Collections.shuffle(palList);// 打乱顺序避免用户频繁操作导致同一时间修改同一个模型损坏模型文件
for (int i = 0; i < palList.size(); i++) { for (int i = 0; i < palList.size(); i++) {
PALRepositoryModel plModel = palList.get(i); PALRepositoryModel plModel = palList.get(i);
int index = i+1; int index = i+1;