Commit f8ecc209 authored by huyuchen's avatar huyuchen

优化修改

parent a812c4ac
...@@ -76,22 +76,7 @@ ...@@ -76,22 +76,7 @@
) )
</if> </if>
<if test="query.vacationStatus != null and query.vacationStatus.trim() != ''"> <if test="query.vacationStatus != null and query.vacationStatus.trim() != ''">
<!-- 待休 --> and a.VACATION_STATUS = #{query.vacationStatus}
<if test="query.vacationStatus == '0'.toString()">
and now() <![CDATA[<]]> a.VACATION_START_TIME
</if>
<!-- 休假中 -->
<if test="query.vacationStatus == '1'.toString()">
and now() <![CDATA[>=]]> a.VACATION_START_TIME and now() <![CDATA[<=]]> a.VACATION_END_TIME
</if>
<!-- 到期待销假 -->
<if test="query.vacationStatus == '2'.toString()">
and now() <![CDATA[>]]> a.VACATION_END_TIME and a.VACATION_STATUS = '4'
</if>
<!-- 已销假 -->
<if test="query.vacationStatus == '3'.toString()">
and a.VACATION_STATUS <![CDATA[<>]]> '4'
</if>
</if> </if>
</sql> </sql>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment