Просмотр исходного кода

商品档案主界面及列表查询标签字段返回格式调整。

沈静伟 4 лет назад
Родитель
Сommit
e4fe0972a5
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      src/dsb/com/cnd3b/restcontroller/customer/products/products.java

+ 2 - 0
src/dsb/com/cnd3b/restcontroller/customer/products/products.java

@@ -66,6 +66,7 @@ public class products extends Controller {
         RowsMap tagents_productMap = getAttachmentUrl("tagents_product", rows.toArrayList("tagents_productid"));
         for (Row row : rows) {
             row.put("attinfos", tagents_productMap.get(row.getString("tagents_productid")));
+            row.put("ftag", JSONArray.parseArray(row.getString("ftag")));
         }
         return getSucReturnObject().setDataByPaging(rows, sortfield).saveToDataPool().toString();
     }
@@ -84,6 +85,7 @@ public class products extends Controller {
         RowsMap tagents_productMap = getAttachmentUrl("tagents_product", rows.toArrayList("tagents_productid"));
         for (Row row : rows) {
             row.put("attinfos", tagents_productMap.get(row.getString("tagents_productid")));
+            row.put("ftag", JSONArray.parseArray(row.getString("ftag")));
         }
         return getSucReturnObject().setData(rows).toString();
     }