TOrderTaskMapper.xml 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660
  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.goafanti.common.dao.TOrderTaskMapper">
  4. <resultMap id="BaseResultMap" type="com.goafanti.common.model.TOrderTask">
  5. <!--
  6. WARNING - @mbg.generated
  7. This element is automatically generated by MyBatis Generator, do not modify.
  8. This element was generated on Mon Nov 19 11:03:38 CST 2018.
  9. -->
  10. <id column="id" jdbcType="INTEGER" property="id" />
  11. <result column="order_no" jdbcType="VARCHAR" property="orderNo" />
  12. <result column="super_id" jdbcType="VARCHAR" property="superId" />
  13. <result column="commodity_id" jdbcType="VARCHAR" property="commodityId" />
  14. <result column="commodity_name" jdbcType="VARCHAR" property="commodityName" />
  15. <result column="commodity_quantity" jdbcType="INTEGER" property="commodityQuantity" />
  16. <result column="commodity_mode" jdbcType="VARCHAR" property="commodityMode" />
  17. <result column="commodity_price" jdbcType="DECIMAL" property="commodityPrice" />
  18. <result column="task_status" jdbcType="INTEGER" property="taskStatus" />
  19. <result column="task_distribution_time" jdbcType="TIMESTAMP" property="taskDistributionTime" />
  20. <result column="task_allocator" jdbcType="VARCHAR" property="taskAllocator" />
  21. <result column="task_receiver" jdbcType="VARCHAR" property="taskReceiver" />
  22. <result column="task_comment" jdbcType="VARCHAR" property="taskComment" />
  23. <result column="task_start_time" jdbcType="TIMESTAMP" property="taskStartTime" />
  24. <result column="task_end_time" jdbcType="TIMESTAMP" property="taskEndTime" />
  25. <result column="project_status" jdbcType="INTEGER" property="projectStatus" />
  26. <result column="main" jdbcType="INTEGER" property="main" />
  27. <result column="accept_time" jdbcType="DATE" property="acceptTime" />
  28. <result column="review_time" jdbcType="DATE" property="reviewTime" />
  29. <result column="publicity_time" jdbcType="DATE" property="publicityTime" />
  30. <result column="licence_time" jdbcType="DATE" property="licenceTime" />
  31. </resultMap>
  32. <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.goafanti.common.model.TOrderTask">
  33. <!--
  34. WARNING - @mbg.generated
  35. This element is automatically generated by MyBatis Generator, do not modify.
  36. This element was generated on Mon Nov 19 11:03:38 CST 2018.
  37. -->
  38. <result column="attachment_url" jdbcType="LONGVARCHAR" property="attachmentUrl" />
  39. </resultMap>
  40. <sql id="Example_Where_Clause">
  41. <!--
  42. WARNING - @mbg.generated
  43. This element is automatically generated by MyBatis Generator, do not modify.
  44. This element was generated on Mon Nov 19 11:03:38 CST 2018.
  45. -->
  46. <where>
  47. <foreach collection="oredCriteria" item="criteria" separator="or">
  48. <if test="criteria.valid">
  49. <trim prefix="(" prefixOverrides="and" suffix=")">
  50. <foreach collection="criteria.criteria" item="criterion">
  51. <choose>
  52. <when test="criterion.noValue">
  53. and ${criterion.condition}
  54. </when>
  55. <when test="criterion.singleValue">
  56. and ${criterion.condition} #{criterion.value}
  57. </when>
  58. <when test="criterion.betweenValue">
  59. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  60. </when>
  61. <when test="criterion.listValue">
  62. and ${criterion.condition}
  63. <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
  64. #{listItem}
  65. </foreach>
  66. </when>
  67. </choose>
  68. </foreach>
  69. </trim>
  70. </if>
  71. </foreach>
  72. </where>
  73. </sql>
  74. <sql id="Update_By_Example_Where_Clause">
  75. <!--
  76. WARNING - @mbg.generated
  77. This element is automatically generated by MyBatis Generator, do not modify.
  78. This element was generated on Mon Nov 19 11:03:38 CST 2018.
  79. -->
  80. <where>
  81. <foreach collection="example.oredCriteria" item="criteria" separator="or">
  82. <if test="criteria.valid">
  83. <trim prefix="(" prefixOverrides="and" suffix=")">
  84. <foreach collection="criteria.criteria" item="criterion">
  85. <choose>
  86. <when test="criterion.noValue">
  87. and ${criterion.condition}
  88. </when>
  89. <when test="criterion.singleValue">
  90. and ${criterion.condition} #{criterion.value}
  91. </when>
  92. <when test="criterion.betweenValue">
  93. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  94. </when>
  95. <when test="criterion.listValue">
  96. and ${criterion.condition}
  97. <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
  98. #{listItem}
  99. </foreach>
  100. </when>
  101. </choose>
  102. </foreach>
  103. </trim>
  104. </if>
  105. </foreach>
  106. </where>
  107. </sql>
  108. <sql id="Base_Column_List">
  109. <!--
  110. WARNING - @mbg.generated
  111. This element is automatically generated by MyBatis Generator, do not modify.
  112. This element was generated on Mon Nov 19 11:03:38 CST 2018.
  113. -->
  114. id, order_no, super_id, commodity_id, commodity_name, commodity_quantity, commodity_mode,
  115. commodity_price, task_status, task_distribution_time, task_allocator, task_receiver,
  116. task_comment, task_start_time, task_end_time, project_status, accept_time, review_time,
  117. publicity_time, licence_time ,main
  118. </sql>
  119. <sql id="Blob_Column_List">
  120. <!--
  121. WARNING - @mbg.generated
  122. This element is automatically generated by MyBatis Generator, do not modify.
  123. This element was generated on Mon Nov 19 11:03:38 CST 2018.
  124. -->
  125. attachment_url
  126. </sql>
  127. <select id="selectByExampleWithBLOBs" parameterType="com.goafanti.common.model.TOrderTaskExample" resultMap="ResultMapWithBLOBs">
  128. <!--
  129. WARNING - @mbg.generated
  130. This element is automatically generated by MyBatis Generator, do not modify.
  131. This element was generated on Mon Nov 19 11:03:38 CST 2018.
  132. -->
  133. select
  134. <if test="distinct">
  135. distinct
  136. </if>
  137. <include refid="Base_Column_List" />
  138. ,
  139. <include refid="Blob_Column_List" />
  140. from t_order_task
  141. <if test="_parameter != null">
  142. <include refid="Example_Where_Clause" />
  143. </if>
  144. <if test="orderByClause != null">
  145. order by ${orderByClause}
  146. </if>
  147. </select>
  148. <select id="selectByExample" parameterType="com.goafanti.common.model.TOrderTaskExample" resultMap="BaseResultMap">
  149. <!--
  150. WARNING - @mbg.generated
  151. This element is automatically generated by MyBatis Generator, do not modify.
  152. This element was generated on Mon Nov 19 11:03:38 CST 2018.
  153. -->
  154. select
  155. <if test="distinct">
  156. distinct
  157. </if>
  158. <include refid="Base_Column_List" />
  159. from t_order_task
  160. <if test="_parameter != null">
  161. <include refid="Example_Where_Clause" />
  162. </if>
  163. <if test="orderByClause != null">
  164. order by ${orderByClause}
  165. </if>
  166. </select>
  167. <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="ResultMapWithBLOBs">
  168. <!--
  169. WARNING - @mbg.generated
  170. This element is automatically generated by MyBatis Generator, do not modify.
  171. This element was generated on Mon Nov 19 11:03:38 CST 2018.
  172. -->
  173. select
  174. <include refid="Base_Column_List" />
  175. ,
  176. <include refid="Blob_Column_List" />
  177. from t_order_task
  178. where id = #{id,jdbcType=INTEGER}
  179. </select>
  180. <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
  181. <!--
  182. WARNING - @mbg.generated
  183. This element is automatically generated by MyBatis Generator, do not modify.
  184. This element was generated on Mon Nov 19 11:03:38 CST 2018.
  185. -->
  186. delete from t_order_task
  187. where id = #{id,jdbcType=INTEGER}
  188. </delete>
  189. <delete id="deleteByExample" parameterType="com.goafanti.common.model.TOrderTaskExample">
  190. <!--
  191. WARNING - @mbg.generated
  192. This element is automatically generated by MyBatis Generator, do not modify.
  193. This element was generated on Mon Nov 19 11:03:38 CST 2018.
  194. -->
  195. delete from t_order_task
  196. <if test="_parameter != null">
  197. <include refid="Example_Where_Clause" />
  198. </if>
  199. </delete>
  200. <insert id="insert" parameterType="com.goafanti.common.model.TOrderTask">
  201. <!--
  202. WARNING - @mbg.generated
  203. This element is automatically generated by MyBatis Generator, do not modify.
  204. This element was generated on Mon Nov 19 11:03:38 CST 2018.
  205. -->
  206. insert into t_order_task (id, order_no, super_id,
  207. commodity_id, commodity_name, commodity_quantity,
  208. commodity_mode, commodity_price, task_status,
  209. task_distribution_time, task_allocator,
  210. task_receiver, task_comment, task_start_time,
  211. task_end_time, project_status, accept_time,
  212. review_time, publicity_time, licence_time,
  213. attachment_url,main)
  214. values (#{id,jdbcType=INTEGER}, #{orderNo,jdbcType=VARCHAR}, #{superId,jdbcType=VARCHAR},
  215. #{commodityId,jdbcType=VARCHAR}, #{commodityName,jdbcType=VARCHAR}, #{commodityQuantity,jdbcType=INTEGER},
  216. #{commodityMode,jdbcType=VARCHAR}, #{commodityPrice,jdbcType=DECIMAL}, #{taskStatus,jdbcType=INTEGER},
  217. #{taskDistributionTime,jdbcType=TIMESTAMP}, #{taskAllocator,jdbcType=VARCHAR},
  218. #{taskReceiver,jdbcType=VARCHAR}, #{taskComment,jdbcType=VARCHAR}, #{taskStartTime,jdbcType=TIMESTAMP},
  219. #{taskEndTime,jdbcType=TIMESTAMP}, #{projectStatus,jdbcType=INTEGER}, #{acceptTime,jdbcType=DATE},
  220. #{reviewTime,jdbcType=DATE}, #{publicityTime,jdbcType=DATE}, #{licenceTime,jdbcType=DATE},
  221. #{attachmentUrl,jdbcType=LONGVARCHAR},#{main,jdbcType=INTEGER})
  222. </insert>
  223. <insert id="insertSelective" parameterType="com.goafanti.common.model.TOrderTask">
  224. <!--
  225. WARNING - @mbg.generated
  226. This element is automatically generated by MyBatis Generator, do not modify.
  227. This element was generated on Mon Nov 19 11:03:38 CST 2018.
  228. -->
  229. insert into t_order_task
  230. <trim prefix="(" suffix=")" suffixOverrides=",">
  231. <if test="id != null">
  232. id,
  233. </if>
  234. <if test="orderNo != null">
  235. order_no,
  236. </if>
  237. <if test="superId != null">
  238. super_id,
  239. </if>
  240. <if test="commodityId != null">
  241. commodity_id,
  242. </if>
  243. <if test="commodityName != null">
  244. commodity_name,
  245. </if>
  246. <if test="commodityQuantity != null">
  247. commodity_quantity,
  248. </if>
  249. <if test="commodityMode != null">
  250. commodity_mode,
  251. </if>
  252. <if test="commodityPrice != null">
  253. commodity_price,
  254. </if>
  255. <if test="taskStatus != null">
  256. task_status,
  257. </if>
  258. <if test="taskDistributionTime != null">
  259. task_distribution_time,
  260. </if>
  261. <if test="taskAllocator != null">
  262. task_allocator,
  263. </if>
  264. <if test="taskReceiver != null">
  265. task_receiver,
  266. </if>
  267. <if test="taskComment != null">
  268. task_comment,
  269. </if>
  270. <if test="taskStartTime != null">
  271. task_start_time,
  272. </if>
  273. <if test="taskEndTime != null">
  274. task_end_time,
  275. </if>
  276. <if test="projectStatus != null">
  277. project_status,
  278. </if>
  279. <if test="acceptTime != null">
  280. accept_time,
  281. </if>
  282. <if test="reviewTime != null">
  283. review_time,
  284. </if>
  285. <if test="publicityTime != null">
  286. publicity_time,
  287. </if>
  288. <if test="licenceTime != null">
  289. licence_time,
  290. </if>
  291. <if test="attachmentUrl != null">
  292. attachment_url,
  293. </if>
  294. <if test="main != null">
  295. main,
  296. </if>
  297. </trim>
  298. <trim prefix="values (" suffix=")" suffixOverrides=",">
  299. <if test="id != null">
  300. #{id,jdbcType=INTEGER},
  301. </if>
  302. <if test="orderNo != null">
  303. #{orderNo,jdbcType=VARCHAR},
  304. </if>
  305. <if test="superId != null">
  306. #{superId,jdbcType=VARCHAR},
  307. </if>
  308. <if test="commodityId != null">
  309. #{commodityId,jdbcType=VARCHAR},
  310. </if>
  311. <if test="commodityName != null">
  312. #{commodityName,jdbcType=VARCHAR},
  313. </if>
  314. <if test="commodityQuantity != null">
  315. #{commodityQuantity,jdbcType=INTEGER},
  316. </if>
  317. <if test="commodityMode != null">
  318. #{commodityMode,jdbcType=VARCHAR},
  319. </if>
  320. <if test="commodityPrice != null">
  321. #{commodityPrice,jdbcType=DECIMAL},
  322. </if>
  323. <if test="taskStatus != null">
  324. #{taskStatus,jdbcType=INTEGER},
  325. </if>
  326. <if test="taskDistributionTime != null">
  327. #{taskDistributionTime,jdbcType=TIMESTAMP},
  328. </if>
  329. <if test="taskAllocator != null">
  330. #{taskAllocator,jdbcType=VARCHAR},
  331. </if>
  332. <if test="taskReceiver != null">
  333. #{taskReceiver,jdbcType=VARCHAR},
  334. </if>
  335. <if test="taskComment != null">
  336. #{taskComment,jdbcType=VARCHAR},
  337. </if>
  338. <if test="taskStartTime != null">
  339. #{taskStartTime,jdbcType=TIMESTAMP},
  340. </if>
  341. <if test="taskEndTime != null">
  342. #{taskEndTime,jdbcType=TIMESTAMP},
  343. </if>
  344. <if test="projectStatus != null">
  345. #{projectStatus,jdbcType=INTEGER},
  346. </if>
  347. <if test="acceptTime != null">
  348. #{acceptTime,jdbcType=DATE},
  349. </if>
  350. <if test="reviewTime != null">
  351. #{reviewTime,jdbcType=DATE},
  352. </if>
  353. <if test="publicityTime != null">
  354. #{publicityTime,jdbcType=DATE},
  355. </if>
  356. <if test="licenceTime != null">
  357. #{licenceTime,jdbcType=DATE},
  358. </if>
  359. <if test="attachmentUrl != null">
  360. #{attachmentUrl,jdbcType=LONGVARCHAR},
  361. </if>
  362. <if test="main != null">
  363. #{main,jdbcType=INTEGER},
  364. </if>
  365. </trim>
  366. </insert>
  367. <select id="countByExample" parameterType="com.goafanti.common.model.TOrderTaskExample" resultType="java.lang.Long">
  368. <!--
  369. WARNING - @mbg.generated
  370. This element is automatically generated by MyBatis Generator, do not modify.
  371. This element was generated on Mon Nov 19 11:03:38 CST 2018.
  372. -->
  373. select count(*) from t_order_task
  374. <if test="_parameter != null">
  375. <include refid="Example_Where_Clause" />
  376. </if>
  377. </select>
  378. <update id="updateByExampleSelective" parameterType="map">
  379. <!--
  380. WARNING - @mbg.generated
  381. This element is automatically generated by MyBatis Generator, do not modify.
  382. This element was generated on Mon Nov 19 11:03:38 CST 2018.
  383. -->
  384. update t_order_task
  385. <set>
  386. <if test="record.id != null">
  387. id = #{record.id,jdbcType=INTEGER},
  388. </if>
  389. <if test="record.orderNo != null">
  390. order_no = #{record.orderNo,jdbcType=VARCHAR},
  391. </if>
  392. <if test="record.superId != null">
  393. super_id = #{record.superId,jdbcType=VARCHAR},
  394. </if>
  395. <if test="record.commodityId != null">
  396. commodity_id = #{record.commodityId,jdbcType=VARCHAR},
  397. </if>
  398. <if test="record.commodityName != null">
  399. commodity_name = #{record.commodityName,jdbcType=VARCHAR},
  400. </if>
  401. <if test="record.commodityQuantity != null">
  402. commodity_quantity = #{record.commodityQuantity,jdbcType=INTEGER},
  403. </if>
  404. <if test="record.commodityMode != null">
  405. commodity_mode = #{record.commodityMode,jdbcType=VARCHAR},
  406. </if>
  407. <if test="record.commodityPrice != null">
  408. commodity_price = #{record.commodityPrice,jdbcType=DECIMAL},
  409. </if>
  410. <if test="record.taskStatus != null">
  411. task_status = #{record.taskStatus,jdbcType=INTEGER},
  412. </if>
  413. <if test="record.taskDistributionTime != null">
  414. task_distribution_time = #{record.taskDistributionTime,jdbcType=TIMESTAMP},
  415. </if>
  416. <if test="record.taskAllocator != null">
  417. task_allocator = #{record.taskAllocator,jdbcType=VARCHAR},
  418. </if>
  419. <if test="record.taskReceiver != null">
  420. task_receiver = #{record.taskReceiver,jdbcType=VARCHAR},
  421. </if>
  422. <if test="record.taskComment != null">
  423. task_comment = #{record.taskComment,jdbcType=VARCHAR},
  424. </if>
  425. <if test="record.taskStartTime != null">
  426. task_start_time = #{record.taskStartTime,jdbcType=TIMESTAMP},
  427. </if>
  428. <if test="record.taskEndTime != null">
  429. task_end_time = #{record.taskEndTime,jdbcType=TIMESTAMP},
  430. </if>
  431. <if test="record.projectStatus != null">
  432. project_status = #{record.projectStatus,jdbcType=INTEGER},
  433. </if>
  434. <if test="record.acceptTime != null">
  435. accept_time = #{record.acceptTime,jdbcType=DATE},
  436. </if>
  437. <if test="record.reviewTime != null">
  438. review_time = #{record.reviewTime,jdbcType=DATE},
  439. </if>
  440. <if test="record.publicityTime != null">
  441. publicity_time = #{record.publicityTime,jdbcType=DATE},
  442. </if>
  443. <if test="record.licenceTime != null">
  444. licence_time = #{record.licenceTime,jdbcType=DATE},
  445. </if>
  446. <if test="record.attachmentUrl != null">
  447. attachment_url = #{record.attachmentUrl,jdbcType=LONGVARCHAR},
  448. </if>
  449. </set>
  450. <if test="_parameter != null">
  451. <include refid="Update_By_Example_Where_Clause" />
  452. </if>
  453. </update>
  454. <update id="updateByExampleWithBLOBs" parameterType="map">
  455. <!--
  456. WARNING - @mbg.generated
  457. This element is automatically generated by MyBatis Generator, do not modify.
  458. This element was generated on Mon Nov 19 11:03:38 CST 2018.
  459. -->
  460. update t_order_task
  461. set id = #{record.id,jdbcType=INTEGER},
  462. order_no = #{record.orderNo,jdbcType=VARCHAR},
  463. super_id = #{record.superId,jdbcType=VARCHAR},
  464. commodity_id = #{record.commodityId,jdbcType=VARCHAR},
  465. commodity_name = #{record.commodityName,jdbcType=VARCHAR},
  466. commodity_quantity = #{record.commodityQuantity,jdbcType=INTEGER},
  467. commodity_mode = #{record.commodityMode,jdbcType=VARCHAR},
  468. commodity_price = #{record.commodityPrice,jdbcType=DECIMAL},
  469. task_status = #{record.taskStatus,jdbcType=INTEGER},
  470. task_distribution_time = #{record.taskDistributionTime,jdbcType=TIMESTAMP},
  471. task_allocator = #{record.taskAllocator,jdbcType=VARCHAR},
  472. task_receiver = #{record.taskReceiver,jdbcType=VARCHAR},
  473. task_comment = #{record.taskComment,jdbcType=VARCHAR},
  474. task_start_time = #{record.taskStartTime,jdbcType=TIMESTAMP},
  475. task_end_time = #{record.taskEndTime,jdbcType=TIMESTAMP},
  476. project_status = #{record.projectStatus,jdbcType=INTEGER},
  477. accept_time = #{record.acceptTime,jdbcType=DATE},
  478. review_time = #{record.reviewTime,jdbcType=DATE},
  479. publicity_time = #{record.publicityTime,jdbcType=DATE},
  480. licence_time = #{record.licenceTime,jdbcType=DATE},
  481. attachment_url = #{record.attachmentUrl,jdbcType=LONGVARCHAR}
  482. <if test="_parameter != null">
  483. <include refid="Update_By_Example_Where_Clause" />
  484. </if>
  485. </update>
  486. <update id="updateByExample" parameterType="map">
  487. <!--
  488. WARNING - @mbg.generated
  489. This element is automatically generated by MyBatis Generator, do not modify.
  490. This element was generated on Mon Nov 19 11:03:38 CST 2018.
  491. -->
  492. update t_order_task
  493. set id = #{record.id,jdbcType=INTEGER},
  494. order_no = #{record.orderNo,jdbcType=VARCHAR},
  495. super_id = #{record.superId,jdbcType=VARCHAR},
  496. commodity_id = #{record.commodityId,jdbcType=VARCHAR},
  497. commodity_name = #{record.commodityName,jdbcType=VARCHAR},
  498. commodity_quantity = #{record.commodityQuantity,jdbcType=INTEGER},
  499. commodity_mode = #{record.commodityMode,jdbcType=VARCHAR},
  500. commodity_price = #{record.commodityPrice,jdbcType=DECIMAL},
  501. task_status = #{record.taskStatus,jdbcType=INTEGER},
  502. task_distribution_time = #{record.taskDistributionTime,jdbcType=TIMESTAMP},
  503. task_allocator = #{record.taskAllocator,jdbcType=VARCHAR},
  504. task_receiver = #{record.taskReceiver,jdbcType=VARCHAR},
  505. task_comment = #{record.taskComment,jdbcType=VARCHAR},
  506. task_start_time = #{record.taskStartTime,jdbcType=TIMESTAMP},
  507. task_end_time = #{record.taskEndTime,jdbcType=TIMESTAMP},
  508. project_status = #{record.projectStatus,jdbcType=INTEGER},
  509. accept_time = #{record.acceptTime,jdbcType=DATE},
  510. review_time = #{record.reviewTime,jdbcType=DATE},
  511. publicity_time = #{record.publicityTime,jdbcType=DATE},
  512. licence_time = #{record.licenceTime,jdbcType=DATE}
  513. <if test="_parameter != null">
  514. <include refid="Update_By_Example_Where_Clause" />
  515. </if>
  516. </update>
  517. <update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.TOrderTask">
  518. <!--
  519. WARNING - @mbg.generated
  520. This element is automatically generated by MyBatis Generator, do not modify.
  521. This element was generated on Mon Nov 19 11:03:38 CST 2018.
  522. -->
  523. update t_order_task
  524. <set>
  525. <if test="orderNo != null">
  526. order_no = #{orderNo,jdbcType=VARCHAR},
  527. </if>
  528. <if test="superId != null">
  529. super_id = #{superId,jdbcType=VARCHAR},
  530. </if>
  531. <if test="commodityId != null">
  532. commodity_id = #{commodityId,jdbcType=VARCHAR},
  533. </if>
  534. <if test="commodityName != null">
  535. commodity_name = #{commodityName,jdbcType=VARCHAR},
  536. </if>
  537. <if test="commodityQuantity != null">
  538. commodity_quantity = #{commodityQuantity,jdbcType=INTEGER},
  539. </if>
  540. <if test="commodityMode != null">
  541. commodity_mode = #{commodityMode,jdbcType=VARCHAR},
  542. </if>
  543. <if test="commodityPrice != null">
  544. commodity_price = #{commodityPrice,jdbcType=DECIMAL},
  545. </if>
  546. <if test="taskStatus != null">
  547. task_status = #{taskStatus,jdbcType=INTEGER},
  548. </if>
  549. <if test="taskDistributionTime != null">
  550. task_distribution_time = #{taskDistributionTime,jdbcType=TIMESTAMP},
  551. </if>
  552. <if test="taskAllocator != null">
  553. task_allocator = #{taskAllocator,jdbcType=VARCHAR},
  554. </if>
  555. <if test="taskReceiver != null">
  556. task_receiver = #{taskReceiver,jdbcType=VARCHAR},
  557. </if>
  558. <if test="taskComment != null">
  559. task_comment = #{taskComment,jdbcType=VARCHAR},
  560. </if>
  561. <if test="taskStartTime != null">
  562. task_start_time = #{taskStartTime,jdbcType=TIMESTAMP},
  563. </if>
  564. <if test="taskEndTime != null">
  565. task_end_time = #{taskEndTime,jdbcType=TIMESTAMP},
  566. </if>
  567. <if test="projectStatus != null">
  568. project_status = #{projectStatus,jdbcType=INTEGER},
  569. </if>
  570. <if test="acceptTime != null">
  571. accept_time = #{acceptTime,jdbcType=DATE},
  572. </if>
  573. <if test="reviewTime != null">
  574. review_time = #{reviewTime,jdbcType=DATE},
  575. </if>
  576. <if test="publicityTime != null">
  577. publicity_time = #{publicityTime,jdbcType=DATE},
  578. </if>
  579. <if test="licenceTime != null">
  580. licence_time = #{licenceTime,jdbcType=DATE},
  581. </if>
  582. <if test="attachmentUrl != null">
  583. attachment_url = #{attachmentUrl,jdbcType=LONGVARCHAR},
  584. </if>
  585. <if test="main != null">
  586. main = #{main,jdbcType=INTEGER},
  587. </if>
  588. </set>
  589. where id = #{id,jdbcType=INTEGER}
  590. </update>
  591. <update id="updateByPrimaryKeyWithBLOBs" parameterType="com.goafanti.common.model.TOrderTask">
  592. <!--
  593. WARNING - @mbg.generated
  594. This element is automatically generated by MyBatis Generator, do not modify.
  595. This element was generated on Mon Nov 19 11:03:38 CST 2018.
  596. -->
  597. update t_order_task
  598. set order_no = #{orderNo,jdbcType=VARCHAR},
  599. super_id = #{superId,jdbcType=VARCHAR},
  600. commodity_id = #{commodityId,jdbcType=VARCHAR},
  601. commodity_name = #{commodityName,jdbcType=VARCHAR},
  602. commodity_quantity = #{commodityQuantity,jdbcType=INTEGER},
  603. commodity_mode = #{commodityMode,jdbcType=VARCHAR},
  604. commodity_price = #{commodityPrice,jdbcType=DECIMAL},
  605. task_status = #{taskStatus,jdbcType=INTEGER},
  606. task_distribution_time = #{taskDistributionTime,jdbcType=TIMESTAMP},
  607. task_allocator = #{taskAllocator,jdbcType=VARCHAR},
  608. task_receiver = #{taskReceiver,jdbcType=VARCHAR},
  609. task_comment = #{taskComment,jdbcType=VARCHAR},
  610. task_start_time = #{taskStartTime,jdbcType=TIMESTAMP},
  611. task_end_time = #{taskEndTime,jdbcType=TIMESTAMP},
  612. project_status = #{projectStatus,jdbcType=INTEGER},
  613. accept_time = #{acceptTime,jdbcType=DATE},
  614. review_time = #{reviewTime,jdbcType=DATE},
  615. publicity_time = #{publicityTime,jdbcType=DATE},
  616. licence_time = #{licenceTime,jdbcType=DATE},
  617. attachment_url = #{attachmentUrl,jdbcType=LONGVARCHAR},
  618. main = #{main,jdbcType=INTEGER}
  619. where id = #{id,jdbcType=INTEGER}
  620. </update>
  621. <update id="updateByPrimaryKey" parameterType="com.goafanti.common.model.TOrderTask">
  622. <!--
  623. WARNING - @mbg.generated
  624. This element is automatically generated by MyBatis Generator, do not modify.
  625. This element was generated on Mon Nov 19 11:03:38 CST 2018.
  626. -->
  627. update t_order_task
  628. set order_no = #{orderNo,jdbcType=VARCHAR},
  629. super_id = #{superId,jdbcType=VARCHAR},
  630. commodity_id = #{commodityId,jdbcType=VARCHAR},
  631. commodity_name = #{commodityName,jdbcType=VARCHAR},
  632. commodity_quantity = #{commodityQuantity,jdbcType=INTEGER},
  633. commodity_mode = #{commodityMode,jdbcType=VARCHAR},
  634. commodity_price = #{commodityPrice,jdbcType=DECIMAL},
  635. task_status = #{taskStatus,jdbcType=INTEGER},
  636. task_distribution_time = #{taskDistributionTime,jdbcType=TIMESTAMP},
  637. task_allocator = #{taskAllocator,jdbcType=VARCHAR},
  638. task_receiver = #{taskReceiver,jdbcType=VARCHAR},
  639. task_comment = #{taskComment,jdbcType=VARCHAR},
  640. task_start_time = #{taskStartTime,jdbcType=TIMESTAMP},
  641. task_end_time = #{taskEndTime,jdbcType=TIMESTAMP},
  642. project_status = #{projectStatus,jdbcType=INTEGER},
  643. accept_time = #{acceptTime,jdbcType=DATE},
  644. review_time = #{reviewTime,jdbcType=DATE},
  645. publicity_time = #{publicityTime,jdbcType=DATE},
  646. licence_time = #{licenceTime,jdbcType=DATE},
  647. main = #{main,jdbcType=INTEGER}
  648. where id = #{id,jdbcType=INTEGER}
  649. </update>
  650. <select id="selectOrderTask" resultType="com.goafanti.order.bo.TOrderTaskBo">
  651. select
  652. a.id,a.order_no as orderNo,a.commodity_name as commodityName,a.commodity_id as commodityId,
  653. a.commodity_price as commodityPrice,a.task_comment as taskComment,a.task_status as taskStatus,
  654. a.project_status as project_status,a.main,a.task_receiver as taskReceiver ,d.name as contacts,
  655. d.contact_mobile as contactsMobile,c.cname
  656. from t_order_task a left join business_project b on a.commodity_id=b.id
  657. left join business_category c on b.cid=c.id left join admin d on a.task_receiver=d.id
  658. where order_no= #{orderNo,jdbcType=VARCHAR}
  659. </select>
  660. </mapper>