|
@@ -73,6 +73,18 @@ public class visitors extends Controller {
|
|
|
"WHERE t2.classid=1 and t1.createuserid=" + userid + " and t1.type=0 and t1.siteid='" + siteid + "'");
|
|
|
row.put("signdays", signRows.get(0).getLong("count"));
|
|
|
|
|
|
+ Rows storerows = dbConnect.runSqlQuery("SELECT t1.*from sa_store t1 \n" +
|
|
|
+ "inner join sa_store_hr t2 on t2.sa_storeid=t1.sa_storeid and t2.siteid=t1.siteid\n" +
|
|
|
+ "inner join sys_enterprise_hr t3 ON t3.sys_enterprise_hrid=t2.sys_enterprise_hrid and t3.siteid=t2.siteid\n" +
|
|
|
+ "WHERE t1.sys_enterpriseid=" + sys_enterpriseid + " and t1.siteid='" + siteid + "' and t3.userid='" + userid + "'");
|
|
|
+ row.put("stores", storerows);
|
|
|
+
|
|
|
+ Rows areaRows = dbConnect.runSqlQuery("SELECT DISTINCT t1.areaname from sa_salearea t1 \n" +
|
|
|
+ "INNER JOIN sys_enterprise_tradefield t2 ON t2.sa_saleareaid = t1.sa_saleareaid\n" +
|
|
|
+ "WHERE t2.sys_enterpriseid=" + sys_enterpriseid + " and t1.siteid='" + siteid + "'");
|
|
|
+
|
|
|
+ row.put("areaname", StringUtils.join(areaRows.toArray("areaname"), ","));
|
|
|
+
|
|
|
return getSucReturnObject().setData(row).toString();
|
|
|
}
|
|
|
|