@@ -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$
@@ -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();