| | |
| | | } |
| | | |
| | | @PostMapping("/getShopBalanceStatementList2") |
| | | public R<List<ShopBalanceStatement>> getShopBalanceStatementList2(@RequestParam("type") Integer type, |
| | | public R<List<ShopBalanceStatement>> getShopBalanceStatementList2(@RequestParam("type") Integer type, @RequestParam(value = "shopId") Integer shopId, |
| | | @RequestParam(value = "date") LocalDateTime date){ |
| | | List<ShopBalanceStatement> list = shopBalanceStatementService.list(new LambdaQueryWrapper<ShopBalanceStatement>() |
| | | LambdaQueryWrapper<ShopBalanceStatement> queryWrapper = new LambdaQueryWrapper<ShopBalanceStatement>() |
| | | .eq(ShopBalanceStatement::getType, type) |
| | | .between(ShopBalanceStatement::getCreateTime, date.with(LocalTime.MIN), date.with(LocalTime.MAX))); |
| | | .between(ShopBalanceStatement::getCreateTime, date.with(LocalTime.MIN), date.with(LocalTime.MAX)); |
| | | if(null != shopId && 0 != shopId){ |
| | | queryWrapper.eq(ShopBalanceStatement::getShopId, shopId); |
| | | } |
| | | List<ShopBalanceStatement> list = shopBalanceStatementService.list(queryWrapper); |
| | | return R.ok(list); |
| | | } |
| | | } |