mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-09 20:40:03 +08:00
update 查询未开发票订单,新增站点id条件
This commit is contained in:
@@ -1034,7 +1034,7 @@ public class OrderService {
|
|||||||
|
|
||||||
// 查询最近15天完成的订单
|
// 查询最近15天完成的订单
|
||||||
LocalDateTime dateTime = LocalDateTime.now().plusDays(-i);
|
LocalDateTime dateTime = LocalDateTime.now().plusDays(-i);
|
||||||
List<OrderVO> orderList = orderBasicInfoService.getListByMemberIdAndOrderStatus(dto.getMemberId(), Lists.newArrayList("6"), dateTime);
|
List<OrderVO> orderList = orderBasicInfoService.getListByMemberIdAndOrderStatus(dto.getMemberId(), Lists.newArrayList("6"), dateTime, dto.getStationId());
|
||||||
|
|
||||||
// 过滤掉订单金额为0的
|
// 过滤掉订单金额为0的
|
||||||
orderList = orderList.stream()
|
orderList = orderList.stream()
|
||||||
|
|||||||
@@ -142,7 +142,8 @@ public interface OrderBasicInfoMapper {
|
|||||||
*/
|
*/
|
||||||
List<OrderVO> getListByMemberIdAndOrderStatus(@Param("memberId") String memberId,
|
List<OrderVO> getListByMemberIdAndOrderStatus(@Param("memberId") String memberId,
|
||||||
@Param("orderStatusList") List<String> orderStatusList,
|
@Param("orderStatusList") List<String> orderStatusList,
|
||||||
@Param("dateTime") LocalDateTime dateTime);
|
@Param("dateTime") LocalDateTime dateTime,
|
||||||
|
@Param("stationId") String stationId);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 将某订单修改为某状态
|
* 将某订单修改为某状态
|
||||||
|
|||||||
@@ -4,7 +4,12 @@ import com.jsowell.common.core.domain.ykc.RealTimeMonitorData;
|
|||||||
import com.jsowell.common.core.domain.ykc.TransactionRecordsData;
|
import com.jsowell.common.core.domain.ykc.TransactionRecordsData;
|
||||||
import com.jsowell.pile.domain.OrderBasicInfo;
|
import com.jsowell.pile.domain.OrderBasicInfo;
|
||||||
import com.jsowell.pile.domain.OrderDetail;
|
import com.jsowell.pile.domain.OrderDetail;
|
||||||
import com.jsowell.pile.dto.*;
|
import com.jsowell.pile.dto.GenerateOrderDTO;
|
||||||
|
import com.jsowell.pile.dto.IndexQueryDTO;
|
||||||
|
import com.jsowell.pile.dto.QueryOrderDTO;
|
||||||
|
import com.jsowell.pile.dto.QueryPersonPileDTO;
|
||||||
|
import com.jsowell.pile.dto.QueryStartChargeDTO;
|
||||||
|
import com.jsowell.pile.dto.QueryStationInfoDTO;
|
||||||
import com.jsowell.pile.vo.base.OrderAmountDetailVO;
|
import com.jsowell.pile.vo.base.OrderAmountDetailVO;
|
||||||
import com.jsowell.pile.vo.base.OrderPeriodAmountVO;
|
import com.jsowell.pile.vo.base.OrderPeriodAmountVO;
|
||||||
import com.jsowell.pile.vo.lianlian.AccumulativeInfoVO;
|
import com.jsowell.pile.vo.lianlian.AccumulativeInfoVO;
|
||||||
@@ -123,6 +128,8 @@ public interface IOrderBasicInfoService {
|
|||||||
|
|
||||||
List<OrderVO> getListByMemberIdAndOrderStatus(String memberId, List<String> orderStatusList, LocalDateTime dateTime);
|
List<OrderVO> getListByMemberIdAndOrderStatus(String memberId, List<String> orderStatusList, LocalDateTime dateTime);
|
||||||
|
|
||||||
|
List<OrderVO> getListByMemberIdAndOrderStatus(String memberId, List<String> orderStatusList, LocalDateTime dateTime, String stationId);
|
||||||
|
|
||||||
void realTimeMonitorDataRedis2DB(String transactionCode, String orderCode);
|
void realTimeMonitorDataRedis2DB(String transactionCode, String orderCode);
|
||||||
|
|
||||||
void updateElecAmount();
|
void updateElecAmount();
|
||||||
@@ -239,4 +246,6 @@ public interface IOrderBasicInfoService {
|
|||||||
List<OrderAmountDetailVO> queryOrderAmountDetail(List<String> orderCodes);
|
List<OrderAmountDetailVO> queryOrderAmountDetail(List<String> orderCodes);
|
||||||
|
|
||||||
List<OrderPeriodAmountVO> transformPeriodAmountByOrderDetail(OrderDetail orderDetail);
|
List<OrderPeriodAmountVO> transformPeriodAmountByOrderDetail(OrderDetail orderDetail);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1374,12 +1374,17 @@ public class OrderBasicInfoServiceImpl implements IOrderBasicInfoService {
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public List<OrderVO> getListByMemberIdAndOrderStatus(String memberId, List<String> orderStatusList) {
|
public List<OrderVO> getListByMemberIdAndOrderStatus(String memberId, List<String> orderStatusList) {
|
||||||
return orderBasicInfoMapper.getListByMemberIdAndOrderStatus(memberId, orderStatusList, null);
|
return getListByMemberIdAndOrderStatus(memberId, orderStatusList, null, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<OrderVO> getListByMemberIdAndOrderStatus(String memberId, List<String> orderStatusList, LocalDateTime dateTime) {
|
public List<OrderVO> getListByMemberIdAndOrderStatus(String memberId, List<String> orderStatusList, LocalDateTime dateTime) {
|
||||||
return orderBasicInfoMapper.getListByMemberIdAndOrderStatus(memberId, orderStatusList, dateTime);
|
return getListByMemberIdAndOrderStatus(memberId, orderStatusList, dateTime, null);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<OrderVO> getListByMemberIdAndOrderStatus(String memberId, List<String> orderStatusList, LocalDateTime dateTime, String stationId) {
|
||||||
|
return orderBasicInfoMapper.getListByMemberIdAndOrderStatus(memberId, orderStatusList, dateTime, stationId);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -743,6 +743,9 @@
|
|||||||
join pile_station_info t3 on t1.station_id = t3.id
|
join pile_station_info t3 on t1.station_id = t3.id
|
||||||
where t1.del_flag = '0'
|
where t1.del_flag = '0'
|
||||||
and t1.member_id = #{memberId,jdbcType=VARCHAR}
|
and t1.member_id = #{memberId,jdbcType=VARCHAR}
|
||||||
|
<if test="stationId != null and stationId != ''">
|
||||||
|
and t1.station_id = #{stationId,jdbcType=VARCHAR}
|
||||||
|
</if>
|
||||||
<if test="orderStatusList != null and orderStatusList.size() != 0">
|
<if test="orderStatusList != null and orderStatusList.size() != 0">
|
||||||
and t1.order_status in
|
and t1.order_status in
|
||||||
<foreach collection="orderStatusList" item="orderStatus" open="(" separator="," close=")">
|
<foreach collection="orderStatusList" item="orderStatus" open="(" separator="," close=")">
|
||||||
@@ -753,7 +756,6 @@
|
|||||||
and t1.create_time <![CDATA[ >= ]]> #{dateTime,jdbcType=VARCHAR}
|
and t1.create_time <![CDATA[ >= ]]> #{dateTime,jdbcType=VARCHAR}
|
||||||
</if>
|
</if>
|
||||||
order by t1.create_time desc
|
order by t1.create_time desc
|
||||||
|
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<update id="updateOrderStatusByOrderCode">
|
<update id="updateOrderStatusByOrderCode">
|
||||||
|
|||||||
Reference in New Issue
Block a user