|
|
|
@ -42,6 +42,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<result property="uploadStatus" column="upload_status" />
|
|
|
|
|
<result property="uploadMsg" column="upload_msg" />
|
|
|
|
|
<result property="orderCode" column="order_code" />
|
|
|
|
|
<result property="batch" column="batch" />
|
|
|
|
|
</resultMap>
|
|
|
|
|
<resultMap type="com.op.system.api.domain.mes.ProOrderWorkorderDTO" id="ProOrderWorkorderDTOResult">
|
|
|
|
|
<result property="workorderId" column="workorder_id" />
|
|
|
|
@ -96,7 +97,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
mrw.feedback_time, mrw.record_user, mrw.status, mrw.remark, mrw.work_time, mrw.machine_code,
|
|
|
|
|
mrw.machine_name, mrw.team_code, mrw.shift_code, mrw.create_by,
|
|
|
|
|
mrw.create_time,mrw.upload_time,mrw.upload_status,mrw.upload_msg,
|
|
|
|
|
mrw.use_man,
|
|
|
|
|
mrw.use_man,mrw.batch,
|
|
|
|
|
pow.order_code,pow.quantity_split
|
|
|
|
|
from mes_report_work mrw
|
|
|
|
|
left join pro_order_workorder pow on mrw.workorder_code = pow.workorder_code
|
|
|
|
@ -228,7 +229,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
mrw.id,
|
|
|
|
|
mrw.quantity_feedback quantityFeedback,
|
|
|
|
|
mrw.product_code productCode,
|
|
|
|
|
mrw.product_name productName
|
|
|
|
|
mrw.product_name productName,
|
|
|
|
|
mrw.end_report endReport
|
|
|
|
|
from mes_report_work mrw
|
|
|
|
|
left join pro_order_workorder ow on mrw.workorder_code = ow.workorder_code
|
|
|
|
|
left join pro_route rte on rte.route_code = ow.route_code
|
|
|
|
@ -433,6 +435,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
from base_equipment
|
|
|
|
|
where equipment_type_code = 'equ_type_bzx' and del_flag = '0'
|
|
|
|
|
</select>
|
|
|
|
|
<select id="getBatchList" resultType="com.op.mes.domain.ProOrderWorkorder">
|
|
|
|
|
select powb.batch_id batchId,
|
|
|
|
|
powb.batch_code batchCode
|
|
|
|
|
from pro_order_workorder_batch powb
|
|
|
|
|
left join pro_order_workorder pow on powb.workorder_id = pow.workorder_id
|
|
|
|
|
where powb.del_flag = '0' and pow.del_flag = '0'
|
|
|
|
|
and pow.workorder_code = #{workorderCode}
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<insert id="insertMesReportWork" parameterType="MesReportWork">
|
|
|
|
|
insert into mes_report_work
|
|
|
|
@ -471,6 +481,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="updateTime != null">update_time,</if>
|
|
|
|
|
<if test="updateBy != null">update_by,</if>
|
|
|
|
|
<if test="prodType != null and prodType != ''">prod_type,</if>
|
|
|
|
|
<if test="batch != null and batch != ''">batch,</if>
|
|
|
|
|
<if test="endReport != null and endReport != ''">end_report,</if>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="id != null">#{id},</if>
|
|
|
|
@ -507,6 +519,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="updateTime != null">#{updateTime},</if>
|
|
|
|
|
<if test="updateBy != null">#{updateBy},</if>
|
|
|
|
|
<if test="prodType != null and prodType != ''">#{prodType},</if>
|
|
|
|
|
<if test="batch != null and batch != ''">#{batch},</if>
|
|
|
|
|
<if test="endReport != null and endReport != ''">#{endReport},</if>
|
|
|
|
|
</trim>
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
@ -545,6 +559,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
|
|
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
|
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
|
|
|
|
<if test="batch != null and batch != ''">batch = #{batch},</if>
|
|
|
|
|
<if test="endReport != null and endReport != ''">end_report = #{endReport},</if>
|
|
|
|
|
</trim>
|
|
|
|
|
where id = #{id}
|
|
|
|
|
</update>
|
|
|
|
|