mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-10-04 03:06:39 +08:00
adding productSearchTag/query
This commit is contained in:
parent
62960456bf
commit
480b12df52
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user