| | |
| | | */ |
| | | @PostMapping("/getGoodsBargainPrice") |
| | | public R<GoodsBargainPriceDetail> getGoodsBargainPrice(@RequestBody GetGoodsBargainPrice goodsBargainPrice){ |
| | | GoodsBargainPrice one = goodsBargainPriceService.getOne(new LambdaQueryWrapper<GoodsBargainPrice>().eq(GoodsBargainPrice::getGoodsId, goodsBargainPrice.getGoodsId()) |
| | | .eq(GoodsBargainPrice::getShopId, goodsBargainPrice.getShopId()).eq(GoodsBargainPrice::getAuditStatus, 1).eq(GoodsBargainPrice::getDelFlag, 0) |
| | | .orderByDesc(GoodsBargainPrice::getCreateTime).last(" limit 0,1")); |
| | | GoodsBargainPrice one = goodsBargainPriceService.getOne(new LambdaQueryWrapper<GoodsBargainPrice>() |
| | | .eq(GoodsBargainPrice::getGoodsId, goodsBargainPrice.getGoodsId()) |
| | | .eq(GoodsBargainPrice::getShopId, goodsBargainPrice.getShopId()) |
| | | .eq(GoodsBargainPrice::getAuditStatus, 1) |
| | | .eq(GoodsBargainPrice::getDelFlag, 0) |
| | | .orderByDesc(GoodsBargainPrice::getCreateTime) |
| | | .last(" limit 0,1")); |
| | | if(null == one){ |
| | | return R.ok(); |
| | | } |