会员余额明细获取

This commit is contained in:
张松
2025-03-25 00:18:15 +08:00
parent 1cac2de9ac
commit 6c7b92845f
6 changed files with 52 additions and 9 deletions

View File

@@ -6,6 +6,7 @@ import com.czg.account.entity.ShopUser;
import com.czg.account.entity.ShopUserFlow;
import com.czg.account.service.ShopUserFlowService;
import com.czg.account.service.ShopUserService;
import com.czg.account.vo.ShopUserFlowVO;
import com.czg.annotation.SaAdminCheckPermission;
import com.czg.annotation.SaStaffCheckPermission;
import com.czg.enums.ShopUserFlowBizEnum;
@@ -63,15 +64,8 @@ public class ShopUserController {
@SaAdminCheckPermission(value = "shopUser:flow", name = "店铺用户充值记录")
@GetMapping("/flow")
@SaStaffCheckPermission("yun_xu_guan_li_hui_yuan_xin_xi")
public CzgResult<Page<ShopUserFlow>> flow(@RequestParam Integer userId, String bizCode) {
QueryWrapper queryWrapper = new QueryWrapper().eq(ShopUserFlow::getShopId, StpKit.USER.getShopId())
.eq(ShopUserFlow::getUserId, userId);
if (StrUtil.isNotBlank(bizCode)) {
queryWrapper.eq(ShopUserFlow::getBizCode, bizCode);
}
queryWrapper.orderBy(ShopUserFlow::getCreateTime, false);
queryWrapper.orderBy(ShopUserFlow::getId, true);
return CzgResult.success(shopUserFlowService.page(PageUtil.buildPage(), queryWrapper));
public CzgResult<Page<ShopUserFlowVO>> flow(Integer userId, String bizCode) {
return CzgResult.success(shopUserFlowService.pageInfo(StpKit.USER.getShopId(), userId, bizCode));
}
/**