ApWarehouseInfMapper.xml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383
  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.ApWarehouseInfMapper" >
  4. <resultMap id="BaseResultMap" type="com.minpay.db.table.model.ApWarehouseInf" >
  5. <!--
  6. WARNING - @mbggenerated
  7. This element is automatically generated by MyBatis Generator, do not modify.
  8. -->
  9. <id column="AWI_ID" property="id" jdbcType="VARCHAR" />
  10. <result column="AWI_NAME" property="name" jdbcType="VARCHAR" />
  11. <result column="AWI_COMPANY_ID" property="companyId" jdbcType="VARCHAR" />
  12. <result column="AWI_REGION" property="region" jdbcType="VARCHAR" />
  13. <result column="AWI_SITE_ID" property="siteId" jdbcType="VARCHAR" />
  14. <result column="AWI_CONTACT_ID" property="contactId" jdbcType="VARCHAR" />
  15. <result column="AWI_REMARKS" property="remarks" jdbcType="VARCHAR" />
  16. <result column="AWI_CREATE_USER" property="createUser" jdbcType="VARCHAR" />
  17. <result column="AWI_CREATE_TIME" property="createTime" jdbcType="VARCHAR" />
  18. <result column="AWI_MODIFY_USER" property="modifyUser" jdbcType="VARCHAR" />
  19. <result column="AWI_MODIFY_TIME" property="modifyTime" jdbcType="VARCHAR" />
  20. <result column="AWI_STATE" property="state" jdbcType="VARCHAR" />
  21. </resultMap>
  22. <sql id="Example_Where_Clause" >
  23. <!--
  24. WARNING - @mbggenerated
  25. This element is automatically generated by MyBatis Generator, do not modify.
  26. -->
  27. <where >
  28. <foreach collection="oredCriteria" item="criteria" separator="or" >
  29. <if test="criteria.valid" >
  30. <trim prefix="(" suffix=")" prefixOverrides="and" >
  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 collection="criterion.value" item="listItem" open="(" close=")" 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 - @mbggenerated
  58. This element is automatically generated by MyBatis Generator, do not modify.
  59. -->
  60. <where >
  61. <foreach collection="example.oredCriteria" item="criteria" separator="or" >
  62. <if test="criteria.valid" >
  63. <trim prefix="(" suffix=")" prefixOverrides="and" >
  64. <foreach collection="criteria.criteria" item="criterion" >
  65. <choose >
  66. <when test="criterion.noValue" >
  67. and ${criterion.condition}
  68. </when>
  69. <when test="criterion.singleValue" >
  70. and ${criterion.condition} #{criterion.value}
  71. </when>
  72. <when test="criterion.betweenValue" >
  73. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  74. </when>
  75. <when test="criterion.listValue" >
  76. and ${criterion.condition}
  77. <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
  78. #{listItem}
  79. </foreach>
  80. </when>
  81. </choose>
  82. </foreach>
  83. </trim>
  84. </if>
  85. </foreach>
  86. </where>
  87. </sql>
  88. <sql id="Base_Column_List" >
  89. <!--
  90. WARNING - @mbggenerated
  91. This element is automatically generated by MyBatis Generator, do not modify.
  92. -->
  93. AWI_ID, AWI_NAME, AWI_COMPANY_ID, AWI_REGION, AWI_SITE_ID, AWI_CONTACT_ID, AWI_REMARKS,
  94. AWI_CREATE_USER, AWI_CREATE_TIME, AWI_MODIFY_USER, AWI_MODIFY_TIME, AWI_STATE
  95. </sql>
  96. <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.minpay.db.table.model.ApWarehouseInfExample" >
  97. <!--
  98. WARNING - @mbggenerated
  99. This element is automatically generated by MyBatis Generator, do not modify.
  100. -->
  101. select
  102. <if test="distinct" >
  103. distinct
  104. </if>
  105. <include refid="Base_Column_List" />
  106. from ap_warehouse_inf
  107. <if test="_parameter != null" >
  108. <include refid="Example_Where_Clause" />
  109. </if>
  110. <if test="orderByClause != null" >
  111. order by ${orderByClause}
  112. </if>
  113. </select>
  114. <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
  115. <!--
  116. WARNING - @mbggenerated
  117. This element is automatically generated by MyBatis Generator, do not modify.
  118. -->
  119. select
  120. <include refid="Base_Column_List" />
  121. from ap_warehouse_inf
  122. where AWI_ID = #{id,jdbcType=VARCHAR}
  123. </select>
  124. <delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
  125. <!--
  126. WARNING - @mbggenerated
  127. This element is automatically generated by MyBatis Generator, do not modify.
  128. -->
  129. delete from ap_warehouse_inf
  130. where AWI_ID = #{id,jdbcType=VARCHAR}
  131. </delete>
  132. <delete id="deleteByExample" parameterType="com.minpay.db.table.model.ApWarehouseInfExample" >
  133. <!--
  134. WARNING - @mbggenerated
  135. This element is automatically generated by MyBatis Generator, do not modify.
  136. -->
  137. delete from ap_warehouse_inf
  138. <if test="_parameter != null" >
  139. <include refid="Example_Where_Clause" />
  140. </if>
  141. </delete>
  142. <insert id="insert" parameterType="com.minpay.db.table.model.ApWarehouseInf" >
  143. <!--
  144. WARNING - @mbggenerated
  145. This element is automatically generated by MyBatis Generator, do not modify.
  146. -->
  147. insert into ap_warehouse_inf (AWI_ID, AWI_NAME, AWI_COMPANY_ID,
  148. AWI_REGION, AWI_SITE_ID, AWI_CONTACT_ID,
  149. AWI_REMARKS, AWI_CREATE_USER, AWI_CREATE_TIME,
  150. AWI_MODIFY_USER, AWI_MODIFY_TIME, AWI_STATE
  151. )
  152. values (#{id,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{companyId,jdbcType=VARCHAR},
  153. #{region,jdbcType=VARCHAR}, #{siteId,jdbcType=VARCHAR}, #{contactId,jdbcType=VARCHAR},
  154. #{remarks,jdbcType=VARCHAR}, #{createUser,jdbcType=VARCHAR}, #{createTime,jdbcType=VARCHAR},
  155. #{modifyUser,jdbcType=VARCHAR}, #{modifyTime,jdbcType=VARCHAR}, #{state,jdbcType=VARCHAR}
  156. )
  157. </insert>
  158. <insert id="insertSelective" parameterType="com.minpay.db.table.model.ApWarehouseInf" >
  159. <!--
  160. WARNING - @mbggenerated
  161. This element is automatically generated by MyBatis Generator, do not modify.
  162. -->
  163. insert into ap_warehouse_inf
  164. <trim prefix="(" suffix=")" suffixOverrides="," >
  165. <if test="id != null" >
  166. AWI_ID,
  167. </if>
  168. <if test="name != null" >
  169. AWI_NAME,
  170. </if>
  171. <if test="companyId != null" >
  172. AWI_COMPANY_ID,
  173. </if>
  174. <if test="region != null" >
  175. AWI_REGION,
  176. </if>
  177. <if test="siteId != null" >
  178. AWI_SITE_ID,
  179. </if>
  180. <if test="contactId != null" >
  181. AWI_CONTACT_ID,
  182. </if>
  183. <if test="remarks != null" >
  184. AWI_REMARKS,
  185. </if>
  186. <if test="createUser != null" >
  187. AWI_CREATE_USER,
  188. </if>
  189. <if test="createTime != null" >
  190. AWI_CREATE_TIME,
  191. </if>
  192. <if test="modifyUser != null" >
  193. AWI_MODIFY_USER,
  194. </if>
  195. <if test="modifyTime != null" >
  196. AWI_MODIFY_TIME,
  197. </if>
  198. <if test="state != null" >
  199. AWI_STATE,
  200. </if>
  201. </trim>
  202. <trim prefix="values (" suffix=")" suffixOverrides="," >
  203. <if test="id != null" >
  204. #{id,jdbcType=VARCHAR},
  205. </if>
  206. <if test="name != null" >
  207. #{name,jdbcType=VARCHAR},
  208. </if>
  209. <if test="companyId != null" >
  210. #{companyId,jdbcType=VARCHAR},
  211. </if>
  212. <if test="region != null" >
  213. #{region,jdbcType=VARCHAR},
  214. </if>
  215. <if test="siteId != null" >
  216. #{siteId,jdbcType=VARCHAR},
  217. </if>
  218. <if test="contactId != null" >
  219. #{contactId,jdbcType=VARCHAR},
  220. </if>
  221. <if test="remarks != null" >
  222. #{remarks,jdbcType=VARCHAR},
  223. </if>
  224. <if test="createUser != null" >
  225. #{createUser,jdbcType=VARCHAR},
  226. </if>
  227. <if test="createTime != null" >
  228. #{createTime,jdbcType=VARCHAR},
  229. </if>
  230. <if test="modifyUser != null" >
  231. #{modifyUser,jdbcType=VARCHAR},
  232. </if>
  233. <if test="modifyTime != null" >
  234. #{modifyTime,jdbcType=VARCHAR},
  235. </if>
  236. <if test="state != null" >
  237. #{state,jdbcType=VARCHAR},
  238. </if>
  239. </trim>
  240. </insert>
  241. <select id="countByExample" parameterType="com.minpay.db.table.model.ApWarehouseInfExample" resultType="java.lang.Integer" >
  242. <!--
  243. WARNING - @mbggenerated
  244. This element is automatically generated by MyBatis Generator, do not modify.
  245. -->
  246. select count(*) from ap_warehouse_inf
  247. <if test="_parameter != null" >
  248. <include refid="Example_Where_Clause" />
  249. </if>
  250. </select>
  251. <update id="updateByExampleSelective" parameterType="map" >
  252. <!--
  253. WARNING - @mbggenerated
  254. This element is automatically generated by MyBatis Generator, do not modify.
  255. -->
  256. update ap_warehouse_inf
  257. <set >
  258. <if test="record.id != null" >
  259. AWI_ID = #{record.id,jdbcType=VARCHAR},
  260. </if>
  261. <if test="record.name != null" >
  262. AWI_NAME = #{record.name,jdbcType=VARCHAR},
  263. </if>
  264. <if test="record.companyId != null" >
  265. AWI_COMPANY_ID = #{record.companyId,jdbcType=VARCHAR},
  266. </if>
  267. <if test="record.region != null" >
  268. AWI_REGION = #{record.region,jdbcType=VARCHAR},
  269. </if>
  270. <if test="record.siteId != null" >
  271. AWI_SITE_ID = #{record.siteId,jdbcType=VARCHAR},
  272. </if>
  273. <if test="record.contactId != null" >
  274. AWI_CONTACT_ID = #{record.contactId,jdbcType=VARCHAR},
  275. </if>
  276. <if test="record.remarks != null" >
  277. AWI_REMARKS = #{record.remarks,jdbcType=VARCHAR},
  278. </if>
  279. <if test="record.createUser != null" >
  280. AWI_CREATE_USER = #{record.createUser,jdbcType=VARCHAR},
  281. </if>
  282. <if test="record.createTime != null" >
  283. AWI_CREATE_TIME = #{record.createTime,jdbcType=VARCHAR},
  284. </if>
  285. <if test="record.modifyUser != null" >
  286. AWI_MODIFY_USER = #{record.modifyUser,jdbcType=VARCHAR},
  287. </if>
  288. <if test="record.modifyTime != null" >
  289. AWI_MODIFY_TIME = #{record.modifyTime,jdbcType=VARCHAR},
  290. </if>
  291. <if test="record.state != null" >
  292. AWI_STATE = #{record.state,jdbcType=VARCHAR},
  293. </if>
  294. </set>
  295. <if test="_parameter != null" >
  296. <include refid="Update_By_Example_Where_Clause" />
  297. </if>
  298. </update>
  299. <update id="updateByExample" parameterType="map" >
  300. <!--
  301. WARNING - @mbggenerated
  302. This element is automatically generated by MyBatis Generator, do not modify.
  303. -->
  304. update ap_warehouse_inf
  305. set AWI_ID = #{record.id,jdbcType=VARCHAR},
  306. AWI_NAME = #{record.name,jdbcType=VARCHAR},
  307. AWI_COMPANY_ID = #{record.companyId,jdbcType=VARCHAR},
  308. AWI_REGION = #{record.region,jdbcType=VARCHAR},
  309. AWI_SITE_ID = #{record.siteId,jdbcType=VARCHAR},
  310. AWI_CONTACT_ID = #{record.contactId,jdbcType=VARCHAR},
  311. AWI_REMARKS = #{record.remarks,jdbcType=VARCHAR},
  312. AWI_CREATE_USER = #{record.createUser,jdbcType=VARCHAR},
  313. AWI_CREATE_TIME = #{record.createTime,jdbcType=VARCHAR},
  314. AWI_MODIFY_USER = #{record.modifyUser,jdbcType=VARCHAR},
  315. AWI_MODIFY_TIME = #{record.modifyTime,jdbcType=VARCHAR},
  316. AWI_STATE = #{record.state,jdbcType=VARCHAR}
  317. <if test="_parameter != null" >
  318. <include refid="Update_By_Example_Where_Clause" />
  319. </if>
  320. </update>
  321. <update id="updateByPrimaryKeySelective" parameterType="com.minpay.db.table.model.ApWarehouseInf" >
  322. <!--
  323. WARNING - @mbggenerated
  324. This element is automatically generated by MyBatis Generator, do not modify.
  325. -->
  326. update ap_warehouse_inf
  327. <set >
  328. <if test="name != null" >
  329. AWI_NAME = #{name,jdbcType=VARCHAR},
  330. </if>
  331. <if test="companyId != null" >
  332. AWI_COMPANY_ID = #{companyId,jdbcType=VARCHAR},
  333. </if>
  334. <if test="region != null" >
  335. AWI_REGION = #{region,jdbcType=VARCHAR},
  336. </if>
  337. <if test="siteId != null" >
  338. AWI_SITE_ID = #{siteId,jdbcType=VARCHAR},
  339. </if>
  340. <if test="contactId != null" >
  341. AWI_CONTACT_ID = #{contactId,jdbcType=VARCHAR},
  342. </if>
  343. <if test="remarks != null" >
  344. AWI_REMARKS = #{remarks,jdbcType=VARCHAR},
  345. </if>
  346. <if test="createUser != null" >
  347. AWI_CREATE_USER = #{createUser,jdbcType=VARCHAR},
  348. </if>
  349. <if test="createTime != null" >
  350. AWI_CREATE_TIME = #{createTime,jdbcType=VARCHAR},
  351. </if>
  352. <if test="modifyUser != null" >
  353. AWI_MODIFY_USER = #{modifyUser,jdbcType=VARCHAR},
  354. </if>
  355. <if test="modifyTime != null" >
  356. AWI_MODIFY_TIME = #{modifyTime,jdbcType=VARCHAR},
  357. </if>
  358. <if test="state != null" >
  359. AWI_STATE = #{state,jdbcType=VARCHAR},
  360. </if>
  361. </set>
  362. where AWI_ID = #{id,jdbcType=VARCHAR}
  363. </update>
  364. <update id="updateByPrimaryKey" parameterType="com.minpay.db.table.model.ApWarehouseInf" >
  365. <!--
  366. WARNING - @mbggenerated
  367. This element is automatically generated by MyBatis Generator, do not modify.
  368. -->
  369. update ap_warehouse_inf
  370. set AWI_NAME = #{name,jdbcType=VARCHAR},
  371. AWI_COMPANY_ID = #{companyId,jdbcType=VARCHAR},
  372. AWI_REGION = #{region,jdbcType=VARCHAR},
  373. AWI_SITE_ID = #{siteId,jdbcType=VARCHAR},
  374. AWI_CONTACT_ID = #{contactId,jdbcType=VARCHAR},
  375. AWI_REMARKS = #{remarks,jdbcType=VARCHAR},
  376. AWI_CREATE_USER = #{createUser,jdbcType=VARCHAR},
  377. AWI_CREATE_TIME = #{createTime,jdbcType=VARCHAR},
  378. AWI_MODIFY_USER = #{modifyUser,jdbcType=VARCHAR},
  379. AWI_MODIFY_TIME = #{modifyTime,jdbcType=VARCHAR},
  380. AWI_STATE = #{state,jdbcType=VARCHAR}
  381. where AWI_ID = #{id,jdbcType=VARCHAR}
  382. </update>
  383. </mapper>