| | |
| | | </update> |
| | | |
| | | <select id="selectPlatePlanByPlantMajor" parameterType="ApsPlatePlan" resultMap="ApsPlatePlanResult"> |
| | | select id,document_number,main_part_number,item_number,plant,professional_affiliation,production_quantity,require_id |
| | | select id,document_number,plan_end_day, main_part_number,item_number,plant,professional_affiliation,production_quantity,require_id |
| | | from aps_plate_plan |
| | | <where> |
| | | <if test="plant != null "> and plant = #{plant}</if> |
| | |
| | | |
| | | <select id="selectUnMatchPlateSubPlan" parameterType="ApsPlatePlan" resultMap="ApsPlatePlanResult"> |
| | | select id,document_number,main_part_number,item_number,plant,professional_affiliation,production_quantity, |
| | | ,unmatched_quantity |
| | | unmatched_quantity |
| | | from aps_plate_plan |
| | | where del_flag='0' and professional_affiliation !='0' and unmatched_quantity > 0 |
| | | <if test="plant != null and plan !='' "> and plant = #{plant}</if> |
| | |
| | | |
| | | <update id="updatePlanUnMatchQtyByVersion" parameterType="ApsPlatePlan"> |
| | | update aps_plate_plan |
| | | set unmatched_quantity=#{unmatched_quantity},version=version+1 |
| | | set unmatched_quantity=#{unmatchedQuantity},version=version+1 |
| | | where id=#{id} and version=#{version} |
| | | </update> |
| | | <select id="selectPlateRedundantOrderList" parameterType="ApsPlatePlan" resultMap="ApsPlatePlanResult"> |