ApPlanDetailMapper.xml 16 KB

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