Browse Source

楚楚正式库该商品上传了新的图片后列表缩略图未显示新的图片

eganwu 1 year ago
parent
commit
da349d5126
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/custom/restcontroller/webmanage/sale/item/Item.java

+ 1 - 1
src/custom/restcontroller/webmanage/sale/item/Item.java

@@ -514,7 +514,7 @@ public class Item extends Controller {
         RowsMap itemclassRowsMap = ItemClass.getAllItemClassRowsMap(this, ids);
         for (Row row : rows) {
             if (attRowsMapCover.getOrDefault(row.getString("itemid"), new Rows()).isNotEmpty()) {
-                row.put("attinfos", attRowsMapCover);
+                row.put("attinfos", attRowsMapCover.getOrDefault(row.getString("itemid"), new Rows()));
             } else if (attRowsMap.getOrDefault(row.getString("itemid"), new Rows()).isNotEmpty()) {
                 row.put("attinfos", attRowsMap.getOrDefault(row.getString("itemid"), new Rows()));
             } else {