ApWarehouseContractMapper.xml 17 KB

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