1
This commit is contained in:
parent
feeb5f19b1
commit
6b4dc8cbca
@ -21,6 +21,17 @@ public interface CustomerBalanceService extends IService<CustomerBalance> {
|
|||||||
*/
|
*/
|
||||||
String createCustomerBalance(@Valid CustomerBalanceSaveReqVO createReqVO);
|
String createCustomerBalance(@Valid CustomerBalanceSaveReqVO createReqVO);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新用户余额信息
|
||||||
|
*
|
||||||
|
* @param cusId 用户id
|
||||||
|
* @param orderId 订单id
|
||||||
|
* @param activeId 活动id
|
||||||
|
* @author PQZ
|
||||||
|
* @date 21:04 2024/9/23
|
||||||
|
**/
|
||||||
|
void saveBalance(String cusId, String orderId, String activeId);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 更新用户积分(余额)
|
* 更新用户积分(余额)
|
||||||
*
|
*
|
||||||
@ -30,11 +41,12 @@ public interface CustomerBalanceService extends IService<CustomerBalance> {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 根据用户id更新用户余额表
|
* 根据用户id更新用户余额表
|
||||||
* @author PQZ
|
*
|
||||||
* @date 11:56 2024/9/21
|
|
||||||
* @param balance CustomerBalance
|
* @param balance CustomerBalance
|
||||||
* @return void
|
* @return void
|
||||||
**/
|
* @author PQZ
|
||||||
|
* @date 11:56 2024/9/21
|
||||||
|
**/
|
||||||
void updateByCusId(CustomerBalance balance);
|
void updateByCusId(CustomerBalance balance);
|
||||||
|
|
||||||
|
|
||||||
|
@ -5,7 +5,9 @@ import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
|
|||||||
import cn.iocoder.yudao.module.custom.entity.CustomerBalance;
|
import cn.iocoder.yudao.module.custom.entity.CustomerBalance;
|
||||||
import cn.iocoder.yudao.module.custom.mapper.CustomerBalanceMapper;
|
import cn.iocoder.yudao.module.custom.mapper.CustomerBalanceMapper;
|
||||||
import cn.iocoder.yudao.module.custom.service.CustomerBalanceService;
|
import cn.iocoder.yudao.module.custom.service.CustomerBalanceService;
|
||||||
|
import cn.iocoder.yudao.module.custom.service.CustomerMainService;
|
||||||
import cn.iocoder.yudao.module.custom.vo.CustomerBalanceSaveReqVO;
|
import cn.iocoder.yudao.module.custom.vo.CustomerBalanceSaveReqVO;
|
||||||
|
import cn.iocoder.yudao.module.custom.vo.CustomerMainRespVO;
|
||||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
@ -25,6 +27,9 @@ public class CustomerBalanceServiceImpl extends ServiceImpl<CustomerBalanceMappe
|
|||||||
|
|
||||||
@Resource
|
@Resource
|
||||||
private CustomerBalanceMapper customerBalanceMapper;
|
private CustomerBalanceMapper customerBalanceMapper;
|
||||||
|
@Resource
|
||||||
|
private CustomerMainService customerMainService;
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String createCustomerBalance(CustomerBalanceSaveReqVO createReqVO) {
|
public String createCustomerBalance(CustomerBalanceSaveReqVO createReqVO) {
|
||||||
@ -35,6 +40,21 @@ public class CustomerBalanceServiceImpl extends ServiceImpl<CustomerBalanceMappe
|
|||||||
return customerBalance.getId();
|
return customerBalance.getId();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新用户余额信息
|
||||||
|
*
|
||||||
|
* @param cusId 用户id
|
||||||
|
* @param orderId 订单id
|
||||||
|
* @param activeId 活动id
|
||||||
|
* @author PQZ
|
||||||
|
* @date 21:04 2024/9/23
|
||||||
|
**/
|
||||||
|
@Override
|
||||||
|
public void saveBalance(String cusId, String orderId, String activeId) {
|
||||||
|
//查询当前登录用户信息
|
||||||
|
CustomerMainRespVO customer = customerMainService.getCustomerById(cusId);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void updateCustomerBalance(CustomerBalanceSaveReqVO updateReqVO) {
|
public void updateCustomerBalance(CustomerBalanceSaveReqVO updateReqVO) {
|
||||||
// 更新
|
// 更新
|
||||||
|
Loading…
Reference in New Issue
Block a user