新增后管数据看板

This commit is contained in:
Lemon
2026-05-08 11:42:11 +08:00
parent 478c70a352
commit b563659f84
14 changed files with 217 additions and 4 deletions

View File

@@ -132,4 +132,11 @@ public interface MemberBasicInfoMapper {
ConfirmStartChargingMemberVO queryMemberInfoByCardCode(@Param("cardCode") String cardCode, @Param("merchantId") String merchantId);
ConfirmStartChargingMemberVO queryMemberInfoByVinCode(@Param("vinCode") String vinCode, @Param("merchantId") String merchantId);
/**
* 统计总会员数
*
* @return 会员总数
*/
Long countTotalMembers();
}

View File

@@ -467,4 +467,19 @@ public interface OrderBasicInfoMapper {
List<PileConnectorInfoVO> batchQueryChargingConnectorInfo(@Param("pileConnectorCodes") List<String> chargingConnectorCodeList);
int batchUpdateOrderReview(@Param("dto") UpdateOrderReviewDTO dto);
/**
* 大数据平台-使用率趋势数据
*
* @param dto 查询条件
* @return 趋势数据列表
*/
List<UsageTrendVO> getUsageTrendData(@Param("dto") IndexQueryDTO dto);
/**
* 大数据平台-订单总数
*
* @return 订单总数
*/
Long countTotalOrders();
}

View File

@@ -9,6 +9,7 @@ import com.jsowell.pile.dto.ningxiajiaotou.NXJTQueryStationInfoDTO;
import com.jsowell.pile.vo.base.ThirdPartyStationInfoVO;
import com.jsowell.pile.vo.ningxiajiaotou.NXJTStationInfoVO;
import com.jsowell.pile.vo.web.PileStationVO;
import com.jsowell.pile.vo.web.StationMapVO;
import com.jsowell.pile.vo.web.StationSelectVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
@@ -140,4 +141,18 @@ public interface PileStationInfoMapper {
* @return
*/
List<String> getStationIdsByMerchantIds(@Param("merchantIds") List<String> merchantIdList);
/**
* 统计充电站总数
*
* @return 充电站总数
*/
Long countTotalStations();
/**
* 查询所有充电站坐标(用于地图展示)
*
* @return 站点坐标列表
*/
List<StationMapVO> getStationMapData();
}

View File

@@ -174,4 +174,11 @@ public interface MemberBasicInfoService {
ConfirmStartChargingMemberVO queryMemberInfoByCardCode(String physicsCard, String merchantId, String stationId);
ConfirmStartChargingMemberVO queryByVinCode(String vinCode, String merchantId, String stationId);
/**
* 统计总会员数
*
* @return 会员总数
*/
Long countTotalMembers();
}

View File

@@ -684,4 +684,19 @@ public interface OrderBasicInfoService{
List<RealTimeMonitorData> getRealTimeMonitorDataList(List<String> transactionCodeList);
int batchUpdateOrderReview(UpdateOrderReviewDTO dto);
/**
* 大数据平台-使用率趋势数据
*
* @param dto 查询条件
* @return 趋势数据列表
*/
List<UsageTrendVO> getUsageTrendData(IndexQueryDTO dto);
/**
* 大数据平台-订单总数
*
* @return 订单总数
*/
Long countTotalOrders();
}

View File

@@ -15,6 +15,7 @@ import com.jsowell.pile.vo.ningxiajiaotou.NXJTStationInfoVO;
import com.jsowell.pile.vo.uniapp.business.StationBusinessAnalyzeInfoVO;
import com.jsowell.pile.vo.uniapp.business.StationStatisticsInfosVO;
import com.jsowell.pile.vo.web.PileStationVO;
import com.jsowell.pile.vo.web.StationMapVO;
import com.jsowell.pile.vo.web.StationSelectVO;
import java.util.List;
@@ -229,4 +230,18 @@ public interface PileStationInfoService {
* @return
*/
List<String> getStationIdsByMerchantIds(List<String> merchantIdList);
/**
* 统计充电站总数
*
* @return 充电站总数
*/
Long countTotalStations();
/**
* 查询所有充电站坐标(用于地图展示)
*
* @return 站点坐标列表
*/
List<StationMapVO> getStationMapData();
}

View File

@@ -897,4 +897,9 @@ public class MemberBasicInfoServiceImpl implements MemberBasicInfoService {
return memberVO;
}
@Override
public Long countTotalMembers() {
return memberBasicInfoMapper.countTotalMembers();
}
}

View File

@@ -6686,5 +6686,15 @@ public class OrderBasicInfoServiceImpl implements OrderBasicInfoService {
}
return resultList;
}
@Override
public List<UsageTrendVO> getUsageTrendData(IndexQueryDTO dto) {
return orderBasicInfoMapper.getUsageTrendData(dto);
}
@Override
public Long countTotalOrders() {
return orderBasicInfoMapper.countTotalOrders();
}
}

View File

@@ -37,6 +37,7 @@ import com.jsowell.pile.vo.uniapp.business.StationOrderQuantityInfoVO;
import com.jsowell.pile.vo.uniapp.business.StationStatisticsInfosVO;
import com.jsowell.pile.vo.uniapp.customer.CurrentTimePriceDetails;
import com.jsowell.pile.vo.web.PileStationVO;
import com.jsowell.pile.vo.web.StationMapVO;
import com.jsowell.pile.vo.web.StationSelectVO;
import com.jsowell.system.service.SysDeptService;
import com.jsowell.system.service.SysUserService;
@@ -1688,4 +1689,14 @@ public class PileStationInfoServiceImpl implements PileStationInfoService {
return pileStationInfoMapper.getStationIdsByMerchantIds(merchantIdList);
}
@Override
public Long countTotalStations() {
return pileStationInfoMapper.countTotalStations();
}
@Override
public List<StationMapVO> getStationMapData() {
return pileStationInfoMapper.getStationMapData();
}
}

View File

@@ -330,4 +330,8 @@
t2.vin_code = #{vinCode,jdbcType=VARCHAR} or t2.vin_code = reverse(#{vinCode,jdbcType=VARCHAR})
)
</select>
<select id="countTotalMembers" resultType="java.lang.Long">
select count(*) from member_basic_info where del_flag = '0'
</select>
</mapper>

View File

@@ -3656,4 +3656,28 @@
#{orderCode}
</foreach>
</update>
<select id="getUsageTrendData" resultType="com.jsowell.pile.vo.web.UsageTrendVO">
select
DATE_FORMAT(t1.create_time, '%Y-%m-%d') as date,
count(*) as orderCount,
ifnull(sum(t2.total_used_electricity), 0) as electricity,
ifnull(sum(t2.total_order_amount), 0) as orderAmount
from order_basic_info t1
left join order_detail t2 on t1.order_code = t2.order_code
where t1.del_flag = '0'
and t1.order_status = '6'
<if test="dto.startTime != null and dto.startTime != ''">
and t1.create_time &gt;= #{dto.startTime}
</if>
<if test="dto.endTime != null and dto.endTime != ''">
and t1.create_time &lt;= #{dto.endTime}
</if>
group by DATE_FORMAT(t1.create_time, '%Y-%m-%d')
order by date asc
</select>
<select id="countTotalOrders" resultType="java.lang.Long">
select count(*) from order_basic_info where del_flag = '0'
</select>
</mapper>

View File

@@ -754,4 +754,20 @@
#{merchantId,jdbcType=VARCHAR}
</foreach>
</select>
<select id="countTotalStations" resultType="java.lang.Long">
select count(*) from pile_station_info where del_flag = '0'
</select>
<select id="getStationMapData" resultType="com.jsowell.pile.vo.web.StationMapVO">
select station_name as stationName,
station_lng as stationLng,
station_lat as stationLat
from pile_station_info
where del_flag = '0'
and station_lng is not null
and station_lat is not null
and station_lng != ''
and station_lat != ''
</select>
</mapper>