update查询用户常去站点(最近半年)

This commit is contained in:
YAS\29473
2025-03-19 15:02:29 +08:00
parent e3ce4c13bc
commit c910ab609a
8 changed files with 26 additions and 36 deletions

View File

@@ -12,7 +12,7 @@ import lombok.NoArgsConstructor;
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class UserFrquentedStationInfo {
public class UserFrequentedStationInfo {
/**
* 站点id
*/

View File

@@ -3,7 +3,7 @@ package com.jsowell.pile.mapper;
import com.alipay.api.domain.ChargeOrderInfo;
import com.jsowell.pile.domain.OrderBasicInfo;
import com.jsowell.pile.domain.OrderDetail;
import com.jsowell.pile.domain.UserFrquentedStationInfo;
import com.jsowell.pile.domain.UserFrequentedStationInfo;
import com.jsowell.pile.dto.*;
import com.jsowell.pile.dto.nanrui.NRQueryOrderDTO;
import com.jsowell.pile.dto.ningxiajiaotou.NXJTQueryOrdersInfoDTO;
@@ -408,7 +408,9 @@ public interface OrderBasicInfoMapper {
/**
* 查询用户常用站点信息
* @param memberId
* @param startTime
* @param endTime
* @return
*/
List<UserFrquentedStationInfo> queryUserFrquentedStation(String memberId);
List<UserFrequentedStationInfo> queryUserFrequentedStation(@Param("memberId") String memberId ,@Param("startTime") LocalDateTime startTime ,@Param("endTime") LocalDateTime endTime);
}

View File

@@ -549,5 +549,5 @@ public interface OrderBasicInfoService{
* @param memberId
* @return
*/
List<UserFrquentedStationInfo> queryUserFrquentedStation(String memberId);
List<UserFrequentedStationInfo> queryUserFrequentedStation(String memberId);
}

View File

@@ -4957,13 +4957,15 @@ public class OrderBasicInfoServiceImpl implements OrderBasicInfoService {
/**
* 查询用户常用充电
* 查询用户常用站点信息
* @param memberId
* @return
*/
@Override
public List<UserFrquentedStationInfo> queryUserFrquentedStation(String memberId) {
return orderBasicInfoMapper.queryUserFrquentedStation(memberId);
public List<UserFrequentedStationInfo> queryUserFrequentedStation(String memberId) {
LocalDateTime endTime = LocalDateTime.now();
LocalDateTime startTime = endTime.minusMonths(6);
return orderBasicInfoMapper.queryUserFrequentedStation(memberId, startTime, endTime);
}
}