insert into input_apply_details task_id, ma_id, type_id, parent_id, input_num, input_type, create_by, create_time, update_by, update_time, remark, company_id, #{taskId}, #{maId}, #{typeId}, #{parentId}, #{inputNum}, #{inputType}, #{createBy}, #{createTime}, #{updateBy}, #{updateTime}, #{remark}, #{companyId}, insert into ma_input_record task_id, type_id, ma_id, input_type, input_num, status, create_by, create_time, update_by, update_time, remark, company_id, #{taskId}, #{typeId}, #{maId}, #{inputType}, #{inputNum}, #{status}, #{createBy}, #{createTime}, #{updateBy}, #{updateTime}, #{remark}, #{companyId}, update ma_machine set ma_status = #{maStatus} where ma_id = #{maId} update ma_type set num = #{num} where type_id = #{typeId} update purchase_check_details set check_num = #{inputNum},status = #{status} where task_id = #{taskId} and type_id = #{typeId} update purchase_macode_info set status = #{status} where task_id = #{taskId} and type_id = #{typeId} and ma_code = #{maCode} update tm_task task_type = #{taskType}, task_status = #{taskStatus}, code = #{code}, create_by = #{createBy}, create_time = #{createTime}, update_by = #{updateBy}, update_time = #{updateTime}, remark = #{remark}, company_id = #{companyId}, where task_id = #{taskId}