mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-28 06:55:09 +08:00
新增 车辆绑定优惠券记录表、实体类、Service、controller
This commit is contained in:
@@ -0,0 +1,61 @@
|
||||
package com.jsowell.pile.service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.jsowell.pile.domain.CarCouponRecord;
|
||||
|
||||
/**
|
||||
* 车辆绑定优惠券记录Service接口
|
||||
*
|
||||
* @author jsowell
|
||||
* @date 2024-10-14
|
||||
*/
|
||||
public interface CarCouponRecordService {
|
||||
/**
|
||||
* 查询车辆绑定优惠券记录
|
||||
*
|
||||
* @param id 车辆绑定优惠券记录主键
|
||||
* @return 车辆绑定优惠券记录
|
||||
*/
|
||||
public CarCouponRecord selectCarCouponRecordById(Long id);
|
||||
|
||||
/**
|
||||
* 查询车辆绑定优惠券记录列表
|
||||
*
|
||||
* @param carCouponRecord 车辆绑定优惠券记录
|
||||
* @return 车辆绑定优惠券记录集合
|
||||
*/
|
||||
public List<CarCouponRecord> selectCarCouponRecordList(CarCouponRecord carCouponRecord);
|
||||
|
||||
/**
|
||||
* 新增车辆绑定优惠券记录
|
||||
*
|
||||
* @param carCouponRecord 车辆绑定优惠券记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertCarCouponRecord(CarCouponRecord carCouponRecord);
|
||||
|
||||
/**
|
||||
* 修改车辆绑定优惠券记录
|
||||
*
|
||||
* @param carCouponRecord 车辆绑定优惠券记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateCarCouponRecord(CarCouponRecord carCouponRecord);
|
||||
|
||||
/**
|
||||
* 批量删除车辆绑定优惠券记录
|
||||
*
|
||||
* @param ids 需要删除的车辆绑定优惠券记录主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCarCouponRecordByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 删除车辆绑定优惠券记录信息
|
||||
*
|
||||
* @param id 车辆绑定优惠券记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCarCouponRecordById(Long id);
|
||||
}
|
||||
@@ -0,0 +1,89 @@
|
||||
package com.jsowell.pile.service.impl;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.jsowell.common.util.DateUtils;
|
||||
import com.jsowell.pile.service.CarCouponRecordService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.jsowell.pile.mapper.CarCouponRecordMapper;
|
||||
import com.jsowell.pile.domain.CarCouponRecord;
|
||||
|
||||
/**
|
||||
* 车辆绑定优惠券记录Service业务层处理
|
||||
*
|
||||
* @author jsowell
|
||||
* @date 2024-10-14
|
||||
*/
|
||||
@Service
|
||||
public class CarCouponRecordServiceImpl implements CarCouponRecordService {
|
||||
@Autowired
|
||||
private CarCouponRecordMapper carCouponRecordMapper;
|
||||
|
||||
/**
|
||||
* 查询车辆绑定优惠券记录
|
||||
*
|
||||
* @param id 车辆绑定优惠券记录主键
|
||||
* @return 车辆绑定优惠券记录
|
||||
*/
|
||||
@Override
|
||||
public CarCouponRecord selectCarCouponRecordById(Long id) {
|
||||
return carCouponRecordMapper.selectCarCouponRecordById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询车辆绑定优惠券记录列表
|
||||
*
|
||||
* @param carCouponRecord 车辆绑定优惠券记录
|
||||
* @return 车辆绑定优惠券记录
|
||||
*/
|
||||
@Override
|
||||
public List<CarCouponRecord> selectCarCouponRecordList(CarCouponRecord carCouponRecord) {
|
||||
return carCouponRecordMapper.selectCarCouponRecordList(carCouponRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增车辆绑定优惠券记录
|
||||
*
|
||||
* @param carCouponRecord 车辆绑定优惠券记录
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int insertCarCouponRecord(CarCouponRecord carCouponRecord) {
|
||||
carCouponRecord.setCreateTime(DateUtils.getNowDate());
|
||||
return carCouponRecordMapper.insertCarCouponRecord(carCouponRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改车辆绑定优惠券记录
|
||||
*
|
||||
* @param carCouponRecord 车辆绑定优惠券记录
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int updateCarCouponRecord(CarCouponRecord carCouponRecord) {
|
||||
return carCouponRecordMapper.updateCarCouponRecord(carCouponRecord);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除车辆绑定优惠券记录
|
||||
*
|
||||
* @param ids 需要删除的车辆绑定优惠券记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteCarCouponRecordByIds(Long[] ids) {
|
||||
return carCouponRecordMapper.deleteCarCouponRecordByIds(ids);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除车辆绑定优惠券记录信息
|
||||
*
|
||||
* @param id 车辆绑定优惠券记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
public int deleteCarCouponRecordById(Long id) {
|
||||
return carCouponRecordMapper.deleteCarCouponRecordById(id);
|
||||
}
|
||||
}
|
||||
@@ -4096,9 +4096,14 @@ public class OrderBasicInfoServiceImpl implements OrderBasicInfoService {
|
||||
vo.setEndSOC(orderVO.getEndSoc());
|
||||
vo.setChargeTime(orderVO.getChargingTime());
|
||||
vo.setChargeDegree(orderVO.getChargingDegree());
|
||||
vo.setSettleAmount(orderVO.getSettleAmount());
|
||||
vo.setPayMode(orderVO.getPayMode());
|
||||
vo.setMemberId(orderVO.getMemberId());
|
||||
|
||||
return vo;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public List<OrderBasicInfo> queryOrdersByPileConnectorCodeAndStatus(String pileConnectorCode, String orderStatus, String payStatus) {
|
||||
return orderBasicInfoMapper.queryOrdersByPileConnectorCodeAndStatus(pileConnectorCode, orderStatus, payStatus);
|
||||
|
||||
@@ -978,8 +978,8 @@ public class PileConnectorInfoServiceImpl implements PileConnectorInfoService {
|
||||
|
||||
detailVO.setStartSOC(startSoc);
|
||||
detailVO.setEndSOC(endSoc);
|
||||
detailVO.setChargeDegree(realTimeMonitorData.getChargingDegree());
|
||||
detailVO.setTimeRemaining(realTimeMonitorData.getTimeRemaining());
|
||||
detailVO.setChargeDegree(realTimeMonitorData.getChargingDegree()); // 充电度数
|
||||
detailVO.setTimeRemaining(realTimeMonitorData.getTimeRemaining()); // 剩余时长
|
||||
} else if (StringUtils.equals(PileConnectorDataBaseStatusEnum.FAULT.getValue(), status)) {
|
||||
// 故障
|
||||
// 查询故障原因
|
||||
|
||||
Reference in New Issue
Block a user