|
|
|
@@ -12,6 +12,7 @@ import com.iformall.domain.vo.*; |
|
|
|
import com.iformall.enums.*; |
|
|
|
import com.iformall.mapper.*; |
|
|
|
import com.iformall.service.MarkingDataReportService; |
|
|
|
import com.iformall.service.WxBusinessService; |
|
|
|
import com.iformall.service.WxChartDataService; |
|
|
|
import com.iformall.service.WxCouponService; |
|
|
|
import com.iformall.utils.DateUtils; |
|
|
|
@@ -76,6 +77,8 @@ public class WxChartServiceImpl implements WxChartDataService { |
|
|
|
WxBillAllMapper wxBillAllMapper; |
|
|
|
@Autowired |
|
|
|
MarkingDataReportService markingDataReportService; |
|
|
|
@Autowired |
|
|
|
WxBusinessService wxBusinessService; |
|
|
|
|
|
|
|
@Override |
|
|
|
public ResultData queryData(Map<String, String> paramsMap) { |
|
|
|
@@ -321,14 +324,23 @@ public class WxChartServiceImpl implements WxChartDataService { |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 首页商铺出租率走势 |
|
|
|
* 业态分析 |
|
|
|
* @param tenantId |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
private ResultData getBusiness(String tenantId,Map<String, String> paramsMap) { |
|
|
|
Map<String,String> resultMap = new LinkedMap(); |
|
|
|
|
|
|
|
|
|
|
|
private ResultData getBusiness(String tenantId,Map<String, String> paramsMap){ |
|
|
|
Map<String,Long> resultMap = new LinkedMap(); |
|
|
|
List<WxBusiness> businessList = wxBusinessService.findList(new WxBusiness()); |
|
|
|
for (WxBusiness b:businessList) { |
|
|
|
resultMap.put(b.getTitle(),0l); |
|
|
|
} |
|
|
|
Map<String,Object> query = new HashedMap(); |
|
|
|
query.put("tenantId",tenantId); |
|
|
|
query.put("id",paramsMap.get("id")); |
|
|
|
List<Map<String,Object>> mapList = wxMerchantMapper.findBusByFloorId(query); |
|
|
|
for (Map<String,Object> map:mapList) { |
|
|
|
resultMap.put((String)map.get("btitle"),(Long)map.get("count")); |
|
|
|
} |
|
|
|
return new ResultData(resultMap); |
|
|
|
} |
|
|
|
|
|
|
|
|