mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-27 06:25:13 +08:00
update
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package com.jsowell.pile.service;
|
||||
|
||||
import com.jsowell.pile.domain.MemberGroup;
|
||||
import com.jsowell.pile.vo.web.MemberDiscountVO;
|
||||
import com.jsowell.pile.vo.web.MemberGroupVO;
|
||||
|
||||
import java.util.List;
|
||||
@@ -60,4 +61,13 @@ public interface MemberGroupService
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteMemberGroupById(Long id);
|
||||
|
||||
/**
|
||||
* 查询会员折扣
|
||||
* @param merchantId
|
||||
* @param stationId
|
||||
* @param memberId
|
||||
* @return
|
||||
*/
|
||||
MemberDiscountVO queryMemberDiscount(String merchantId, String stationId, String memberId);
|
||||
}
|
||||
|
||||
@@ -7,6 +7,7 @@ import com.jsowell.common.util.id.IdUtils;
|
||||
import com.jsowell.pile.domain.MemberGroup;
|
||||
import com.jsowell.pile.mapper.MemberGroupMapper;
|
||||
import com.jsowell.pile.service.MemberGroupService;
|
||||
import com.jsowell.pile.vo.web.MemberDiscountVO;
|
||||
import com.jsowell.pile.vo.web.MemberGroupVO;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.collections4.CollectionUtils;
|
||||
@@ -127,4 +128,13 @@ public class MemberGroupServiceImpl implements MemberGroupService {
|
||||
public int deleteMemberGroupById(Long id) {
|
||||
return memberGroupMapper.deleteMemberGroupById(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询会员折扣
|
||||
*/
|
||||
@Override
|
||||
public MemberDiscountVO queryMemberDiscount(String merchantId, String stationId, String memberId) {
|
||||
MemberDiscountVO MemberDiscountVO = memberGroupMapper.queryMemberDiscount(merchantId, stationId, memberId);
|
||||
return MemberDiscountVO;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3083,7 +3083,9 @@ public class OrderBasicInfoServiceImpl implements OrderBasicInfoService {
|
||||
}
|
||||
}
|
||||
|
||||
// 计算启动金额
|
||||
/**
|
||||
* 计算启动金额
|
||||
*/
|
||||
private BigDecimal computeChargeAmount(String merchantId, String stationId, String memberId, BigDecimal payAmount) {
|
||||
// 默认折扣100%
|
||||
BigDecimal discount = BigDecimal.ONE;
|
||||
|
||||
@@ -400,6 +400,9 @@ public abstract class AbstractProgramLogic implements InitializingBean {
|
||||
totalElectricityAmount = orderAmount.subtract(totalServiceAmount);
|
||||
}
|
||||
|
||||
// 查询会员折扣
|
||||
|
||||
|
||||
// 电费总金额
|
||||
orderDetail.setTotalElectricityAmount(totalElectricityAmount);
|
||||
// 服务费总金额
|
||||
|
||||
Reference in New Issue
Block a user