余额列表接口
This commit is contained in:
@@ -1,8 +1,6 @@
|
|||||||
package com.czg.controller.user;
|
package com.czg.controller.user;
|
||||||
|
|
||||||
import com.czg.market.service.MkShopRechargeService;
|
import com.czg.market.service.MkShopRechargeService;
|
||||||
import com.czg.market.vo.MemberDetailVO;
|
|
||||||
import com.czg.market.vo.MemberListVO;
|
|
||||||
import com.czg.market.vo.MkShopRechargeVO;
|
import com.czg.market.vo.MkShopRechargeVO;
|
||||||
import com.czg.market.vo.RechargeListVO;
|
import com.czg.market.vo.RechargeListVO;
|
||||||
import com.czg.resp.CzgResult;
|
import com.czg.resp.CzgResult;
|
||||||
@@ -35,8 +33,11 @@ public class URechargeController {
|
|||||||
return CzgResult.success(shopRechargeService.detail(shopId));
|
return CzgResult.success(shopRechargeService.detail(shopId));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 储值列表
|
||||||
|
*/
|
||||||
@GetMapping("/list")
|
@GetMapping("/list")
|
||||||
public List<RechargeListVO> getList() {
|
public CzgResult<List<RechargeListVO>> getList() {
|
||||||
return CzgResult.success(shopRechargeService.getList(StpKit.USER.getLoginIdAsLong()));
|
return CzgResult.success(shopRechargeService.getList(StpKit.USER.getLoginIdAsLong()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -3,12 +3,14 @@ package com.czg.market.service;
|
|||||||
import com.czg.enums.ShopUserFlowBizEnum;
|
import com.czg.enums.ShopUserFlowBizEnum;
|
||||||
import com.czg.market.dto.MkShopRechargeDTO;
|
import com.czg.market.dto.MkShopRechargeDTO;
|
||||||
import com.czg.market.vo.MkShopRechargeVO;
|
import com.czg.market.vo.MkShopRechargeVO;
|
||||||
|
import com.czg.market.vo.RechargeListVO;
|
||||||
import com.mybatisflex.core.service.IService;
|
import com.mybatisflex.core.service.IService;
|
||||||
import com.czg.market.entity.MkShopRecharge;
|
import com.czg.market.entity.MkShopRecharge;
|
||||||
import jakarta.validation.constraints.DecimalMin;
|
import jakarta.validation.constraints.DecimalMin;
|
||||||
import jakarta.validation.constraints.NotNull;
|
import jakarta.validation.constraints.NotNull;
|
||||||
|
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 充值配置表 服务层。
|
* 充值配置表 服务层。
|
||||||
@@ -26,6 +28,6 @@ public interface MkShopRechargeService extends IService<MkShopRecharge> {
|
|||||||
|
|
||||||
void recharge(Long shopId, Long shopUserId, Long relatedId, BigDecimal amount, Long paymentId, String payType, ShopUserFlowBizEnum bizEnum);
|
void recharge(Long shopId, Long shopUserId, Long relatedId, BigDecimal amount, Long paymentId, String payType, ShopUserFlowBizEnum bizEnum);
|
||||||
|
|
||||||
Object getList(long loginIdAsLong);
|
List<RechargeListVO> getList(long loginIdAsLong);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -189,7 +189,7 @@ public class MkShopRechargeServiceImpl extends ServiceImpl<MkShopRechargeMapper,
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Object getList(long loginIdAsLong) {
|
public List<RechargeListVO> getList(long loginIdAsLong) {
|
||||||
ArrayList<RechargeListVO> rechargeListVOS = new ArrayList<>();
|
ArrayList<RechargeListVO> rechargeListVOS = new ArrayList<>();
|
||||||
List<ShopUser> shopUserList = shopUserService.list(new QueryWrapper().eq(ShopUser::getUserId, loginIdAsLong));
|
List<ShopUser> shopUserList = shopUserService.list(new QueryWrapper().eq(ShopUser::getUserId, loginIdAsLong));
|
||||||
if (shopUserList.isEmpty()) {
|
if (shopUserList.isEmpty()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user