update 接口添加字段 对外展示VIP价格标识

This commit is contained in:
Guoqs
2025-06-25 11:39:25 +08:00
parent 2605102fa0
commit d053616b69
7 changed files with 26 additions and 2 deletions

View File

@@ -410,6 +410,7 @@ public class PileBillingTemplateServiceImpl implements PileBillingTemplateServic
// 将桩的费率存入stationVO // 将桩的费率存入stationVO
BigDecimal electricityPrice = detailVO.getElectricityPrice(); BigDecimal electricityPrice = detailVO.getElectricityPrice();
BigDecimal servicePrice = detailVO.getServicePrice(); BigDecimal servicePrice = detailVO.getServicePrice();
result.setDisplayFlag(preferentialBillingTemplate.getDisplayFlag());
result.setVipElectricityPrice(electricityPrice.toString()); result.setVipElectricityPrice(electricityPrice.toString());
result.setVipServicePrice(servicePrice.toString()); result.setVipServicePrice(servicePrice.toString());
result.setVipTotalPrice(electricityPrice.add(servicePrice).toString()); result.setVipTotalPrice(electricityPrice.add(servicePrice).toString());
@@ -796,6 +797,7 @@ public class PileBillingTemplateServiceImpl implements PileBillingTemplateServic
// 优惠计费模板价格 // 优惠计费模板价格
BillingDetailVO preferentialBillingDetailVO = preferentialBillingDetailVOMap.get(type); BillingDetailVO preferentialBillingDetailVO = preferentialBillingDetailVOMap.get(type);
if (Objects.nonNull(preferentialBillingDetailVO)) { if (Objects.nonNull(preferentialBillingDetailVO)) {
vo.setDisplayFlag(preferentialBillingTemplate != null ? preferentialBillingTemplate.getDisplayFlag() : "0");
// vip电费 // vip电费
vo.setVipElectricityPrice(preferentialBillingDetailVO.getElectricityPrice().toString()); vo.setVipElectricityPrice(preferentialBillingDetailVO.getElectricityPrice().toString());
// vip服务费 // vip服务费

View File

@@ -36,7 +36,6 @@ import com.jsowell.pile.vo.uniapp.business.StationBusinessAnalyzeInfoVO;
import com.jsowell.pile.vo.uniapp.business.StationOrderQuantityInfoVO; import com.jsowell.pile.vo.uniapp.business.StationOrderQuantityInfoVO;
import com.jsowell.pile.vo.uniapp.business.StationStatisticsInfosVO; import com.jsowell.pile.vo.uniapp.business.StationStatisticsInfosVO;
import com.jsowell.pile.vo.uniapp.customer.CurrentTimePriceDetails; import com.jsowell.pile.vo.uniapp.customer.CurrentTimePriceDetails;
import com.jsowell.pile.vo.web.PileDetailVO;
import com.jsowell.pile.vo.web.PileStationVO; import com.jsowell.pile.vo.web.PileStationVO;
import com.jsowell.system.service.SysDeptService; import com.jsowell.system.service.SysDeptService;
import com.jsowell.system.service.SysUserService; import com.jsowell.system.service.SysUserService;
@@ -598,6 +597,7 @@ public class PileStationInfoServiceImpl implements PileStationInfoService {
stationVO.setFreeTime(currentTimePriceDetails.getFreeTime()); stationVO.setFreeTime(currentTimePriceDetails.getFreeTime());
stationVO.setOccupyFee(currentTimePriceDetails.getOccupyFee()); stationVO.setOccupyFee(currentTimePriceDetails.getOccupyFee());
// vip价 // vip价
stationVO.setDisplayFlag(currentTimePriceDetails.getDisplayFlag());
stationVO.setVipElectricityPrice(currentTimePriceDetails.getVipElectricityPrice()); stationVO.setVipElectricityPrice(currentTimePriceDetails.getVipElectricityPrice());
stationVO.setVipServicePrice(currentTimePriceDetails.getVipServicePrice()); stationVO.setVipServicePrice(currentTimePriceDetails.getVipServicePrice());
stationVO.setVipTotalPrice(currentTimePriceDetails.getVipTotalPrice()); stationVO.setVipTotalPrice(currentTimePriceDetails.getVipTotalPrice());

View File

@@ -63,6 +63,11 @@ public class StationInfoVO {
*/ */
private String totalPrice; private String totalPrice;
/**
* 对外展示VIP价格标识(0-不展示; 1-展示)
*/
private String displayFlag;
/** /**
* vip电费 * vip电费
*/ */

View File

@@ -42,6 +42,11 @@ public class BillingPriceVO {
*/ */
private String totalPrice; private String totalPrice;
/**
* 对外展示标识(0-不展示; 1-展示)
*/
private String displayFlag;
/** /**
* vip电费 * vip电费
*/ */

View File

@@ -42,6 +42,11 @@ public class CurrentTimePriceDetails {
*/ */
private String totalPrice; private String totalPrice;
/**
* 对外展示VIP价格标识(0-不展示; 1-展示)
*/
private String displayFlag;
/** /**
* vip电费 * vip电费
*/ */

View File

@@ -39,6 +39,11 @@ public class BillingTemplateVO {
*/ */
private String memberFlag; private String memberFlag;
/**
* 对外展示VIP价格标识(0-不展示; 1-展示)
*/
private String displayFlag;
// 计费模板备注 // 计费模板备注
private String remark; private String remark;

View File

@@ -507,6 +507,7 @@
t2.id as templateId, t2.id as templateId,
t2.template_code AS templateCode, t2.template_code AS templateCode,
t2.`name` AS templateName, t2.`name` AS templateName,
t2.display_flag AS displayFlag,
t3.electricity_price AS sharpElectricityPrice, t3.electricity_price AS sharpElectricityPrice,
t3.service_price AS sharpServicePrice, t3.service_price AS sharpServicePrice,
t3.apply_time AS sharpApplyDate, t3.apply_time AS sharpApplyDate,
@@ -628,6 +629,7 @@
t2.id as templateId, t2.id as templateId,
t2.template_code AS templateCode, t2.template_code AS templateCode,
t2.`name` AS templateName, t2.`name` AS templateName,
t2.display_flag as displayFlag,
t3.electricity_price AS sharpElectricityPrice, t3.electricity_price AS sharpElectricityPrice,
t3.service_price AS sharpServicePrice, t3.service_price AS sharpServicePrice,
t3.apply_time AS sharpApplyDate, t3.apply_time AS sharpApplyDate,