|
@@ -0,0 +1,207 @@
|
|
|
+<?xml version="1.0" encoding="UTF-8" ?>
|
|
|
+<!DOCTYPE mapper
|
|
|
+PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
+"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
+<mapper namespace="com.ruoyi.system.mapper.invest.TProjectPoolMapper">
|
|
|
+
|
|
|
+ <resultMap type="TProjectPool" id="TProjectPoolResult">
|
|
|
+ <result property="id" column="id" />
|
|
|
+ <result property="porjectName" column="porject_name" />
|
|
|
+ <result property="porjectGroup" column="porject_group" />
|
|
|
+ <result property="recordDate" column="record_date" />
|
|
|
+ <result property="porjectCode" column="porject_code" />
|
|
|
+ <result property="channel" column="channel" />
|
|
|
+ <result property="contactDate" column="contact_date" />
|
|
|
+ <result property="projectDate" column="project_date" />
|
|
|
+ <result property="decisionDate" column="decision_date" />
|
|
|
+ <result property="industry" column="industry" />
|
|
|
+ <result property="company" column="company" />
|
|
|
+ <result property="description" column="description" />
|
|
|
+ <result property="projectContacts" column="project_contacts" />
|
|
|
+ <result property="investHead" column="invest_head" />
|
|
|
+ <result property="previousFinancing" column="previous_financing" />
|
|
|
+ <result property="financingStage" column="financing_stage" />
|
|
|
+ <result property="financingCondition" column="financing_condition" />
|
|
|
+ <result property="financingMoney" column="financing_money" />
|
|
|
+ <result property="financingDate" column="financing_date" />
|
|
|
+ <result property="investSparkle" column="invest_sparkle" />
|
|
|
+ <result property="investValuation" column="invest_valuation" />
|
|
|
+ <result property="investMoney" column="invest_money" />
|
|
|
+ <result property="investType" column="invest_type" />
|
|
|
+ <result property="investPloy" column="invest_ploy" />
|
|
|
+ <result property="investWorth" column="invest_worth" />
|
|
|
+ <result property="shareholding" column="shareholding" />
|
|
|
+ <result property="projectStage" column="project_stage" />
|
|
|
+ <result property="projectState" column="project_state" />
|
|
|
+ <result property="mark" column="mark" />
|
|
|
+ <result property="delFlag" column="del_flag" />
|
|
|
+ <result property="createBy" column="create_by" />
|
|
|
+ <result property="createTime" column="create_time" />
|
|
|
+ <result property="updateBy" column="update_by" />
|
|
|
+ <result property="updateTime" column="update_time" />
|
|
|
+ </resultMap>
|
|
|
+
|
|
|
+ <sql id="selectTProjectPoolVo">
|
|
|
+ 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
|
|
|
+ </sql>
|
|
|
+
|
|
|
+ <select id="selectTProjectPoolList" parameterType="TProjectPool" resultMap="TProjectPoolResult">
|
|
|
+ <include refid="selectTProjectPoolVo"/>
|
|
|
+ <where>
|
|
|
+ <if test="porjectName != null and porjectName != ''"> and porject_name like concat('%', #{porjectName}, '%')</if>
|
|
|
+ <if test="porjectGroup != null and porjectGroup != ''"> and porject_group = #{porjectGroup}</if>
|
|
|
+ <if test="porjectCode != null and porjectCode != ''"> and porject_code = #{porjectCode}</if>
|
|
|
+ <if test="channel != null and channel != ''"> and channel = #{channel}</if>
|
|
|
+ <if test="contactDate != null "> and contact_date = #{contactDate}</if>
|
|
|
+ <if test="projectDate != null "> and project_date = #{projectDate}</if>
|
|
|
+ <if test="decisionDate != null "> and decision_date = #{decisionDate}</if>
|
|
|
+ <if test="industry != null and industry != ''"> and industry = #{industry}</if>
|
|
|
+ <if test="company != null and company != ''"> and company = #{company}</if>
|
|
|
+ <if test="projectContacts != null and projectContacts != ''"> and project_contacts = #{projectContacts}</if>
|
|
|
+ <if test="investHead != null and investHead != ''"> and invest_head = #{investHead}</if>
|
|
|
+ <if test="previousFinancing != null and previousFinancing != ''"> and previous_financing = #{previousFinancing}</if>
|
|
|
+ <if test="financingStage != null and financingStage != ''"> and financing_stage = #{financingStage}</if>
|
|
|
+ <if test="financingMoney != null and financingMoney != ''"> and financing_money = #{financingMoney}</if>
|
|
|
+ <if test="financingDate != null "> and financing_date = #{financingDate}</if>
|
|
|
+ <if test="investValuation != null and investValuation != ''"> and invest_valuation = #{investValuation}</if>
|
|
|
+ <if test="investMoney != null and investMoney != ''"> and invest_money = #{investMoney}</if>
|
|
|
+ <if test="investType != null and investType != ''"> and invest_type = #{investType}</if>
|
|
|
+ <if test="investPloy != null and investPloy != ''"> and invest_ploy = #{investPloy}</if>
|
|
|
+ <if test="investWorth != null and investWorth != ''"> and invest_worth = #{investWorth}</if>
|
|
|
+ <if test="projectStage != null and projectStage != ''"> and project_stage = #{projectStage}</if>
|
|
|
+ <if test="projectState != null and projectState != ''"> and project_state = #{projectState}</if>
|
|
|
+ </where>
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="selectTProjectPoolById" parameterType="String" resultMap="TProjectPoolResult">
|
|
|
+ <include refid="selectTProjectPoolVo"/>
|
|
|
+ where id = #{id}
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <insert id="insertTProjectPool" parameterType="TProjectPool">
|
|
|
+ insert into t_project_pool
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="id != null">id,</if>
|
|
|
+ <if test="porjectName != null">porject_name,</if>
|
|
|
+ <if test="porjectGroup != null">porject_group,</if>
|
|
|
+ <if test="recordDate != null">record_date,</if>
|
|
|
+ <if test="porjectCode != null">porject_code,</if>
|
|
|
+ <if test="channel != null">channel,</if>
|
|
|
+ <if test="contactDate != null">contact_date,</if>
|
|
|
+ <if test="projectDate != null">project_date,</if>
|
|
|
+ <if test="decisionDate != null">decision_date,</if>
|
|
|
+ <if test="industry != null">industry,</if>
|
|
|
+ <if test="company != null">company,</if>
|
|
|
+ <if test="description != null">description,</if>
|
|
|
+ <if test="projectContacts != null">project_contacts,</if>
|
|
|
+ <if test="investHead != null">invest_head,</if>
|
|
|
+ <if test="previousFinancing != null">previous_financing,</if>
|
|
|
+ <if test="financingStage != null">financing_stage,</if>
|
|
|
+ <if test="financingCondition != null">financing_condition,</if>
|
|
|
+ <if test="financingMoney != null">financing_money,</if>
|
|
|
+ <if test="financingDate != null">financing_date,</if>
|
|
|
+ <if test="investSparkle != null">invest_sparkle,</if>
|
|
|
+ <if test="investValuation != null">invest_valuation,</if>
|
|
|
+ <if test="investMoney != null">invest_money,</if>
|
|
|
+ <if test="investType != null">invest_type,</if>
|
|
|
+ <if test="investPloy != null">invest_ploy,</if>
|
|
|
+ <if test="investWorth != null">invest_worth,</if>
|
|
|
+ <if test="shareholding != null">shareholding,</if>
|
|
|
+ <if test="projectStage != null">project_stage,</if>
|
|
|
+ <if test="projectState != null">project_state,</if>
|
|
|
+ <if test="mark != null">mark,</if>
|
|
|
+ <if test="delFlag != null">del_flag,</if>
|
|
|
+ <if test="createBy != null">create_by,</if>
|
|
|
+ <if test="createTime != null">create_time,</if>
|
|
|
+ <if test="updateBy != null">update_by,</if>
|
|
|
+ <if test="updateTime != null">update_time,</if>
|
|
|
+ </trim>
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="id != null">#{id},</if>
|
|
|
+ <if test="porjectName != null">#{porjectName},</if>
|
|
|
+ <if test="porjectGroup != null">#{porjectGroup},</if>
|
|
|
+ <if test="recordDate != null">#{recordDate},</if>
|
|
|
+ <if test="porjectCode != null">#{porjectCode},</if>
|
|
|
+ <if test="channel != null">#{channel},</if>
|
|
|
+ <if test="contactDate != null">#{contactDate},</if>
|
|
|
+ <if test="projectDate != null">#{projectDate},</if>
|
|
|
+ <if test="decisionDate != null">#{decisionDate},</if>
|
|
|
+ <if test="industry != null">#{industry},</if>
|
|
|
+ <if test="company != null">#{company},</if>
|
|
|
+ <if test="description != null">#{description},</if>
|
|
|
+ <if test="projectContacts != null">#{projectContacts},</if>
|
|
|
+ <if test="investHead != null">#{investHead},</if>
|
|
|
+ <if test="previousFinancing != null">#{previousFinancing},</if>
|
|
|
+ <if test="financingStage != null">#{financingStage},</if>
|
|
|
+ <if test="financingCondition != null">#{financingCondition},</if>
|
|
|
+ <if test="financingMoney != null">#{financingMoney},</if>
|
|
|
+ <if test="financingDate != null">#{financingDate},</if>
|
|
|
+ <if test="investSparkle != null">#{investSparkle},</if>
|
|
|
+ <if test="investValuation != null">#{investValuation},</if>
|
|
|
+ <if test="investMoney != null">#{investMoney},</if>
|
|
|
+ <if test="investType != null">#{investType},</if>
|
|
|
+ <if test="investPloy != null">#{investPloy},</if>
|
|
|
+ <if test="investWorth != null">#{investWorth},</if>
|
|
|
+ <if test="shareholding != null">#{shareholding},</if>
|
|
|
+ <if test="projectStage != null">#{projectStage},</if>
|
|
|
+ <if test="projectState != null">#{projectState},</if>
|
|
|
+ <if test="mark != null">#{mark},</if>
|
|
|
+ <if test="delFlag != null">#{delFlag},</if>
|
|
|
+ <if test="createBy != null">#{createBy},</if>
|
|
|
+ <if test="createTime != null">#{createTime},</if>
|
|
|
+ <if test="updateBy != null">#{updateBy},</if>
|
|
|
+ <if test="updateTime != null">#{updateTime},</if>
|
|
|
+ </trim>
|
|
|
+ </insert>
|
|
|
+
|
|
|
+ <update id="updateTProjectPool" parameterType="TProjectPool">
|
|
|
+ update t_project_pool
|
|
|
+ <trim prefix="SET" suffixOverrides=",">
|
|
|
+ <if test="porjectName != null">porject_name = #{porjectName},</if>
|
|
|
+ <if test="porjectGroup != null">porject_group = #{porjectGroup},</if>
|
|
|
+ <if test="recordDate != null">record_date = #{recordDate},</if>
|
|
|
+ <if test="porjectCode != null">porject_code = #{porjectCode},</if>
|
|
|
+ <if test="channel != null">channel = #{channel},</if>
|
|
|
+ <if test="contactDate != null">contact_date = #{contactDate},</if>
|
|
|
+ <if test="projectDate != null">project_date = #{projectDate},</if>
|
|
|
+ <if test="decisionDate != null">decision_date = #{decisionDate},</if>
|
|
|
+ <if test="industry != null">industry = #{industry},</if>
|
|
|
+ <if test="company != null">company = #{company},</if>
|
|
|
+ <if test="description != null">description = #{description},</if>
|
|
|
+ <if test="projectContacts != null">project_contacts = #{projectContacts},</if>
|
|
|
+ <if test="investHead != null">invest_head = #{investHead},</if>
|
|
|
+ <if test="previousFinancing != null">previous_financing = #{previousFinancing},</if>
|
|
|
+ <if test="financingStage != null">financing_stage = #{financingStage},</if>
|
|
|
+ <if test="financingCondition != null">financing_condition = #{financingCondition},</if>
|
|
|
+ <if test="financingMoney != null">financing_money = #{financingMoney},</if>
|
|
|
+ <if test="financingDate != null">financing_date = #{financingDate},</if>
|
|
|
+ <if test="investSparkle != null">invest_sparkle = #{investSparkle},</if>
|
|
|
+ <if test="investValuation != null">invest_valuation = #{investValuation},</if>
|
|
|
+ <if test="investMoney != null">invest_money = #{investMoney},</if>
|
|
|
+ <if test="investType != null">invest_type = #{investType},</if>
|
|
|
+ <if test="investPloy != null">invest_ploy = #{investPloy},</if>
|
|
|
+ <if test="investWorth != null">invest_worth = #{investWorth},</if>
|
|
|
+ <if test="shareholding != null">shareholding = #{shareholding},</if>
|
|
|
+ <if test="projectStage != null">project_stage = #{projectStage},</if>
|
|
|
+ <if test="projectState != null">project_state = #{projectState},</if>
|
|
|
+ <if test="mark != null">mark = #{mark},</if>
|
|
|
+ <if test="delFlag != null">del_flag = #{delFlag},</if>
|
|
|
+ <if test="createBy != null">create_by = #{createBy},</if>
|
|
|
+ <if test="createTime != null">create_time = #{createTime},</if>
|
|
|
+ <if test="updateBy != null">update_by = #{updateBy},</if>
|
|
|
+ <if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
+ </trim>
|
|
|
+ where id = #{id}
|
|
|
+ </update>
|
|
|
+
|
|
|
+ <delete id="deleteTProjectPoolById" parameterType="String">
|
|
|
+ delete from t_project_pool where id = #{id}
|
|
|
+ </delete>
|
|
|
+
|
|
|
+ <delete id="deleteTProjectPoolByIds" parameterType="String">
|
|
|
+ delete from t_project_pool where id in
|
|
|
+ <foreach item="id" collection="array" open="(" separator="," close=")">
|
|
|
+ #{id}
|
|
|
+ </foreach>
|
|
|
+ </delete>
|
|
|
+</mapper>
|