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