|
|
@@ -59,25 +59,18 @@ |
|
|
|
|
|
|
|
|
|
|
|
<select id="queryPage" resultType="com.tuoheng.miniprogram.vo.InspectionInfoVo"> |
|
|
|
select |
|
|
|
ti.id, |
|
|
|
ti.code, |
|
|
|
ti.name, |
|
|
|
ti.type, |
|
|
|
ti.status, |
|
|
|
ti.inspection_type as inspectionType, |
|
|
|
ti.inspection_line as inspectionLine, |
|
|
|
ti.create_user as createUser, |
|
|
|
ti.execution_start_time as executionStartTime, |
|
|
|
ti.ai_video_url as aiVideoUrl |
|
|
|
from |
|
|
|
th_inspection ti |
|
|
|
select ti.id, ti.code, ti.name, ti.type, ti.status, ti.inspection_type as inspectionType, ti.inspection_line as inspectionLine, |
|
|
|
ti.create_user as createUser, ti.execution_start_time as executionStartTime, ti.ai_video_url as aiVideoUrl |
|
|
|
from th_inspection ti |
|
|
|
where ti.mark=1 and ti.tenant_id = #{request.tenantId} |
|
|
|
<if test="request.deptId !=null and request.deptId !=''"> |
|
|
|
and ti.dept_id = #{request.deptId} |
|
|
|
</if> |
|
|
|
<if test="request.status !=null"> |
|
|
|
and ti.status = #{request.status} |
|
|
|
<if test="request.statusList != null and request.statusList.size() > 0"> |
|
|
|
and ti.status in |
|
|
|
<foreach item="status" collection="request.statusList" open="(" separator="," close=")"> |
|
|
|
#{status} |
|
|
|
</foreach> |
|
|
|
</if> |
|
|
|
<if test="request.inspectionType !=null"> |
|
|
|
and ti.inspection_type = #{request.inspectionType} |
|
|
@@ -88,7 +81,6 @@ |
|
|
|
<if test="request.startTimeDate !=null and request.endTimeDate !=null"> |
|
|
|
and ti.execution_start_time BETWEEN #{request.startTimeDate} AND #{request.endTimeDate} |
|
|
|
</if> |
|
|
|
ORDER BY |
|
|
|
ti.create_time DESC |
|
|
|
ORDER BY ti.create_time DESC |
|
|
|
</select> |
|
|
|
</mapper> |