This commit is contained in:
Carl 2021-12-24 15:56:50 +08:00
parent 2080076a30
commit 9e4088365a
2 changed files with 3 additions and 13 deletions

View File

@ -29,8 +29,8 @@ public class GoodController {
@ApiOperation(value = "处方粮商品", notes = "处方粮商品查询") @ApiOperation(value = "处方粮商品", notes = "处方粮商品查询")
@PostMapping("royalcanin/goods") @PostMapping("royalcanin/goods")
public List<GoodsEntity> transferGoods(String title) { public List<GoodsEntity> transferGoods(String goodsName) {
return goodService.listGoodsByNameBankNameTagUsedAge(title); return goodService.listGoodsByNameBankNameTagUsedAge(goodsName);
} }
@ApiOperation(value = "查询标品信息", notes = "查询标品信息") @ApiOperation(value = "查询标品信息", notes = "查询标品信息")

View File

@ -10,17 +10,7 @@
<select id="selectRoleIdByGoodsNameBankNameTagUsedAge" resultMap="GoodsEntity"> <select id="selectRoleIdByGoodsNameBankNameTagUsedAge" resultMap="GoodsEntity">
select select
product_code, *
product_name,
base_price,
brand_code,
brand_name,
category_name,
pet_type,
tagUsedAge,
pic_file,
show_img_file,
isSales
from t_good_goods from t_good_goods
<where> <where>
<if test="goodsName != null and goodsName != ''"> <if test="goodsName != null and goodsName != ''">