INSERT INTO gear_production_task ( task_id, task_code, task_name, status, plan_start_time, plan_end_time, remark, del_flag, create_by, create_time, update_by, update_time ) VALUES ( #{taskId}, #{taskCode}, #{taskName}, #{status}, #{planStartTime}, #{planEndTime}, #{remark}, #{delFlag}, #{createBy}, #{createTime}, #{updateBy}, #{updateTime} ) UPDATE gear_production_task SET task_code = #{taskCode}, task_name = #{taskName}, status = #{status}, plan_start_time = #{planStartTime}, plan_end_time = #{planEndTime}, remark = #{remark}, update_by = #{updateBy}, update_time = #{updateTime} WHERE task_id = #{taskId} AND del_flag = '0' UPDATE gear_production_task SET status = #{status}, update_by = #{updateBy}, update_time = #{updateTime} WHERE task_id = #{taskId} AND del_flag = '0' AND status ]]> #{status} UPDATE gear_production_task SET del_flag = #{delFlag}, update_by = #{updateBy}, update_time = #{updateTime} WHERE task_id = #{taskId} AND del_flag = '0'