ApCompanySiteMapper.xml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429
  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.minpay.db.table.mapper.ApCompanySiteMapper">
  4. <resultMap id="BaseResultMap" type="com.minpay.db.table.model.ApCompanySite">
  5. <!--
  6. WARNING - @mbggenerated
  7. This element is automatically generated by MyBatis Generator, do not modify.
  8. -->
  9. <id column="ACS_ID" jdbcType="VARCHAR" property="id" />
  10. <result column="ACS_COMPANY_ID" jdbcType="VARCHAR" property="companyId" />
  11. <result column="ACS_PROVINCE" jdbcType="VARCHAR" property="province" />
  12. <result column="ACS_CITY" jdbcType="VARCHAR" property="city" />
  13. <result column="ACS_AREA" jdbcType="VARCHAR" property="area" />
  14. <result column="ACS_ADDRESS" jdbcType="VARCHAR" property="address" />
  15. <result column="ACS_SHORT_NAME" jdbcType="VARCHAR" property="shortName" />
  16. <result column="ACS_X" jdbcType="VARCHAR" property="x" />
  17. <result column="ACS_Y" jdbcType="VARCHAR" property="y" />
  18. <result column="ACS_REMARKS" jdbcType="VARCHAR" property="remarks" />
  19. <result column="ACS_CREATE_USER" jdbcType="VARCHAR" property="createUser" />
  20. <result column="ACS_CREATE_TIME" jdbcType="VARCHAR" property="createTime" />
  21. <result column="ACS_MODIFY_USER" jdbcType="VARCHAR" property="modifyUser" />
  22. <result column="ACS_MODIFY_TIME" jdbcType="VARCHAR" property="modifyTime" />
  23. <result column="ACS_STATE" jdbcType="VARCHAR" property="state" />
  24. </resultMap>
  25. <sql id="Example_Where_Clause">
  26. <!--
  27. WARNING - @mbggenerated
  28. This element is automatically generated by MyBatis Generator, do not modify.
  29. -->
  30. <where>
  31. <foreach collection="oredCriteria" item="criteria" separator="or">
  32. <if test="criteria.valid">
  33. <trim prefix="(" prefixOverrides="and" suffix=")">
  34. <foreach collection="criteria.criteria" item="criterion">
  35. <choose>
  36. <when test="criterion.noValue">
  37. and ${criterion.condition}
  38. </when>
  39. <when test="criterion.singleValue">
  40. and ${criterion.condition} #{criterion.value}
  41. </when>
  42. <when test="criterion.betweenValue">
  43. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  44. </when>
  45. <when test="criterion.listValue">
  46. and ${criterion.condition}
  47. <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
  48. #{listItem}
  49. </foreach>
  50. </when>
  51. </choose>
  52. </foreach>
  53. </trim>
  54. </if>
  55. </foreach>
  56. </where>
  57. </sql>
  58. <sql id="Update_By_Example_Where_Clause">
  59. <!--
  60. WARNING - @mbggenerated
  61. This element is automatically generated by MyBatis Generator, do not modify.
  62. -->
  63. <where>
  64. <foreach collection="example.oredCriteria" item="criteria" separator="or">
  65. <if test="criteria.valid">
  66. <trim prefix="(" prefixOverrides="and" suffix=")">
  67. <foreach collection="criteria.criteria" item="criterion">
  68. <choose>
  69. <when test="criterion.noValue">
  70. and ${criterion.condition}
  71. </when>
  72. <when test="criterion.singleValue">
  73. and ${criterion.condition} #{criterion.value}
  74. </when>
  75. <when test="criterion.betweenValue">
  76. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  77. </when>
  78. <when test="criterion.listValue">
  79. and ${criterion.condition}
  80. <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
  81. #{listItem}
  82. </foreach>
  83. </when>
  84. </choose>
  85. </foreach>
  86. </trim>
  87. </if>
  88. </foreach>
  89. </where>
  90. </sql>
  91. <sql id="Base_Column_List">
  92. <!--
  93. WARNING - @mbggenerated
  94. This element is automatically generated by MyBatis Generator, do not modify.
  95. -->
  96. ACS_ID, ACS_COMPANY_ID, ACS_PROVINCE, ACS_CITY, ACS_AREA, ACS_ADDRESS, ACS_SHORT_NAME,
  97. ACS_X, ACS_Y, ACS_REMARKS, ACS_CREATE_USER, ACS_CREATE_TIME, ACS_MODIFY_USER, ACS_MODIFY_TIME,
  98. ACS_STATE
  99. </sql>
  100. <select id="selectByExample" parameterType="com.minpay.db.table.model.ApCompanySiteExample" resultMap="BaseResultMap">
  101. <!--
  102. WARNING - @mbggenerated
  103. This element is automatically generated by MyBatis Generator, do not modify.
  104. -->
  105. select
  106. <if test="distinct">
  107. distinct
  108. </if>
  109. <include refid="Base_Column_List" />
  110. from ap_company_site
  111. <if test="_parameter != null">
  112. <include refid="Example_Where_Clause" />
  113. </if>
  114. <if test="orderByClause != null">
  115. order by ${orderByClause}
  116. </if>
  117. </select>
  118. <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
  119. <!--
  120. WARNING - @mbggenerated
  121. This element is automatically generated by MyBatis Generator, do not modify.
  122. -->
  123. select
  124. <include refid="Base_Column_List" />
  125. from ap_company_site
  126. where ACS_ID = #{id,jdbcType=VARCHAR}
  127. </select>
  128. <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
  129. <!--
  130. WARNING - @mbggenerated
  131. This element is automatically generated by MyBatis Generator, do not modify.
  132. -->
  133. delete from ap_company_site
  134. where ACS_ID = #{id,jdbcType=VARCHAR}
  135. </delete>
  136. <delete id="deleteByExample" parameterType="com.minpay.db.table.model.ApCompanySiteExample">
  137. <!--
  138. WARNING - @mbggenerated
  139. This element is automatically generated by MyBatis Generator, do not modify.
  140. -->
  141. delete from ap_company_site
  142. <if test="_parameter != null">
  143. <include refid="Example_Where_Clause" />
  144. </if>
  145. </delete>
  146. <insert id="insert" parameterType="com.minpay.db.table.model.ApCompanySite">
  147. <!--
  148. WARNING - @mbggenerated
  149. This element is automatically generated by MyBatis Generator, do not modify.
  150. -->
  151. insert into ap_company_site (ACS_ID, ACS_COMPANY_ID, ACS_PROVINCE,
  152. ACS_CITY, ACS_AREA, ACS_ADDRESS,
  153. ACS_SHORT_NAME, ACS_X, ACS_Y, ACS_REMARKS,
  154. ACS_CREATE_USER, ACS_CREATE_TIME, ACS_MODIFY_USER,
  155. ACS_MODIFY_TIME, ACS_STATE)
  156. values (#{id,jdbcType=VARCHAR}, #{companyId,jdbcType=VARCHAR}, #{province,jdbcType=VARCHAR},
  157. #{city,jdbcType=VARCHAR}, #{area,jdbcType=VARCHAR}, #{address,jdbcType=VARCHAR},
  158. #{shortName,jdbcType=VARCHAR}, #{x,jdbcType=VARCHAR}, #{y,jdbcType=VARCHAR}, #{remarks,jdbcType=VARCHAR},
  159. #{createUser,jdbcType=VARCHAR}, #{createTime,jdbcType=VARCHAR}, #{modifyUser,jdbcType=VARCHAR},
  160. #{modifyTime,jdbcType=VARCHAR}, #{state,jdbcType=VARCHAR})
  161. </insert>
  162. <insert id="insertSelective" parameterType="com.minpay.db.table.model.ApCompanySite">
  163. <!--
  164. WARNING - @mbggenerated
  165. This element is automatically generated by MyBatis Generator, do not modify.
  166. -->
  167. insert into ap_company_site
  168. <trim prefix="(" suffix=")" suffixOverrides=",">
  169. <if test="id != null">
  170. ACS_ID,
  171. </if>
  172. <if test="companyId != null">
  173. ACS_COMPANY_ID,
  174. </if>
  175. <if test="province != null">
  176. ACS_PROVINCE,
  177. </if>
  178. <if test="city != null">
  179. ACS_CITY,
  180. </if>
  181. <if test="area != null">
  182. ACS_AREA,
  183. </if>
  184. <if test="address != null">
  185. ACS_ADDRESS,
  186. </if>
  187. <if test="shortName != null">
  188. ACS_SHORT_NAME,
  189. </if>
  190. <if test="x != null">
  191. ACS_X,
  192. </if>
  193. <if test="y != null">
  194. ACS_Y,
  195. </if>
  196. <if test="remarks != null">
  197. ACS_REMARKS,
  198. </if>
  199. <if test="createUser != null">
  200. ACS_CREATE_USER,
  201. </if>
  202. <if test="createTime != null">
  203. ACS_CREATE_TIME,
  204. </if>
  205. <if test="modifyUser != null">
  206. ACS_MODIFY_USER,
  207. </if>
  208. <if test="modifyTime != null">
  209. ACS_MODIFY_TIME,
  210. </if>
  211. <if test="state != null">
  212. ACS_STATE,
  213. </if>
  214. </trim>
  215. <trim prefix="values (" suffix=")" suffixOverrides=",">
  216. <if test="id != null">
  217. #{id,jdbcType=VARCHAR},
  218. </if>
  219. <if test="companyId != null">
  220. #{companyId,jdbcType=VARCHAR},
  221. </if>
  222. <if test="province != null">
  223. #{province,jdbcType=VARCHAR},
  224. </if>
  225. <if test="city != null">
  226. #{city,jdbcType=VARCHAR},
  227. </if>
  228. <if test="area != null">
  229. #{area,jdbcType=VARCHAR},
  230. </if>
  231. <if test="address != null">
  232. #{address,jdbcType=VARCHAR},
  233. </if>
  234. <if test="shortName != null">
  235. #{shortName,jdbcType=VARCHAR},
  236. </if>
  237. <if test="x != null">
  238. #{x,jdbcType=VARCHAR},
  239. </if>
  240. <if test="y != null">
  241. #{y,jdbcType=VARCHAR},
  242. </if>
  243. <if test="remarks != null">
  244. #{remarks,jdbcType=VARCHAR},
  245. </if>
  246. <if test="createUser != null">
  247. #{createUser,jdbcType=VARCHAR},
  248. </if>
  249. <if test="createTime != null">
  250. #{createTime,jdbcType=VARCHAR},
  251. </if>
  252. <if test="modifyUser != null">
  253. #{modifyUser,jdbcType=VARCHAR},
  254. </if>
  255. <if test="modifyTime != null">
  256. #{modifyTime,jdbcType=VARCHAR},
  257. </if>
  258. <if test="state != null">
  259. #{state,jdbcType=VARCHAR},
  260. </if>
  261. </trim>
  262. </insert>
  263. <select id="countByExample" parameterType="com.minpay.db.table.model.ApCompanySiteExample" resultType="java.lang.Integer">
  264. <!--
  265. WARNING - @mbggenerated
  266. This element is automatically generated by MyBatis Generator, do not modify.
  267. -->
  268. select count(*) from ap_company_site
  269. <if test="_parameter != null">
  270. <include refid="Example_Where_Clause" />
  271. </if>
  272. </select>
  273. <update id="updateByExampleSelective" parameterType="map">
  274. <!--
  275. WARNING - @mbggenerated
  276. This element is automatically generated by MyBatis Generator, do not modify.
  277. -->
  278. update ap_company_site
  279. <set>
  280. <if test="record.id != null">
  281. ACS_ID = #{record.id,jdbcType=VARCHAR},
  282. </if>
  283. <if test="record.companyId != null">
  284. ACS_COMPANY_ID = #{record.companyId,jdbcType=VARCHAR},
  285. </if>
  286. <if test="record.province != null">
  287. ACS_PROVINCE = #{record.province,jdbcType=VARCHAR},
  288. </if>
  289. <if test="record.city != null">
  290. ACS_CITY = #{record.city,jdbcType=VARCHAR},
  291. </if>
  292. <if test="record.area != null">
  293. ACS_AREA = #{record.area,jdbcType=VARCHAR},
  294. </if>
  295. <if test="record.address != null">
  296. ACS_ADDRESS = #{record.address,jdbcType=VARCHAR},
  297. </if>
  298. <if test="record.shortName != null">
  299. ACS_SHORT_NAME = #{record.shortName,jdbcType=VARCHAR},
  300. </if>
  301. <if test="record.x != null">
  302. ACS_X = #{record.x,jdbcType=VARCHAR},
  303. </if>
  304. <if test="record.y != null">
  305. ACS_Y = #{record.y,jdbcType=VARCHAR},
  306. </if>
  307. <if test="record.remarks != null">
  308. ACS_REMARKS = #{record.remarks,jdbcType=VARCHAR},
  309. </if>
  310. <if test="record.createUser != null">
  311. ACS_CREATE_USER = #{record.createUser,jdbcType=VARCHAR},
  312. </if>
  313. <if test="record.createTime != null">
  314. ACS_CREATE_TIME = #{record.createTime,jdbcType=VARCHAR},
  315. </if>
  316. <if test="record.modifyUser != null">
  317. ACS_MODIFY_USER = #{record.modifyUser,jdbcType=VARCHAR},
  318. </if>
  319. <if test="record.modifyTime != null">
  320. ACS_MODIFY_TIME = #{record.modifyTime,jdbcType=VARCHAR},
  321. </if>
  322. <if test="record.state != null">
  323. ACS_STATE = #{record.state,jdbcType=VARCHAR},
  324. </if>
  325. </set>
  326. <if test="_parameter != null">
  327. <include refid="Update_By_Example_Where_Clause" />
  328. </if>
  329. </update>
  330. <update id="updateByExample" parameterType="map">
  331. <!--
  332. WARNING - @mbggenerated
  333. This element is automatically generated by MyBatis Generator, do not modify.
  334. -->
  335. update ap_company_site
  336. set ACS_ID = #{record.id,jdbcType=VARCHAR},
  337. ACS_COMPANY_ID = #{record.companyId,jdbcType=VARCHAR},
  338. ACS_PROVINCE = #{record.province,jdbcType=VARCHAR},
  339. ACS_CITY = #{record.city,jdbcType=VARCHAR},
  340. ACS_AREA = #{record.area,jdbcType=VARCHAR},
  341. ACS_ADDRESS = #{record.address,jdbcType=VARCHAR},
  342. ACS_SHORT_NAME = #{record.shortName,jdbcType=VARCHAR},
  343. ACS_X = #{record.x,jdbcType=VARCHAR},
  344. ACS_Y = #{record.y,jdbcType=VARCHAR},
  345. ACS_REMARKS = #{record.remarks,jdbcType=VARCHAR},
  346. ACS_CREATE_USER = #{record.createUser,jdbcType=VARCHAR},
  347. ACS_CREATE_TIME = #{record.createTime,jdbcType=VARCHAR},
  348. ACS_MODIFY_USER = #{record.modifyUser,jdbcType=VARCHAR},
  349. ACS_MODIFY_TIME = #{record.modifyTime,jdbcType=VARCHAR},
  350. ACS_STATE = #{record.state,jdbcType=VARCHAR}
  351. <if test="_parameter != null">
  352. <include refid="Update_By_Example_Where_Clause" />
  353. </if>
  354. </update>
  355. <update id="updateByPrimaryKeySelective" parameterType="com.minpay.db.table.model.ApCompanySite">
  356. <!--
  357. WARNING - @mbggenerated
  358. This element is automatically generated by MyBatis Generator, do not modify.
  359. -->
  360. update ap_company_site
  361. <set>
  362. <if test="companyId != null">
  363. ACS_COMPANY_ID = #{companyId,jdbcType=VARCHAR},
  364. </if>
  365. <if test="province != null">
  366. ACS_PROVINCE = #{province,jdbcType=VARCHAR},
  367. </if>
  368. <if test="city != null">
  369. ACS_CITY = #{city,jdbcType=VARCHAR},
  370. </if>
  371. <if test="area != null">
  372. ACS_AREA = #{area,jdbcType=VARCHAR},
  373. </if>
  374. <if test="address != null">
  375. ACS_ADDRESS = #{address,jdbcType=VARCHAR},
  376. </if>
  377. <if test="shortName != null">
  378. ACS_SHORT_NAME = #{shortName,jdbcType=VARCHAR},
  379. </if>
  380. <if test="x != null">
  381. ACS_X = #{x,jdbcType=VARCHAR},
  382. </if>
  383. <if test="y != null">
  384. ACS_Y = #{y,jdbcType=VARCHAR},
  385. </if>
  386. <if test="remarks != null">
  387. ACS_REMARKS = #{remarks,jdbcType=VARCHAR},
  388. </if>
  389. <if test="createUser != null">
  390. ACS_CREATE_USER = #{createUser,jdbcType=VARCHAR},
  391. </if>
  392. <if test="createTime != null">
  393. ACS_CREATE_TIME = #{createTime,jdbcType=VARCHAR},
  394. </if>
  395. <if test="modifyUser != null">
  396. ACS_MODIFY_USER = #{modifyUser,jdbcType=VARCHAR},
  397. </if>
  398. <if test="modifyTime != null">
  399. ACS_MODIFY_TIME = #{modifyTime,jdbcType=VARCHAR},
  400. </if>
  401. <if test="state != null">
  402. ACS_STATE = #{state,jdbcType=VARCHAR},
  403. </if>
  404. </set>
  405. where ACS_ID = #{id,jdbcType=VARCHAR}
  406. </update>
  407. <update id="updateByPrimaryKey" parameterType="com.minpay.db.table.model.ApCompanySite">
  408. <!--
  409. WARNING - @mbggenerated
  410. This element is automatically generated by MyBatis Generator, do not modify.
  411. -->
  412. update ap_company_site
  413. set ACS_COMPANY_ID = #{companyId,jdbcType=VARCHAR},
  414. ACS_PROVINCE = #{province,jdbcType=VARCHAR},
  415. ACS_CITY = #{city,jdbcType=VARCHAR},
  416. ACS_AREA = #{area,jdbcType=VARCHAR},
  417. ACS_ADDRESS = #{address,jdbcType=VARCHAR},
  418. ACS_SHORT_NAME = #{shortName,jdbcType=VARCHAR},
  419. ACS_X = #{x,jdbcType=VARCHAR},
  420. ACS_Y = #{y,jdbcType=VARCHAR},
  421. ACS_REMARKS = #{remarks,jdbcType=VARCHAR},
  422. ACS_CREATE_USER = #{createUser,jdbcType=VARCHAR},
  423. ACS_CREATE_TIME = #{createTime,jdbcType=VARCHAR},
  424. ACS_MODIFY_USER = #{modifyUser,jdbcType=VARCHAR},
  425. ACS_MODIFY_TIME = #{modifyTime,jdbcType=VARCHAR},
  426. ACS_STATE = #{state,jdbcType=VARCHAR}
  427. where ACS_ID = #{id,jdbcType=VARCHAR}
  428. </update>
  429. </mapper>