| | |
| | | <result property="resultText" column="result_text" /> |
| | | <result property="sfResult" column="sf_result" /> |
| | | <result property="productModel" column="product_model" /> |
| | | <result property="automaticNgFlag" column="automatic_ng_flag" /> |
| | | <result property="automaticNgStation" column="automatic_ng_station" /> |
| | | <result property="automaticNgScrewNumber" column="automatic_ng_screw_number" /> |
| | | <result property="artificialNgFlag" column="artificial_ng_flag" /> |
| | | |
| | | </resultMap> |
| | | |
| | | <sql id="selectOmProductionOrdeInfoVo"> |
| | | select id,site_code,product_num,station_code, product_model,result_code,result_text,sf_result ,work_order_no, sales_order_code, product_code, product_name, workshop_code, line_code, route_code, bom_code, recipe_code, plan_qty, actual_qty, bad_qty, scrap_qty, repair_qty, actual_online_qty, online_completion_mark, demand_date, plan_start_time, plan_end_time, actual_start_time, actual_end_time, serial_number, order_status, create_time, update_time, create_user, update_user, remarks, stream_number, custom, material_code, software_version_code, product_company_code, trolley_yard, spare_field2, spare_field3, spare_field4 from om_production_orde_info |
| | | select id,site_code,product_num,station_code, product_model,result_code,result_text,sf_result ,work_order_no, sales_order_code, product_code, product_name, workshop_code, line_code, route_code, bom_code, recipe_code, plan_qty, actual_qty, bad_qty, scrap_qty, repair_qty, actual_online_qty, online_completion_mark, demand_date, plan_start_time, plan_end_time, actual_start_time, actual_end_time, serial_number, order_status, create_time, update_time, create_user, update_user, remarks, stream_number, custom, material_code, software_version_code, product_company_code, trolley_yard, spare_field2, spare_field3, spare_field4, automatic_ng_flag, automatic_ng_station, automatic_ng_screw_number, artificial_ng_flag from om_production_orde_info |
| | | </sql> |
| | | |
| | | <select id="selectOmProductionOrdeInfoList" parameterType="OmProductionOrdeInfo" resultMap="OmProductionOrdeInfoResult"> |
| | |
| | | <if test="resultCode != null">result_code,</if> |
| | | <if test="sfResult != null">sf_result,</if> |
| | | <if test="productModel != null">product_model,</if> |
| | | <if test="automaticNgFlag != null">automatic_ng_flag,</if> |
| | | <if test="automaticNgStation != null">automatic_ng_station,</if> |
| | | <if test="automaticNgScrewNumber != null">automatic_ng_screw_number,</if> |
| | | <if test="artificialNgFlag != null">artificial_ng_flag,</if> |
| | | |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | |
| | | <if test="resultCode != null">#{resultCode},</if> |
| | | <if test="sfResult != null">#{sfResult},</if> |
| | | <if test="productModel != null">#{productModel},</if> |
| | | <if test="automaticNgFlag != null">#{automaticNgFlag},</if> |
| | | <if test="automaticNgStation != null">#{automaticNgStation},</if> |
| | | <if test="automaticNgScrewNumber != null">#{automaticNgScrewNumber},</if> |
| | | <if test="artificialNgFlag != null">#{artificialNgFlag},</if> |
| | | |
| | | </trim> |
| | | </insert> |
| | |
| | | <if test="resultCode != null">result_code = #{resultCode},</if> |
| | | <if test="sfResult != null">sf_result = #{sfResult},</if> |
| | | <if test="productModel != null">product_model = #{productModel},</if> |
| | | |
| | | <if test="automaticNgFlag != null">automatic_ng_flag = #{automaticNgFlag},</if> |
| | | <if test="automaticNgStation != null">automatic_ng_station = #{automaticNgStation},</if> |
| | | <if test="automaticNgScrewNumber != null">automatic_ng_screw_number = #{automaticNgScrewNumber},</if> |
| | | <if test="artificialNgFlag != null">artificial_ng_flag = #{artificialNgFlag},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |