无关风月
2024-08-24 d0a2f8a17bb7888602f0f421bb01a765ef04fd29
ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/TCouponController.java
@@ -54,7 +54,16 @@
    @Autowired
    private AppCouponClient appCouponClient;
    /**
     * 远程调用 根据名称 查询优惠券ids
     * @return
     */
    @PostMapping("/getCouponIdsByName/{name}")
    public R<List<Integer>> getCouponIdsByName(@PathVariable("name")String name) {
        List<Integer> collect = tCouponService.list(new QueryWrapper<TCoupon>()
                .eq("name", name)).stream().map(TCoupon::getId).collect(Collectors.toList());
        return R.ok(collect);
    }
    @PostMapping("/saveGoods")
    @ApiOperation(tags = {"管理后台-优惠券管理"},value = "优惠券添加")
    public AjaxResult saveActivity(@RequestBody TCoupon dto) {