ZhuDeKang 6 mesiacov pred
rodič
commit
831811df50

+ 225 - 180
ruoyi-api-patform/src/main/java/com/ruoyi/interfaces/domain/MdModelInfo.java

@@ -1,6 +1,7 @@
 package com.ruoyi.interfaces.domain;
 
 import java.util.Date;
+
 import com.fasterxml.jackson.annotation.JsonFormat;
 import io.swagger.annotations.ApiModelProperty;
 import org.apache.commons.lang3.builder.ToStringBuilder;
@@ -10,454 +11,498 @@ import com.ruoyi.common.core.domain.BaseEntity;
 
 /**
  * 模型信息对象 md_model_info
- * 
+ *
  * @author ruoyi
  * @date 2025-07-15
  */
-public class MdModelInfo extends BaseEntity
-{
+public class MdModelInfo extends BaseEntity {
     private static final long serialVersionUID = 1L;
 
-    /** 模型标识 */
+    /**
+     * 模型标识
+     */
     @ApiModelProperty("模型标识")
     private String mdid;
 
-    /** 模型名称 */
+    /**
+     * 模型名称
+     */
     @ApiModelProperty("模型名称")
     @Excel(name = "模型名称")
     private String name;
 
-    /** 模型英文名称 */
+    /**
+     * 模型英文名称
+     */
     @ApiModelProperty("模型英文名称")
     @Excel(name = "模型英文名称")
     private String enname;
 
-    /** 目录标识 */
+    /**
+     * 目录标识
+     */
     @ApiModelProperty("目录标识")
     @Excel(name = "目录标识")
     private String cateid;
 
-    /** 开发语言 */
+    /**
+     * 开发语言
+     * <字典:development_language>
+     */
     @ApiModelProperty("开发语言")
     @Excel(name = "开发语言")
     private String devlang;
 
-    /** 模型版本号 */
+    /**
+     * 模型版本号
+     */
     @ApiModelProperty("模型版本号")
     @Excel(name = "模型版本号")
     private String version;
 
-    /** 模型介绍 */
+    /**
+     * 模型介绍
+     */
     @ApiModelProperty("模型介绍")
     @Excel(name = "模型介绍")
     private String intro;
 
-    /** 模型类型,1集总式 2分布式 3水力学 */
+    /**
+     * 模型类型
+     * 1水利专业模型 2排水专业模型 3供水专业模型 4海洋专业模型
+     */
     @ApiModelProperty("模型类型")
     @Excel(name = "模型类型,1集总式 2分布式 3水力学")
     private String type;
 
-    /** 模型标签 */
+    /**
+     * 模型标签
+     */
     @ApiModelProperty("模型标签")
     @Excel(name = "模型标签")
     private String tags;
 
-    /** 开发者用户编号 */
+    /**
+     * 开发者用户编号
+     */
     @ApiModelProperty("开发者用户编号")
     @Excel(name = "开发者用户编号")
     private Long author;
 
-    /** 是否发布 */
+    /**
+     * 是否发布
+     */
     @ApiModelProperty("是否发布")
     @Excel(name = "是否发布")
     private Integer isPublic;
 
-    /** 是否审核 */
+    /**
+     * 是否审核
+     */
     @ApiModelProperty("是否审核")
     @Excel(name = "是否审核")
     private Integer isApproved;
 
-    /** 模型状态 */
+    /**
+     * 模型状态
+     */
     @ApiModelProperty("模型状态")
     @Excel(name = "模型状态")
     private Integer status;
 
-    /** 模型类名 */
+    /**
+     * 模型类名
+     */
     @ApiModelProperty("模型类名")
     @Excel(name = "模型类名")
     private String className;
 
-    /** 模型提供单位 */
+    /**
+     * 模型提供单位
+     */
     @ApiModelProperty("模型提供单位")
     @Excel(name = "模型提供单位")
     private String mdUnit;
 
-    /** 模型单位联系方式 */
+    /**
+     * 模型单位联系方式
+     */
     @ApiModelProperty("模型单位联系方式")
     @Excel(name = "模型单位联系方式")
     private String mdContact;
 
-    /** 开发单位 */
+    /**
+     * 开发单位
+     */
     @ApiModelProperty("开发单位")
     @Excel(name = "开发单位")
     private String developer;
 
-    /** 是否启动消息服务 */
+    /**
+     * 是否启动消息服务
+     */
     @ApiModelProperty("是否启动消息服务")
     @Excel(name = "是否启动消息服务")
     private Integer msgFlag;
 
-    /** 模型消息WebHook */
+    /**
+     * 模型消息WebHook
+     */
     @ApiModelProperty("模型消息WebHook")
     @Excel(name = "模型消息WebHook")
     private String msgWebHook;
 
-    /** 模型CPU核心数 */
+    /**
+     * 模型CPU核心数
+     */
     @ApiModelProperty("模型CPU核心数")
     @Excel(name = "模型CPU核心数")
     private Integer mdCPU;
 
-    /** 是否需要GPU */
+    /**
+     * 是否需要GPU
+     */
     @ApiModelProperty("是否需要GPU")
     @Excel(name = "是否需要GPU")
     private Integer mdGpu;
 
-    /** 模型运行平台 */
+    /**
+     * 模型运行平台
+     */
     @ApiModelProperty("模型运行平台")
     @Excel(name = "模型运行平台")
     private String mdRunEnv;
 
-    /** 模型运行命令 */
+    /**
+     * 模型运行命令
+     */
     @ApiModelProperty("模型运行命令")
     @Excel(name = "模型运行命令")
     private String mdRunCmd;
 
-    /** 模型输入输出文件名称 */
+    /**
+     * 模型输入输出文件名称
+     */
     @ApiModelProperty("模型输入输出文件名称")
     @Excel(name = "模型输入输出文件名称")
     private String mdInOutName;
 
-    /** 模型输入输出文件英文名称 */
+    /**
+     * 模型输入输出文件英文名称
+     */
     @ApiModelProperty("模型输入输出文件英文名称")
     @Excel(name = "模型输入输出文件英文名称")
     private String mdInOutNameEn;
 
-    /** 模型调用示例 */
+    /**
+     * 模型调用示例
+     */
     @ApiModelProperty("模型调用示例")
     @Excel(name = "模型调用示例")
     private String mirrorImageEg;
 
-    /** 模型镜像地址/服务地址 */
+    /**
+     * 模型镜像地址/服务地址
+     * 如果是软件包,就是路径,如果是API服务,就是IP地址
+     */
     @ApiModelProperty("模型镜像地址/服务地址")
     @Excel(name = "模型镜像地址/服务地址")
     private String mirrorImageUrl;
 
-    /** 模型对应文件描述表 */
+    /**
+     * 模型对应文件描述表
+     * 文档上传路径,FILEID
+     */
     @ApiModelProperty("模型对应文件描述表")
     @Excel(name = "模型对应文件描述表")
     private String mirrorImageDesc;
 
-    /** 编辑时间 */
+    /**
+     * 编辑时间
+     */
     @ApiModelProperty("编辑时间")
     @JsonFormat(pattern = "yyyy-MM-dd")
     @Excel(name = "编辑时间", width = 30, dateFormat = "yyyy-MM-dd")
     private Date modifyBy;
 
-    public void setMdid(String mdid) 
-    {
+    /**
+     * 注册人员
+     */
+    private String registrant;
+
+    public String getRegistrant() {
+        return registrant;
+    }
+
+    public void setRegistrant(String registrant) {
+        this.registrant = registrant;
+    }
+
+    public void setMdid(String mdid) {
         this.mdid = mdid;
     }
 
-    public String getMdid() 
-    {
+    public String getMdid() {
         return mdid;
     }
-    public void setName(String name) 
-    {
+
+    public void setName(String name) {
         this.name = name;
     }
 
-    public String getName() 
-    {
+    public String getName() {
         return name;
     }
-    public void setEnname(String enname) 
-    {
+
+    public void setEnname(String enname) {
         this.enname = enname;
     }
 
-    public String getEnname() 
-    {
+    public String getEnname() {
         return enname;
     }
-    public void setCateid(String cateid) 
-    {
+
+    public void setCateid(String cateid) {
         this.cateid = cateid;
     }
 
-    public String getCateid() 
-    {
+    public String getCateid() {
         return cateid;
     }
-    public void setDevlang(String devlang) 
-    {
+
+    public void setDevlang(String devlang) {
         this.devlang = devlang;
     }
 
-    public String getDevlang() 
-    {
+    public String getDevlang() {
         return devlang;
     }
-    public void setVersion(String version) 
-    {
+
+    public void setVersion(String version) {
         this.version = version;
     }
 
-    public String getVersion() 
-    {
+    public String getVersion() {
         return version;
     }
-    public void setIntro(String intro) 
-    {
+
+    public void setIntro(String intro) {
         this.intro = intro;
     }
 
-    public String getIntro() 
-    {
+    public String getIntro() {
         return intro;
     }
-    public void setType(String type) 
-    {
+
+    public void setType(String type) {
         this.type = type;
     }
 
-    public String getType() 
-    {
+    public String getType() {
         return type;
     }
-    public void setTags(String tags) 
-    {
+
+    public void setTags(String tags) {
         this.tags = tags;
     }
 
-    public String getTags() 
-    {
+    public String getTags() {
         return tags;
     }
-    public void setAuthor(Long author) 
-    {
+
+    public void setAuthor(Long author) {
         this.author = author;
     }
 
-    public Long getAuthor() 
-    {
+    public Long getAuthor() {
         return author;
     }
-    public void setIsPublic(Integer isPublic) 
-    {
+
+    public void setIsPublic(Integer isPublic) {
         this.isPublic = isPublic;
     }
 
-    public Integer getIsPublic() 
-    {
+    public Integer getIsPublic() {
         return isPublic;
     }
-    public void setIsApproved(Integer isApproved) 
-    {
+
+    public void setIsApproved(Integer isApproved) {
         this.isApproved = isApproved;
     }
 
-    public Integer getIsApproved() 
-    {
+    public Integer getIsApproved() {
         return isApproved;
     }
-    public void setStatus(Integer status) 
-    {
+
+    public void setStatus(Integer status) {
         this.status = status;
     }
 
-    public Integer getStatus() 
-    {
+    public Integer getStatus() {
         return status;
     }
-    public void setClassName(String className) 
-    {
+
+    public void setClassName(String className) {
         this.className = className;
     }
 
-    public String getClassName() 
-    {
+    public String getClassName() {
         return className;
     }
-    public void setMdUnit(String mdUnit) 
-    {
+
+    public void setMdUnit(String mdUnit) {
         this.mdUnit = mdUnit;
     }
 
-    public String getMdUnit() 
-    {
+    public String getMdUnit() {
         return mdUnit;
     }
-    public void setMdContact(String mdContact) 
-    {
+
+    public void setMdContact(String mdContact) {
         this.mdContact = mdContact;
     }
 
-    public String getMdContact() 
-    {
+    public String getMdContact() {
         return mdContact;
     }
-    public void setDeveloper(String developer) 
-    {
+
+    public void setDeveloper(String developer) {
         this.developer = developer;
     }
 
-    public String getDeveloper() 
-    {
+    public String getDeveloper() {
         return developer;
     }
-    public void setMsgFlag(Integer msgFlag) 
-    {
+
+    public void setMsgFlag(Integer msgFlag) {
         this.msgFlag = msgFlag;
     }
 
-    public Integer getMsgFlag() 
-    {
+    public Integer getMsgFlag() {
         return msgFlag;
     }
-    public void setMsgWebHook(String msgWebHook) 
-    {
+
+    public void setMsgWebHook(String msgWebHook) {
         this.msgWebHook = msgWebHook;
     }
 
-    public String getMsgWebHook() 
-    {
+    public String getMsgWebHook() {
         return msgWebHook;
     }
-    public void setMdCPU(Integer mdCPU) 
-    {
+
+    public void setMdCPU(Integer mdCPU) {
         this.mdCPU = mdCPU;
     }
 
-    public Integer getMdCPU() 
-    {
+    public Integer getMdCPU() {
         return mdCPU;
     }
-    public void setMdGpu(Integer mdGpu) 
-    {
+
+    public void setMdGpu(Integer mdGpu) {
         this.mdGpu = mdGpu;
     }
 
-    public Integer getMdGpu() 
-    {
+    public Integer getMdGpu() {
         return mdGpu;
     }
-    public void setMdRunEnv(String mdRunEnv) 
-    {
+
+    public void setMdRunEnv(String mdRunEnv) {
         this.mdRunEnv = mdRunEnv;
     }
 
-    public String getMdRunEnv() 
-    {
+    public String getMdRunEnv() {
         return mdRunEnv;
     }
-    public void setMdRunCmd(String mdRunCmd) 
-    {
+
+    public void setMdRunCmd(String mdRunCmd) {
         this.mdRunCmd = mdRunCmd;
     }
 
-    public String getMdRunCmd() 
-    {
+    public String getMdRunCmd() {
         return mdRunCmd;
     }
-    public void setMdInOutName(String mdInOutName) 
-    {
+
+    public void setMdInOutName(String mdInOutName) {
         this.mdInOutName = mdInOutName;
     }
 
-    public String getMdInOutName() 
-    {
+    public String getMdInOutName() {
         return mdInOutName;
     }
-    public void setMdInOutNameEn(String mdInOutNameEn) 
-    {
+
+    public void setMdInOutNameEn(String mdInOutNameEn) {
         this.mdInOutNameEn = mdInOutNameEn;
     }
 
-    public String getMdInOutNameEn() 
-    {
+    public String getMdInOutNameEn() {
         return mdInOutNameEn;
     }
-    public void setMirrorImageEg(String mirrorImageEg) 
-    {
+
+    public void setMirrorImageEg(String mirrorImageEg) {
         this.mirrorImageEg = mirrorImageEg;
     }
 
-    public String getMirrorImageEg() 
-    {
+    public String getMirrorImageEg() {
         return mirrorImageEg;
     }
-    public void setMirrorImageUrl(String mirrorImageUrl) 
-    {
+
+    public void setMirrorImageUrl(String mirrorImageUrl) {
         this.mirrorImageUrl = mirrorImageUrl;
     }
 
-    public String getMirrorImageUrl() 
-    {
+    public String getMirrorImageUrl() {
         return mirrorImageUrl;
     }
-    public void setMirrorImageDesc(String mirrorImageDesc) 
-    {
+
+    public void setMirrorImageDesc(String mirrorImageDesc) {
         this.mirrorImageDesc = mirrorImageDesc;
     }
 
-    public String getMirrorImageDesc() 
-    {
+    public String getMirrorImageDesc() {
         return mirrorImageDesc;
     }
-    public void setModifyBy(Date modifyBy) 
-    {
+
+    public void setModifyBy(Date modifyBy) {
         this.modifyBy = modifyBy;
     }
 
-    public Date getModifyBy() 
-    {
+    public Date getModifyBy() {
         return modifyBy;
     }
 
     @Override
     public String toString() {
-        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
-            .append("mdid", getMdid())
-            .append("name", getName())
-            .append("enname", getEnname())
-            .append("cateid", getCateid())
-            .append("devlang", getDevlang())
-            .append("version", getVersion())
-            .append("intro", getIntro())
-            .append("type", getType())
-            .append("tags", getTags())
-            .append("author", getAuthor())
-            .append("isPublic", getIsPublic())
-            .append("isApproved", getIsApproved())
-            .append("status", getStatus())
-            .append("className", getClassName())
-            .append("mdUnit", getMdUnit())
-            .append("mdContact", getMdContact())
-            .append("developer", getDeveloper())
-            .append("msgFlag", getMsgFlag())
-            .append("msgWebHook", getMsgWebHook())
-            .append("mdCPU", getMdCPU())
-            .append("mdGpu", getMdGpu())
-            .append("mdRunEnv", getMdRunEnv())
-            .append("mdRunCmd", getMdRunCmd())
-            .append("mdInOutName", getMdInOutName())
-            .append("mdInOutNameEn", getMdInOutNameEn())
-            .append("mirrorImageEg", getMirrorImageEg())
-            .append("mirrorImageUrl", getMirrorImageUrl())
-            .append("mirrorImageDesc", getMirrorImageDesc())
-            .append("createBy", getCreateBy())
-            .append("modifyBy", getModifyBy())
-            .toString();
+        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
+                .append("mdid", getMdid())
+                .append("name", getName())
+                .append("enname", getEnname())
+                .append("cateid", getCateid())
+                .append("devlang", getDevlang())
+                .append("version", getVersion())
+                .append("intro", getIntro())
+                .append("type", getType())
+                .append("tags", getTags())
+                .append("author", getAuthor())
+                .append("isPublic", getIsPublic())
+                .append("isApproved", getIsApproved())
+                .append("status", getStatus())
+                .append("className", getClassName())
+                .append("mdUnit", getMdUnit())
+                .append("mdContact", getMdContact())
+                .append("developer", getDeveloper())
+                .append("msgFlag", getMsgFlag())
+                .append("msgWebHook", getMsgWebHook())
+                .append("mdCPU", getMdCPU())
+                .append("mdGpu", getMdGpu())
+                .append("mdRunEnv", getMdRunEnv())
+                .append("mdRunCmd", getMdRunCmd())
+                .append("mdInOutName", getMdInOutName())
+                .append("mdInOutNameEn", getMdInOutNameEn())
+                .append("mirrorImageEg", getMirrorImageEg())
+                .append("mirrorImageUrl", getMirrorImageUrl())
+                .append("mirrorImageDesc", getMirrorImageDesc())
+                .append("createBy", getCreateBy())
+                .append("modifyBy", getModifyBy())
+                .toString();
     }
 }

+ 103 - 62
ruoyi-api-patform/src/main/resources/mapper/interfaces/MdModelInfoMapper.xml

@@ -5,74 +5,110 @@
 <mapper namespace="com.ruoyi.interfaces.mapper.MdModelInfoMapper">
 
     <resultMap type="com.ruoyi.interfaces.domain.MdModelInfo" id="MdModelInfoResult">
-        <result property="mdid"    column="mdid"    />
-        <result property="name"    column="name"    />
-        <result property="enname"    column="enname"    />
-        <result property="cateid"    column="cateid"    />
-        <result property="devlang"    column="devlang"    />
-        <result property="version"    column="version"    />
-        <result property="intro"    column="intro"    />
-        <result property="type"    column="type"    />
-        <result property="tags"    column="tags"    />
-        <result property="author"    column="author"    />
-        <result property="isPublic"    column="isPublic"    />
-        <result property="isApproved"    column="isApproved"    />
-        <result property="status"    column="status"    />
-        <result property="className"    column="className"    />
-        <result property="mdUnit"    column="mdUnit"    />
-        <result property="mdContact"    column="mdContact"    />
-        <result property="developer"    column="developer"    />
-        <result property="msgFlag"    column="msgFlag"    />
-        <result property="msgWebHook"    column="msgWebHook"    />
-        <result property="mdCPU"    column="mdCPU"    />
-        <result property="mdGpu"    column="mdGpu"    />
-        <result property="mdRunEnv"    column="mdRunEnv"    />
-        <result property="mdRunCmd"    column="mdRunCmd"    />
-        <result property="mdInOutName"    column="mdInOutName"    />
-        <result property="mdInOutNameEn"    column="mdInOutNameEn"    />
-        <result property="mirrorImageEg"    column="mirrorImageEg"    />
-        <result property="mirrorImageUrl"    column="mirrorImageUrl"    />
-        <result property="mirrorImageDesc"    column="mirrorImageDesc"    />
-        <result property="createBy"    column="createBy"    />
-        <result property="modifyBy"    column="modifyBy"    />
+        <result property="mdid" column="mdid"/>
+        <result property="name" column="name"/>
+        <result property="enname" column="enname"/>
+        <result property="cateid" column="cateid"/>
+        <result property="devlang" column="devlang"/>
+        <result property="version" column="version"/>
+        <result property="intro" column="intro"/>
+        <result property="type" column="type"/>
+        <result property="tags" column="tags"/>
+        <result property="author" column="author"/>
+        <result property="isPublic" column="isPublic"/>
+        <result property="isApproved" column="isApproved"/>
+        <result property="status" column="status"/>
+        <result property="className" column="className"/>
+        <result property="mdUnit" column="mdUnit"/>
+        <result property="mdContact" column="mdContact"/>
+        <result property="developer" column="developer"/>
+        <result property="msgFlag" column="msgFlag"/>
+        <result property="msgWebHook" column="msgWebHook"/>
+        <result property="mdCPU" column="mdCPU"/>
+        <result property="mdGpu" column="mdGpu"/>
+        <result property="mdRunEnv" column="mdRunEnv"/>
+        <result property="mdRunCmd" column="mdRunCmd"/>
+        <result property="mdInOutName" column="mdInOutName"/>
+        <result property="mdInOutNameEn" column="mdInOutNameEn"/>
+        <result property="mirrorImageEg" column="mirrorImageEg"/>
+        <result property="mirrorImageUrl" column="mirrorImageUrl"/>
+        <result property="mirrorImageDesc" column="mirrorImageDesc"/>
+        <result property="createBy" column="createBy"/>
+        <result property="modifyBy" column="modifyBy"/>
+        <result property="registrant" column="registrant"/>
     </resultMap>
 
     <sql id="selectMdModelInfoVo">
-        select mdid, name, enname, cateid, devlang, version, intro, type, tags, author, isPublic, isApproved, status, className, mdUnit, mdContact, developer, msgFlag, msgWebHook, mdCPU, mdGpu, mdRunEnv, mdRunCmd, mdInOutName, mdInOutNameEn, mirrorImageEg, mirrorImageUrl, mirrorImageDesc, createBy, modifyBy from md_model_info
+        select mdid,
+               name,
+               enname,
+               cateid,
+               devlang,
+               version,
+               intro,
+               type,
+               tags,
+               author,
+               isPublic,
+               isApproved,
+               status,
+               className,
+               mdUnit,
+               mdContact,
+               developer,
+               msgFlag,
+               msgWebHook,
+               mdCPU,
+               mdGpu,
+               mdRunEnv,
+               mdRunCmd,
+               mdInOutName,
+               mdInOutNameEn,
+               mirrorImageEg,
+               mirrorImageUrl,
+               mirrorImageDesc,
+               createBy,
+               modifyBy,
+               registrant
+        from md_model_info
     </sql>
 
-    <select id="selectMdModelInfoList" parameterType="com.ruoyi.interfaces.domain.MdModelInfo" resultMap="MdModelInfoResult">
+    <select id="selectMdModelInfoList" parameterType="com.ruoyi.interfaces.domain.MdModelInfo"
+            resultMap="MdModelInfoResult">
         <include refid="selectMdModelInfoVo"/>
         <where>
-            <if test="name != null  and name != ''"> and name like concat('%', #{name}, '%')</if>
-            <if test="enname != null  and enname != ''"> and enname like concat('%', #{enname}, '%')</if>
-            <if test="cateid != null  and cateid != ''"> and cateid = #{cateid}</if>
-            <if test="devlang != null  and devlang != ''"> and devlang = #{devlang}</if>
-            <if test="version != null  and version != ''"> and version = #{version}</if>
-            <if test="intro != null  and intro != ''"> and intro = #{intro}</if>
-            <if test="type != null  and type != ''"> and type = #{type}</if>
-            <if test="tags != null  and tags != ''"> and tags = #{tags}</if>
-            <if test="author != null "> and author = #{author}</if>
-            <if test="isPublic != null "> and isPublic = #{isPublic}</if>
-            <if test="isApproved != null "> and isApproved = #{isApproved}</if>
-            <if test="status != null "> and status = #{status}</if>
-            <if test="className != null  and className != ''"> and className like concat('%', #{className}, '%')</if>
-            <if test="mdUnit != null  and mdUnit != ''"> and mdUnit = #{mdUnit}</if>
-            <if test="mdContact != null  and mdContact != ''"> and mdContact = #{mdContact}</if>
-            <if test="developer != null  and developer != ''"> and developer = #{developer}</if>
-            <if test="msgFlag != null "> and msgFlag = #{msgFlag}</if>
-            <if test="msgWebHook != null  and msgWebHook != ''"> and msgWebHook = #{msgWebHook}</if>
-            <if test="mdCPU != null "> and mdCPU = #{mdCPU}</if>
-            <if test="mdGpu != null "> and mdGpu = #{mdGpu}</if>
-            <if test="mdRunEnv != null  and mdRunEnv != ''"> and mdRunEnv = #{mdRunEnv}</if>
-            <if test="mdRunCmd != null  and mdRunCmd != ''"> and mdRunCmd = #{mdRunCmd}</if>
-            <if test="mdInOutName != null  and mdInOutName != ''"> and mdInOutName like concat('%', #{mdInOutName}, '%')</if>
-            <if test="mdInOutNameEn != null  and mdInOutNameEn != ''"> and mdInOutNameEn = #{mdInOutNameEn}</if>
-            <if test="mirrorImageEg != null  and mirrorImageEg != ''"> and mirrorImageEg = #{mirrorImageEg}</if>
-            <if test="mirrorImageUrl != null  and mirrorImageUrl != ''"> and mirrorImageUrl = #{mirrorImageUrl}</if>
-            <if test="mirrorImageDesc != null  and mirrorImageDesc != ''"> and mirrorImageDesc = #{mirrorImageDesc}</if>
-            <if test="createBy != null "> and createBy = #{createBy}</if>
-            <if test="modifyBy != null "> and modifyBy = #{modifyBy}</if>
+            <if test="name != null  and name != ''">and name like concat('%', #{name}, '%')</if>
+            <if test="enname != null  and enname != ''">and enname like concat('%', #{enname}, '%')</if>
+            <if test="cateid != null  and cateid != ''">and cateid = #{cateid}</if>
+            <if test="devlang != null  and devlang != ''">and devlang = #{devlang}</if>
+            <if test="version != null  and version != ''">and version = #{version}</if>
+            <if test="intro != null  and intro != ''">and intro = #{intro}</if>
+            <if test="type != null  and type != ''">and type = #{type}</if>
+            <if test="tags != null  and tags != ''">and tags = #{tags}</if>
+            <if test="author != null ">and author = #{author}</if>
+            <if test="isPublic != null ">and isPublic = #{isPublic}</if>
+            <if test="isApproved != null ">and isApproved = #{isApproved}</if>
+            <if test="status != null ">and status = #{status}</if>
+            <if test="className != null  and className != ''">and className like concat('%', #{className}, '%')</if>
+            <if test="mdUnit != null  and mdUnit != ''">and mdUnit = #{mdUnit}</if>
+            <if test="mdContact != null  and mdContact != ''">and mdContact = #{mdContact}</if>
+            <if test="developer != null  and developer != ''">and developer = #{developer}</if>
+            <if test="msgFlag != null ">and msgFlag = #{msgFlag}</if>
+            <if test="msgWebHook != null  and msgWebHook != ''">and msgWebHook = #{msgWebHook}</if>
+            <if test="mdCPU != null ">and mdCPU = #{mdCPU}</if>
+            <if test="mdGpu != null ">and mdGpu = #{mdGpu}</if>
+            <if test="mdRunEnv != null  and mdRunEnv != ''">and mdRunEnv = #{mdRunEnv}</if>
+            <if test="mdRunCmd != null  and mdRunCmd != ''">and mdRunCmd = #{mdRunCmd}</if>
+            <if test="mdInOutName != null  and mdInOutName != ''">and mdInOutName like concat('%', #{mdInOutName},
+                '%')
+            </if>
+            <if test="mdInOutNameEn != null  and mdInOutNameEn != ''">and mdInOutNameEn = #{mdInOutNameEn}</if>
+            <if test="mirrorImageEg != null  and mirrorImageEg != ''">and mirrorImageEg = #{mirrorImageEg}</if>
+            <if test="mirrorImageUrl != null  and mirrorImageUrl != ''">and mirrorImageUrl = #{mirrorImageUrl}</if>
+            <if test="mirrorImageDesc != null  and mirrorImageDesc != ''">and mirrorImageDesc = #{mirrorImageDesc}</if>
+            <if test="createBy != null ">and createBy = #{createBy}</if>
+            <if test="modifyBy != null ">and modifyBy = #{modifyBy}</if>
+            <if test="registrant != null ">and registrant = #{registrant}</if>
         </where>
     </select>
 
@@ -114,6 +150,7 @@
             <if test="mirrorImageDesc != null">mirrorImageDesc,</if>
             <if test="createBy != null">createBy,</if>
             <if test="modifyBy != null">modifyBy,</if>
+            <if test="registrant != null">registrant,</if>
         </trim>
         <trim prefix="values (" suffix=")" suffixOverrides=",">
             <if test="mdid != null">#{mdid},</if>
@@ -146,6 +183,7 @@
             <if test="mirrorImageDesc != null">#{mirrorImageDesc},</if>
             <if test="createBy != null">#{createBy},</if>
             <if test="modifyBy != null">#{modifyBy},</if>
+            <if test="registrant != null">#{registrant},</if>
         </trim>
     </insert>
 
@@ -181,12 +219,15 @@
             <if test="mirrorImageDesc != null">mirrorImageDesc = #{mirrorImageDesc},</if>
             <if test="createBy != null">createBy = #{createBy},</if>
             <if test="modifyBy != null">modifyBy = #{modifyBy},</if>
+            <if test="registrant != null">registrant = #{registrant},</if>
         </trim>
         where mdid = #{mdid}
     </update>
 
     <delete id="deleteMdModelInfoByMdid" parameterType="String">
-        delete from md_model_info where mdid = #{mdid}
+        delete
+        from md_model_info
+        where mdid = #{mdid}
     </delete>
 
     <delete id="deleteMdModelInfoByMdids" parameterType="String">