|
|
@@ -117,10 +117,15 @@
|
|
|
select e.id,e.state,e.scheduled_time,e.end_time,e.exp_date,e.dept_name,e.lab_name,u.real_name
|
|
|
from sec_experiment e
|
|
|
left join sys_user u on e.create_by = u.user_name
|
|
|
- where (e.lab_id =#{deptId} or e.dept_id =#{deptId})
|
|
|
- <if test="scheduledTime!=null and scheduledTime!=''">
|
|
|
- and e.scheduled_time =#{scheduledTime}
|
|
|
- </if>
|
|
|
+ <where>
|
|
|
+ e.del_flag = '0'
|
|
|
+ <if test="deptId!=null and deptId!=''">
|
|
|
+ and (e.lab_id =#{deptId} or e.dept_id =#{deptId})
|
|
|
+ </if>
|
|
|
+ <if test="scheduledTime!=null and scheduledTime!=''">
|
|
|
+ and e.scheduled_time =#{scheduledTime}
|
|
|
+ </if>
|
|
|
+ </where>
|
|
|
<if test="orderby!=null and orderby!=''">
|
|
|
order by end_time ${orderby}
|
|
|
</if>
|