BusinessProjectMapper.xml 25 KB

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