|
|
|
@ -208,625 +208,4 @@
|
|
|
|
|
license_date = #{licenseDate,jdbcType=VARCHAR}
|
|
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
|
|
</update>
|
|
|
|
|
<resultMap id="BaseResultMap" type="com.sztzjy.fund_investment.entity.ProManaSituLicense">
|
|
|
|
|
<id column="id" jdbcType="VARCHAR" property="id" />
|
|
|
|
|
<result column="project_pool_id" jdbcType="VARCHAR" property="projectPoolId" />
|
|
|
|
|
<result column="written_decision_num" jdbcType="VARCHAR" property="writtenDecisionNum" />
|
|
|
|
|
<result column="organization" jdbcType="VARCHAR" property="organization" />
|
|
|
|
|
<result column="license_date" jdbcType="VARCHAR" property="licenseDate" />
|
|
|
|
|
</resultMap>
|
|
|
|
|
<sql id="Example_Where_Clause">
|
|
|
|
|
<where>
|
|
|
|
|
<foreach collection="oredCriteria" item="criteria" separator="or">
|
|
|
|
|
<if test="criteria.valid">
|
|
|
|
|
<trim prefix="(" prefixOverrides="and" suffix=")">
|
|
|
|
|
<foreach collection="criteria.criteria" item="criterion">
|
|
|
|
|
<choose>
|
|
|
|
|
<when test="criterion.noValue">
|
|
|
|
|
and ${criterion.condition}
|
|
|
|
|
</when>
|
|
|
|
|
<when test="criterion.singleValue">
|
|
|
|
|
and ${criterion.condition} #{criterion.value}
|
|
|
|
|
</when>
|
|
|
|
|
<when test="criterion.betweenValue">
|
|
|
|
|
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
|
|
|
|
</when>
|
|
|
|
|
<when test="criterion.listValue">
|
|
|
|
|
and ${criterion.condition}
|
|
|
|
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
|
|
|
|
#{listItem}
|
|
|
|
|
</foreach>
|
|
|
|
|
</when>
|
|
|
|
|
</choose>
|
|
|
|
|
</foreach>
|
|
|
|
|
</trim>
|
|
|
|
|
</if>
|
|
|
|
|
</foreach>
|
|
|
|
|
</where>
|
|
|
|
|
</sql>
|
|
|
|
|
<sql id="Update_By_Example_Where_Clause">
|
|
|
|
|
<where>
|
|
|
|
|
<foreach collection="example.oredCriteria" item="criteria" separator="or">
|
|
|
|
|
<if test="criteria.valid">
|
|
|
|
|
<trim prefix="(" prefixOverrides="and" suffix=")">
|
|
|
|
|
<foreach collection="criteria.criteria" item="criterion">
|
|
|
|
|
<choose>
|
|
|
|
|
<when test="criterion.noValue">
|
|
|
|
|
and ${criterion.condition}
|
|
|
|
|
</when>
|
|
|
|
|
<when test="criterion.singleValue">
|
|
|
|
|
and ${criterion.condition} #{criterion.value}
|
|
|
|
|
</when>
|
|
|
|
|
<when test="criterion.betweenValue">
|
|
|
|
|
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
|
|
|
|
</when>
|
|
|
|
|
<when test="criterion.listValue">
|
|
|
|
|
and ${criterion.condition}
|
|
|
|
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
|
|
|
|
#{listItem}
|
|
|
|
|
</foreach>
|
|
|
|
|
</when>
|
|
|
|
|
</choose>
|
|
|
|
|
</foreach>
|
|
|
|
|
</trim>
|
|
|
|
|
</if>
|
|
|
|
|
</foreach>
|
|
|
|
|
</where>
|
|
|
|
|
</sql>
|
|
|
|
|
<sql id="Base_Column_List">
|
|
|
|
|
id, project_pool_id, written_decision_num, organization, license_date
|
|
|
|
|
</sql>
|
|
|
|
|
<select id="selectByExample" parameterType="com.sztzjy.fund_investment.entity.ProManaSituLicenseExample" resultMap="BaseResultMap">
|
|
|
|
|
select
|
|
|
|
|
<if test="distinct">
|
|
|
|
|
distinct
|
|
|
|
|
</if>
|
|
|
|
|
<include refid="Base_Column_List" />
|
|
|
|
|
from pro_mana_situ_license
|
|
|
|
|
<if test="_parameter != null">
|
|
|
|
|
<include refid="Example_Where_Clause" />
|
|
|
|
|
</if>
|
|
|
|
|
<if test="orderByClause != null">
|
|
|
|
|
order by ${orderByClause}
|
|
|
|
|
</if>
|
|
|
|
|
</select>
|
|
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
|
|
select
|
|
|
|
|
<include refid="Base_Column_List" />
|
|
|
|
|
from pro_mana_situ_license
|
|
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
|
|
</select>
|
|
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
|
|
|
|
delete from pro_mana_situ_license
|
|
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
|
|
</delete>
|
|
|
|
|
<delete id="deleteByExample" parameterType="com.sztzjy.fund_investment.entity.ProManaSituLicenseExample">
|
|
|
|
|
delete from pro_mana_situ_license
|
|
|
|
|
<if test="_parameter != null">
|
|
|
|
|
<include refid="Example_Where_Clause" />
|
|
|
|
|
</if>
|
|
|
|
|
</delete>
|
|
|
|
|
<insert id="insert" parameterType="com.sztzjy.fund_investment.entity.ProManaSituLicense">
|
|
|
|
|
insert into pro_mana_situ_license (id, project_pool_id, written_decision_num,
|
|
|
|
|
organization, license_date)
|
|
|
|
|
values (#{id,jdbcType=VARCHAR}, #{projectPoolId,jdbcType=VARCHAR}, #{writtenDecisionNum,jdbcType=VARCHAR},
|
|
|
|
|
#{organization,jdbcType=VARCHAR}, #{licenseDate,jdbcType=VARCHAR})
|
|
|
|
|
</insert>
|
|
|
|
|
<insert id="insertSelective" parameterType="com.sztzjy.fund_investment.entity.ProManaSituLicense">
|
|
|
|
|
insert into pro_mana_situ_license
|
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="id != null">
|
|
|
|
|
id,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="projectPoolId != null">
|
|
|
|
|
project_pool_id,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="writtenDecisionNum != null">
|
|
|
|
|
written_decision_num,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="organization != null">
|
|
|
|
|
organization,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="licenseDate != null">
|
|
|
|
|
license_date,
|
|
|
|
|
</if>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="id != null">
|
|
|
|
|
#{id,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="projectPoolId != null">
|
|
|
|
|
#{projectPoolId,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="writtenDecisionNum != null">
|
|
|
|
|
#{writtenDecisionNum,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="organization != null">
|
|
|
|
|
#{organization,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="licenseDate != null">
|
|
|
|
|
#{licenseDate,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
</trim>
|
|
|
|
|
</insert>
|
|
|
|
|
<select id="countByExample" parameterType="com.sztzjy.fund_investment.entity.ProManaSituLicenseExample" resultType="java.lang.Long">
|
|
|
|
|
select count(*) from pro_mana_situ_license
|
|
|
|
|
<if test="_parameter != null">
|
|
|
|
|
<include refid="Example_Where_Clause" />
|
|
|
|
|
</if>
|
|
|
|
|
</select>
|
|
|
|
|
<update id="updateByExampleSelective" parameterType="map">
|
|
|
|
|
update pro_mana_situ_license
|
|
|
|
|
<set>
|
|
|
|
|
<if test="record.id != null">
|
|
|
|
|
id = #{record.id,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.projectPoolId != null">
|
|
|
|
|
project_pool_id = #{record.projectPoolId,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.writtenDecisionNum != null">
|
|
|
|
|
written_decision_num = #{record.writtenDecisionNum,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.organization != null">
|
|
|
|
|
organization = #{record.organization,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.licenseDate != null">
|
|
|
|
|
license_date = #{record.licenseDate,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
</set>
|
|
|
|
|
<if test="_parameter != null">
|
|
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
|
|
</if>
|
|
|
|
|
</update>
|
|
|
|
|
<update id="updateByExample" parameterType="map">
|
|
|
|
|
update pro_mana_situ_license
|
|
|
|
|
set id = #{record.id,jdbcType=VARCHAR},
|
|
|
|
|
project_pool_id = #{record.projectPoolId,jdbcType=VARCHAR},
|
|
|
|
|
written_decision_num = #{record.writtenDecisionNum,jdbcType=VARCHAR},
|
|
|
|
|
organization = #{record.organization,jdbcType=VARCHAR},
|
|
|
|
|
license_date = #{record.licenseDate,jdbcType=VARCHAR}
|
|
|
|
|
<if test="_parameter != null">
|
|
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
|
|
</if>
|
|
|
|
|
</update>
|
|
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.sztzjy.fund_investment.entity.ProManaSituLicense">
|
|
|
|
|
update pro_mana_situ_license
|
|
|
|
|
<set>
|
|
|
|
|
<if test="projectPoolId != null">
|
|
|
|
|
project_pool_id = #{projectPoolId,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="writtenDecisionNum != null">
|
|
|
|
|
written_decision_num = #{writtenDecisionNum,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="organization != null">
|
|
|
|
|
organization = #{organization,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="licenseDate != null">
|
|
|
|
|
license_date = #{licenseDate,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
</set>
|
|
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
|
|
</update>
|
|
|
|
|
<update id="updateByPrimaryKey" parameterType="com.sztzjy.fund_investment.entity.ProManaSituLicense">
|
|
|
|
|
update pro_mana_situ_license
|
|
|
|
|
set project_pool_id = #{projectPoolId,jdbcType=VARCHAR},
|
|
|
|
|
written_decision_num = #{writtenDecisionNum,jdbcType=VARCHAR},
|
|
|
|
|
organization = #{organization,jdbcType=VARCHAR},
|
|
|
|
|
license_date = #{licenseDate,jdbcType=VARCHAR}
|
|
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
|
|
</update>
|
|
|
|
|
<resultMap id="BaseResultMap" type="com.sztzjy.fund_investment.entity.ProManaSituLicense">
|
|
|
|
|
<id column="id" jdbcType="VARCHAR" property="id" />
|
|
|
|
|
<result column="project_pool_id" jdbcType="VARCHAR" property="projectPoolId" />
|
|
|
|
|
<result column="written_decision_num" jdbcType="VARCHAR" property="writtenDecisionNum" />
|
|
|
|
|
<result column="organization" jdbcType="VARCHAR" property="organization" />
|
|
|
|
|
<result column="license_date" jdbcType="VARCHAR" property="licenseDate" />
|
|
|
|
|
</resultMap>
|
|
|
|
|
<sql id="Example_Where_Clause">
|
|
|
|
|
<where>
|
|
|
|
|
<foreach collection="oredCriteria" item="criteria" separator="or">
|
|
|
|
|
<if test="criteria.valid">
|
|
|
|
|
<trim prefix="(" prefixOverrides="and" suffix=")">
|
|
|
|
|
<foreach collection="criteria.criteria" item="criterion">
|
|
|
|
|
<choose>
|
|
|
|
|
<when test="criterion.noValue">
|
|
|
|
|
and ${criterion.condition}
|
|
|
|
|
</when>
|
|
|
|
|
<when test="criterion.singleValue">
|
|
|
|
|
and ${criterion.condition} #{criterion.value}
|
|
|
|
|
</when>
|
|
|
|
|
<when test="criterion.betweenValue">
|
|
|
|
|
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
|
|
|
|
</when>
|
|
|
|
|
<when test="criterion.listValue">
|
|
|
|
|
and ${criterion.condition}
|
|
|
|
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
|
|
|
|
#{listItem}
|
|
|
|
|
</foreach>
|
|
|
|
|
</when>
|
|
|
|
|
</choose>
|
|
|
|
|
</foreach>
|
|
|
|
|
</trim>
|
|
|
|
|
</if>
|
|
|
|
|
</foreach>
|
|
|
|
|
</where>
|
|
|
|
|
</sql>
|
|
|
|
|
<sql id="Update_By_Example_Where_Clause">
|
|
|
|
|
<where>
|
|
|
|
|
<foreach collection="example.oredCriteria" item="criteria" separator="or">
|
|
|
|
|
<if test="criteria.valid">
|
|
|
|
|
<trim prefix="(" prefixOverrides="and" suffix=")">
|
|
|
|
|
<foreach collection="criteria.criteria" item="criterion">
|
|
|
|
|
<choose>
|
|
|
|
|
<when test="criterion.noValue">
|
|
|
|
|
and ${criterion.condition}
|
|
|
|
|
</when>
|
|
|
|
|
<when test="criterion.singleValue">
|
|
|
|
|
and ${criterion.condition} #{criterion.value}
|
|
|
|
|
</when>
|
|
|
|
|
<when test="criterion.betweenValue">
|
|
|
|
|
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
|
|
|
|
</when>
|
|
|
|
|
<when test="criterion.listValue">
|
|
|
|
|
and ${criterion.condition}
|
|
|
|
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
|
|
|
|
#{listItem}
|
|
|
|
|
</foreach>
|
|
|
|
|
</when>
|
|
|
|
|
</choose>
|
|
|
|
|
</foreach>
|
|
|
|
|
</trim>
|
|
|
|
|
</if>
|
|
|
|
|
</foreach>
|
|
|
|
|
</where>
|
|
|
|
|
</sql>
|
|
|
|
|
<sql id="Base_Column_List">
|
|
|
|
|
id, project_pool_id, written_decision_num, organization, license_date
|
|
|
|
|
</sql>
|
|
|
|
|
<select id="selectByExample" parameterType="com.sztzjy.fund_investment.entity.ProManaSituLicenseExample" resultMap="BaseResultMap">
|
|
|
|
|
select
|
|
|
|
|
<if test="distinct">
|
|
|
|
|
distinct
|
|
|
|
|
</if>
|
|
|
|
|
<include refid="Base_Column_List" />
|
|
|
|
|
from pro_mana_situ_license
|
|
|
|
|
<if test="_parameter != null">
|
|
|
|
|
<include refid="Example_Where_Clause" />
|
|
|
|
|
</if>
|
|
|
|
|
<if test="orderByClause != null">
|
|
|
|
|
order by ${orderByClause}
|
|
|
|
|
</if>
|
|
|
|
|
</select>
|
|
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
|
|
select
|
|
|
|
|
<include refid="Base_Column_List" />
|
|
|
|
|
from pro_mana_situ_license
|
|
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
|
|
</select>
|
|
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
|
|
|
|
delete from pro_mana_situ_license
|
|
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
|
|
</delete>
|
|
|
|
|
<delete id="deleteByExample" parameterType="com.sztzjy.fund_investment.entity.ProManaSituLicenseExample">
|
|
|
|
|
delete from pro_mana_situ_license
|
|
|
|
|
<if test="_parameter != null">
|
|
|
|
|
<include refid="Example_Where_Clause" />
|
|
|
|
|
</if>
|
|
|
|
|
</delete>
|
|
|
|
|
<insert id="insert" parameterType="com.sztzjy.fund_investment.entity.ProManaSituLicense">
|
|
|
|
|
insert into pro_mana_situ_license (id, project_pool_id, written_decision_num,
|
|
|
|
|
organization, license_date)
|
|
|
|
|
values (#{id,jdbcType=VARCHAR}, #{projectPoolId,jdbcType=VARCHAR}, #{writtenDecisionNum,jdbcType=VARCHAR},
|
|
|
|
|
#{organization,jdbcType=VARCHAR}, #{licenseDate,jdbcType=VARCHAR})
|
|
|
|
|
</insert>
|
|
|
|
|
<insert id="insertSelective" parameterType="com.sztzjy.fund_investment.entity.ProManaSituLicense">
|
|
|
|
|
insert into pro_mana_situ_license
|
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="id != null">
|
|
|
|
|
id,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="projectPoolId != null">
|
|
|
|
|
project_pool_id,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="writtenDecisionNum != null">
|
|
|
|
|
written_decision_num,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="organization != null">
|
|
|
|
|
organization,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="licenseDate != null">
|
|
|
|
|
license_date,
|
|
|
|
|
</if>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="id != null">
|
|
|
|
|
#{id,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="projectPoolId != null">
|
|
|
|
|
#{projectPoolId,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="writtenDecisionNum != null">
|
|
|
|
|
#{writtenDecisionNum,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="organization != null">
|
|
|
|
|
#{organization,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="licenseDate != null">
|
|
|
|
|
#{licenseDate,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
</trim>
|
|
|
|
|
</insert>
|
|
|
|
|
<select id="countByExample" parameterType="com.sztzjy.fund_investment.entity.ProManaSituLicenseExample" resultType="java.lang.Long">
|
|
|
|
|
select count(*) from pro_mana_situ_license
|
|
|
|
|
<if test="_parameter != null">
|
|
|
|
|
<include refid="Example_Where_Clause" />
|
|
|
|
|
</if>
|
|
|
|
|
</select>
|
|
|
|
|
<update id="updateByExampleSelective" parameterType="map">
|
|
|
|
|
update pro_mana_situ_license
|
|
|
|
|
<set>
|
|
|
|
|
<if test="record.id != null">
|
|
|
|
|
id = #{record.id,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.projectPoolId != null">
|
|
|
|
|
project_pool_id = #{record.projectPoolId,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.writtenDecisionNum != null">
|
|
|
|
|
written_decision_num = #{record.writtenDecisionNum,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.organization != null">
|
|
|
|
|
organization = #{record.organization,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.licenseDate != null">
|
|
|
|
|
license_date = #{record.licenseDate,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
</set>
|
|
|
|
|
<if test="_parameter != null">
|
|
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
|
|
</if>
|
|
|
|
|
</update>
|
|
|
|
|
<update id="updateByExample" parameterType="map">
|
|
|
|
|
update pro_mana_situ_license
|
|
|
|
|
set id = #{record.id,jdbcType=VARCHAR},
|
|
|
|
|
project_pool_id = #{record.projectPoolId,jdbcType=VARCHAR},
|
|
|
|
|
written_decision_num = #{record.writtenDecisionNum,jdbcType=VARCHAR},
|
|
|
|
|
organization = #{record.organization,jdbcType=VARCHAR},
|
|
|
|
|
license_date = #{record.licenseDate,jdbcType=VARCHAR}
|
|
|
|
|
<if test="_parameter != null">
|
|
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
|
|
</if>
|
|
|
|
|
</update>
|
|
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.sztzjy.fund_investment.entity.ProManaSituLicense">
|
|
|
|
|
update pro_mana_situ_license
|
|
|
|
|
<set>
|
|
|
|
|
<if test="projectPoolId != null">
|
|
|
|
|
project_pool_id = #{projectPoolId,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="writtenDecisionNum != null">
|
|
|
|
|
written_decision_num = #{writtenDecisionNum,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="organization != null">
|
|
|
|
|
organization = #{organization,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="licenseDate != null">
|
|
|
|
|
license_date = #{licenseDate,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
</set>
|
|
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
|
|
</update>
|
|
|
|
|
<update id="updateByPrimaryKey" parameterType="com.sztzjy.fund_investment.entity.ProManaSituLicense">
|
|
|
|
|
update pro_mana_situ_license
|
|
|
|
|
set project_pool_id = #{projectPoolId,jdbcType=VARCHAR},
|
|
|
|
|
written_decision_num = #{writtenDecisionNum,jdbcType=VARCHAR},
|
|
|
|
|
organization = #{organization,jdbcType=VARCHAR},
|
|
|
|
|
license_date = #{licenseDate,jdbcType=VARCHAR}
|
|
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
|
|
</update>
|
|
|
|
|
<resultMap id="BaseResultMap" type="com.sztzjy.fund_investment.entity.ProManaSituLicense">
|
|
|
|
|
<id column="id" jdbcType="VARCHAR" property="id" />
|
|
|
|
|
<result column="project_pool_id" jdbcType="VARCHAR" property="projectPoolId" />
|
|
|
|
|
<result column="written_decision_num" jdbcType="VARCHAR" property="writtenDecisionNum" />
|
|
|
|
|
<result column="organization" jdbcType="VARCHAR" property="organization" />
|
|
|
|
|
<result column="license_date" jdbcType="VARCHAR" property="licenseDate" />
|
|
|
|
|
</resultMap>
|
|
|
|
|
<sql id="Example_Where_Clause">
|
|
|
|
|
<where>
|
|
|
|
|
<foreach collection="oredCriteria" item="criteria" separator="or">
|
|
|
|
|
<if test="criteria.valid">
|
|
|
|
|
<trim prefix="(" prefixOverrides="and" suffix=")">
|
|
|
|
|
<foreach collection="criteria.criteria" item="criterion">
|
|
|
|
|
<choose>
|
|
|
|
|
<when test="criterion.noValue">
|
|
|
|
|
and ${criterion.condition}
|
|
|
|
|
</when>
|
|
|
|
|
<when test="criterion.singleValue">
|
|
|
|
|
and ${criterion.condition} #{criterion.value}
|
|
|
|
|
</when>
|
|
|
|
|
<when test="criterion.betweenValue">
|
|
|
|
|
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
|
|
|
|
</when>
|
|
|
|
|
<when test="criterion.listValue">
|
|
|
|
|
and ${criterion.condition}
|
|
|
|
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
|
|
|
|
#{listItem}
|
|
|
|
|
</foreach>
|
|
|
|
|
</when>
|
|
|
|
|
</choose>
|
|
|
|
|
</foreach>
|
|
|
|
|
</trim>
|
|
|
|
|
</if>
|
|
|
|
|
</foreach>
|
|
|
|
|
</where>
|
|
|
|
|
</sql>
|
|
|
|
|
<sql id="Update_By_Example_Where_Clause">
|
|
|
|
|
<where>
|
|
|
|
|
<foreach collection="example.oredCriteria" item="criteria" separator="or">
|
|
|
|
|
<if test="criteria.valid">
|
|
|
|
|
<trim prefix="(" prefixOverrides="and" suffix=")">
|
|
|
|
|
<foreach collection="criteria.criteria" item="criterion">
|
|
|
|
|
<choose>
|
|
|
|
|
<when test="criterion.noValue">
|
|
|
|
|
and ${criterion.condition}
|
|
|
|
|
</when>
|
|
|
|
|
<when test="criterion.singleValue">
|
|
|
|
|
and ${criterion.condition} #{criterion.value}
|
|
|
|
|
</when>
|
|
|
|
|
<when test="criterion.betweenValue">
|
|
|
|
|
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
|
|
|
|
</when>
|
|
|
|
|
<when test="criterion.listValue">
|
|
|
|
|
and ${criterion.condition}
|
|
|
|
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
|
|
|
|
#{listItem}
|
|
|
|
|
</foreach>
|
|
|
|
|
</when>
|
|
|
|
|
</choose>
|
|
|
|
|
</foreach>
|
|
|
|
|
</trim>
|
|
|
|
|
</if>
|
|
|
|
|
</foreach>
|
|
|
|
|
</where>
|
|
|
|
|
</sql>
|
|
|
|
|
<sql id="Base_Column_List">
|
|
|
|
|
id, project_pool_id, written_decision_num, organization, license_date
|
|
|
|
|
</sql>
|
|
|
|
|
<select id="selectByExample" parameterType="com.sztzjy.fund_investment.entity.ProManaSituLicenseExample" resultMap="BaseResultMap">
|
|
|
|
|
select
|
|
|
|
|
<if test="distinct">
|
|
|
|
|
distinct
|
|
|
|
|
</if>
|
|
|
|
|
<include refid="Base_Column_List" />
|
|
|
|
|
from pro_mana_situ_license
|
|
|
|
|
<if test="_parameter != null">
|
|
|
|
|
<include refid="Example_Where_Clause" />
|
|
|
|
|
</if>
|
|
|
|
|
<if test="orderByClause != null">
|
|
|
|
|
order by ${orderByClause}
|
|
|
|
|
</if>
|
|
|
|
|
</select>
|
|
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
|
|
select
|
|
|
|
|
<include refid="Base_Column_List" />
|
|
|
|
|
from pro_mana_situ_license
|
|
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
|
|
</select>
|
|
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
|
|
|
|
delete from pro_mana_situ_license
|
|
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
|
|
</delete>
|
|
|
|
|
<delete id="deleteByExample" parameterType="com.sztzjy.fund_investment.entity.ProManaSituLicenseExample">
|
|
|
|
|
delete from pro_mana_situ_license
|
|
|
|
|
<if test="_parameter != null">
|
|
|
|
|
<include refid="Example_Where_Clause" />
|
|
|
|
|
</if>
|
|
|
|
|
</delete>
|
|
|
|
|
<insert id="insert" parameterType="com.sztzjy.fund_investment.entity.ProManaSituLicense">
|
|
|
|
|
insert into pro_mana_situ_license (id, project_pool_id, written_decision_num,
|
|
|
|
|
organization, license_date)
|
|
|
|
|
values (#{id,jdbcType=VARCHAR}, #{projectPoolId,jdbcType=VARCHAR}, #{writtenDecisionNum,jdbcType=VARCHAR},
|
|
|
|
|
#{organization,jdbcType=VARCHAR}, #{licenseDate,jdbcType=VARCHAR})
|
|
|
|
|
</insert>
|
|
|
|
|
<insert id="insertSelective" parameterType="com.sztzjy.fund_investment.entity.ProManaSituLicense">
|
|
|
|
|
insert into pro_mana_situ_license
|
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="id != null">
|
|
|
|
|
id,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="projectPoolId != null">
|
|
|
|
|
project_pool_id,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="writtenDecisionNum != null">
|
|
|
|
|
written_decision_num,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="organization != null">
|
|
|
|
|
organization,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="licenseDate != null">
|
|
|
|
|
license_date,
|
|
|
|
|
</if>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="id != null">
|
|
|
|
|
#{id,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="projectPoolId != null">
|
|
|
|
|
#{projectPoolId,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="writtenDecisionNum != null">
|
|
|
|
|
#{writtenDecisionNum,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="organization != null">
|
|
|
|
|
#{organization,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="licenseDate != null">
|
|
|
|
|
#{licenseDate,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
</trim>
|
|
|
|
|
</insert>
|
|
|
|
|
<select id="countByExample" parameterType="com.sztzjy.fund_investment.entity.ProManaSituLicenseExample" resultType="java.lang.Long">
|
|
|
|
|
select count(*) from pro_mana_situ_license
|
|
|
|
|
<if test="_parameter != null">
|
|
|
|
|
<include refid="Example_Where_Clause" />
|
|
|
|
|
</if>
|
|
|
|
|
</select>
|
|
|
|
|
<update id="updateByExampleSelective" parameterType="map">
|
|
|
|
|
update pro_mana_situ_license
|
|
|
|
|
<set>
|
|
|
|
|
<if test="record.id != null">
|
|
|
|
|
id = #{record.id,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.projectPoolId != null">
|
|
|
|
|
project_pool_id = #{record.projectPoolId,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.writtenDecisionNum != null">
|
|
|
|
|
written_decision_num = #{record.writtenDecisionNum,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.organization != null">
|
|
|
|
|
organization = #{record.organization,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.licenseDate != null">
|
|
|
|
|
license_date = #{record.licenseDate,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
</set>
|
|
|
|
|
<if test="_parameter != null">
|
|
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
|
|
</if>
|
|
|
|
|
</update>
|
|
|
|
|
<update id="updateByExample" parameterType="map">
|
|
|
|
|
update pro_mana_situ_license
|
|
|
|
|
set id = #{record.id,jdbcType=VARCHAR},
|
|
|
|
|
project_pool_id = #{record.projectPoolId,jdbcType=VARCHAR},
|
|
|
|
|
written_decision_num = #{record.writtenDecisionNum,jdbcType=VARCHAR},
|
|
|
|
|
organization = #{record.organization,jdbcType=VARCHAR},
|
|
|
|
|
license_date = #{record.licenseDate,jdbcType=VARCHAR}
|
|
|
|
|
<if test="_parameter != null">
|
|
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
|
|
</if>
|
|
|
|
|
</update>
|
|
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.sztzjy.fund_investment.entity.ProManaSituLicense">
|
|
|
|
|
update pro_mana_situ_license
|
|
|
|
|
<set>
|
|
|
|
|
<if test="projectPoolId != null">
|
|
|
|
|
project_pool_id = #{projectPoolId,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="writtenDecisionNum != null">
|
|
|
|
|
written_decision_num = #{writtenDecisionNum,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="organization != null">
|
|
|
|
|
organization = #{organization,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="licenseDate != null">
|
|
|
|
|
license_date = #{licenseDate,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
</set>
|
|
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
|
|
</update>
|
|
|
|
|
<update id="updateByPrimaryKey" parameterType="com.sztzjy.fund_investment.entity.ProManaSituLicense">
|
|
|
|
|
update pro_mana_situ_license
|
|
|
|
|
set project_pool_id = #{projectPoolId,jdbcType=VARCHAR},
|
|
|
|
|
written_decision_num = #{writtenDecisionNum,jdbcType=VARCHAR},
|
|
|
|
|
organization = #{organization,jdbcType=VARCHAR},
|
|
|
|
|
license_date = #{licenseDate,jdbcType=VARCHAR}
|
|
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
|
|
</update>
|
|
|
|
|
</mapper>
|