|
@@ -30,6 +30,20 @@
|
|
|
and wbi.person_phone = ${phone}
|
|
|
</if>
|
|
|
</if>
|
|
|
+ <if test="startDate != null">
|
|
|
+ AND (DATE_FORMAT(in_out_date,"%Y%m%d") >=
|
|
|
+ DATE_FORMAT(#{startDate},"%Y%m%d"))
|
|
|
+ </if>
|
|
|
+ <if test="endDate != null">
|
|
|
+ AND (DATE_FORMAT(in_out_date,"%Y%m%d") <=
|
|
|
+ DATE_FORMAT(#{endDate},"%Y%m%d"))
|
|
|
+ </if>
|
|
|
+ <if test="baseId != null and baseId != ''">
|
|
|
+ AND base_id = #{baseId}
|
|
|
+ </if>
|
|
|
+ <if test="positionId != null and positionId != ''">
|
|
|
+ AND position_id = #{positionId}
|
|
|
+ </if>
|
|
|
<if test="statusFlag != null and statusFlag != ''">
|
|
|
AND w.status_flag = #{statusFlag}
|
|
|
</if>
|
|
@@ -108,6 +122,20 @@
|
|
|
and wbi.person_phone = ${phone}
|
|
|
</if>
|
|
|
</if>
|
|
|
+ <if test="startDate != null">
|
|
|
+ AND (DATE_FORMAT(in_out_date,"%Y%m%d") >=
|
|
|
+ DATE_FORMAT(#{startDate},"%Y%m%d"))
|
|
|
+ </if>
|
|
|
+ <if test="endDate != null">
|
|
|
+ AND (DATE_FORMAT(in_out_date,"%Y%m%d") <=
|
|
|
+ DATE_FORMAT(#{endDate},"%Y%m%d"))
|
|
|
+ </if>
|
|
|
+ <if test="baseId != null and baseId != ''">
|
|
|
+ AND base_id = #{baseId}
|
|
|
+ </if>
|
|
|
+ <if test="positionId != null and positionId != ''">
|
|
|
+ AND position_id = #{positionId}
|
|
|
+ </if>
|
|
|
<if test="statusFlag != null and statusFlag != ''">
|
|
|
AND w.status_flag = #{statusFlag}
|
|
|
</if>
|