|
|
@@ -11,11 +11,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
CASE WHEN scy_id= #{paramMap.scyId} THEN 0 ELSE 1 END 'flag'
|
|
|
FROM
|
|
|
sys_company
|
|
|
- WHERE scy_status = '00'
|
|
|
+ WHERE 1=1
|
|
|
and scy_type = #{paramMap.scyType}
|
|
|
<if test="paramMap.scyId != null and paramMap.scyId != ''">
|
|
|
AND (scy_id= #{paramMap.scyId} OR scy_status = '00')
|
|
|
</if>
|
|
|
+ <if test="paramMap.scyId == null or paramMap.scyId == ''">
|
|
|
+ AND scy_status = '00'
|
|
|
+ </if>
|
|
|
order by flag asc ,create_time desc
|
|
|
</select>
|
|
|
</mapper>
|