mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-07-03 21:48:13 +08:00
update 查询首页数据
This commit is contained in:
@@ -55,6 +55,8 @@ import com.jsowell.pile.service.IPileAuthCardService;
|
|||||||
import com.jsowell.pile.service.IPileBasicInfoService;
|
import com.jsowell.pile.service.IPileBasicInfoService;
|
||||||
import com.jsowell.pile.service.IPileBillingTemplateService;
|
import com.jsowell.pile.service.IPileBillingTemplateService;
|
||||||
import com.jsowell.pile.service.IPileConnectorInfoService;
|
import com.jsowell.pile.service.IPileConnectorInfoService;
|
||||||
|
import com.jsowell.pile.service.IPileMerchantInfoService;
|
||||||
|
import com.jsowell.pile.service.IPileStationInfoService;
|
||||||
import com.jsowell.pile.service.OrderMonitorDataService;
|
import com.jsowell.pile.service.OrderMonitorDataService;
|
||||||
import com.jsowell.pile.service.WechatPayService;
|
import com.jsowell.pile.service.WechatPayService;
|
||||||
import com.jsowell.pile.service.WxpayCallbackRecordService;
|
import com.jsowell.pile.service.WxpayCallbackRecordService;
|
||||||
@@ -159,6 +161,12 @@ public class OrderBasicInfoServiceImpl implements IOrderBasicInfoService {
|
|||||||
@Autowired
|
@Autowired
|
||||||
private OrderMonitorDataService orderMonitorDataService;
|
private OrderMonitorDataService orderMonitorDataService;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private IPileStationInfoService pileStationInfoService;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private IPileMerchantInfoService pileMerchantInfoService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 条件查询订单基本信息
|
* 条件查询订单基本信息
|
||||||
*
|
*
|
||||||
@@ -1094,6 +1102,28 @@ public class OrderBasicInfoServiceImpl implements IOrderBasicInfoService {
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public List<IndexOrderInfoVO> getIndexOrderInfo(IndexQueryDTO dto) {
|
public List<IndexOrderInfoVO> getIndexOrderInfo(IndexQueryDTO dto) {
|
||||||
|
AuthorizedDeptVO authorizedMap = SecurityUtils.getAuthorizedMap();
|
||||||
|
if (authorizedMap == null) {
|
||||||
|
return Lists.newArrayList();
|
||||||
|
}
|
||||||
|
List<String> stationIdList = Lists.newArrayList();
|
||||||
|
List<String> stationDeptIds = authorizedMap.getStationDeptIds();
|
||||||
|
if (CollectionUtils.isNotEmpty(stationDeptIds)) {
|
||||||
|
// 根据部门id查询站点id
|
||||||
|
List<String> list = pileStationInfoService.queryByStationDeptIds(stationDeptIds);
|
||||||
|
if (CollectionUtils.isNotEmpty(list)) {
|
||||||
|
stationIdList.addAll(list);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
List<String> merchantDeptIds = authorizedMap.getMerchantDeptIds();
|
||||||
|
if (CollectionUtils.isNotEmpty(merchantDeptIds)) {
|
||||||
|
// 根据运营商部门id查询下面所有站点id
|
||||||
|
List<String> list = pileMerchantInfoService.queryByMerchantDeptIds(merchantDeptIds);
|
||||||
|
if (CollectionUtils.isNotEmpty(list)) {
|
||||||
|
stationIdList.addAll(list);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
dto.setStationIdList(stationIdList);
|
||||||
return orderBasicInfoMapper.getIndexOrderInfo(dto);
|
return orderBasicInfoMapper.getIndexOrderInfo(dto);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -569,8 +569,6 @@ public class PileBasicInfoServiceImpl implements IPileBasicInfoService {
|
|||||||
if (authorizedMap == null) {
|
if (authorizedMap == null) {
|
||||||
return new IndexGeneralSituationVO();
|
return new IndexGeneralSituationVO();
|
||||||
}
|
}
|
||||||
// dto.setStationDeptIds(authorizedMap.getStationDeptIds());
|
|
||||||
// dto.setMerchantDeptIds(authorizedMap.getMerchantDeptIds());
|
|
||||||
List<String> stationIdList = Lists.newArrayList();
|
List<String> stationIdList = Lists.newArrayList();
|
||||||
List<String> stationDeptIds = authorizedMap.getStationDeptIds();
|
List<String> stationDeptIds = authorizedMap.getStationDeptIds();
|
||||||
if (CollectionUtils.isNotEmpty(stationDeptIds)) {
|
if (CollectionUtils.isNotEmpty(stationDeptIds)) {
|
||||||
|
|||||||
@@ -779,7 +779,13 @@
|
|||||||
date(t1.create_time) >= DATE_SUB(CURDATE(),INTERVAL 30 day)
|
date(t1.create_time) >= DATE_SUB(CURDATE(),INTERVAL 30 day)
|
||||||
and t1.order_status = '6'
|
and t1.order_status = '6'
|
||||||
<if test="dto.stationId != null and dto.stationId != ''">
|
<if test="dto.stationId != null and dto.stationId != ''">
|
||||||
and t1,station_id = #{dto.stationId,jdbcType=VARCHAR}
|
and t1.station_id = #{dto.stationId,jdbcType=VARCHAR}
|
||||||
|
</if>
|
||||||
|
<if test="dto.stationIdList != null and dto.stationIdList.size() != 0">
|
||||||
|
and t1.station_id in
|
||||||
|
<foreach collection="dto.stationIdList" item="item" open="(" separator="," close=")">
|
||||||
|
#{item,jdbcType=VARCHAR}
|
||||||
|
</foreach>
|
||||||
</if>
|
</if>
|
||||||
group by DATE_FORMAT(t1.create_time,'%Y-%m-%d')
|
group by DATE_FORMAT(t1.create_time,'%Y-%m-%d')
|
||||||
</select>
|
</select>
|
||||||
|
|||||||
Reference in New Issue
Block a user