ApWarehouseLogMapper.xml 12 KB

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