Forráskód Böngészése

1:商品列表查询新增是否上架字段
2:商户信息查询新增品牌logo返回
3:团队管理查询新增头像查询
4:个人信息查询新增头像查询

沈静伟 4 éve
szülő
commit
3f8de9ed79

+ 1 - 1
src/dsb/com/cnd3b/restcontroller/customer/products/SQL/商品列表查询.sql

@@ -1,2 +1,2 @@
-select t1.tagents_productid,t1.fprice, t1.fprodname, t1.fprodnum,t1.fprodclassname,ftag from tagents_product t1
+select t1.tagents_productid,t1.fprice, t1.fprodname, t1.fprodnum,t1.fprodclassname,ftag,fisonsale from tagents_product t1
 where t1.siteid=$siteid$ and t1.tagentsid=$tagentsid$ and $where$

+ 1 - 0
src/dsb/com/cnd3b/restcontroller/customer/tagents/tagents.java

@@ -34,6 +34,7 @@ public class tagents extends Controller {
             saleprodclass.addParameter("tagentsid", tagentsid);
             Rows prodclassrows = dbConnect.runSqlQuery(saleprodclass.getSQL());
             row.put("saleprodclass", prodclassrows.toArray("fprodclassname"));
+            row.put("attinfos", getAttachmentUrl("tagents", String.valueOf(tagentsid), "brandlogo"));
         }
         return getSucReturnObject().setData(rows).toString();
     }

+ 11 - 1
src/dsb/com/cnd3b/restcontroller/customer/usercenter/teammsg/teammsg.java

@@ -37,8 +37,18 @@ public class teammsg extends Controller {
         subusersql.addParameter_in("fparentid", rows.toArrayList("tenterprise_userid"));
 
         RowsMap map = dbConnect.runSqlQuery(subusersql.getSQL()).toRowsMap("fparentid");
+
+        RowsMap attinfosMap = getAttachmentUrl("tenterprise_users", rows.toArrayList("tenterprise_userid"), "headportrait");
         for (Row row : rows) {
-            row.put("subusers", map.get(row.getString("tenterprise_userid")).toArray("tenterprise_userid"));
+            String tenterprise_userid = row.getString("tenterprise_userid");
+            row.put("subusers", map.get(tenterprise_userid).toArray("tenterprise_userid"));
+
+            if (attinfosMap.containsKey(tenterprise_userid)) {
+                row.put("attinfos", attinfosMap.get(tenterprise_userid));
+            } else {
+                row.put("attinfos", "[]");
+            }
+
         }
         return getSucReturnObject().setData(rows).saveToDataPool().toString();
     }

+ 1 - 0
src/dsb/com/cnd3b/restcontroller/customer/usercenter/usermsg/usermsg.java

@@ -40,6 +40,7 @@ public class usermsg extends Controller {
                 row.put("fappmodel", rows2.get(0).getString("fappmodel"));
                 row.put("fauthenddate", rows2.get(0).getString("fauthenddate"));
             }
+            row.put("attinfos", getAttachmentUrl("tenterprise_users", String.valueOf(userid), "headportrait"));
         }
         return getSucReturnObject().setData(rows).toString();
     }