|
|
|
|
@ -9,6 +9,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<result property="inspectRouteId" column="inspect_route_id" />
|
|
|
|
|
<result property="lineStep" column="line_step" />
|
|
|
|
|
<result property="deviceId" column="device_id" />
|
|
|
|
|
<result property="machineId" column="machine_id" />
|
|
|
|
|
<result property="inspectStandard" column="inspect_standard" />
|
|
|
|
|
<result property="isFlag" column="is_flag" />
|
|
|
|
|
<result property="remark" column="remark" />
|
|
|
|
|
@ -17,7 +18,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<sql id="selectDmsInspectRouteDetailVo">
|
|
|
|
|
select route_detail_id, inspect_route_id, line_step, device_id, inspect_standard, is_flag, remark from dms_inspect_route_detail
|
|
|
|
|
select route_detail_id,
|
|
|
|
|
inspect_route_id,
|
|
|
|
|
line_step,
|
|
|
|
|
machine_id as device_id,
|
|
|
|
|
machine_id,
|
|
|
|
|
inspect_standard,
|
|
|
|
|
is_flag,
|
|
|
|
|
remark
|
|
|
|
|
from dms_inspect_route_detail
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
<select id="selectDmsInspectRouteDetailList" parameterType="DmsInspectRouteDetail" resultMap="DmsInspectRouteDetailResult">
|
|
|
|
|
@ -46,6 +55,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="inspectRouteId != null">inspect_route_id,</if>
|
|
|
|
|
<if test="lineStep != null">line_step,</if>
|
|
|
|
|
<if test="deviceId != null">device_id,</if>
|
|
|
|
|
<if test="machineId != null">machine_id,</if>
|
|
|
|
|
<if test="inspectStandard != null">inspect_standard,</if>
|
|
|
|
|
<if test="isFlag != null and isFlag != ''">is_flag,</if>
|
|
|
|
|
<if test="remark != null">remark,</if>
|
|
|
|
|
@ -55,6 +65,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="inspectRouteId != null">#{inspectRouteId,jdbcType=NUMERIC},</if>
|
|
|
|
|
<if test="lineStep != null">#{lineStep,jdbcType=NUMERIC},</if>
|
|
|
|
|
<if test="deviceId != null">#{deviceId,jdbcType=NUMERIC},</if>
|
|
|
|
|
<if test="machineId != null">#{machineId,jdbcType=NUMERIC},</if>
|
|
|
|
|
<if test="inspectStandard != null">#{inspectStandard},</if>
|
|
|
|
|
<if test="isFlag != null and isFlag != ''">#{isFlag},</if>
|
|
|
|
|
<if test="remark != null">#{remark},</if>
|
|
|
|
|
@ -67,6 +78,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="inspectRouteId != null">inspect_route_id = #{inspectRouteId},</if>
|
|
|
|
|
<if test="lineStep != null">line_step = #{lineStep},</if>
|
|
|
|
|
<if test="deviceId != null">device_id = #{deviceId},</if>
|
|
|
|
|
<if test="machineId != null">machine_id = #{machineId},</if>
|
|
|
|
|
<if test="inspectStandard != null">inspect_standard = #{inspectStandard},</if>
|
|
|
|
|
<if test="isFlag != null and isFlag != ''">is_flag = #{isFlag},</if>
|
|
|
|
|
<if test="remark != null">remark = #{remark},</if>
|
|
|
|
|
@ -86,10 +98,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
|
|
<select id="selectInspectRouteListByInspectRouteId" parameterType="Long" resultMap="DmsInspectRouteDetailResult">
|
|
|
|
|
select a.route_detail_id, a.inspect_route_id, a.line_step, a.device_id, a.inspect_standard,
|
|
|
|
|
select a.route_detail_id, a.inspect_route_id, a.line_step, a.machine_id as device_id, a.machine_id, a.inspect_standard,
|
|
|
|
|
a.is_flag, a.remark,b.device_name,c.standard_name
|
|
|
|
|
from dms_inspect_route_detail a
|
|
|
|
|
left join base_deviceledger b on a.device_id = b.OBJ_ID
|
|
|
|
|
left join base_deviceledger b on a.machine_id = b.OBJ_ID
|
|
|
|
|
left join dms_base_inspect_standard c on a.inspect_standard = c.inspect_standard_id
|
|
|
|
|
where a.inspect_route_id = #{inspectRouteId}
|
|
|
|
|
</select>
|
|
|
|
|
|