|
|
|
@ -96,10 +96,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
where equipment_type_code = 'equ_type_lg' and equipment_id = #{bucketId}
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="selectProWetMaterialPlanByWorkId" resultType="com.op.plan.domain.ProWetMaterialPlan">
|
|
|
|
|
select id, factory_code, plan_time, sync_flag, create_by, create_time, update_by, update_time,
|
|
|
|
|
order_type, prod_code, prod_desc, prod_source, quantity, unit, atrr1, atrr2, atrr3, status,
|
|
|
|
|
prod_type, plan_code, shift_id, shift_desc from pro_wet_material_plan
|
|
|
|
|
<select id="selectProWetMaterialPlanByWorkId" resultMap="ProWetMaterialPlanResult">
|
|
|
|
|
<include refid="selectProWetMaterialPlanVo"/>
|
|
|
|
|
where id = (select TOP 1 wet_material_plan_id from pro_wet_material_plan_detail
|
|
|
|
|
where workorder_id = #{workorderId} and del_flag = '0') and sync_flag = 'Y' and del_flag = '0'
|
|
|
|
|
</select>
|
|
|
|
|