select ID, COMPANY_ID, MODEL_ID, MODEL_NAME, VERSION, FILE_ADDRESS, INTERFACE_ADDRESS, STATUS, DESCRIPTION, VALID_FLAG, DEL_FLAG, CREATE_BY, CREATOR_ID, CREATE_TIME, UPDATE_BY, UPDATOR_ID, UPDATE_TIME, REMARK, FILE_NAME, RUNNABLE_FILE_ADDRESS from MODEL_VERSION
and COMPANY_ID = #{companyId}
and MODEL_ID = #{modelId}
and MODEL_NAME like concat('%', #{modelName}, '%')
and VERSION = #{version}
and FILE_ADDRESS = #{fileAddress}
and INTERFACE_ADDRESS = #{interfaceAddress}
and STATUS = #{status}
and DESCRIPTION = #{description}
and CREATE_TIME = #{createTime}
and FILE_NAME like concat('%', #{fileName}, '%')
and RUNNABLE_FILE_ADDRESS = #{runnableFileAddress}
and id in #{id}
and DEL_FLAG = #{delFlag}
where ID = #{id}
insert into MODEL_VERSION ID, COMPANY_ID, MODEL_ID, MODEL_NAME, VERSION, FILE_ADDRESS, INTERFACE_ADDRESS, STATUS, DESCRIPTION, VALID_FLAG, DEL_FLAG, CREATE_BY, CREATOR_ID, CREATE_TIME, UPDATE_BY, UPDATOR_ID, UPDATE_TIME, REMARK, FILE_NAME, RUNNABLE_FILE_ADDRESS, #{id}, #{companyId}, #{modelId}, #{modelName}, #{version}, #{fileAddress}, #{interfaceAddress}, #{status}, #{description}, #{validFlag}, #{delFlag}, #{createBy}, #{creatorId}, #{createTime}, #{updateBy}, #{updatorId}, #{updateTime}, #{remark}, #{fileName}, #{runnableFileAddress},
update MODEL_VERSION COMPANY_ID = #{companyId}, MODEL_ID = #{modelId}, MODEL_NAME = #{modelName}, VERSION = #{version}, FILE_ADDRESS = #{fileAddress}, INTERFACE_ADDRESS = #{interfaceAddress}, STATUS = #{status}, DESCRIPTION = #{description}, VALID_FLAG = #{validFlag}, DEL_FLAG = #{delFlag}, CREATE_BY = #{createBy}, CREATOR_ID = #{creatorId}, CREATE_TIME = #{createTime}, UPDATE_BY = #{updateBy}, UPDATOR_ID = #{updatorId}, UPDATE_TIME = #{updateTime}, REMARK = #{remark}, FILE_NAME = #{fileName}, RUNNABLE_FILE_ADDRESS = #{runnableFileAddress}, where ID = #{id}
delete from MODEL_VERSION where ID = #{id}
delete from MODEL_VERSION where ID in #{id}