|
@@ -170,16 +170,16 @@
|
|
|
tmai.flg_valid
|
|
tmai.flg_valid
|
|
|
AND tmai.cp_id = #{cpId}
|
|
AND tmai.cp_id = #{cpId}
|
|
|
AND (
|
|
AND (
|
|
|
- tmai.make_staff = #{staffId}
|
|
|
|
|
|
|
+ tmai.make_staff = #{staffId}::uuid
|
|
|
OR EXISTS ( SELECT 1 FROM dkic_b.t_mst_staff_purview tmsp WHERE tmsp.staff_id = tmai.make_staff AND tmsp.purview_code = 'PU10000003' )
|
|
OR EXISTS ( SELECT 1 FROM dkic_b.t_mst_staff_purview tmsp WHERE tmsp.staff_id = tmai.make_staff AND tmsp.purview_code = 'PU10000003' )
|
|
|
)
|
|
)
|
|
|
<!--开始日期-->
|
|
<!--开始日期-->
|
|
|
- <if test="accDateStart != null and accDateStart != ''">
|
|
|
|
|
- AND t.acc_date >= #{accDateStart}
|
|
|
|
|
|
|
+ <if test="accDateStart != null">
|
|
|
|
|
+ AND tmai.acc_date >= #{accDateStart,typeHandler=TimestampTypeHandler}
|
|
|
</if>
|
|
</if>
|
|
|
<!--截止日期-->
|
|
<!--截止日期-->
|
|
|
- <if test="accDateEnd != null and accDateEnd != ''">
|
|
|
|
|
- AND t.acc_date <= #{accDateEnd}
|
|
|
|
|
|
|
+ <if test="accDateEnd != null">
|
|
|
|
|
+ AND tmai.acc_date <= #{accDateEnd,typeHandler=TimestampTypeHandler}
|
|
|
</if>
|
|
</if>
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|