suntg 7 лет назад
Родитель
Сommit
f105b7e5a7

+ 1 - 2
src/main/java/com/uas/platform/b2c/prod/product/common/api/CommonCountController.java

@@ -3,7 +3,6 @@ package com.uas.platform.b2c.prod.product.common.api;
 import com.uas.platform.b2c.prod.product.common.model.CommonCount;
 import com.uas.platform.b2c.prod.product.common.service.CommonCountService;
 import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.data.repository.query.Param;
 import org.springframework.util.StringUtils;
 import org.springframework.web.bind.annotation.PathVariable;
 import org.springframework.web.bind.annotation.RequestMapping;
@@ -30,7 +29,7 @@ public class CommonCountController {
      * @return
      */
     @RequestMapping(method = RequestMethod.GET, params = "_status=actived")
-    public List<CommonCount> findActived(@Param("userFor") String usedFor) {
+    public List<CommonCount> findActived(String usedFor) {
         usedFor = StringUtils.isEmpty(usedFor) ? "b2c_index" : usedFor;
         return commonCountService.findByStatus((short) 1, usedFor);
     }