Jelajahi Sumber

合作商户详细信息查询增加合作类型和商户附件

吴志根 4 tahun lalu
induk
melakukan
9ca86d9b6f

+ 5 - 2
src/dsb/com/cnd3b/restcontroller/customer/tagents/SQL/合作经销商详情查询.sql

@@ -1,2 +1,5 @@
-select fbrand,fcontact,faddress,siteid,fphonenumber,fdutyparagraph,saleprodclass from tagents
-where siteid=$siteid$ and tagentsid=$tagentsid$
+select t1.fbrand, t1.fcontact, t1.faddress, t1.siteid, t1.fphonenumber, t1.fdutyparagraph, t1.saleprodclass,t2.ftype
+from tagents AS t1
+         INNER JOIN tagents_cooperation AS t2 ON t1.tagentsid = t2.tagentsid
+where t1.siteid = $siteid$
+  and t1.tagentsid = $tagentsid$

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

@@ -282,6 +282,7 @@ public class tagents extends Controller {
         Rows rows = dbConnect.runSqlQuery(sql.getSQL());
         for (Row row : rows) {
             row.put("saleprodclass", JSONArray.parseArray(row.getString("saleprodclass")));
+            row.put("attinfos", getAttachmentUrl("tagents",content.getString("tagentsid")));
         }
         return getSucReturnObject().setData(rows).toString();
     }