余额记录修改
This commit is contained in:
@@ -88,10 +88,10 @@ public class UShopUserController {
|
|||||||
*/
|
*/
|
||||||
@GetMapping("/moneyRecord")
|
@GetMapping("/moneyRecord")
|
||||||
public CzgResult<Page<ShopUserFlowInfoVO>> getMoneyRecord(@RequestParam Long shopId) {
|
public CzgResult<Page<ShopUserFlowInfoVO>> getMoneyRecord(@RequestParam Long shopId) {
|
||||||
return CzgResult.success(shopUserFlowService.pageAs(PageUtil.buildPage(), new QueryWrapper().eq(ShopUserFlow::getShopId, shopId)
|
return CzgResult.success(shopUserFlowService.pageAs(PageUtil.buildPage(), new MyQueryWrapper().eq(ShopUserFlow::getShopId, shopId)
|
||||||
|
.selectAll(ShopUserFlow.class)
|
||||||
.eq(ShopUserFlow::getUserId, StpKit.USER.getLoginIdAsLong()).leftJoin(ShopInfo.class).on(ShopUserFlow::getShopId, ShopInfo::getId)
|
.eq(ShopUserFlow::getUserId, StpKit.USER.getLoginIdAsLong()).leftJoin(ShopInfo.class).on(ShopUserFlow::getShopId, ShopInfo::getId)
|
||||||
.select(ShopInfo::getShopName)
|
.select(ShopInfo::getShopName)
|
||||||
.select(ShopUserFlow::getUserId, ShopUserFlow::getAmount, ShopUserFlow::getBizCode, ShopUserFlow::getRemark)
|
|
||||||
.orderBy(ShopUserFlow::getId, false), ShopUserFlowInfoVO.class));
|
.orderBy(ShopUserFlow::getId, false), ShopUserFlowInfoVO.class));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user