PeJxjykcMapper.xml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354
  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.ghsc.partybuild.mapper.PeJxjykcMapper">
  4. <resultMap id="BaseResultMap" type="com.ghsc.partybuild.model.PeJxjykc">
  5. <id column="ID" jdbcType="VARCHAR" property="id" />
  6. <result column="JOINUSERID" jdbcType="VARCHAR" property="joinuserid" />
  7. <result column="PROGRESSTIME" jdbcType="TIMESTAMP" property="progresstime" />
  8. <result column="PERIODCONTENT" jdbcType="VARCHAR" property="periodcontent" />
  9. <result column="INSPECTCONTENT" jdbcType="VARCHAR" property="inspectcontent" />
  10. <result column="CREATETIME" jdbcType="TIMESTAMP" property="createtime" />
  11. <result column="CREATEUSERID" jdbcType="VARCHAR" property="createuserid" />
  12. <result column="CREATEUSERNAME" jdbcType="VARCHAR" property="createusername" />
  13. <result column="UPDATETIME" jdbcType="TIMESTAMP" property="updatetime" />
  14. <result column="UPDATEUSERID" jdbcType="VARCHAR" property="updateuserid" />
  15. <result column="UPDATEUSERNAME" jdbcType="VARCHAR" property="updateusername" />
  16. <result column="OPERATETIME" jdbcType="TIMESTAMP" property="operatetime" />
  17. <result column="OPERATESTATE" jdbcType="VARCHAR" property="operatestate" />
  18. <result column="SYNCSTATE" jdbcType="VARCHAR" property="syncstate" />
  19. </resultMap>
  20. <sql id="Example_Where_Clause">
  21. <where>
  22. <foreach collection="oredCriteria" item="criteria" separator="or">
  23. <if test="criteria.valid">
  24. <trim prefix="(" prefixOverrides="and" suffix=")">
  25. <foreach collection="criteria.criteria" item="criterion">
  26. <choose>
  27. <when test="criterion.noValue">
  28. and ${criterion.condition}
  29. </when>
  30. <when test="criterion.singleValue">
  31. and ${criterion.condition} #{criterion.value}
  32. </when>
  33. <when test="criterion.betweenValue">
  34. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  35. </when>
  36. <when test="criterion.listValue">
  37. and ${criterion.condition}
  38. <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
  39. #{listItem}
  40. </foreach>
  41. </when>
  42. </choose>
  43. </foreach>
  44. </trim>
  45. </if>
  46. </foreach>
  47. </where>
  48. </sql>
  49. <sql id="Update_By_Example_Where_Clause">
  50. <where>
  51. <foreach collection="example.oredCriteria" item="criteria" separator="or">
  52. <if test="criteria.valid">
  53. <trim prefix="(" prefixOverrides="and" suffix=")">
  54. <foreach collection="criteria.criteria" item="criterion">
  55. <choose>
  56. <when test="criterion.noValue">
  57. and ${criterion.condition}
  58. </when>
  59. <when test="criterion.singleValue">
  60. and ${criterion.condition} #{criterion.value}
  61. </when>
  62. <when test="criterion.betweenValue">
  63. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  64. </when>
  65. <when test="criterion.listValue">
  66. and ${criterion.condition}
  67. <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
  68. #{listItem}
  69. </foreach>
  70. </when>
  71. </choose>
  72. </foreach>
  73. </trim>
  74. </if>
  75. </foreach>
  76. </where>
  77. </sql>
  78. <sql id="Base_Column_List">
  79. ID, JOINUSERID, PROGRESSTIME, PERIODCONTENT, INSPECTCONTENT, CREATETIME, CREATEUSERID,
  80. CREATEUSERNAME, UPDATETIME, UPDATEUSERID, UPDATEUSERNAME, OPERATETIME, OPERATESTATE,
  81. SYNCSTATE
  82. </sql>
  83. <select id="selectByExample" parameterType="com.ghsc.partybuild.model.PeJxjykcExample" resultMap="BaseResultMap">
  84. select
  85. <if test="distinct">
  86. distinct
  87. </if>
  88. <include refid="Base_Column_List" />
  89. from pe_jxjykc
  90. <if test="_parameter != null">
  91. <include refid="Example_Where_Clause" />
  92. </if>
  93. <if test="orderByClause != null">
  94. order by ${orderByClause}
  95. </if>
  96. </select>
  97. <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
  98. select
  99. <include refid="Base_Column_List" />
  100. from pe_jxjykc
  101. where ID = #{id,jdbcType=VARCHAR}
  102. </select>
  103. <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
  104. delete from pe_jxjykc
  105. where ID = #{id,jdbcType=VARCHAR}
  106. </delete>
  107. <delete id="deleteByExample" parameterType="com.ghsc.partybuild.model.PeJxjykcExample">
  108. delete from pe_jxjykc
  109. <if test="_parameter != null">
  110. <include refid="Example_Where_Clause" />
  111. </if>
  112. </delete>
  113. <insert id="insert" parameterType="com.ghsc.partybuild.model.PeJxjykc">
  114. insert into pe_jxjykc (ID, JOINUSERID, PROGRESSTIME,
  115. PERIODCONTENT, INSPECTCONTENT, CREATETIME,
  116. CREATEUSERID, CREATEUSERNAME, UPDATETIME,
  117. UPDATEUSERID, UPDATEUSERNAME, OPERATETIME,
  118. OPERATESTATE, SYNCSTATE)
  119. values (#{id,jdbcType=VARCHAR}, #{joinuserid,jdbcType=VARCHAR}, #{progresstime,jdbcType=TIMESTAMP},
  120. #{periodcontent,jdbcType=VARCHAR}, #{inspectcontent,jdbcType=VARCHAR}, #{createtime,jdbcType=TIMESTAMP},
  121. #{createuserid,jdbcType=VARCHAR}, #{createusername,jdbcType=VARCHAR}, #{updatetime,jdbcType=TIMESTAMP},
  122. #{updateuserid,jdbcType=VARCHAR}, #{updateusername,jdbcType=VARCHAR}, #{operatetime,jdbcType=TIMESTAMP},
  123. #{operatestate,jdbcType=VARCHAR}, #{syncstate,jdbcType=VARCHAR})
  124. </insert>
  125. <insert id="insertSelective" parameterType="com.ghsc.partybuild.model.PeJxjykc">
  126. insert into pe_jxjykc
  127. <trim prefix="(" suffix=")" suffixOverrides=",">
  128. <if test="id != null">
  129. ID,
  130. </if>
  131. <if test="joinuserid != null">
  132. JOINUSERID,
  133. </if>
  134. <if test="progresstime != null">
  135. PROGRESSTIME,
  136. </if>
  137. <if test="periodcontent != null">
  138. PERIODCONTENT,
  139. </if>
  140. <if test="inspectcontent != null">
  141. INSPECTCONTENT,
  142. </if>
  143. <if test="createtime != null">
  144. CREATETIME,
  145. </if>
  146. <if test="createuserid != null">
  147. CREATEUSERID,
  148. </if>
  149. <if test="createusername != null">
  150. CREATEUSERNAME,
  151. </if>
  152. <if test="updatetime != null">
  153. UPDATETIME,
  154. </if>
  155. <if test="updateuserid != null">
  156. UPDATEUSERID,
  157. </if>
  158. <if test="updateusername != null">
  159. UPDATEUSERNAME,
  160. </if>
  161. <if test="operatetime != null">
  162. OPERATETIME,
  163. </if>
  164. <if test="operatestate != null">
  165. OPERATESTATE,
  166. </if>
  167. <if test="syncstate != null">
  168. SYNCSTATE,
  169. </if>
  170. </trim>
  171. <trim prefix="values (" suffix=")" suffixOverrides=",">
  172. <if test="id != null">
  173. #{id,jdbcType=VARCHAR},
  174. </if>
  175. <if test="joinuserid != null">
  176. #{joinuserid,jdbcType=VARCHAR},
  177. </if>
  178. <if test="progresstime != null">
  179. #{progresstime,jdbcType=TIMESTAMP},
  180. </if>
  181. <if test="periodcontent != null">
  182. #{periodcontent,jdbcType=VARCHAR},
  183. </if>
  184. <if test="inspectcontent != null">
  185. #{inspectcontent,jdbcType=VARCHAR},
  186. </if>
  187. <if test="createtime != null">
  188. #{createtime,jdbcType=TIMESTAMP},
  189. </if>
  190. <if test="createuserid != null">
  191. #{createuserid,jdbcType=VARCHAR},
  192. </if>
  193. <if test="createusername != null">
  194. #{createusername,jdbcType=VARCHAR},
  195. </if>
  196. <if test="updatetime != null">
  197. #{updatetime,jdbcType=TIMESTAMP},
  198. </if>
  199. <if test="updateuserid != null">
  200. #{updateuserid,jdbcType=VARCHAR},
  201. </if>
  202. <if test="updateusername != null">
  203. #{updateusername,jdbcType=VARCHAR},
  204. </if>
  205. <if test="operatetime != null">
  206. #{operatetime,jdbcType=TIMESTAMP},
  207. </if>
  208. <if test="operatestate != null">
  209. #{operatestate,jdbcType=VARCHAR},
  210. </if>
  211. <if test="syncstate != null">
  212. #{syncstate,jdbcType=VARCHAR},
  213. </if>
  214. </trim>
  215. </insert>
  216. <select id="countByExample" parameterType="com.ghsc.partybuild.model.PeJxjykcExample" resultType="java.lang.Long">
  217. select count(*) from pe_jxjykc
  218. <if test="_parameter != null">
  219. <include refid="Example_Where_Clause" />
  220. </if>
  221. </select>
  222. <update id="updateByExampleSelective" parameterType="map">
  223. update pe_jxjykc
  224. <set>
  225. <if test="record.id != null">
  226. ID = #{record.id,jdbcType=VARCHAR},
  227. </if>
  228. <if test="record.joinuserid != null">
  229. JOINUSERID = #{record.joinuserid,jdbcType=VARCHAR},
  230. </if>
  231. <if test="record.progresstime != null">
  232. PROGRESSTIME = #{record.progresstime,jdbcType=TIMESTAMP},
  233. </if>
  234. <if test="record.periodcontent != null">
  235. PERIODCONTENT = #{record.periodcontent,jdbcType=VARCHAR},
  236. </if>
  237. <if test="record.inspectcontent != null">
  238. INSPECTCONTENT = #{record.inspectcontent,jdbcType=VARCHAR},
  239. </if>
  240. <if test="record.createtime != null">
  241. CREATETIME = #{record.createtime,jdbcType=TIMESTAMP},
  242. </if>
  243. <if test="record.createuserid != null">
  244. CREATEUSERID = #{record.createuserid,jdbcType=VARCHAR},
  245. </if>
  246. <if test="record.createusername != null">
  247. CREATEUSERNAME = #{record.createusername,jdbcType=VARCHAR},
  248. </if>
  249. <if test="record.updatetime != null">
  250. UPDATETIME = #{record.updatetime,jdbcType=TIMESTAMP},
  251. </if>
  252. <if test="record.updateuserid != null">
  253. UPDATEUSERID = #{record.updateuserid,jdbcType=VARCHAR},
  254. </if>
  255. <if test="record.updateusername != null">
  256. UPDATEUSERNAME = #{record.updateusername,jdbcType=VARCHAR},
  257. </if>
  258. <if test="record.operatetime != null">
  259. OPERATETIME = #{record.operatetime,jdbcType=TIMESTAMP},
  260. </if>
  261. <if test="record.operatestate != null">
  262. OPERATESTATE = #{record.operatestate,jdbcType=VARCHAR},
  263. </if>
  264. <if test="record.syncstate != null">
  265. SYNCSTATE = #{record.syncstate,jdbcType=VARCHAR},
  266. </if>
  267. </set>
  268. <if test="_parameter != null">
  269. <include refid="Update_By_Example_Where_Clause" />
  270. </if>
  271. </update>
  272. <update id="updateByExample" parameterType="map">
  273. update pe_jxjykc
  274. set ID = #{record.id,jdbcType=VARCHAR},
  275. JOINUSERID = #{record.joinuserid,jdbcType=VARCHAR},
  276. PROGRESSTIME = #{record.progresstime,jdbcType=TIMESTAMP},
  277. PERIODCONTENT = #{record.periodcontent,jdbcType=VARCHAR},
  278. INSPECTCONTENT = #{record.inspectcontent,jdbcType=VARCHAR},
  279. CREATETIME = #{record.createtime,jdbcType=TIMESTAMP},
  280. CREATEUSERID = #{record.createuserid,jdbcType=VARCHAR},
  281. CREATEUSERNAME = #{record.createusername,jdbcType=VARCHAR},
  282. UPDATETIME = #{record.updatetime,jdbcType=TIMESTAMP},
  283. UPDATEUSERID = #{record.updateuserid,jdbcType=VARCHAR},
  284. UPDATEUSERNAME = #{record.updateusername,jdbcType=VARCHAR},
  285. OPERATETIME = #{record.operatetime,jdbcType=TIMESTAMP},
  286. OPERATESTATE = #{record.operatestate,jdbcType=VARCHAR},
  287. SYNCSTATE = #{record.syncstate,jdbcType=VARCHAR}
  288. <if test="_parameter != null">
  289. <include refid="Update_By_Example_Where_Clause" />
  290. </if>
  291. </update>
  292. <update id="updateByPrimaryKeySelective" parameterType="com.ghsc.partybuild.model.PeJxjykc">
  293. update pe_jxjykc
  294. <set>
  295. <if test="joinuserid != null">
  296. JOINUSERID = #{joinuserid,jdbcType=VARCHAR},
  297. </if>
  298. <if test="progresstime != null">
  299. PROGRESSTIME = #{progresstime,jdbcType=TIMESTAMP},
  300. </if>
  301. <if test="periodcontent != null">
  302. PERIODCONTENT = #{periodcontent,jdbcType=VARCHAR},
  303. </if>
  304. <if test="inspectcontent != null">
  305. INSPECTCONTENT = #{inspectcontent,jdbcType=VARCHAR},
  306. </if>
  307. <if test="createtime != null">
  308. CREATETIME = #{createtime,jdbcType=TIMESTAMP},
  309. </if>
  310. <if test="createuserid != null">
  311. CREATEUSERID = #{createuserid,jdbcType=VARCHAR},
  312. </if>
  313. <if test="createusername != null">
  314. CREATEUSERNAME = #{createusername,jdbcType=VARCHAR},
  315. </if>
  316. <if test="updatetime != null">
  317. UPDATETIME = #{updatetime,jdbcType=TIMESTAMP},
  318. </if>
  319. <if test="updateuserid != null">
  320. UPDATEUSERID = #{updateuserid,jdbcType=VARCHAR},
  321. </if>
  322. <if test="updateusername != null">
  323. UPDATEUSERNAME = #{updateusername,jdbcType=VARCHAR},
  324. </if>
  325. <if test="operatetime != null">
  326. OPERATETIME = #{operatetime,jdbcType=TIMESTAMP},
  327. </if>
  328. <if test="operatestate != null">
  329. OPERATESTATE = #{operatestate,jdbcType=VARCHAR},
  330. </if>
  331. <if test="syncstate != null">
  332. SYNCSTATE = #{syncstate,jdbcType=VARCHAR},
  333. </if>
  334. </set>
  335. where ID = #{id,jdbcType=VARCHAR}
  336. </update>
  337. <update id="updateByPrimaryKey" parameterType="com.ghsc.partybuild.model.PeJxjykc">
  338. update pe_jxjykc
  339. set JOINUSERID = #{joinuserid,jdbcType=VARCHAR},
  340. PROGRESSTIME = #{progresstime,jdbcType=TIMESTAMP},
  341. PERIODCONTENT = #{periodcontent,jdbcType=VARCHAR},
  342. INSPECTCONTENT = #{inspectcontent,jdbcType=VARCHAR},
  343. CREATETIME = #{createtime,jdbcType=TIMESTAMP},
  344. CREATEUSERID = #{createuserid,jdbcType=VARCHAR},
  345. CREATEUSERNAME = #{createusername,jdbcType=VARCHAR},
  346. UPDATETIME = #{updatetime,jdbcType=TIMESTAMP},
  347. UPDATEUSERID = #{updateuserid,jdbcType=VARCHAR},
  348. UPDATEUSERNAME = #{updateusername,jdbcType=VARCHAR},
  349. OPERATETIME = #{operatetime,jdbcType=TIMESTAMP},
  350. OPERATESTATE = #{operatestate,jdbcType=VARCHAR},
  351. SYNCSTATE = #{syncstate,jdbcType=VARCHAR}
  352. where ID = #{id,jdbcType=VARCHAR}
  353. </update>
  354. </mapper>