|
@@ -193,22 +193,22 @@ public class Store extends Controller {
|
|
|
long sa_storeid = detailRow.getLong("sa_storeid");
|
|
|
detailRow.put("attinfos", Attachment.get(this, "sa_store", sa_storeid));
|
|
|
|
|
|
- Rows adspaceRows = dbConnect.runSqlQuery("SELECT * from sys_adspace WHERE systemclient='wechatsaletool' and isused=1");
|
|
|
-
|
|
|
- for (Row adspaceRow : adspaceRows) {
|
|
|
- Long sys_adspaceid = adspaceRow.getLong("sys_adspaceid");
|
|
|
- querySQL = SQLFactory.createQuerySQL(this, "sys_ad")
|
|
|
- .setTableAlias("t1");
|
|
|
- querySQL.setSiteid(siteid);
|
|
|
- querySQL.setWhere("sys_adspaceid", sys_adspaceid);
|
|
|
- querySQL.setDataAuth(true);
|
|
|
- Rows adRows = querySQL.query();
|
|
|
- RowsMap attinfosRowsMap = Attachment.get(this, "sys_ad", adRows.toArrayList("sys_adid", new ArrayList<>()));
|
|
|
- for (Row row : adRows) {
|
|
|
- row.put("attinfos", attinfosRowsMap.getOrDefault(row.getString("sys_adid"), new Rows()));
|
|
|
- }
|
|
|
- detailRow.put("ad_" + adspaceRow.getString("location"), adRows);
|
|
|
- }
|
|
|
+// Rows adspaceRows = dbConnect.runSqlQuery("SELECT * from sys_adspace WHERE systemclient='wechatsaletool' and isused=1");
|
|
|
+
|
|
|
+// for (Row adspaceRow : adspaceRows) {
|
|
|
+// Long sys_adspaceid = adspaceRow.getLong("sys_adspaceid");
|
|
|
+// querySQL = SQLFactory.createQuerySQL(this, "sys_ad")
|
|
|
+// .setTableAlias("t1");
|
|
|
+// querySQL.setSiteid(siteid);
|
|
|
+// querySQL.setWhere("sys_adspaceid", sys_adspaceid);
|
|
|
+// querySQL.setDataAuth(true);
|
|
|
+// Rows adRows = querySQL.query();
|
|
|
+// RowsMap attinfosRowsMap = Attachment.get(this, "sys_ad", adRows.toArrayList("sys_adid", new ArrayList<>()));
|
|
|
+// for (Row row : adRows) {
|
|
|
+// row.put("attinfos", attinfosRowsMap.getOrDefault(row.getString("sys_adid"), new Rows()));
|
|
|
+// }
|
|
|
+// detailRow.put("ad_" + adspaceRow.getString("location"), adRows);
|
|
|
+// }
|
|
|
|
|
|
addHistory(sa_storeid);
|
|
|
|