| | |
| | | </resultMap> |
| | | |
| | | <sql id="selectApsWorkOrderJobVo"> |
| | | select id, order_id, doc_no, mainitem_code, mainitem_figure, customer_name, business_type, demand_type, doc_status, item_code, item_figure, item_figure_version, pruduct_qty, work_qty, op_num, work_center, dept, start_date, complete_date, next_dept, is_hold_release, is_out_source, org, page_num, page_index, del_flag, create_by, create_time, update_by, update_time from aps_work_order_job |
| | | select id, order_id, doc_no, mainitem_code, mainitem_figure, customer_name, business_type, demand_type, |
| | | doc_status, item_code, item_figure, item_figure_version, pruduct_qty, work_qty, op_num, work_center, |
| | | dept, start_date, complete_date, next_dept, is_hold_release, is_out_source, org, page_num, page_index, |
| | | del_flag, create_by, create_time, update_by, update_time , process_status,org_code |
| | | from aps_work_order_job |
| | | </sql> |
| | | |
| | | <select id="selectApsWorkOrderJobList" parameterType="ApsWorkOrderJob" resultMap="ApsWorkOrderJobResult"> |
| | |
| | | <if test="org != null and org != ''"> and org = #{org}</if> |
| | | <if test="pageNum != null "> and page_num = #{pageNum}</if> |
| | | <if test="pageIndex != null "> and page_index = #{pageIndex}</if> |
| | | <if test="orgCode != null and orgCode != ''"> and org_code = #{orgCode}</if> |
| | | <if test="processStatus != null and processStatus != ''"> and process_status = #{processStatus}</if> |
| | | <if test="delFlag != null and delFlag != ''"> and del_flag = #{delFlag}</if> |
| | | </where> |
| | | </select> |
| | |
| | | <if test="createTime != null">create_time,</if> |
| | | <if test="updateBy != null">update_by,</if> |
| | | <if test="updateTime != null">update_time,</if> |
| | | <if test="orgCode != null">org_code,</if> |
| | | <if test="processStatus != null">process_status,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="orderId != null">#{orderId},</if> |
| | |
| | | <if test="createTime != null">#{createTime},</if> |
| | | <if test="updateBy != null">#{updateBy},</if> |
| | | <if test="updateTime != null">#{updateTime},</if> |
| | | <if test="orgCode != null">#{orgCode},</if> |
| | | <if test="processStatus != null">#{processStatus},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | create_by, |
| | | create_time, |
| | | update_by, |
| | | update_time |
| | | update_time, |
| | | org_code, |
| | | process_status |
| | | </trim> |
| | | values |
| | | <foreach collection="list" item="job" separator=","> |
| | |
| | | #{job.createBy}, |
| | | #{job.createTime}, |
| | | #{job.updateBy}, |
| | | #{job.updateTime} |
| | | #{job.updateTime}, |
| | | #{job.orgCode}, |
| | | #{job.processStatus} |
| | | ) |
| | | </foreach> |
| | | </insert> |