会员余额明细获取
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user