31 lines
1.4 KiB
XML
31 lines
1.4 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<!DOCTYPE mapper
|
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
<mapper namespace="com.mcwl.resource.mapper.ModelVersionMapper">
|
|
|
|
|
|
<insert id="addModelVersion">
|
|
INSERT INTO model_version (
|
|
version_name, model_type, file_path, trigger_words, sampling, high, vae, cfg,
|
|
is_free, is_public, is_encrypt, is_online_use, allow_download_image,
|
|
allow_software_use, allow_fusion, allow_commercial_use, allow_usage,
|
|
is_exclusive_model, sample_image_paths, hide_image_gen_info, audit_status,
|
|
audit_text, del_flag
|
|
)
|
|
VALUES
|
|
<foreach collection="list" item="item" separator=",">
|
|
(
|
|
#{item.versionName}, #{item.modelType}, #{item.filePath}, #{item.triggerWords},
|
|
#{item.sampling}, #{item.high}, #{item.vae}, #{item.cfg},
|
|
#{item.isFree}, #{item.isPublic}, #{item.isEncrypt}, #{item.isOnlineUse},
|
|
#{item.allowDownloadImage}, #{item.allowSoftwareUse}, #{item.allowFusion},
|
|
#{item.allowCommercialUse}, #{item.allowUsage}, #{item.isExclusiveModel},
|
|
#{item.sampleImagePaths}, #{item.hideImageGenInfo}, #{item.auditStatus},
|
|
#{item.auditText}, #{item.delFlag}
|
|
)
|
|
</foreach>
|
|
</insert>
|
|
|
|
</mapper>
|