|
|
@@ -90,13 +90,13 @@
|
|
|
core_drill_task t
|
|
|
LEFT JOIN sys_user u ON t.host_id = u.id
|
|
|
LEFT JOIN sys_org d ON t.org_id = d.id
|
|
|
- <where>
|
|
|
+ where d.deleted=0 and d.is_lock=0
|
|
|
<choose>
|
|
|
<when test="request.checkSub==true">
|
|
|
- t.org_path like concat(#{request.orgPath}, '%')
|
|
|
+ and t.org_path like concat(#{request.orgPath}, '%')
|
|
|
</when>
|
|
|
<otherwise>
|
|
|
- t.org_id = #{request.orgId}
|
|
|
+ and t.org_id = #{request.orgId}
|
|
|
</otherwise>
|
|
|
</choose>
|
|
|
<if test="request.title!= null and request.title !=''">
|
|
|
@@ -112,7 +112,6 @@
|
|
|
and t.status in(2,3)
|
|
|
</if>
|
|
|
<include refid="timeRangeSql"/>
|
|
|
- </where>
|
|
|
order by field(t.status,5,0,1,2,3,4),t.title desc
|
|
|
</select>
|
|
|
|