| | |
| | | |
| | | |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.ruoyi.account.api.dto.GrantCouponDto; |
| | | import com.ruoyi.account.api.feignClient.AppCouponClient; |
| | | import com.ruoyi.account.api.feignClient.AppUserClient; |
| | |
| | | import javax.annotation.Resource; |
| | | import javax.swing.*; |
| | | import java.util.Arrays; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | private WxPaymentClient wxPaymentClient; |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * 远程调用 根据商品名称查询商品ids |
| | | * @param name |
| | | * @return |
| | | */ |
| | | @PostMapping("/getGoodsIdsByName/{name}") |
| | | public R<List<Integer>> getGoodsIdsByName(@PathVariable("name")String name) { |
| | | List<Integer> collect = goodsService.list(new QueryWrapper<TGoods>() |
| | | .like("name", name)).stream().map(TGoods::getId).collect(Collectors.toList()); |
| | | return R.ok(collect); |
| | | } |
| | | |
| | | @PostMapping("/saveGoods") |
| | | @ApiOperation(tags = {"管理后台-商品管理"},value = "商品添加") |