|
|
@@ -70,12 +70,11 @@
|
|
|
<if test="deptId != null "> and t.dept_id = #{deptId}</if>
|
|
|
<if test="deptName != null and deptName != ''"> and t.dept_name like concat('%', #{deptName}, '%')</if>
|
|
|
<if test="phone != null and phone != ''"> and t.phone = #{phone}</if>
|
|
|
- <if test="startTime != null and endTime != null ">
|
|
|
- and (t.start_time <= #{startTime} and t.end_time >= #{startTime})
|
|
|
- or (t.start_time <= #{endTime} and t.end_time >= #{endTime})
|
|
|
+ <if test="startTime != null and endTime != null">
|
|
|
+ and (t.end_time >= #{endTime} or (t.start_time BETWEEN #{startTime} and #{endTime}) )
|
|
|
</if>
|
|
|
- <if test="startTime != null "> and t.start_time >= #{startTime}</if>
|
|
|
- <if test="endTime != null "> and t.end_time <= #{endTime}</if>
|
|
|
+ <!--<if test="startTime != null "> and t.start_time >= #{startTime}</if>
|
|
|
+ <if test="endTime != null "> and t.end_time <= #{endTime}</if>-->
|
|
|
<if test="gasUse != null and gasUse != ''"> and t.gas_use = #{gasUse}</if>
|
|
|
<if test="applyCertificate != null and applyCertificate != ''"> and t.apply_certificate = #{applyCertificate}</if>
|
|
|
<if test="safetyPrecautions != null and safetyPrecautions != ''"> and t.safety_precautions = #{safetyPrecautions}</if>
|