mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-10-04 11:16:39 +08:00
adding productSearchTag/query
This commit is contained in:
parent
62960456bf
commit
480b12df52
@ -22,11 +22,15 @@ public class GoodController {
|
|||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private GoodService goodService;
|
private GoodService goodService;
|
||||||
|
@ApiOperation(value = "处方粮商品详情", notes = "处方粮商品查询")
|
||||||
|
@PostMapping("royalcanin/goodsByProductCode")
|
||||||
|
public GoodsEntity transferGoodsByProductCode(String productCode) {
|
||||||
|
return goodService.listGoodsByProductCode(productCode);
|
||||||
|
}
|
||||||
|
|
||||||
@ApiOperation(value = "处方粮商品", notes = "处方粮商品查询")
|
@ApiOperation(value = "处方粮商品", notes = "处方粮商品查询")
|
||||||
@PostMapping("royalcanin/goods")
|
@PostMapping("royalcanin/goods")
|
||||||
public List<GoodsEntity> transferGoods(String title) throws Exception {
|
public List<GoodsEntity> transferGoods(String title) {
|
||||||
return goodService.listGoodsByNameBankNameTagUsedAge(title);
|
return goodService.listGoodsByNameBankNameTagUsedAge(title);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -21,6 +21,10 @@ public class GoodService {
|
|||||||
@Autowired
|
@Autowired
|
||||||
private GoodsDao goodsDao;
|
private GoodsDao goodsDao;
|
||||||
|
|
||||||
|
public GoodsEntity listGoodsByProductCode(String productCode){
|
||||||
|
return goodsDao.findByProductCode(productCode);
|
||||||
|
}
|
||||||
|
|
||||||
public List<GoodsEntity> listGoodsByNameBankNameTagUsedAge(String title){
|
public List<GoodsEntity> listGoodsByNameBankNameTagUsedAge(String title){
|
||||||
return goodsDao.selectRoleIdByGoodsNameBankNameTagUsedAge(title);
|
return goodsDao.selectRoleIdByGoodsNameBankNameTagUsedAge(title);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user