|
@@ -180,6 +180,8 @@
|
|
|
<if test="state != null and state != ''"> AND t1.TSO_STATE = #{state,jdbcType=VARCHAR }</if>
|
|
|
<if test="coachId!=null" > AND ( t1.TSO_COACHID = #{coachId,jdbcType=NUMERIC }
|
|
|
or t1.TSO_COACH_LEADER = #{coachId,jdbcType=NUMERIC } ) </if>
|
|
|
+ <if test="startDate!=null and startDate!='' " > and t1.tso_applydate <![CDATA[ >= ]]> to_date(#{startDate},'yyyy-MM-dd') </if>
|
|
|
+ <if test="endDate!=null and endDate!='' " > and t1.tso_applydate <![CDATA[ < ]]> to_date(#{endDate},'yyyy-MM-dd')+1 </if>
|
|
|
</where>
|
|
|
ORDER BY t1.TSO_ID desc
|
|
|
</select>
|
|
@@ -252,6 +254,8 @@
|
|
|
</if>
|
|
|
<if test="coachId!=null" > AND ( t1.TSO_COACHID = #{coachId,jdbcType=NUMERIC }
|
|
|
or t1.TSO_COACH_LEADER = #{coachId,jdbcType=NUMERIC } ) </if>
|
|
|
+ <if test="startDate!=null and startDate!='' " > and t1.tso_applydate <![CDATA[ >= ]]> to_date(#{startDate},'yyyy-MM-dd') </if>
|
|
|
+ <if test="endDate!=null and endDate!='' " > and t1.tso_applydate <![CDATA[ < ]]> to_date(#{endDate},'yyyy-MM-dd')+1 </if>
|
|
|
</where>
|
|
|
union
|
|
|
select t1.TSO_ID, t1.TSO_IDCARD, t1.TSO_NAME,t1.TSO_SEX,t1.Tso_Phone,t1.TSO_APPLYDATE, t1.TSO_STATE , t1.
|
|
@@ -275,6 +279,9 @@
|
|
|
</if>
|
|
|
<if test="coachId!=null" > AND ( t1.TSO_COACHID = #{coachId,jdbcType=NUMERIC }
|
|
|
or t1.TSO_COACH_LEADER = #{coachId,jdbcType=NUMERIC } )</if>
|
|
|
+ <if test="startDate!=null and startDate!='' " > and t1.tso_applydate <![CDATA[ >= ]]> to_date(#{startDate},'yyyy-MM-dd') </if>
|
|
|
+ <if test="endDate!=null and endDate!='' " > and t1.tso_applydate <![CDATA[ < ]]> to_date(#{endDate},'yyyy-MM-dd')+1 </if>
|
|
|
+
|
|
|
</where>
|
|
|
)
|
|
|
ORDER BY TSO_ID desc
|