| | |
| | | <result property="createTime" column="create_time" /> |
| | | <result property="updateBy" column="update_by" /> |
| | | <result property="updateTime" column="update_time" /> |
| | | <result property="drawingNo" column="drawing_no" /> |
| | | <result property="processNo" column="process_no" /> |
| | | <result property="unit" column="unit" /> |
| | | <result property="num" column="num" /> |
| | | <result property="totalNum" column="total_num" /> |
| | | <result property="preparationTime" column="preparation_time" /> |
| | | <result property="processingTime" column="processing_time" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectApsBomVo"> |
| | | select id, bom_id, parent_bom_id, item_code, item_name, start_date, end_date, org_code, del_flag, create_by, create_time, update_by, update_time from aps_bom |
| | | select id, bom_id, parent_bom_id, item_code, item_name, start_date, end_date, org_code, del_flag, create_by, create_time, update_by, update_time, drawing_no, process_no, unit, num, total_num, preparation_time, processing_time from aps_bom |
| | | </sql> |
| | | |
| | | <select id="selectApsBomList" parameterType="ApsBom" resultMap="ApsBomResult"> |
| | |
| | | <if test="createTime != null">create_time,</if> |
| | | <if test="updateBy != null">update_by,</if> |
| | | <if test="updateTime != null">update_time,</if> |
| | | <if test="drawingNo != null">drawing_no,</if> |
| | | <if test="processNo != null">process_no,</if> |
| | | <if test="unit != null">unit,</if> |
| | | <if test="num != null">num,</if> |
| | | <if test="totalNum != null">total_num,</if> |
| | | <if test="preparationTime != null">preparation_time,</if> |
| | | <if test="processingTime != null">processing_time,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="bomId != null">#{bomId},</if> |
| | |
| | | <if test="createTime != null">#{createTime},</if> |
| | | <if test="updateBy != null">#{updateBy},</if> |
| | | <if test="updateTime != null">#{updateTime},</if> |
| | | <if test="drawingNo != null">#{drawingNo},</if> |
| | | <if test="processNo != null">#{processNo},</if> |
| | | <if test="unit != null">#{unit},</if> |
| | | <if test="num != null">#{num},</if> |
| | | <if test="totalNum != null">#{totalNum},</if> |
| | | <if test="preparationTime != null">#{preparationTime},</if> |
| | | <if test="processingTime != null">#{processingTime},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="createTime != null">create_time = #{createTime},</if> |
| | | <if test="updateBy != null">update_by = #{updateBy},</if> |
| | | <if test="updateTime != null">update_time = #{updateTime},</if> |
| | | <if test="drawingNo != null">drawing_no = #{drawingNo},</if> |
| | | <if test="processNo != null">process_no = #{processNo},</if> |
| | | <if test="unit != null">unit = #{unit},</if> |
| | | <if test="num != null">num = #{num},</if> |
| | | <if test="totalNum != null">total_num = #{totalNum}</if> |
| | | <if test="preparationTime != null">preparation_time = #{preparationTime},</if> |
| | | <if test="processingTime != null">processing_time = #{processingTime},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |