|
@@ -34,15 +34,13 @@
|
|
|
<if test="agetype != null and agetype != ''">
|
|
<if test="agetype != null and agetype != ''">
|
|
|
and (
|
|
and (
|
|
|
agetype1 = #{agetype}
|
|
agetype1 = #{agetype}
|
|
|
-<!-- or agetype2 = #{agetype} -->
|
|
|
|
|
-<!-- or agetype3 = #{agetype} -->
|
|
|
|
|
-<!-- or agetype4 = #{agetype}-->
|
|
|
|
|
)
|
|
)
|
|
|
</if>
|
|
</if>
|
|
|
<if test="searchText != null and searchText != ''">
|
|
<if test="searchText != null and searchText != ''">
|
|
|
and name like concat('%', #{searchText}, '%')
|
|
and name like concat('%', #{searchText}, '%')
|
|
|
</if>
|
|
</if>
|
|
|
<if test="orderBy != null and orderBy == 'grade'">
|
|
<if test="orderBy != null and orderBy == 'grade'">
|
|
|
|
|
+ and grade is not null and grade != ''
|
|
|
ORDER BY FIELD(grade,
|
|
ORDER BY FIELD(grade,
|
|
|
<foreach collection="orderbyList" item="item" separator=",">
|
|
<foreach collection="orderbyList" item="item" separator=",">
|
|
|
#{item}
|
|
#{item}
|
|
@@ -50,6 +48,7 @@
|
|
|
)
|
|
)
|
|
|
</if>
|
|
</if>
|
|
|
<if test="orderBy != null and orderBy == 'category'">
|
|
<if test="orderBy != null and orderBy == 'category'">
|
|
|
|
|
+ and category is not null and category != ''
|
|
|
ORDER BY FIELD(category,
|
|
ORDER BY FIELD(category,
|
|
|
<foreach collection="orderbyList" item="item" separator=",">
|
|
<foreach collection="orderbyList" item="item" separator=",">
|
|
|
#{item}
|
|
#{item}
|
|
@@ -57,6 +56,7 @@
|
|
|
)
|
|
)
|
|
|
</if>
|
|
</if>
|
|
|
<if test="orderBy != null and orderBy == 'texture'">
|
|
<if test="orderBy != null and orderBy == 'texture'">
|
|
|
|
|
+ and texture is not null and texture != ''
|
|
|
ORDER BY FIELD(texture,
|
|
ORDER BY FIELD(texture,
|
|
|
<foreach collection="orderbyList" item="item" separator=",">
|
|
<foreach collection="orderbyList" item="item" separator=",">
|
|
|
#{item}
|
|
#{item}
|
|
@@ -64,6 +64,7 @@
|
|
|
)
|
|
)
|
|
|
</if>
|
|
</if>
|
|
|
<if test="orderBy != null and orderBy == 'agetype'">
|
|
<if test="orderBy != null and orderBy == 'agetype'">
|
|
|
|
|
+ and agetype is not null and agetype != ''
|
|
|
ORDER BY FIELD(agetype,
|
|
ORDER BY FIELD(agetype,
|
|
|
<foreach collection="orderbyList" item="item" separator=",">
|
|
<foreach collection="orderbyList" item="item" separator=",">
|
|
|
#{item}
|
|
#{item}
|