update:
1. update benefit-point
This commit is contained in:
@@ -7,6 +7,8 @@ import org.springblade.modules.market.pojo.vo.MarketBenefitPointVO;
|
|||||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
import org.springblade.core.mp.base.BaseService;
|
import org.springblade.core.mp.base.BaseService;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 用户福利值表 服务类
|
* 用户福利值表 服务类
|
||||||
*
|
*
|
||||||
@@ -33,7 +35,8 @@ public interface IMarketBenefitPointService extends BaseService<MarketBenefitPoi
|
|||||||
Boolean addBenefitPoint(MarketBenefitPointApiDTO dto);
|
Boolean addBenefitPoint(MarketBenefitPointApiDTO dto);
|
||||||
|
|
||||||
|
|
||||||
/**`
|
/**
|
||||||
|
* `
|
||||||
* 扣减福利积分
|
* 扣减福利积分
|
||||||
*
|
*
|
||||||
* @param dto 扣减参数
|
* @param dto 扣减参数
|
||||||
@@ -41,4 +44,6 @@ public interface IMarketBenefitPointService extends BaseService<MarketBenefitPoi
|
|||||||
*/
|
*/
|
||||||
Boolean deductBenefitPoint(MarketBenefitPointApiDTO dto);
|
Boolean deductBenefitPoint(MarketBenefitPointApiDTO dto);
|
||||||
|
|
||||||
|
Boolean transfer(Long from, Long to, BigDecimal amount);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -81,6 +81,11 @@ public class MarketBenefitPointServiceImpl extends BaseServiceImpl<MarketBenefit
|
|||||||
return Boolean.TRUE;
|
return Boolean.TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Boolean transfer(Long from, Long to, BigDecimal amount) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
private MarketBenefitPointLogEntity saveBenefitPointLog(MarketBenefitPointApiDTO dto , Integer type){
|
private MarketBenefitPointLogEntity saveBenefitPointLog(MarketBenefitPointApiDTO dto , Integer type){
|
||||||
MarketBenefitPointLogEntity benefitPointLog = MarketUserMarketInfoConvert.INSTANCE.convertBenefitPointDTOToEntity(dto);
|
MarketBenefitPointLogEntity benefitPointLog = MarketUserMarketInfoConvert.INSTANCE.convertBenefitPointDTOToEntity(dto);
|
||||||
|
|||||||
Reference in New Issue
Block a user