MdModelInfoMapper.xml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!DOCTYPE mapper
  3. PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  4. "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  5. <mapper namespace="com.ruoyi.interfaces.mapper.MdModelInfoMapper">
  6. <resultMap type="com.ruoyi.interfaces.domain.MdModelInfo" id="MdModelInfoResult">
  7. <result property="mdid" column="mdid"/>
  8. <result property="name" column="name"/>
  9. <result property="enname" column="enname"/>
  10. <result property="cateid" column="cateid"/>
  11. <result property="devlang" column="devlang"/>
  12. <result property="version" column="version"/>
  13. <result property="intro" column="intro"/>
  14. <result property="type" column="type"/>
  15. <result property="tags" column="tags"/>
  16. <result property="author" column="author"/>
  17. <result property="isPublic" column="isPublic"/>
  18. <result property="isApproved" column="isApproved"/>
  19. <result property="status" column="status"/>
  20. <result property="className" column="className"/>
  21. <result property="mdUnit" column="mdUnit"/>
  22. <result property="mdContact" column="mdContact"/>
  23. <result property="developer" column="developer"/>
  24. <result property="msgFlag" column="msgFlag"/>
  25. <result property="msgWebHook" column="msgWebHook"/>
  26. <result property="mdCPU" column="mdCPU"/>
  27. <result property="mdGpu" column="mdGpu"/>
  28. <result property="mdRunEnv" column="mdRunEnv"/>
  29. <result property="mdRunCmd" column="mdRunCmd"/>
  30. <result property="mdInOutName" column="mdInOutName"/>
  31. <result property="mdInOutNameEn" column="mdInOutNameEn"/>
  32. <result property="mirrorImageEg" column="mirrorImageEg"/>
  33. <result property="mirrorImageUrl" column="mirrorImageUrl"/>
  34. <result property="mirrorImageDesc" column="mirrorImageDesc"/>
  35. <result property="createBy" column="createBy"/>
  36. <result property="modifyBy" column="modifyBy"/>
  37. <result property="registrant" column="registrant"/>
  38. </resultMap>
  39. <sql id="selectMdModelInfoVo">
  40. select mdid,
  41. name,
  42. enname,
  43. cateid,
  44. devlang,
  45. version,
  46. intro,
  47. type,
  48. tags,
  49. author,
  50. isPublic,
  51. isApproved,
  52. status,
  53. className,
  54. mdUnit,
  55. mdContact,
  56. developer,
  57. msgFlag,
  58. msgWebHook,
  59. mdCPU,
  60. mdGpu,
  61. mdRunEnv,
  62. mdRunCmd,
  63. mdInOutName,
  64. mdInOutNameEn,
  65. mirrorImageEg,
  66. mirrorImageUrl,
  67. mirrorImageDesc,
  68. createBy,
  69. modifyBy,
  70. registrant
  71. from md_model_info
  72. </sql>
  73. <select id="selectMdModelInfoList" parameterType="com.ruoyi.interfaces.domain.MdModelInfo"
  74. resultMap="MdModelInfoResult">
  75. <include refid="selectMdModelInfoVo"/>
  76. <where>
  77. <if test="name != null and name != ''">and name like concat('%', #{name}, '%')</if>
  78. <if test="enname != null and enname != ''">and enname like concat('%', #{enname}, '%')</if>
  79. <if test="cateid != null and cateid != ''">and cateid = #{cateid}</if>
  80. <if test="devlang != null and devlang != ''">and devlang = #{devlang}</if>
  81. <if test="version != null and version != ''">and version = #{version}</if>
  82. <if test="intro != null and intro != ''">and intro = #{intro}</if>
  83. <if test="type != null and type != ''">and type = #{type}</if>
  84. <if test="tags != null and tags != ''">and tags = #{tags}</if>
  85. <if test="author != null ">and author = #{author}</if>
  86. <if test="isPublic != null ">and isPublic = #{isPublic}</if>
  87. <if test="isApproved != null ">and isApproved = #{isApproved}</if>
  88. <if test="status != null ">and status = #{status}</if>
  89. <if test="className != null and className != ''">and className like concat('%', #{className}, '%')</if>
  90. <if test="mdUnit != null and mdUnit != ''">and mdUnit = #{mdUnit}</if>
  91. <if test="mdContact != null and mdContact != ''">and mdContact = #{mdContact}</if>
  92. <if test="developer != null and developer != ''">and developer = #{developer}</if>
  93. <if test="msgFlag != null ">and msgFlag = #{msgFlag}</if>
  94. <if test="msgWebHook != null and msgWebHook != ''">and msgWebHook = #{msgWebHook}</if>
  95. <if test="mdCPU != null ">and mdCPU = #{mdCPU}</if>
  96. <if test="mdGpu != null ">and mdGpu = #{mdGpu}</if>
  97. <if test="mdRunEnv != null and mdRunEnv != ''">and mdRunEnv = #{mdRunEnv}</if>
  98. <if test="mdRunCmd != null and mdRunCmd != ''">and mdRunCmd = #{mdRunCmd}</if>
  99. <if test="mdInOutName != null and mdInOutName != ''">and mdInOutName like concat('%', #{mdInOutName},
  100. '%')
  101. </if>
  102. <if test="mdInOutNameEn != null and mdInOutNameEn != ''">and mdInOutNameEn = #{mdInOutNameEn}</if>
  103. <if test="mirrorImageEg != null and mirrorImageEg != ''">and mirrorImageEg = #{mirrorImageEg}</if>
  104. <if test="mirrorImageUrl != null and mirrorImageUrl != ''">and mirrorImageUrl = #{mirrorImageUrl}</if>
  105. <if test="mirrorImageDesc != null and mirrorImageDesc != ''">and mirrorImageDesc = #{mirrorImageDesc}</if>
  106. <if test="createBy != null ">and createBy = #{createBy}</if>
  107. <if test="modifyBy != null ">and modifyBy = #{modifyBy}</if>
  108. <if test="registrant != null ">and registrant = #{registrant}</if>
  109. </where>
  110. </select>
  111. <select id="selectMdModelInfoByMdid" parameterType="String" resultMap="MdModelInfoResult">
  112. <include refid="selectMdModelInfoVo"/>
  113. where mdid = #{mdid}
  114. </select>
  115. <insert id="insertMdModelInfo" parameterType="com.ruoyi.interfaces.domain.MdModelInfo">
  116. insert into md_model_info
  117. <trim prefix="(" suffix=")" suffixOverrides=",">
  118. <if test="mdid != null">mdid,</if>
  119. <if test="name != null">name,</if>
  120. <if test="enname != null">enname,</if>
  121. <if test="cateid != null">cateid,</if>
  122. <if test="devlang != null">devlang,</if>
  123. <if test="version != null">version,</if>
  124. <if test="intro != null">intro,</if>
  125. <if test="type != null">type,</if>
  126. <if test="tags != null">tags,</if>
  127. <if test="author != null">author,</if>
  128. <if test="isPublic != null">isPublic,</if>
  129. <if test="isApproved != null">isApproved,</if>
  130. <if test="status != null">status,</if>
  131. <if test="className != null">className,</if>
  132. <if test="mdUnit != null">mdUnit,</if>
  133. <if test="mdContact != null">mdContact,</if>
  134. <if test="developer != null">developer,</if>
  135. <if test="msgFlag != null">msgFlag,</if>
  136. <if test="msgWebHook != null">msgWebHook,</if>
  137. <if test="mdCPU != null">mdCPU,</if>
  138. <if test="mdGpu != null">mdGpu,</if>
  139. <if test="mdRunEnv != null">mdRunEnv,</if>
  140. <if test="mdRunCmd != null">mdRunCmd,</if>
  141. <if test="mdInOutName != null">mdInOutName,</if>
  142. <if test="mdInOutNameEn != null">mdInOutNameEn,</if>
  143. <if test="mirrorImageEg != null">mirrorImageEg,</if>
  144. <if test="mirrorImageUrl != null">mirrorImageUrl,</if>
  145. <if test="mirrorImageDesc != null">mirrorImageDesc,</if>
  146. <if test="createBy != null">createBy,</if>
  147. <if test="modifyBy != null">modifyBy,</if>
  148. <if test="registrant != null">registrant,</if>
  149. </trim>
  150. <trim prefix="values (" suffix=")" suffixOverrides=",">
  151. <if test="mdid != null">#{mdid},</if>
  152. <if test="name != null">#{name},</if>
  153. <if test="enname != null">#{enname},</if>
  154. <if test="cateid != null">#{cateid},</if>
  155. <if test="devlang != null">#{devlang},</if>
  156. <if test="version != null">#{version},</if>
  157. <if test="intro != null">#{intro},</if>
  158. <if test="type != null">#{type},</if>
  159. <if test="tags != null">#{tags},</if>
  160. <if test="author != null">#{author},</if>
  161. <if test="isPublic != null">#{isPublic},</if>
  162. <if test="isApproved != null">#{isApproved},</if>
  163. <if test="status != null">#{status},</if>
  164. <if test="className != null">#{className},</if>
  165. <if test="mdUnit != null">#{mdUnit},</if>
  166. <if test="mdContact != null">#{mdContact},</if>
  167. <if test="developer != null">#{developer},</if>
  168. <if test="msgFlag != null">#{msgFlag},</if>
  169. <if test="msgWebHook != null">#{msgWebHook},</if>
  170. <if test="mdCPU != null">#{mdCPU},</if>
  171. <if test="mdGpu != null">#{mdGpu},</if>
  172. <if test="mdRunEnv != null">#{mdRunEnv},</if>
  173. <if test="mdRunCmd != null">#{mdRunCmd},</if>
  174. <if test="mdInOutName != null">#{mdInOutName},</if>
  175. <if test="mdInOutNameEn != null">#{mdInOutNameEn},</if>
  176. <if test="mirrorImageEg != null">#{mirrorImageEg},</if>
  177. <if test="mirrorImageUrl != null">#{mirrorImageUrl},</if>
  178. <if test="mirrorImageDesc != null">#{mirrorImageDesc},</if>
  179. <if test="createBy != null">#{createBy},</if>
  180. <if test="modifyBy != null">#{modifyBy},</if>
  181. <if test="registrant != null">#{registrant},</if>
  182. </trim>
  183. </insert>
  184. <update id="updateMdModelInfo" parameterType="com.ruoyi.interfaces.domain.MdModelInfo">
  185. update md_model_info
  186. <trim prefix="SET" suffixOverrides=",">
  187. <if test="name != null">name = #{name},</if>
  188. <if test="enname != null">enname = #{enname},</if>
  189. <if test="cateid != null">cateid = #{cateid},</if>
  190. <if test="devlang != null">devlang = #{devlang},</if>
  191. <if test="version != null">version = #{version},</if>
  192. <if test="intro != null">intro = #{intro},</if>
  193. <if test="type != null">type = #{type},</if>
  194. <if test="tags != null">tags = #{tags},</if>
  195. <if test="author != null">author = #{author},</if>
  196. <if test="isPublic != null">isPublic = #{isPublic},</if>
  197. <if test="isApproved != null">isApproved = #{isApproved},</if>
  198. <if test="status != null">status = #{status},</if>
  199. <if test="className != null">className = #{className},</if>
  200. <if test="mdUnit != null">mdUnit = #{mdUnit},</if>
  201. <if test="mdContact != null">mdContact = #{mdContact},</if>
  202. <if test="developer != null">developer = #{developer},</if>
  203. <if test="msgFlag != null">msgFlag = #{msgFlag},</if>
  204. <if test="msgWebHook != null">msgWebHook = #{msgWebHook},</if>
  205. <if test="mdCPU != null">mdCPU = #{mdCPU},</if>
  206. <if test="mdGpu != null">mdGpu = #{mdGpu},</if>
  207. <if test="mdRunEnv != null">mdRunEnv = #{mdRunEnv},</if>
  208. <if test="mdRunCmd != null">mdRunCmd = #{mdRunCmd},</if>
  209. <if test="mdInOutName != null">mdInOutName = #{mdInOutName},</if>
  210. <if test="mdInOutNameEn != null">mdInOutNameEn = #{mdInOutNameEn},</if>
  211. <if test="mirrorImageEg != null">mirrorImageEg = #{mirrorImageEg},</if>
  212. <if test="mirrorImageUrl != null">mirrorImageUrl = #{mirrorImageUrl},</if>
  213. <if test="mirrorImageDesc != null">mirrorImageDesc = #{mirrorImageDesc},</if>
  214. <if test="createBy != null">createBy = #{createBy},</if>
  215. <if test="modifyBy != null">modifyBy = #{modifyBy},</if>
  216. <if test="registrant != null">registrant = #{registrant},</if>
  217. </trim>
  218. where mdid = #{mdid}
  219. </update>
  220. <delete id="deleteMdModelInfoByMdid" parameterType="String">
  221. delete
  222. from md_model_info
  223. where mdid = #{mdid}
  224. </delete>
  225. <delete id="deleteMdModelInfoByMdids" parameterType="String">
  226. delete from md_model_info where mdid in
  227. <foreach item="mdid" collection="array" open="(" separator="," close=")">
  228. #{mdid}
  229. </foreach>
  230. </delete>
  231. </mapper>