| | |
| | | |
| | | <update id="updatePlanDateByBatch" parameterType="ApsPlateOrderPlanRequireDate"> |
| | | update aps_plate_plan set |
| | | plan_start_day = #{planRequireDate.start}, |
| | | plan_end_day = #{planRequireDate.end}, |
| | | update_by = #{planRequireDate.updateBy}, |
| | | plan_start_day = #{start}, |
| | | plan_end_day = #{end}, |
| | | update_by = #{updateBy}, |
| | | update_time = now() |
| | | where id = #{planRequireDate.id} |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <update id="updatePlanDateByCustom" parameterType="ApsPlateOrderPlanDate"> |
| | | update aps_plate_plan set |
| | | custom_time = #{planRequireDate.customDate}, |
| | | update_by = #{planRequireDate.updateBy}, |
| | | custom_time = #{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> |