JtBusinessProjectMapper.xml 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564
  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.JtBusinessProjectMapper">
  4. <resultMap id="BaseResultMap" type="com.goafanti.common.model.JtBusinessProject">
  5. <!--
  6. WARNING - @mbg.generated
  7. This element is automatically generated by MyBatis Generator, do not modify.
  8. This element was generated on Wed Jun 20 11:08:54 CST 2018.
  9. -->
  10. <id column="id" jdbcType="VARCHAR" property="id" />
  11. <result column="name" jdbcType="VARCHAR" property="name" />
  12. <result column="category_id" jdbcType="VARCHAR" property="categoryId" />
  13. <result column="number" jdbcType="VARCHAR" property="number" />
  14. <result column="price" jdbcType="DECIMAL" property="price" />
  15. <result column="activity_price" jdbcType="DECIMAL" property="activityPrice" />
  16. <result column="member_price" jdbcType="DECIMAL" property="memberPrice" />
  17. <result column="offset" jdbcType="REAL" property="offset" />
  18. <result column="activity_flag" jdbcType="INTEGER" property="activityFlag" />
  19. <result column="introduce" jdbcType="VARCHAR" property="introduce" />
  20. <result column="province" jdbcType="INTEGER" property="province" />
  21. <result column="city" jdbcType="INTEGER" property="city" />
  22. <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
  23. <result column="min_img_url" jdbcType="VARCHAR" property="minImgUrl" />
  24. <result column="max_img_url" jdbcType="VARCHAR" property="maxImgUrl" />
  25. <result column="value" jdbcType="VARCHAR" property="value" />
  26. <result column="apply_conditions" jdbcType="VARCHAR" property="applyConditions" />
  27. </resultMap>
  28. <sql id="Example_Where_Clause">
  29. <!--
  30. WARNING - @mbg.generated
  31. This element is automatically generated by MyBatis Generator, do not modify.
  32. This element was generated on Wed Jun 20 11:08:54 CST 2018.
  33. -->
  34. <where>
  35. <foreach collection="oredCriteria" item="criteria" separator="or">
  36. <if test="criteria.valid">
  37. <trim prefix="(" prefixOverrides="and" suffix=")">
  38. <foreach collection="criteria.criteria" item="criterion">
  39. <choose>
  40. <when test="criterion.noValue">
  41. and ${criterion.condition}
  42. </when>
  43. <when test="criterion.singleValue">
  44. and ${criterion.condition} #{criterion.value}
  45. </when>
  46. <when test="criterion.betweenValue">
  47. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  48. </when>
  49. <when test="criterion.listValue">
  50. and ${criterion.condition}
  51. <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
  52. #{listItem}
  53. </foreach>
  54. </when>
  55. </choose>
  56. </foreach>
  57. </trim>
  58. </if>
  59. </foreach>
  60. </where>
  61. </sql>
  62. <sql id="Update_By_Example_Where_Clause">
  63. <!--
  64. WARNING - @mbg.generated
  65. This element is automatically generated by MyBatis Generator, do not modify.
  66. This element was generated on Wed Jun 20 11:08:54 CST 2018.
  67. -->
  68. <where>
  69. <foreach collection="example.oredCriteria" item="criteria" separator="or">
  70. <if test="criteria.valid">
  71. <trim prefix="(" prefixOverrides="and" suffix=")">
  72. <foreach collection="criteria.criteria" item="criterion">
  73. <choose>
  74. <when test="criterion.noValue">
  75. and ${criterion.condition}
  76. </when>
  77. <when test="criterion.singleValue">
  78. and ${criterion.condition} #{criterion.value}
  79. </when>
  80. <when test="criterion.betweenValue">
  81. and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
  82. </when>
  83. <when test="criterion.listValue">
  84. and ${criterion.condition}
  85. <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
  86. #{listItem}
  87. </foreach>
  88. </when>
  89. </choose>
  90. </foreach>
  91. </trim>
  92. </if>
  93. </foreach>
  94. </where>
  95. </sql>
  96. <sql id="Base_Column_List">
  97. <!--
  98. WARNING - @mbg.generated
  99. This element is automatically generated by MyBatis Generator, do not modify.
  100. This element was generated on Wed Jun 20 11:08:54 CST 2018.
  101. -->
  102. id, name, category_id as categoryId, number, price, activity_price as activityPrice, member_price as memberPrice, offset, activity_flag as activityFlag,
  103. introduce, province, city, create_time as createTime, min_img_url as minImgUrl, max_img_url as maxImgUrl, value, apply_conditions as applyConditions,owner_id as ownerId
  104. </sql>
  105. <sql id="My_Base_Column_List">
  106. <!--
  107. WARNING - @mbg.generated
  108. This element is automatically generated by MyBatis Generator, do not modify.
  109. This element was generated on Wed Jun 20 11:08:54 CST 2018.
  110. -->
  111. jtbp.id, jtbp.name, jtbp.category_id as categoryId, jtbp.number, jtbp.price, jtbp.activity_price as activityPrice, jtbp.member_price as memberPrice, jtbp.offset,
  112. jtbp.activity_flag as activityFlag,
  113. jtbp.introduce,
  114. jtbp.province,
  115. jtbp.city, jtbp.create_time as createTime,
  116. jtbp.min_img_url as minImgUrl,
  117. jtbp.max_img_url as maxImgUrl,
  118. jtbp.value, jtbp.apply_conditions as applyConditions
  119. </sql>
  120. <select id="selectByExample" parameterType="com.goafanti.common.model.JtBusinessProjectExample" resultMap="BaseResultMap">
  121. <!--
  122. WARNING - @mbg.generated
  123. This element is automatically generated by MyBatis Generator, do not modify.
  124. This element was generated on Wed Jun 20 11:08:54 CST 2018.
  125. -->
  126. select
  127. <if test="distinct">
  128. distinct
  129. </if>
  130. <include refid="Base_Column_List" />
  131. from jt_business_project
  132. <if test="_parameter != null">
  133. <include refid="Example_Where_Clause" />
  134. </if>
  135. <if test="orderByClause != null">
  136. order by ${orderByClause}
  137. </if>
  138. </select>
  139. <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
  140. <!--
  141. WARNING - @mbg.generated
  142. This element is automatically generated by MyBatis Generator, do not modify.
  143. This element was generated on Wed Jun 20 11:08:54 CST 2018.
  144. -->
  145. select
  146. <include refid="Base_Column_List" />
  147. from jt_business_project
  148. where id = #{id,jdbcType=VARCHAR}
  149. </select>
  150. <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
  151. <!--
  152. WARNING - @mbg.generated
  153. This element is automatically generated by MyBatis Generator, do not modify.
  154. This element was generated on Wed Jun 20 11:08:54 CST 2018.
  155. -->
  156. delete from jt_business_project
  157. where id = #{id,jdbcType=VARCHAR}
  158. </delete>
  159. <delete id="deleteByExample" parameterType="com.goafanti.common.model.JtBusinessProjectExample">
  160. <!--
  161. WARNING - @mbg.generated
  162. This element is automatically generated by MyBatis Generator, do not modify.
  163. This element was generated on Wed Jun 20 11:08:54 CST 2018.
  164. -->
  165. delete from jt_business_project
  166. <if test="_parameter != null">
  167. <include refid="Example_Where_Clause" />
  168. </if>
  169. </delete>
  170. <insert id="insert" parameterType="com.goafanti.common.model.JtBusinessProject">
  171. <!--
  172. WARNING - @mbg.generated
  173. This element is automatically generated by MyBatis Generator, do not modify.
  174. This element was generated on Wed Jun 20 11:08:54 CST 2018.
  175. -->
  176. insert into jt_business_project (id, name, category_id,
  177. number, price, activity_price,
  178. member_price, offset, activity_flag,
  179. introduce, province, city,
  180. create_time, min_img_url, max_img_url,
  181. value, apply_conditions)
  182. values (#{id,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{categoryId,jdbcType=VARCHAR},
  183. #{number,jdbcType=VARCHAR}, #{price,jdbcType=DECIMAL}, #{activityPrice,jdbcType=DECIMAL},
  184. #{memberPrice,jdbcType=DECIMAL}, #{offset,jdbcType=REAL}, #{activityFlag,jdbcType=INTEGER},
  185. #{introduce,jdbcType=VARCHAR}, #{province,jdbcType=INTEGER}, #{city,jdbcType=INTEGER},
  186. #{createTime,jdbcType=TIMESTAMP}, #{minImgUrl,jdbcType=VARCHAR}, #{maxImgUrl,jdbcType=VARCHAR},
  187. #{value,jdbcType=VARCHAR}, #{applyConditions,jdbcType=VARCHAR})
  188. </insert>
  189. <insert id="insertSelective" parameterType="com.goafanti.common.model.JtBusinessProject">
  190. <!--
  191. WARNING - @mbg.generated
  192. This element is automatically generated by MyBatis Generator, do not modify.
  193. This element was generated on Wed Jun 20 11:08:54 CST 2018.
  194. -->
  195. insert into jt_business_project
  196. <trim prefix="(" suffix=")" suffixOverrides=",">
  197. <if test="id != null">
  198. id,
  199. </if>
  200. <if test="name != null">
  201. name,
  202. </if>
  203. <if test="categoryId != null">
  204. category_id,
  205. </if>
  206. <if test="number != null">
  207. number,
  208. </if>
  209. <if test="price != null">
  210. price,
  211. </if>
  212. <if test="activityPrice != null">
  213. activity_price,
  214. </if>
  215. <if test="memberPrice != null">
  216. member_price,
  217. </if>
  218. <if test="offset != null">
  219. offset,
  220. </if>
  221. <if test="activityFlag != null">
  222. activity_flag,
  223. </if>
  224. <if test="introduce != null">
  225. introduce,
  226. </if>
  227. <if test="province != null">
  228. province,
  229. </if>
  230. <if test="city != null">
  231. city,
  232. </if>
  233. <if test="createTime != null">
  234. create_time,
  235. </if>
  236. <if test="minImgUrl != null">
  237. min_img_url,
  238. </if>
  239. <if test="maxImgUrl != null">
  240. max_img_url,
  241. </if>
  242. <if test="value != null">
  243. value,
  244. </if>
  245. <if test="applyConditions != null">
  246. apply_conditions,
  247. </if>
  248. <if test="ownerId!=null">
  249. owner_id,
  250. </if>
  251. </trim>
  252. <trim prefix="values (" suffix=")" suffixOverrides=",">
  253. <if test="id != null">
  254. #{id,jdbcType=VARCHAR},
  255. </if>
  256. <if test="name != null">
  257. #{name,jdbcType=VARCHAR},
  258. </if>
  259. <if test="categoryId != null">
  260. #{categoryId,jdbcType=VARCHAR},
  261. </if>
  262. <if test="number != null">
  263. #{number,jdbcType=VARCHAR},
  264. </if>
  265. <if test="price != null">
  266. #{price,jdbcType=DECIMAL},
  267. </if>
  268. <if test="activityPrice != null">
  269. #{activityPrice,jdbcType=DECIMAL},
  270. </if>
  271. <if test="memberPrice != null">
  272. #{memberPrice,jdbcType=DECIMAL},
  273. </if>
  274. <if test="offset != null">
  275. #{offset,jdbcType=REAL},
  276. </if>
  277. <if test="activityFlag != null">
  278. #{activityFlag,jdbcType=INTEGER},
  279. </if>
  280. <if test="introduce != null">
  281. #{introduce,jdbcType=VARCHAR},
  282. </if>
  283. <if test="province != null">
  284. #{province,jdbcType=INTEGER},
  285. </if>
  286. <if test="city != null">
  287. #{city,jdbcType=INTEGER},
  288. </if>
  289. <if test="createTime != null">
  290. #{createTime,jdbcType=TIMESTAMP},
  291. </if>
  292. <if test="minImgUrl != null">
  293. #{minImgUrl,jdbcType=VARCHAR},
  294. </if>
  295. <if test="maxImgUrl != null">
  296. #{maxImgUrl,jdbcType=VARCHAR},
  297. </if>
  298. <if test="value != null">
  299. #{value,jdbcType=VARCHAR},
  300. </if>
  301. <if test="applyConditions != null">
  302. #{applyConditions,jdbcType=VARCHAR},
  303. </if>
  304. <if test="ownerId!=null">
  305. #{ownerId,jdbcType=VARCHAR}
  306. </if>
  307. </trim>
  308. </insert>
  309. <select id="countByExample" parameterType="com.goafanti.common.model.JtBusinessProjectExample" resultType="java.lang.Long">
  310. <!--
  311. WARNING - @mbg.generated
  312. This element is automatically generated by MyBatis Generator, do not modify.
  313. This element was generated on Wed Jun 20 11:08:54 CST 2018.
  314. -->
  315. select count(*) from jt_business_project
  316. <if test="_parameter != null">
  317. <include refid="Example_Where_Clause" />
  318. </if>
  319. </select>
  320. <update id="updateByExampleSelective" parameterType="map">
  321. <!--
  322. WARNING - @mbg.generated
  323. This element is automatically generated by MyBatis Generator, do not modify.
  324. This element was generated on Wed Jun 20 11:08:54 CST 2018.
  325. -->
  326. update jt_business_project
  327. <set>
  328. <if test="record.id != null">
  329. id = #{record.id,jdbcType=VARCHAR},
  330. </if>
  331. <if test="record.name != null">
  332. name = #{record.name,jdbcType=VARCHAR},
  333. </if>
  334. <if test="record.categoryId != null">
  335. category_id = #{record.categoryId,jdbcType=VARCHAR},
  336. </if>
  337. <if test="record.number != null">
  338. number = #{record.number,jdbcType=VARCHAR},
  339. </if>
  340. <if test="record.price != null">
  341. price = #{record.price,jdbcType=DECIMAL},
  342. </if>
  343. <if test="record.activityPrice != null">
  344. activity_price = #{record.activityPrice,jdbcType=DECIMAL},
  345. </if>
  346. <if test="record.memberPrice != null">
  347. member_price = #{record.memberPrice,jdbcType=DECIMAL},
  348. </if>
  349. <if test="record.offset != null">
  350. offset = #{record.offset,jdbcType=REAL},
  351. </if>
  352. <if test="record.activityFlag != null">
  353. activity_flag = #{record.activityFlag,jdbcType=INTEGER},
  354. </if>
  355. <if test="record.introduce != null">
  356. introduce = #{record.introduce,jdbcType=VARCHAR},
  357. </if>
  358. <if test="record.province != null">
  359. province = #{record.province,jdbcType=INTEGER},
  360. </if>
  361. <if test="record.city != null">
  362. city = #{record.city,jdbcType=INTEGER},
  363. </if>
  364. <if test="record.createTime != null">
  365. create_time = #{record.createTime,jdbcType=TIMESTAMP},
  366. </if>
  367. <if test="record.minImgUrl != null">
  368. min_img_url = #{record.minImgUrl,jdbcType=VARCHAR},
  369. </if>
  370. <if test="record.maxImgUrl != null">
  371. max_img_url = #{record.maxImgUrl,jdbcType=VARCHAR},
  372. </if>
  373. <if test="record.value != null">
  374. value = #{record.value,jdbcType=VARCHAR},
  375. </if>
  376. <if test="record.applyConditions != null">
  377. apply_conditions = #{record.applyConditions,jdbcType=VARCHAR},
  378. </if>
  379. </set>
  380. <if test="_parameter != null">
  381. <include refid="Update_By_Example_Where_Clause" />
  382. </if>
  383. </update>
  384. <update id="updateByExample" parameterType="map">
  385. <!--
  386. WARNING - @mbg.generated
  387. This element is automatically generated by MyBatis Generator, do not modify.
  388. This element was generated on Wed Jun 20 11:08:54 CST 2018.
  389. -->
  390. update jt_business_project
  391. set id = #{record.id,jdbcType=VARCHAR},
  392. name = #{record.name,jdbcType=VARCHAR},
  393. category_id = #{record.categoryId,jdbcType=VARCHAR},
  394. number = #{record.number,jdbcType=VARCHAR},
  395. price = #{record.price,jdbcType=DECIMAL},
  396. activity_price = #{record.activityPrice,jdbcType=DECIMAL},
  397. member_price = #{record.memberPrice,jdbcType=DECIMAL},
  398. offset = #{record.offset,jdbcType=REAL},
  399. activity_flag = #{record.activityFlag,jdbcType=INTEGER},
  400. introduce = #{record.introduce,jdbcType=VARCHAR},
  401. province = #{record.province,jdbcType=INTEGER},
  402. city = #{record.city,jdbcType=INTEGER},
  403. create_time = #{record.createTime,jdbcType=TIMESTAMP},
  404. min_img_url = #{record.minImgUrl,jdbcType=VARCHAR},
  405. max_img_url = #{record.maxImgUrl,jdbcType=VARCHAR},
  406. value = #{record.value,jdbcType=VARCHAR},
  407. apply_conditions = #{record.applyConditions,jdbcType=VARCHAR}
  408. <if test="_parameter != null">
  409. <include refid="Update_By_Example_Where_Clause" />
  410. </if>
  411. </update>
  412. <update id="updateByPrimaryKeySelective" parameterType="com.goafanti.common.model.JtBusinessProject">
  413. <!--
  414. WARNING - @mbg.generated
  415. This element is automatically generated by MyBatis Generator, do not modify.
  416. This element was generated on Wed Jun 20 11:08:54 CST 2018.
  417. -->
  418. update jt_business_project
  419. <set>
  420. <if test="name != null">
  421. name = #{name,jdbcType=VARCHAR},
  422. </if>
  423. <if test="categoryId != null">
  424. category_id = #{categoryId,jdbcType=VARCHAR},
  425. </if>
  426. <if test="number != null">
  427. number = #{number,jdbcType=VARCHAR},
  428. </if>
  429. <if test="price != null">
  430. price = #{price,jdbcType=DECIMAL},
  431. </if>
  432. <if test="activityPrice != null">
  433. activity_price = #{activityPrice,jdbcType=DECIMAL},
  434. </if>
  435. <if test="memberPrice != null">
  436. member_price = #{memberPrice,jdbcType=DECIMAL},
  437. </if>
  438. <if test="offset != null">
  439. offset = #{offset,jdbcType=REAL},
  440. </if>
  441. <if test="activityFlag != null">
  442. activity_flag = #{activityFlag,jdbcType=INTEGER},
  443. </if>
  444. <if test="introduce != null">
  445. introduce = #{introduce,jdbcType=VARCHAR},
  446. </if>
  447. <if test="province != null">
  448. province = #{province,jdbcType=INTEGER},
  449. </if>
  450. <if test="city != null">
  451. city = #{city,jdbcType=INTEGER},
  452. </if>
  453. <if test="createTime != null">
  454. create_time = #{createTime,jdbcType=TIMESTAMP},
  455. </if>
  456. <if test="minImgUrl != null">
  457. min_img_url = #{minImgUrl,jdbcType=VARCHAR},
  458. </if>
  459. <if test="maxImgUrl != null">
  460. max_img_url = #{maxImgUrl,jdbcType=VARCHAR},
  461. </if>
  462. <if test="value != null">
  463. value = #{value,jdbcType=VARCHAR},
  464. </if>
  465. <if test="applyConditions != null">
  466. apply_conditions = #{applyConditions,jdbcType=VARCHAR},
  467. </if>
  468. </set>
  469. where id = #{id,jdbcType=VARCHAR}
  470. </update>
  471. <update id="updateByPrimaryKey" parameterType="com.goafanti.common.model.JtBusinessProject">
  472. <!--
  473. WARNING - @mbg.generated
  474. This element is automatically generated by MyBatis Generator, do not modify.
  475. This element was generated on Wed Jun 20 11:08:54 CST 2018.
  476. -->
  477. update jt_business_project
  478. set name = #{name,jdbcType=VARCHAR},
  479. category_id = #{categoryId,jdbcType=VARCHAR},
  480. number = #{number,jdbcType=VARCHAR},
  481. price = #{price,jdbcType=DECIMAL},
  482. activity_price = #{activityPrice,jdbcType=DECIMAL},
  483. member_price = #{memberPrice,jdbcType=DECIMAL},
  484. offset = #{offset,jdbcType=REAL},
  485. activity_flag = #{activityFlag,jdbcType=INTEGER},
  486. introduce = #{introduce,jdbcType=VARCHAR},
  487. province = #{province,jdbcType=INTEGER},
  488. city = #{city,jdbcType=INTEGER},
  489. create_time = #{createTime,jdbcType=TIMESTAMP},
  490. min_img_url = #{minImgUrl,jdbcType=VARCHAR},
  491. max_img_url = #{maxImgUrl,jdbcType=VARCHAR},
  492. value = #{value,jdbcType=VARCHAR},
  493. apply_conditions = #{applyConditions,jdbcType=VARCHAR}
  494. where id = #{id,jdbcType=VARCHAR}
  495. </update>
  496. <select id="getBusinessProjectByCategoryId" resultType="com.goafanti.common.model.JtBusinessProject">
  497. select
  498. id,
  499. name,
  500. introduce
  501. from
  502. jt_business_project,
  503. min_img_url as minImgUrl
  504. from jt_business_project
  505. where
  506. category_id=#{0}
  507. order by create_time
  508. limit #{1}
  509. </select>
  510. <select id="findJtBusinessProjectByPage" resultType="com.goafanti.common.model.JtBusinessProject">
  511. select
  512. <include refid="My_Base_Column_List" />
  513. from jt_business_project jtbp
  514. <if test="topId!=null">
  515. left join jt_business_category jtbc on jtbc.super_id =#{topId,jdbcType=VARCHAR}
  516. </if>
  517. where 1=1
  518. <if test="secondId!=null">
  519. and jtbp.category_id=#{secondId,jdbcType=VARCHAR}
  520. </if>
  521. <if test="name!=null">
  522. and jtbp.name like concat("%",#{name,jdbcType=VARCHAR},"%")
  523. </if>
  524. <if test="topId!=null">
  525. and jtbc.id=jtbp.category_id
  526. </if>
  527. <if test="ownerId!=null">
  528. and jtbp.owner_id=#{ownerId,jdbcType=VARCHAR}
  529. </if>
  530. <if test="page_sql!=null">
  531. ${page_sql}
  532. </if>
  533. </select>
  534. <select id="findJtBusinessCountByPage" resultType="java.lang.Integer">
  535. select
  536. count(0)
  537. from jt_business_project jtbp
  538. <if test="topId!=null">
  539. left join jt_business_category jtbc on jtbc.super_id =#{topId,jdbcType=VARCHAR}
  540. </if>
  541. where 1=1
  542. <if test="secondId!=null">
  543. and jtbp.category_id=#{secondId,jdbcType=VARCHAR}
  544. </if>
  545. <if test="name!=null">
  546. and jtbp.name like concat("%",#{name,jdbcType=VARCHAR},"%")
  547. </if>
  548. <if test="topId!=null">
  549. and jtbc.id=jtbp.category_id
  550. </if>
  551. <if test="ownerId!=null">
  552. and jtbp.owner_id=#{ownerId,jdbcType=VARCHAR}
  553. </if>
  554. </select>
  555. <select id="findProjectOrderByNumber" resultType="com.goafanti.common.model.JtBusinessProject">
  556. select
  557. <include refid="Base_Column_List" />
  558. from jt_business_project order by create_time desc
  559. </select>
  560. </mapper>