|
|
@@ -241,6 +241,9 @@
|
|
|
<if test="staffName != null and staffName != ''">
|
|
|
AND tms.staff_name LIKE concat('%',my_ex.likequery(#{staffName}),'%')
|
|
|
</if>
|
|
|
+ <if test="whName != null and whName != ''">
|
|
|
+ AND tmw.wh_name LIKE concat('%',my_ex.likequery(#{whName}),'%')
|
|
|
+ </if>
|
|
|
<if test="staffId != null and staffId != ''">
|
|
|
AND tpi.staff_id = #{staffId}::uuid
|
|
|
</if>
|
|
|
@@ -253,6 +256,7 @@
|
|
|
<if test="makeStaff != null and makeStaff != ''">
|
|
|
AND tpi.make_staff = #{makeStaff}
|
|
|
</if>
|
|
|
+
|
|
|
<if test="makeTime != null">
|
|
|
AND tpi.make_time = #{makeTime}
|
|
|
</if>
|
|
|
@@ -277,6 +281,10 @@
|
|
|
<if test="staffIdList != null and staffIdList.size() > 0">
|
|
|
AND tms.staff_id =any(#{staffIdList, typeHandler=uuidListTypeHandler})
|
|
|
</if>
|
|
|
+ <if test="intoDateStart != null and intoDateEnd != null">
|
|
|
+ AND tpi.into_date >= #{intoDateStart}::timestamp with time zone
|
|
|
+ AND tpi.into_date < #{intoDateEnd}::timestamp with time zone + interval '1 day'
|
|
|
+ </if>
|
|
|
<if test="makeTimeStart != null and makeTimeEnd != null">
|
|
|
AND tpi.make_time >= #{makeTimeStart}::timestamp with time zone
|
|
|
AND tpi.make_time < #{makeTimeEnd}::timestamp with time zone + interval '1 day'
|