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 org.springblade.core.mp.base.BaseService;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* 用户福利值表 服务类
|
||||
*
|
||||
@@ -17,7 +19,7 @@ public interface IMarketBenefitPointService extends BaseService<MarketBenefitPoi
|
||||
/**
|
||||
* 自定义分页
|
||||
*
|
||||
* @param page 分页参数
|
||||
* @param page 分页参数
|
||||
* @param commonBenefitPoint 查询参数
|
||||
* @return IPage<CommonBenefitPointVO>
|
||||
*/
|
||||
@@ -33,7 +35,8 @@ public interface IMarketBenefitPointService extends BaseService<MarketBenefitPoi
|
||||
Boolean addBenefitPoint(MarketBenefitPointApiDTO dto);
|
||||
|
||||
|
||||
/**`
|
||||
/**
|
||||
* `
|
||||
* 扣减福利积分
|
||||
*
|
||||
* @param dto 扣减参数
|
||||
@@ -41,4 +44,6 @@ public interface IMarketBenefitPointService extends BaseService<MarketBenefitPoi
|
||||
*/
|
||||
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;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Boolean transfer(Long from, Long to, BigDecimal amount) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
private MarketBenefitPointLogEntity saveBenefitPointLog(MarketBenefitPointApiDTO dto , Integer type){
|
||||
MarketBenefitPointLogEntity benefitPointLog = MarketUserMarketInfoConvert.INSTANCE.convertBenefitPointDTOToEntity(dto);
|
||||
|
||||
Reference in New Issue
Block a user