|
@@ -32,10 +32,14 @@
|
|
|
<if test="modifyTimeEnd != null and modifyTimeEnd != ''">
|
|
|
and p.modify_time <= #{modifyTimeEnd}
|
|
|
</if>
|
|
|
- <if test="dueTimeStart != null and dueTimeStart != ''">
|
|
|
- and (p.date_simulation_license >= #{dueTimeStart} or p.date_dynamic_license >= #{dueTimeStart})
|
|
|
+ <if test="dueTimeStart != null and dueTimeStart != '' and dueTimeEnd != null and dueTimeEnd != ''">
|
|
|
+ and ((p.date_simulation_license >= #{dueTimeStart} and p.date_simulation_license <= #{dueTimeEnd})
|
|
|
+ or (p.date_dynamic_license >= #{dueTimeStart} and p.date_dynamic_license <= #{dueTimeEnd}) )
|
|
|
</if>
|
|
|
- <if test="dueTimeEnd != null and dueTimeEnd != ''">
|
|
|
+ <if test="dueTimeStart != null and dueTimeStart != '' and (dueTimeEnd == null or dueTimeEnd == '')">
|
|
|
+ and (p.date_simulation_license >= #{dueTimeStart} or p.date_dynamic_license >= #{dueTimeStart})
|
|
|
+ </if>
|
|
|
+ <if test="dueTimeEnd != null and dueTimeEnd != '' and ( dueTimeStart == null or dueTimeStart == '' )">
|
|
|
and (p.date_simulation_license <= #{dueTimeEnd} or p.date_dynamic_license <= #{dueTimeEnd})
|
|
|
</if>
|
|
|
order by p.modify_time desc
|