| | |
| | | } |
| | | |
| | | @GetMapping("/query/goodsTemplate") |
| | | public ResponseValue getByAgencyId(Long agencyId) { |
| | | if (agencyId == null) { |
| | | return ResponseValue.error("机构id为空"); |
| | | } |
| | | List<BaseGoodsTemplate> list = this.baseGoodsTemplateService.queryByAgencyId(agencyId); |
| | | public ResponseValue queryGoodsTemplateByCategoryId(Long agencyId, Long categoryId) { |
| | | // if (agencyId == null) { |
| | | // return ResponseValue.error("机构id为空"); |
| | | // } |
| | | List<BaseGoodsTemplate> list = this.baseGoodsTemplateService.queryGoodsTemplateByCategoryId(agencyId, categoryId); |
| | | if (list == null) { |
| | | return ResponseValue.error("查询失败!"); |
| | | } |