@@ -36,7 +36,7 @@ public class ProductPageApi {
*/
@ApiOperation("获取分类菜单(旧:/product/classify)")
@ApiImplicitParams({
- @ApiImplicitParam(required = true, name = "typeSort", value = "分类类型:1产品,2仪器"),
+ @ApiImplicitParam(required = true, name = "typeSort", value = "分类类型:1产品,2仪器,0全部"),
@ApiImplicitParam(required = false, name = "source", value = "请求来源:www,crm")
})
@GetMapping("/classify")
@@ -17,7 +17,7 @@ import java.util.List;
public interface ProductTypeMapper {
/**
* 获取大分类
- * @param typeSort 分类类型:1产品,2仪器
+ * @param typeSort 分类类型:1产品,2仪器,0全部
* @param source 请求来源:www,crm
List<BigTypeVo> getBigTypeList(Integer typeSort, String source);
@@ -18,7 +18,7 @@ public interface PageService {
* 获取分类列表
*
ResponseJson<List<BigTypeVo>> getClassify(Integer typeSort, String source);
@@ -50,7 +50,7 @@ public class PageServiceImpl implements PageService {
@Override
@@ -6,7 +6,9 @@
bigTypeID as bigTypeId, typeSort, `name`, bigTypeCode, wwwValidFlag, crmValidFlag, wwwIcon, crmIcon, addTime, sortIndex
from bigtype
where
- typeSort = #{typeSort}
+ <if test="typeSort == '1' or typeSort == '2'">
+ typeSort = #{typeSort}
+ </if>
<if test="source == 'www'.toString()">
and wwwValidFlag = '1'
</if>