| | |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | shopPointCopyMapper.insert(shopPoint); |
| | | } |
| | | |
| | | @DeleteMapping("/shop-point/deleteShopPointCopy") |
| | | public void deleteShopPointCopy(@RequestParam("orderId") Long orderId){ |
| | | shopPointCopyMapper.delete(new LambdaQueryWrapper<ShopPointCopy>() |
| | | @DeleteMapping("/deleteShopPointCopy") |
| | | public void deleteShopPointCopy(@RequestParam("orderId") Long orderId, @RequestParam("type") List<Integer> type){ |
| | | shopPointCopyMapper.delete(new LambdaQueryWrapper<ShopPointCopy>().in(ShopPointCopy::getType, type) |
| | | .eq(ShopPointCopy::getObjectId, orderId)); |
| | | } |
| | | |
| | | |
| | | @PostMapping("/getShopPointCopy") |
| | | public R<List<ShopPointCopy>> getShopPointCopy(@RequestParam("orderId") Long orderId, @RequestParam("type") List<Integer> type){ |
| | | List<ShopPointCopy> shopPointCopies = shopPointCopyMapper.selectList(new LambdaQueryWrapper<ShopPointCopy>().in(ShopPointCopy::getType, type) |
| | | .eq(ShopPointCopy::getObjectId, orderId)); |
| | | return R.ok(shopPointCopies); |
| | | } |
| | | |
| | | } |
| | | |