mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-11-17 16:13:48 +08:00
adding productSearchTag/query
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user