UserCorpMapper.xml 13 KB

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