|
|
@@ -78,6 +78,11 @@
|
|
|
<if test="endTime != null and endTime != '' " >
|
|
|
and DATE( dr.create_time ) <![CDATA[ <= ]]> #{endTime,jdbcType=TIMESTAMP}
|
|
|
</if>
|
|
|
+ <if test="noReport != null and noReport != ''">
|
|
|
+ and dr.id not in (
|
|
|
+ select driver_id from kwf_truck_report where del_flag = 0 and ent_id = #{entId, jdbcType=VARCHAR}
|
|
|
+ )
|
|
|
+ </if>
|
|
|
<if test="keywords != null and keywords != ''">
|
|
|
and (
|
|
|
dr.name like concat('%',#{keywords},'%')
|
|
|
@@ -189,6 +194,11 @@
|
|
|
<if test="endTime != null and endTime != '' " >
|
|
|
and DATE( dr.create_time ) <![CDATA[ <= ]]> #{endTime,jdbcType=TIMESTAMP}
|
|
|
</if>
|
|
|
+ <if test="noReport != null and noReport != ''">
|
|
|
+ and dr.id not in (
|
|
|
+ select driver_id from kwf_truck_report where del_flag = 0 and ent_id = #{entId, jdbcType=VARCHAR}
|
|
|
+ )
|
|
|
+ </if>
|
|
|
<choose>
|
|
|
<when test="ids != null and ids != '' ">
|
|
|
and dr.id in
|