|
|
|
@ -29,7 +29,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<sql id="selectDmsRecordInspectVo">
|
|
|
|
<sql id="selectDmsRecordInspectVo">
|
|
|
|
select record_inspect_id,plan_inspect_id,bills_inspect_code, inspect_type, inspect_route_id, device_amount,
|
|
|
|
select record_inspect_id,plan_inspect_id,bills_inspect_code, inspect_type, inspect_route_id, device_amount,
|
|
|
|
plan_begin_time,plan_end_time, real_begin_time, real_end_time, performer, inspect_status, inspect_duration,
|
|
|
|
plan_begin_time,plan_end_time, real_begin_time, real_end_time, performer, inspect_status, inspect_duration,
|
|
|
|
is_flag, remark, create_by, create_time, update_by, update_time from dms_record_inspect
|
|
|
|
remark, create_by, create_time, update_by, update_time from dms_record_inspect
|
|
|
|
</sql>
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectDmsRecordInspectList" parameterType="DmsRecordInspect" resultMap="DmsRecordInspectResult">
|
|
|
|
<select id="selectDmsRecordInspectList" parameterType="DmsRecordInspect" resultMap="DmsRecordInspectResult">
|
|
|
|
@ -46,7 +46,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<if test="performer != null and performer != ''"> and performer = #{performer}</if>
|
|
|
|
<if test="performer != null and performer != ''"> and performer = #{performer}</if>
|
|
|
|
<if test="inspectStatus != null "> and inspect_status = #{inspectStatus}</if>
|
|
|
|
<if test="inspectStatus != null "> and inspect_status = #{inspectStatus}</if>
|
|
|
|
<if test="inspectDuration != null "> and inspect_duration = #{inspectDuration}</if>
|
|
|
|
<if test="inspectDuration != null "> and inspect_duration = #{inspectDuration}</if>
|
|
|
|
<if test="isFlag != null and isFlag != ''"> and is_flag = #{isFlag}</if>
|
|
|
|
<if test="deviceCode != null and deviceCode != ''">
|
|
|
|
|
|
|
|
and inspect_route_id in (
|
|
|
|
|
|
|
|
select r.inspect_route_id
|
|
|
|
|
|
|
|
from dms_inspect_route_detail r
|
|
|
|
|
|
|
|
left join base_deviceledger l on r.machine_id = l.OBJ_ID
|
|
|
|
|
|
|
|
where l.device_code = #{deviceCode}
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
</if>
|
|
|
|
</where>
|
|
|
|
</where>
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|