综合办公系统
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

CmcTitleEvalMapper.xml 9.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  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.oa.mapper.CmcTitleEvalMapper">
  6. <resultMap type="CmcTitleEval" id="CmcTitleEvalResult">
  7. <result property="titleEvalId" column="title_eval_id" />
  8. <result property="userId" column="user_id" />
  9. <result property="annual" column="annual" />
  10. <result property="institude" column="institude" />
  11. <result property="type" column="type" />
  12. <result property="level" column="level" />
  13. <result property="titleProfession" column="title_profession" />
  14. <result property="sheet" column="sheet" />
  15. <result property="sheetStamp" column="sheet_stamp" />
  16. <result property="material" column="material" />
  17. <result property="isApproved" column="is_approved" />
  18. <result property="publicityFile" column="publicity_file" />
  19. <result property="scanFile" column="scan_file" />
  20. <result property="obtainTime" column="obtain_time" />
  21. <result property="applyTime" column="apply_time" />
  22. <result property="titleUserId" column="title_user_id" />
  23. <result property="titleTime" column="title_time" />
  24. <result property="titleComment" column="title_comment" />
  25. <result property="materialUploadTime" column="material_upload_time" />
  26. <result property="confirmer" column="confirmer" />
  27. <result property="confirmTime" column="confirm_time" />
  28. <result property="confirmStatus" column="confirm_status" />
  29. </resultMap>
  30. <sql id="selectCmcTitleEvalVo">
  31. select title_eval_id, user_id, annual, institude, type, level, title_profession, sheet, sheet_stamp, material, is_approved, publicity_file, scan_file, obtain_time, apply_time, title_user_id, title_time, title_comment, material_upload_time, confirmer, confirm_time, confirm_status from cmc_title_eval
  32. </sql>
  33. <select id="selectCmcTitleEvalList" parameterType="CmcTitleEval" resultMap="CmcTitleEvalResult">
  34. <include refid="selectCmcTitleEvalVo"/>
  35. <where>
  36. <if test="userId != null "> and user_id = #{userId}</if>
  37. <if test="annual != null and annual != ''"> and annual = #{annual}</if>
  38. <if test="institude != null and institude != ''"> and institude = #{institude}</if>
  39. <if test="type != null and type != ''"> and type = #{type}</if>
  40. <if test="level != null and level != ''"> and level = #{level}</if>
  41. <if test="titleProfession != null and titleProfession != ''"> and title_profession = #{titleProfession}</if>
  42. <if test="sheet != null and sheet != ''"> and sheet = #{sheet}</if>
  43. <if test="sheetStamp != null and sheetStamp != ''"> and sheet_stamp = #{sheetStamp}</if>
  44. <if test="material != null and material != ''"> and material = #{material}</if>
  45. <if test="isApproved != null and isApproved != ''"> and is_approved = #{isApproved}</if>
  46. <if test="publicityFile != null and publicityFile != ''"> and publicity_file = #{publicityFile}</if>
  47. <if test="scanFile != null and scanFile != ''"> and scan_file = #{scanFile}</if>
  48. <if test="obtainTime != null "> and obtain_time = #{obtainTime}</if>
  49. <if test="applyTime != null "> and apply_time = #{applyTime}</if>
  50. <if test="titleUserId != null "> and title_user_id = #{titleUserId}</if>
  51. <if test="titleTime != null "> and title_time = #{titleTime}</if>
  52. <if test="titleComment != null and titleComment != ''"> and title_comment = #{titleComment}</if>
  53. <if test="materialUploadTime != null "> and material_upload_time = #{materialUploadTime}</if>
  54. <if test="confirmer != null "> and confirmer = #{confirmer}</if>
  55. <if test="confirmTime != null "> and confirm_time = #{confirmTime}</if>
  56. <if test="confirmStatus != null and confirmStatus != ''"> and confirm_status = #{confirmStatus}</if>
  57. </where>
  58. </select>
  59. <select id="selectCmcTitleEvalByTitleEvalId" parameterType="String" resultMap="CmcTitleEvalResult">
  60. <include refid="selectCmcTitleEvalVo"/>
  61. where title_eval_id = #{titleEvalId}
  62. </select>
  63. <insert id="insertCmcTitleEval" parameterType="CmcTitleEval">
  64. insert into cmc_title_eval
  65. <trim prefix="(" suffix=")" suffixOverrides=",">
  66. <if test="titleEvalId != null">title_eval_id,</if>
  67. <if test="userId != null">user_id,</if>
  68. <if test="annual != null">annual,</if>
  69. <if test="institude != null">institude,</if>
  70. <if test="type != null">type,</if>
  71. <if test="level != null">level,</if>
  72. <if test="titleProfession != null">title_profession,</if>
  73. <if test="sheet != null">sheet,</if>
  74. <if test="sheetStamp != null">sheet_stamp,</if>
  75. <if test="material != null">material,</if>
  76. <if test="isApproved != null">is_approved,</if>
  77. <if test="publicityFile != null">publicity_file,</if>
  78. <if test="scanFile != null">scan_file,</if>
  79. <if test="obtainTime != null">obtain_time,</if>
  80. <if test="applyTime != null">apply_time,</if>
  81. <if test="titleUserId != null">title_user_id,</if>
  82. <if test="titleTime != null">title_time,</if>
  83. <if test="titleComment != null">title_comment,</if>
  84. <if test="materialUploadTime != null">material_upload_time,</if>
  85. <if test="confirmer != null">confirmer,</if>
  86. <if test="confirmTime != null">confirm_time,</if>
  87. <if test="confirmStatus != null">confirm_status,</if>
  88. </trim>
  89. <trim prefix="values (" suffix=")" suffixOverrides=",">
  90. <if test="titleEvalId != null">#{titleEvalId},</if>
  91. <if test="userId != null">#{userId},</if>
  92. <if test="annual != null">#{annual},</if>
  93. <if test="institude != null">#{institude},</if>
  94. <if test="type != null">#{type},</if>
  95. <if test="level != null">#{level},</if>
  96. <if test="titleProfession != null">#{titleProfession},</if>
  97. <if test="sheet != null">#{sheet},</if>
  98. <if test="sheetStamp != null">#{sheetStamp},</if>
  99. <if test="material != null">#{material},</if>
  100. <if test="isApproved != null">#{isApproved},</if>
  101. <if test="publicityFile != null">#{publicityFile},</if>
  102. <if test="scanFile != null">#{scanFile},</if>
  103. <if test="obtainTime != null">#{obtainTime},</if>
  104. <if test="applyTime != null">#{applyTime},</if>
  105. <if test="titleUserId != null">#{titleUserId},</if>
  106. <if test="titleTime != null">#{titleTime},</if>
  107. <if test="titleComment != null">#{titleComment},</if>
  108. <if test="materialUploadTime != null">#{materialUploadTime},</if>
  109. <if test="confirmer != null">#{confirmer},</if>
  110. <if test="confirmTime != null">#{confirmTime},</if>
  111. <if test="confirmStatus != null">#{confirmStatus},</if>
  112. </trim>
  113. </insert>
  114. <update id="updateCmcTitleEval" parameterType="CmcTitleEval">
  115. update cmc_title_eval
  116. <trim prefix="SET" suffixOverrides=",">
  117. <if test="userId != null">user_id = #{userId},</if>
  118. <if test="annual != null">annual = #{annual},</if>
  119. <if test="institude != null">institude = #{institude},</if>
  120. <if test="type != null">type = #{type},</if>
  121. <if test="level != null">level = #{level},</if>
  122. <if test="titleProfession != null">title_profession = #{titleProfession},</if>
  123. <if test="sheet != null">sheet = #{sheet},</if>
  124. <if test="sheetStamp != null">sheet_stamp = #{sheetStamp},</if>
  125. <if test="material != null">material = #{material},</if>
  126. <if test="isApproved != null">is_approved = #{isApproved},</if>
  127. <if test="publicityFile != null">publicity_file = #{publicityFile},</if>
  128. <if test="scanFile != null">scan_file = #{scanFile},</if>
  129. <if test="obtainTime != null">obtain_time = #{obtainTime},</if>
  130. <if test="applyTime != null">apply_time = #{applyTime},</if>
  131. <if test="titleUserId != null">title_user_id = #{titleUserId},</if>
  132. <if test="titleTime != null">title_time = #{titleTime},</if>
  133. <if test="titleComment != null">title_comment = #{titleComment},</if>
  134. <if test="materialUploadTime != null">material_upload_time = #{materialUploadTime},</if>
  135. <if test="confirmer != null">confirmer = #{confirmer},</if>
  136. <if test="confirmTime != null">confirm_time = #{confirmTime},</if>
  137. <if test="confirmStatus != null">confirm_status = #{confirmStatus},</if>
  138. </trim>
  139. where title_eval_id = #{titleEvalId}
  140. </update>
  141. <delete id="deleteCmcTitleEvalByTitleEvalId" parameterType="String">
  142. delete from cmc_title_eval where title_eval_id = #{titleEvalId}
  143. </delete>
  144. <delete id="deleteCmcTitleEvalByTitleEvalIds" parameterType="String">
  145. delete from cmc_title_eval where title_eval_id in
  146. <foreach item="titleEvalId" collection="array" open="(" separator="," close=")">
  147. #{titleEvalId}
  148. </foreach>
  149. </delete>
  150. </mapper>