|
|
|
@ -650,11 +650,13 @@
|
|
|
|
|
</select>
|
|
|
|
|
<select id="getLineProductInfo" resultType="com.op.plan.domain.ProLine">
|
|
|
|
|
select mlp.efficiency efficiency,
|
|
|
|
|
bp.dh,sf.ancestors factoryDh
|
|
|
|
|
be.dh,sf.ancestors factoryDh,
|
|
|
|
|
bp.umrez
|
|
|
|
|
from mes_line_product mlp
|
|
|
|
|
left join base_equipment bp on mlp.line_code = bp.equipment_code
|
|
|
|
|
left join base_equipment be on mlp.line_code = be.equipment_code
|
|
|
|
|
left join sys_factory sf on sf.factory_code = mlp.factory_code and sf.del_flag = '0'
|
|
|
|
|
where mlp.del_flag = '0' and product_code = #{prodCode}
|
|
|
|
|
left join base_product bp on bp.product_code = mlp.product_code
|
|
|
|
|
where mlp.del_flag = '0' and mlp.product_code = #{prodCode}
|
|
|
|
|
and mlp.line_code = #{lineCode} and bp.del_flag = '0'
|
|
|
|
|
</select>
|
|
|
|
|
<select id="getProcessCode" resultType="java.lang.String">
|
|
|
|
@ -784,7 +786,7 @@
|
|
|
|
|
product_name,unit,quantity_split,route_code,prod_line_code,
|
|
|
|
|
product_date,parent_order, status,create_by,create_time,
|
|
|
|
|
prod_type,factory_code,end_flag,del_flag,sort_no,
|
|
|
|
|
belong_work_order,shift_id
|
|
|
|
|
belong_work_order,shift_id,product_id
|
|
|
|
|
)VALUES
|
|
|
|
|
<foreach collection="list" item="d" index="index" separator=",">
|
|
|
|
|
(
|
|
|
|
@ -792,7 +794,7 @@
|
|
|
|
|
#{d.productName},#{d.unit},#{d.quantitySplit},#{d.routeCode},#{d.prodLineCode},
|
|
|
|
|
#{d.productDate},#{d.parentOrder},#{d.status},#{d.createBy},#{d.createTime},
|
|
|
|
|
#{d.prodType}, #{d.factoryCode},#{d.endFlag},'2',#{d.sortNo},
|
|
|
|
|
#{d.belongWorkOrder},#{d.shiftId}
|
|
|
|
|
#{d.belongWorkOrder},#{d.shiftId},'autoSplit'
|
|
|
|
|
)
|
|
|
|
|
</foreach>
|
|
|
|
|
</insert>
|
|
|
|
|