|
|
@@ -198,9 +198,6 @@
|
|
|
<if test="makeStaff != null and makeStaff != ''">
|
|
|
AND t.make_staff = #{makeStaff}
|
|
|
</if>
|
|
|
- <if test="flgValid != null">
|
|
|
- AND t.flg_valid = #{flgValid}
|
|
|
- </if>
|
|
|
<if test="cpId != null">
|
|
|
AND t.cp_id = #{cpId}
|
|
|
</if>
|
|
|
@@ -224,6 +221,9 @@
|
|
|
AND t.make_time >= #{makeTimeStart}::timestamp with time zone
|
|
|
AND t.make_time < #{makeTimeEnd}::timestamp with time zone + interval '1 day'
|
|
|
</if>
|
|
|
+ <if test="flgValidList != null and flgValidList.size()>0">
|
|
|
+ AND t.flg_valid =any(#{flgValidList, typeHandler=BooleanListTypeHandler})
|
|
|
+ </if>
|
|
|
</where>
|
|
|
</sql>
|
|
|
|
|
|
@@ -282,8 +282,8 @@
|
|
|
t.make_staff,
|
|
|
makestaff.staff_name as "makeStaffName",
|
|
|
t.make_time,
|
|
|
- t.flg_valid,
|
|
|
- t.cp_id
|
|
|
+ t.cp_id,
|
|
|
+ t.flg_valid
|
|
|
FROM t_psi_out_return as t
|
|
|
left join dkic_b.t_mst_sale_channel tmsc on t.sales_channel = tmsc.channel_id
|
|
|
left join dkic_b.t_mst_org tmo on t.org_id = tmo.org_id
|