mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-22 03:55:17 +08:00
add 新增 查询充电优免订单接口
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package com.jsowell.pile.mapper;
|
||||
|
||||
import com.jsowell.pile.domain.CarCouponRecord;
|
||||
import com.jsowell.pile.vo.uniapp.customer.ParkingOrderVO;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
@@ -68,4 +69,11 @@ public interface CarCouponRecordMapper {
|
||||
* @return
|
||||
*/
|
||||
CarCouponRecord selectCarCouponRecord(@Param("orderCode") String orderCode);
|
||||
|
||||
/**
|
||||
* 通过memberId查询充电优免订单
|
||||
* @param memberId
|
||||
* @return
|
||||
*/
|
||||
List<ParkingOrderVO> queryParkingOrderList(@Param("memberId") String memberId);
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package com.jsowell.pile.service;
|
||||
|
||||
import com.jsowell.pile.domain.CarCouponRecord;
|
||||
import com.jsowell.pile.vo.uniapp.customer.ParkingOrderVO;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@@ -63,4 +64,6 @@ public interface CarCouponRecordService {
|
||||
* 根据订单号与车牌号查询发券成功的记录
|
||||
*/
|
||||
public CarCouponRecord selectCarCouponRecord(String orderCode);
|
||||
|
||||
List<ParkingOrderVO> queryParkingOrderList(String memberId);
|
||||
}
|
||||
|
||||
@@ -6,6 +6,7 @@ import com.jsowell.common.util.DateUtils;
|
||||
import com.jsowell.pile.domain.CarCouponRecord;
|
||||
import com.jsowell.pile.mapper.CarCouponRecordMapper;
|
||||
import com.jsowell.pile.service.CarCouponRecordService;
|
||||
import com.jsowell.pile.vo.uniapp.customer.ParkingOrderVO;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
@@ -111,4 +112,9 @@ public class CarCouponRecordServiceImpl implements CarCouponRecordService {
|
||||
}
|
||||
return carCouponRecord;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<ParkingOrderVO> queryParkingOrderList(String memberId) {
|
||||
return carCouponRecordMapper.queryParkingOrderList(memberId);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,54 @@
|
||||
package com.jsowell.pile.vo.uniapp.customer;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* 停车优免订单VO
|
||||
*
|
||||
* @author Lemon
|
||||
* @Date 2025/6/10 15:25:51
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Builder
|
||||
public class ParkingOrderVO {
|
||||
|
||||
/**
|
||||
* 会员id
|
||||
*/
|
||||
private String memberId;
|
||||
|
||||
/**
|
||||
* 订单编号
|
||||
*/
|
||||
private String orderCode;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private String createTime;
|
||||
|
||||
/**
|
||||
* 车牌号码
|
||||
*/
|
||||
private String plateNumber;
|
||||
|
||||
/**
|
||||
* 站点id
|
||||
*/
|
||||
private String stationId;
|
||||
|
||||
/**
|
||||
* 站点名称
|
||||
*/
|
||||
private String stationName;
|
||||
|
||||
/**
|
||||
* 停车优免平台返回码
|
||||
*/
|
||||
private String returnMsg;
|
||||
}
|
||||
Reference in New Issue
Block a user