| | |
| | | <result property="hasDelayRisk" column="has_delay_risk" /> |
| | | <result property="startDate" column="start_date" /> |
| | | <result property="completeDate" column="complete_date" /> |
| | | <result property="customTime" column="custom_time" /> |
| | | <!-- <result property="customTime" column="custom_time" />--> |
| | | </resultMap> |
| | | |
| | | <select id="selectApsPlanOrderManager" parameterType="ApsPlateOrderPlanManager" resultMap="ApsPlateOrderPlanManagerResult"> |
| | |
| | | plan.plan_start_day, |
| | | plan.plan_end_day, |
| | | plan.unmatched_quantity, |
| | | plan.custom_time, |
| | | require.has_delay_risk, |
| | | plan.id, |
| | | require.start_date, |
| | |
| | | left join aps_plate_plan plan on detail.doc_no = plan.document_number |
| | | <where> |
| | | <if test="workOrderNo != null and workOrderNo != ''"> and detail.doc_no = #{workOrderNo}</if> |
| | | <if test="requireId != null and requireId != ''"> and detail.require_id = #{requireId}</if> |
| | | <if test="requireTrackId != null and requireTrackId != ''"> and detail.require_track_id = #{requireTrackId}</if> |
| | | <if test="mainPartNumber != null and mainPartNumber != ''"> and plan.main_part_number = #{mainPartNumber}</if> |
| | | <if test="hasDelayRisk != null and hasDelayRisk != ''"> and require.has_delay_risk = #{hasDelayRisk}</if> |
| | | </where> |
| | |
| | | |
| | | <update id="updatePlanDateByCustom" parameterType="ApsPlateOrderPlanDate"> |
| | | update aps_plate_plan set |
| | | custom_time = #{planRequireDate.customDate}, |
| | | update_by = #{planRequireDate.updateBy}, |
| | | plan_end_day = #{customDate}, |
| | | update_by = #{updateBy}, |
| | | update_time = now() |
| | | where id in |
| | | <foreach collection="planRequireDate.planIds" item="id" open="(" separator="," close=")"> |
| | | <foreach collection="planIds" item="id" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </update> |