@@ -6,11 +6,14 @@
bigTypeID as bigTypeId, typeSort, `name`, bigTypeCode, wwwValidFlag, crmValidFlag, wwwIcon, crmIcon, addTime, sortIndex
from bigtype
where
- <if test="typeSort == '1' or typeSort == '2'">
- typeSort = #{typeSort}
+ <if test="typeSort == 1">
+ typeSort = '1'
</if>
- <if test="typeSort == '0'">
- typeSort in (1,2)
+ <if test="typeSort == 2">
+ typeSort = '2'
+ </if>
+ <if test="typeSort == 0">
+ (typeSort = '1' or typeSort = '2')
<if test="source == 'www'.toString()">
and wwwValidFlag = '1'