OrgCognizanceProportionMapper.xml 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
  3. <mapper namespace="com.goafanti.common.dao.OrgCognizanceProportionMapper" >
  4. <resultMap id="BaseResultMap" type="com.goafanti.common.model.OrgCognizanceProportion" >
  5. <id column="id" property="id" jdbcType="VARCHAR" />
  6. <result column="uid" property="uid" jdbcType="VARCHAR" />
  7. <result column="institution" property="institution" jdbcType="INTEGER" />
  8. <result column="activity" property="activity" jdbcType="INTEGER" />
  9. <result column="activity_cost" property="activityCost" jdbcType="INTEGER" />
  10. <result column="tech_project" property="techProject" jdbcType="INTEGER" />
  11. <result column="intellectual_property" property="intellectualProperty" jdbcType="INTEGER" />
  12. <result column="achievement" property="achievement" jdbcType="INTEGER" />
  13. <result column="ratepay" property="ratepay" jdbcType="INTEGER" />
  14. <result column="finance" property="finance" jdbcType="INTEGER" />
  15. <result column="human_resource" property="humanResource" jdbcType="INTEGER" />
  16. <result column="honor_datum" property="honorDatum" jdbcType="INTEGER" />
  17. <result column="standard" property="standard" jdbcType="INTEGER" />
  18. <result column="ability" property="ability" jdbcType="INTEGER" />
  19. </resultMap>
  20. <sql id="Base_Column_List" >
  21. id, uid, institution, activity, activity_cost, tech_project, intellectual_property,
  22. achievement, ratepay, finance, human_resource, honor_datum, standard, ability
  23. </sql>
  24. <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
  25. select
  26. <include refid="Base_Column_List" />
  27. from org_cognizance_proportion
  28. where id = #{id,jdbcType=VARCHAR}
  29. </select>
  30. <delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
  31. delete from org_cognizance_proportion
  32. where id = #{id,jdbcType=VARCHAR}
  33. </delete>
  34. <insert id="insert" parameterType="com.goafanti.common.model.OrgCognizanceProportion" >
  35. insert into org_cognizance_proportion (id, uid, institution,
  36. activity, activity_cost, tech_project,
  37. intellectual_property, achievement, ratepay,
  38. finance, human_resource, honor_datum,
  39. standard, ability)
  40. values (#{id,jdbcType=VARCHAR}, #{uid,jdbcType=VARCHAR}, #{institution,jdbcType=INTEGER},
  41. #{activity,jdbcType=INTEGER}, #{activityCost,jdbcType=INTEGER}, #{techProject,jdbcType=INTEGER},
  42. #{intellectualProperty,jdbcType=INTEGER}, #{achievement,jdbcType=INTEGER}, #{ratepay,jdbcType=INTEGER},
  43. #{finance,jdbcType=INTEGER}, #{humanResource,jdbcType=INTEGER}, #{honorDatum,jdbcType=INTEGER},
  44. #{standard,jdbcType=INTEGER}, #{ability,jdbcType=INTEGER})
  45. </insert>
  46. <insert id="insertSelective" parameterType="com.goafanti.common.model.OrgCognizanceProportion" >
  47. insert into org_cognizance_proportion
  48. <trim prefix="(" suffix=")" suffixOverrides="," >
  49. <if test="id != null" >
  50. id,
  51. </if>
  52. <if test="uid != null" >
  53. uid,
  54. </if>
  55. <if test="institution != null" >
  56. institution,
  57. </if>
  58. <if test="activity != null" >
  59. activity,
  60. </if>
  61. <if test="activityCost != null" >
  62. activity_cost,
  63. </if>
  64. <if test="techProject != null" >
  65. tech_project,
  66. </if>
  67. <if test="intellectualProperty != null" >
  68. intellectual_property,
  69. </if>
  70. <if test="achievement != null" >
  71. achievement,
  72. </if>
  73. <if test="ratepay != null" >
  74. ratepay,
  75. </if>
  76. <if test="finance != null" >
  77. finance,
  78. </if>
  79. <if test="humanResource != null" >
  80. human_resource,
  81. </if>
  82. <if test="honorDatum != null" >
  83. honor_datum,
  84. </if>
  85. <if test="standard != null" >
  86. standard,
  87. </if>
  88. <if test="ability != null" >
  89. ability,
  90. </if>
  91. </trim>
  92. <trim prefix="values (" suffix=")" suffixOverrides="," >
  93. <if test="id != null" >
  94. #{id,jdbcType=VARCHAR},
  95. </if>
  96. <if test="uid != null" >
  97. #{uid,jdbcType=VARCHAR},
  98. </if>
  99. <if test="institution != null" >
  100. #{institution,jdbcType=INTEGER},
  101. </if>
  102. <if test="activity != null" >
  103. #{activity,jdbcType=INTEGER},
  104. </if>
  105. <if test="activityCost != null" >
  106. #{activityCost,jdbcType=INTEGER},
  107. </if>
  108. <if test="techProject != null" >
  109. #{techProject,jdbcType=INTEGER},
  110. </if>
  111. <if test="intellectualProperty != null" >
  112. #{intellectualProperty,jdbcType=INTEGER},
  113. </if>
  114. <if test="achievement != null" >
  115. #{achievement,jdbcType=INTEGER},
  116. </if>
  117. <if test="ratepay != null" >
  118. #{ratepay,jdbcType=INTEGER},
  119. </if>
  120. <if test="finance != null" >
  121. #{finance,jdbcType=INTEGER},
  122. </if>
  123. <if test="humanResource != null" >
  124. #{humanResource,jdbcType=INTEGER},
  125. </if>
  126. <if test="honorDatum != null" >
  127. #{honorDatum,jdbcType=INTEGER},
  128. </if>
  129. <if test="standard != null" >
  130. #{standard,jdbcType=INTEGER},
  131. </if>
  132. <if test="ability != null" >
  133. #{ability,jdbcType=INTEGER},
  134. </if>
  135. </trim>
  136. </insert>
  137. <update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.OrgCognizanceProportion" >
  138. update org_cognizance_proportion
  139. <set >
  140. <if test="uid != null" >
  141. uid = #{uid,jdbcType=VARCHAR},
  142. </if>
  143. <if test="institution != null" >
  144. institution = #{institution,jdbcType=INTEGER},
  145. </if>
  146. <if test="activity != null" >
  147. activity = #{activity,jdbcType=INTEGER},
  148. </if>
  149. <if test="activityCost != null" >
  150. activity_cost = #{activityCost,jdbcType=INTEGER},
  151. </if>
  152. <if test="techProject != null" >
  153. tech_project = #{techProject,jdbcType=INTEGER},
  154. </if>
  155. <if test="intellectualProperty != null" >
  156. intellectual_property = #{intellectualProperty,jdbcType=INTEGER},
  157. </if>
  158. <if test="achievement != null" >
  159. achievement = #{achievement,jdbcType=INTEGER},
  160. </if>
  161. <if test="ratepay != null" >
  162. ratepay = #{ratepay,jdbcType=INTEGER},
  163. </if>
  164. <if test="finance != null" >
  165. finance = #{finance,jdbcType=INTEGER},
  166. </if>
  167. <if test="humanResource != null" >
  168. human_resource = #{humanResource,jdbcType=INTEGER},
  169. </if>
  170. <if test="honorDatum != null" >
  171. honor_datum = #{honorDatum,jdbcType=INTEGER},
  172. </if>
  173. <if test="standard != null" >
  174. standard = #{standard,jdbcType=INTEGER},
  175. </if>
  176. <if test="ability != null" >
  177. ability = #{ability,jdbcType=INTEGER},
  178. </if>
  179. </set>
  180. where id = #{id,jdbcType=VARCHAR}
  181. </update>
  182. <update id="updateByPrimaryKey" parameterType="com.goafanti.common.model.OrgCognizanceProportion" >
  183. update org_cognizance_proportion
  184. set uid = #{uid,jdbcType=VARCHAR},
  185. institution = #{institution,jdbcType=INTEGER},
  186. activity = #{activity,jdbcType=INTEGER},
  187. activity_cost = #{activityCost,jdbcType=INTEGER},
  188. tech_project = #{techProject,jdbcType=INTEGER},
  189. intellectual_property = #{intellectualProperty,jdbcType=INTEGER},
  190. achievement = #{achievement,jdbcType=INTEGER},
  191. ratepay = #{ratepay,jdbcType=INTEGER},
  192. finance = #{finance,jdbcType=INTEGER},
  193. human_resource = #{humanResource,jdbcType=INTEGER},
  194. honor_datum = #{honorDatum,jdbcType=INTEGER},
  195. standard = #{standard,jdbcType=INTEGER},
  196. ability = #{ability,jdbcType=INTEGER}
  197. where id = #{id,jdbcType=VARCHAR}
  198. </update>
  199. <select id="selectByUid" resultMap="BaseResultMap" parameterType="java.lang.String" >
  200. select
  201. <include refid="Base_Column_List" />
  202. from org_cognizance_proportion
  203. where uid = #{uid,jdbcType=VARCHAR}
  204. </select>
  205. </mapper>