|
@@ -108,10 +108,12 @@ public class wechatapplet extends Controller {
|
|
|
sqlFactory.addParameter("tarchives_scid", tarchives_scid);
|
|
sqlFactory.addParameter("tarchives_scid", tarchives_scid);
|
|
|
Rows rows = dbConnect.runSqlQuery(sqlFactory.getSQL());
|
|
Rows rows = dbConnect.runSqlQuery(sqlFactory.getSQL());
|
|
|
RowsMap rowsMap = getAttachmentUrl("tarchives_sc", rows.toArrayList("tarchives_scid"), "video");
|
|
RowsMap rowsMap = getAttachmentUrl("tarchives_sc", rows.toArrayList("tarchives_scid"), "video");
|
|
|
|
|
+ RowsMap rowsMapFile = getAttachmentUrl("tarchives_sc", rows.toArrayList("tarchives_scid"), "file");
|
|
|
//²éѯ·âÃæ
|
|
//²éѯ·âÃæ
|
|
|
RowsMap rowsMapCover = getAttachmentUrl("tarchives_sc", rows.toArrayList("tarchives_scid"), "cover");
|
|
RowsMap rowsMapCover = getAttachmentUrl("tarchives_sc", rows.toArrayList("tarchives_scid"), "cover");
|
|
|
for (Row row : rows) {
|
|
for (Row row : rows) {
|
|
|
row.put("attinfos", rowsMap.get(row.getString("tarchives_scid")));
|
|
row.put("attinfos", rowsMap.get(row.getString("tarchives_scid")));
|
|
|
|
|
+ row.put("attinfos_file", rowsMapFile.get(row.getString("tarchives_scid")));
|
|
|
Rows coverRows = rowsMapCover.get(row.getString("tarchives_scid"));
|
|
Rows coverRows = rowsMapCover.get(row.getString("tarchives_scid"));
|
|
|
if (!coverRows.isEmpty()) {
|
|
if (!coverRows.isEmpty()) {
|
|
|
row.put("cover", coverRows.get(0).getString("fobsurl"));
|
|
row.put("cover", coverRows.get(0).getString("fobsurl"));
|
|
@@ -154,13 +156,17 @@ public class wechatapplet extends Controller {
|
|
|
where = "t1.fisagent ='1'";
|
|
where = "t1.fisagent ='1'";
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- String fparentid = content.getString("fparentid");
|
|
|
|
|
SQLFactory sqlFactory = new SQLFactory(this, "·ÖÀà");
|
|
SQLFactory sqlFactory = new SQLFactory(this, "·ÖÀà");
|
|
|
- sqlFactory.addParameter_SQL("fparentid", fparentid);
|
|
|
|
|
sqlFactory.addParameter_SQL("where", where);
|
|
sqlFactory.addParameter_SQL("where", where);
|
|
|
String sql = sqlFactory.getSQL();
|
|
String sql = sqlFactory.getSQL();
|
|
|
Rows rows = dbConnect.runSqlQuery(sql);
|
|
Rows rows = dbConnect.runSqlQuery(sql);
|
|
|
|
|
|
|
|
|
|
+ RowsMap rowsMap = getAttachmentUrl("ttypedetail", rows.toArrayList("ttypedetailid"));
|
|
|
|
|
+ for (Row row : rows) {
|
|
|
|
|
+ row.put("attinfos", rowsMap.get(row.getString("ttypedetailid")));
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
createRequestLog("Åàѵѧϰ");
|
|
createRequestLog("Åàѵѧϰ");
|
|
|
return getSucReturnObject().setData(rows).toString();
|
|
return getSucReturnObject().setData(rows).toString();
|
|
|
}
|
|
}
|