Browse Source

add getTagType by id

guozhaoshun 6 years ago
parent
commit
ebd03f05ef

+ 2 - 2
rankin-cms-web/src/main/java/cn/rankin/cmsweb/controller/product/TagTypeController.java

@@ -49,10 +49,10 @@ public class TagTypeController {
     }
 
 
-/*    @RequestMapping(value = "/{id}", method = RequestMethod.GET)
+    @RequestMapping(value = "/{id}", method = RequestMethod.GET)
     public APIResult<TagTypeVo> getTagType(@PathVariable("id") String id) {
         return tagTypeServiceInterface.getTagType(id);
-    }*/
+    }
 
 /*    @RequestMapping(value = "/code/{typeCode}", method = RequestMethod.GET)
     public APIResult<List<TagVo>> getTagTypeByCode(@PathVariable("typeCode") String typeCode) {

+ 0 - 3
rankin-product-service/src/main/java/cn/rankin/productservice/controller/TagTypeController.java

@@ -98,12 +98,9 @@ public class TagTypeController {
         if (tagType == null) {
             return APIResult.error(ProductServiceAPICode.NOT_EXISTS);
         }else{
-
             //开始组装数据
             List<Tag> tagList = tagService.findByTypeCode(tagType.getCode(),merchantId);
             tagType.setTagList(tagList);
-
-
             return APIResult.ok(tagType);
         }