|
|
@@ -278,7 +278,19 @@
|
|
|
left join t_dict t4 on t.car_type_cd=t4.status_cd and t4.table_name='owner_car' and t4.table_columns = 'car_type_cd'
|
|
|
left join building_owner bo on t.owner_id = bo.member_id and bo.status_cd = '0'
|
|
|
where 1=1
|
|
|
- and t.car_num = #{carNum}
|
|
|
+ <if test="carNum != null and carNum != ''">
|
|
|
+ and t.car_num = #{carNum}
|
|
|
+ </if>
|
|
|
+ <if test="carNumLike != null and carNumLike != ''">
|
|
|
+ and t.car_num like concat('%',#{carNumLike},'%')
|
|
|
+ </if>
|
|
|
+ <if test="staffNameLike != null and staffNameLike != ''">
|
|
|
+ and uu.name like concat('%',#{staffNameLike},'%')
|
|
|
+ </if>
|
|
|
+ <if test="logStartTime != null and logStartTime != ''">
|
|
|
+ and co.create_time > #{logStartTime}
|
|
|
+ and co.create_time < #{logEndTime}
|
|
|
+ </if>
|
|
|
and t.community_id= #{communityId}
|
|
|
</select>
|
|
|
|
|
|
@@ -301,7 +313,19 @@
|
|
|
left join t_dict t4 on t.car_type_cd=t4.status_cd and t4.table_name='owner_car' and t4.table_columns = 'car_type_cd'
|
|
|
left join building_owner bo on t.owner_id = bo.member_id and bo.status_cd = '0'
|
|
|
where 1=1
|
|
|
- and t.car_num = #{carNum}
|
|
|
+ <if test="carNum != null and carNum != ''">
|
|
|
+ and t.car_num = #{carNum}
|
|
|
+ </if>
|
|
|
+ <if test="carNumLike != null and carNumLike != ''">
|
|
|
+ and t.car_num like concat('%',#{carNumLike},'%')
|
|
|
+ </if>
|
|
|
+ <if test="staffNameLike != null and staffNameLike != ''">
|
|
|
+ and uu.name like concat('%',#{staffNameLike},'%')
|
|
|
+ </if>
|
|
|
+ <if test="logStartTime != null and logStartTime != ''">
|
|
|
+ and co.create_time > #{logStartTime}
|
|
|
+ and co.create_time < #{logEndTime}
|
|
|
+ </if>
|
|
|
and t.community_id= #{communityId}
|
|
|
order by t.create_time desc,t.operate
|
|
|
<if test="page != -1 and page != null ">
|