| | |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.annotations.ApiParam; |
| | | import org.apache.commons.lang3.tuple.Pair; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | |
| | | .between(ShopBalanceStatement::getCreateTime, date.with(LocalTime.MIN), date.with(LocalTime.MAX)); |
| | | if (null != shopId && 0 != shopId) { |
| | | queryWrapper.eq(ShopBalanceStatement::getShopId, shopId); |
| | | }else{ |
| | | List<Integer> shipIds = shopService.list(new LambdaQueryWrapper<Shop>().eq(Shop::getDelFlag, 0)).stream().map(Shop::getId).collect(Collectors.toList()); |
| | | if(shipIds.size() > 0){ |
| | | queryWrapper.in(ShopBalanceStatement::getShopId, shipIds); |
| | | }else{ |
| | | queryWrapper.eq(ShopBalanceStatement::getShopId, -1); |
| | | } |
| | | } |
| | | List<ShopBalanceStatement> list = shopBalanceStatementService.list(queryWrapper); |
| | | return R.ok(list); |
| | |
| | | */ |
| | | @GetMapping("getShopCommission") |
| | | @ApiOperation(value = "获取门店佣金", notes = "获取门店佣金", tags = {"小程序-个人中心-门店管理-门店钱包"}) |
| | | @Transactional |
| | | public R<ShopCommission> getShopCommission(@RequestParam("shopId") Integer shopId) { |
| | | // 合并查询逻辑 |
| | | List<ShopBalanceStatementCopy> copies = shopBalanceStatementCopyMapper.selectList( |