TProjectPoolMapper.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!DOCTYPE mapper
  3. PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  4. "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  5. <mapper namespace="com.ruoyi.invest.mapper.TProjectPoolMapper">
  6. <resultMap type="TProjectPool" id="TProjectPoolResult">
  7. <result property="id" column="id" />
  8. <result property="porjectName" column="porject_name" />
  9. <result property="porjectGroup" column="porject_group" />
  10. <result property="recordDate" column="record_date" />
  11. <result property="porjectCode" column="porject_code" />
  12. <result property="channel" column="channel" />
  13. <result property="contactDate" column="contact_date" />
  14. <result property="projectDate" column="project_date" />
  15. <result property="decisionDate" column="decision_date" />
  16. <result property="industry" column="industry" />
  17. <result property="company" column="company" />
  18. <result property="description" column="description" />
  19. <result property="projectContacts" column="project_contacts" />
  20. <result property="investHead" column="invest_head" />
  21. <result property="previousFinancing" column="previous_financing" />
  22. <result property="financingStage" column="financing_stage" />
  23. <result property="financingCondition" column="financing_condition" />
  24. <result property="financingMoney" column="financing_money" />
  25. <result property="financingDate" column="financing_date" />
  26. <result property="investSparkle" column="invest_sparkle" />
  27. <result property="investValuation" column="invest_valuation" />
  28. <result property="investMoney" column="invest_money" />
  29. <result property="investType" column="invest_type" />
  30. <result property="investPloy" column="invest_ploy" />
  31. <result property="investWorth" column="invest_worth" />
  32. <result property="shareholding" column="shareholding" />
  33. <result property="projectStage" column="project_stage" />
  34. <result property="projectState" column="project_state" />
  35. <result property="mark" column="mark" />
  36. <result property="delFlag" column="del_flag" />
  37. <result property="createBy" column="create_by" />
  38. <result property="createTime" column="create_time" />
  39. <result property="updateBy" column="update_by" />
  40. <result property="updateTime" column="update_time" />
  41. </resultMap>
  42. <sql id="selectTProjectPoolVo">
  43. select id, porject_name, porject_group, record_date, porject_code, channel, contact_date, project_date, decision_date, industry, company, description, project_contacts, invest_head, previous_financing, financing_stage, financing_condition, financing_money, financing_date, invest_sparkle, invest_valuation, invest_money, invest_type, invest_ploy, invest_worth, shareholding, project_stage, project_state, mark, del_flag, create_by, create_time, update_by, update_time from t_project_pool
  44. </sql>
  45. <select id="selectTProjectPoolList" parameterType="TProjectPool" resultMap="TProjectPoolResult">
  46. <include refid="selectTProjectPoolVo"/>
  47. <where>
  48. <if test="porjectName != null and porjectName != ''"> and porject_name like concat('%', #{porjectName}, '%')</if>
  49. <if test="porjectGroup != null and porjectGroup != ''"> and porject_group = #{porjectGroup}</if>
  50. <if test="porjectCode != null and porjectCode != ''"> and porject_code = #{porjectCode}</if>
  51. <if test="channel != null and channel != ''"> and channel = #{channel}</if>
  52. <if test="contactDate != null "> and contact_date = #{contactDate}</if>
  53. <if test="projectDate != null "> and project_date = #{projectDate}</if>
  54. <if test="decisionDate != null "> and decision_date = #{decisionDate}</if>
  55. <if test="industry != null and industry != ''"> and industry = #{industry}</if>
  56. <if test="company != null and company != ''"> and company = #{company}</if>
  57. <if test="projectContacts != null and projectContacts != ''"> and project_contacts = #{projectContacts}</if>
  58. <if test="investHead != null and investHead != ''"> and invest_head = #{investHead}</if>
  59. <if test="previousFinancing != null and previousFinancing != ''"> and previous_financing = #{previousFinancing}</if>
  60. <if test="financingStage != null and financingStage != ''"> and financing_stage = #{financingStage}</if>
  61. <if test="financingMoney != null and financingMoney != ''"> and financing_money = #{financingMoney}</if>
  62. <if test="financingDate != null "> and financing_date = #{financingDate}</if>
  63. <if test="investValuation != null and investValuation != ''"> and invest_valuation = #{investValuation}</if>
  64. <if test="investMoney != null and investMoney != ''"> and invest_money = #{investMoney}</if>
  65. <if test="investType != null and investType != ''"> and invest_type = #{investType}</if>
  66. <if test="investPloy != null and investPloy != ''"> and invest_ploy = #{investPloy}</if>
  67. <if test="investWorth != null and investWorth != ''"> and invest_worth = #{investWorth}</if>
  68. <if test="projectStage != null and projectStage != ''"> and project_stage = #{projectStage}</if>
  69. <if test="projectState != null and projectState != ''"> and project_state = #{projectState}</if>
  70. </where>
  71. </select>
  72. <select id="selectTProjectPoolById" parameterType="String" resultMap="TProjectPoolResult">
  73. <include refid="selectTProjectPoolVo"/>
  74. where id = #{id}
  75. </select>
  76. <insert id="insertTProjectPool" parameterType="TProjectPool">
  77. insert into t_project_pool
  78. <trim prefix="(" suffix=")" suffixOverrides=",">
  79. <if test="id != null">id,</if>
  80. <if test="porjectName != null">porject_name,</if>
  81. <if test="porjectGroup != null">porject_group,</if>
  82. <if test="recordDate != null">record_date,</if>
  83. <if test="porjectCode != null">porject_code,</if>
  84. <if test="channel != null">channel,</if>
  85. <if test="contactDate != null">contact_date,</if>
  86. <if test="projectDate != null">project_date,</if>
  87. <if test="decisionDate != null">decision_date,</if>
  88. <if test="industry != null">industry,</if>
  89. <if test="company != null">company,</if>
  90. <if test="description != null">description,</if>
  91. <if test="projectContacts != null">project_contacts,</if>
  92. <if test="investHead != null">invest_head,</if>
  93. <if test="previousFinancing != null">previous_financing,</if>
  94. <if test="financingStage != null">financing_stage,</if>
  95. <if test="financingCondition != null">financing_condition,</if>
  96. <if test="financingMoney != null">financing_money,</if>
  97. <if test="financingDate != null">financing_date,</if>
  98. <if test="investSparkle != null">invest_sparkle,</if>
  99. <if test="investValuation != null">invest_valuation,</if>
  100. <if test="investMoney != null">invest_money,</if>
  101. <if test="investType != null">invest_type,</if>
  102. <if test="investPloy != null">invest_ploy,</if>
  103. <if test="investWorth != null">invest_worth,</if>
  104. <if test="shareholding != null">shareholding,</if>
  105. <if test="projectStage != null">project_stage,</if>
  106. <if test="projectState != null">project_state,</if>
  107. <if test="mark != null">mark,</if>
  108. <if test="delFlag != null">del_flag,</if>
  109. <if test="createBy != null">create_by,</if>
  110. <if test="createTime != null">create_time,</if>
  111. <if test="updateBy != null">update_by,</if>
  112. <if test="updateTime != null">update_time,</if>
  113. </trim>
  114. <trim prefix="values (" suffix=")" suffixOverrides=",">
  115. <if test="id != null">#{id},</if>
  116. <if test="porjectName != null">#{porjectName},</if>
  117. <if test="porjectGroup != null">#{porjectGroup},</if>
  118. <if test="recordDate != null">#{recordDate},</if>
  119. <if test="porjectCode != null">#{porjectCode},</if>
  120. <if test="channel != null">#{channel},</if>
  121. <if test="contactDate != null">#{contactDate},</if>
  122. <if test="projectDate != null">#{projectDate},</if>
  123. <if test="decisionDate != null">#{decisionDate},</if>
  124. <if test="industry != null">#{industry},</if>
  125. <if test="company != null">#{company},</if>
  126. <if test="description != null">#{description},</if>
  127. <if test="projectContacts != null">#{projectContacts},</if>
  128. <if test="investHead != null">#{investHead},</if>
  129. <if test="previousFinancing != null">#{previousFinancing},</if>
  130. <if test="financingStage != null">#{financingStage},</if>
  131. <if test="financingCondition != null">#{financingCondition},</if>
  132. <if test="financingMoney != null">#{financingMoney},</if>
  133. <if test="financingDate != null">#{financingDate},</if>
  134. <if test="investSparkle != null">#{investSparkle},</if>
  135. <if test="investValuation != null">#{investValuation},</if>
  136. <if test="investMoney != null">#{investMoney},</if>
  137. <if test="investType != null">#{investType},</if>
  138. <if test="investPloy != null">#{investPloy},</if>
  139. <if test="investWorth != null">#{investWorth},</if>
  140. <if test="shareholding != null">#{shareholding},</if>
  141. <if test="projectStage != null">#{projectStage},</if>
  142. <if test="projectState != null">#{projectState},</if>
  143. <if test="mark != null">#{mark},</if>
  144. <if test="delFlag != null">#{delFlag},</if>
  145. <if test="createBy != null">#{createBy},</if>
  146. <if test="createTime != null">#{createTime},</if>
  147. <if test="updateBy != null">#{updateBy},</if>
  148. <if test="updateTime != null">#{updateTime},</if>
  149. </trim>
  150. </insert>
  151. <update id="updateTProjectPool" parameterType="TProjectPool">
  152. update t_project_pool
  153. <trim prefix="SET" suffixOverrides=",">
  154. <if test="porjectName != null">porject_name = #{porjectName},</if>
  155. <if test="porjectGroup != null">porject_group = #{porjectGroup},</if>
  156. <if test="recordDate != null">record_date = #{recordDate},</if>
  157. <if test="porjectCode != null">porject_code = #{porjectCode},</if>
  158. <if test="channel != null">channel = #{channel},</if>
  159. <if test="contactDate != null">contact_date = #{contactDate},</if>
  160. <if test="projectDate != null">project_date = #{projectDate},</if>
  161. <if test="decisionDate != null">decision_date = #{decisionDate},</if>
  162. <if test="industry != null">industry = #{industry},</if>
  163. <if test="company != null">company = #{company},</if>
  164. <if test="description != null">description = #{description},</if>
  165. <if test="projectContacts != null">project_contacts = #{projectContacts},</if>
  166. <if test="investHead != null">invest_head = #{investHead},</if>
  167. <if test="previousFinancing != null">previous_financing = #{previousFinancing},</if>
  168. <if test="financingStage != null">financing_stage = #{financingStage},</if>
  169. <if test="financingCondition != null">financing_condition = #{financingCondition},</if>
  170. <if test="financingMoney != null">financing_money = #{financingMoney},</if>
  171. <if test="financingDate != null">financing_date = #{financingDate},</if>
  172. <if test="investSparkle != null">invest_sparkle = #{investSparkle},</if>
  173. <if test="investValuation != null">invest_valuation = #{investValuation},</if>
  174. <if test="investMoney != null">invest_money = #{investMoney},</if>
  175. <if test="investType != null">invest_type = #{investType},</if>
  176. <if test="investPloy != null">invest_ploy = #{investPloy},</if>
  177. <if test="investWorth != null">invest_worth = #{investWorth},</if>
  178. <if test="shareholding != null">shareholding = #{shareholding},</if>
  179. <if test="projectStage != null">project_stage = #{projectStage},</if>
  180. <if test="projectState != null">project_state = #{projectState},</if>
  181. <if test="mark != null">mark = #{mark},</if>
  182. <if test="delFlag != null">del_flag = #{delFlag},</if>
  183. <if test="createBy != null">create_by = #{createBy},</if>
  184. <if test="createTime != null">create_time = #{createTime},</if>
  185. <if test="updateBy != null">update_by = #{updateBy},</if>
  186. <if test="updateTime != null">update_time = #{updateTime},</if>
  187. </trim>
  188. where id = #{id}
  189. </update>
  190. <delete id="deleteTProjectPoolById" parameterType="String">
  191. delete from t_project_pool where id = #{id}
  192. </delete>
  193. <delete id="deleteTProjectPoolByIds" parameterType="String">
  194. delete from t_project_pool where id in
  195. <foreach item="id" collection="array" open="(" separator="," close=")">
  196. #{id}
  197. </foreach>
  198. </delete>
  199. </mapper>