Преглед изворни кода

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

沈静伟 пре 4 година
родитељ
комит
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"));
         RowsMap tagents_productMap = getAttachmentUrl("tagents_product", rows.toArrayList("tagents_productid"));
         for (Row row : rows) {
         for (Row row : rows) {
             row.put("attinfos", tagents_productMap.get(row.getString("tagents_productid")));
             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();
         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"));
         RowsMap tagents_productMap = getAttachmentUrl("tagents_product", rows.toArrayList("tagents_productid"));
         for (Row row : rows) {
         for (Row row : rows) {
             row.put("attinfos", tagents_productMap.get(row.getString("tagents_productid")));
             row.put("attinfos", tagents_productMap.get(row.getString("tagents_productid")));
+            row.put("ftag", JSONArray.parseArray(row.getString("ftag")));
         }
         }
         return getSucReturnObject().setData(rows).toString();
         return getSucReturnObject().setData(rows).toString();
     }
     }