adding productSearchTag/query

This commit is contained in:
Carl 2021-12-24 14:40:35 +08:00
parent 62960456bf
commit 480b12df52
2 changed files with 10 additions and 2 deletions

View File

@ -22,11 +22,15 @@ public class GoodController {
@Autowired
private GoodService goodService;
@ApiOperation(value = "处方粮商品详情", notes = "处方粮商品查询")
@PostMapping("royalcanin/goodsByProductCode")
public GoodsEntity transferGoodsByProductCode(String productCode) {
return goodService.listGoodsByProductCode(productCode);
}
@ApiOperation(value = "处方粮商品", notes = "处方粮商品查询")
@PostMapping("royalcanin/goods")
public List<GoodsEntity> transferGoods(String title) throws Exception {
public List<GoodsEntity> transferGoods(String title) {
return goodService.listGoodsByNameBankNameTagUsedAge(title);
}

View File

@ -21,6 +21,10 @@ public class GoodService {
@Autowired
private GoodsDao goodsDao;
public GoodsEntity listGoodsByProductCode(String productCode){
return goodsDao.findByProductCode(productCode);
}
public List<GoodsEntity> listGoodsByNameBankNameTagUsedAge(String title){
return goodsDao.selectRoleIdByGoodsNameBankNameTagUsedAge(title);
}