|
|
@ -2,13 +2,16 @@
|
|
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
|
<mapper namespace="com.sztzjy.fund_investment.mapper.AllotmentObjectMapper">
|
|
|
|
<mapper namespace="com.sztzjy.fund_investment.mapper.AllotmentObjectMapper">
|
|
|
|
<resultMap id="BaseResultMap" type="com.sztzjy.fund_investment.entity.AllotmentObject">
|
|
|
|
<resultMap id="BaseResultMap" type="com.sztzjy.fund_investment.entity.AllotmentObject">
|
|
|
|
<id column="allotment_object_code" jdbcType="VARCHAR" property="allotmentObjectCode" />
|
|
|
|
<id column="id" jdbcType="VARCHAR" property="id" />
|
|
|
|
|
|
|
|
<result column="allotment_object_code" jdbcType="VARCHAR" property="allotmentObjectCode" />
|
|
|
|
<result column="flow_id" jdbcType="VARCHAR" property="flowId" />
|
|
|
|
<result column="flow_id" jdbcType="VARCHAR" property="flowId" />
|
|
|
|
<result column="allotment_object_name" jdbcType="VARCHAR" property="allotmentObjectName" />
|
|
|
|
<result column="allotment_object_name" jdbcType="VARCHAR" property="allotmentObjectName" />
|
|
|
|
<result column="allotment_object_type" jdbcType="VARCHAR" property="allotmentObjectType" />
|
|
|
|
<result column="allotment_object_type" jdbcType="VARCHAR" property="allotmentObjectType" />
|
|
|
|
<result column="investor_code" jdbcType="INTEGER" property="investorCode" />
|
|
|
|
<result column="investor_code" jdbcType="INTEGER" property="investorCode" />
|
|
|
|
<result column="investor_name" jdbcType="VARCHAR" property="investorName" />
|
|
|
|
<result column="investor_name" jdbcType="VARCHAR" property="investorName" />
|
|
|
|
<result column="investor_type" jdbcType="VARCHAR" property="investorType" />
|
|
|
|
<result column="investor_type" jdbcType="VARCHAR" property="investorType" />
|
|
|
|
|
|
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
|
|
|
|
|
|
<result column="logic" jdbcType="INTEGER" property="logic" />
|
|
|
|
</resultMap>
|
|
|
|
</resultMap>
|
|
|
|
<sql id="Example_Where_Clause">
|
|
|
|
<sql id="Example_Where_Clause">
|
|
|
|
<where>
|
|
|
|
<where>
|
|
|
@ -69,8 +72,8 @@
|
|
|
|
</where>
|
|
|
|
</where>
|
|
|
|
</sql>
|
|
|
|
</sql>
|
|
|
|
<sql id="Base_Column_List">
|
|
|
|
<sql id="Base_Column_List">
|
|
|
|
allotment_object_code, flow_id, allotment_object_name, allotment_object_type, investor_code,
|
|
|
|
id, allotment_object_code, flow_id, allotment_object_name, allotment_object_type,
|
|
|
|
investor_name, investor_type
|
|
|
|
investor_code, investor_name, investor_type, create_time, logic
|
|
|
|
</sql>
|
|
|
|
</sql>
|
|
|
|
<select id="selectByExample" parameterType="com.sztzjy.fund_investment.entity.AllotmentObjectExample" resultMap="BaseResultMap">
|
|
|
|
<select id="selectByExample" parameterType="com.sztzjy.fund_investment.entity.AllotmentObjectExample" resultMap="BaseResultMap">
|
|
|
|
select
|
|
|
|
select
|
|
|
@ -90,11 +93,11 @@
|
|
|
|
select
|
|
|
|
select
|
|
|
|
<include refid="Base_Column_List" />
|
|
|
|
<include refid="Base_Column_List" />
|
|
|
|
from allotment_object
|
|
|
|
from allotment_object
|
|
|
|
where allotment_object_code = #{allotmentObjectCode,jdbcType=VARCHAR}
|
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
|
|
|
delete from allotment_object
|
|
|
|
delete from allotment_object
|
|
|
|
where allotment_object_code = #{allotmentObjectCode,jdbcType=VARCHAR}
|
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
|
</delete>
|
|
|
|
</delete>
|
|
|
|
<delete id="deleteByExample" parameterType="com.sztzjy.fund_investment.entity.AllotmentObjectExample">
|
|
|
|
<delete id="deleteByExample" parameterType="com.sztzjy.fund_investment.entity.AllotmentObjectExample">
|
|
|
|
delete from allotment_object
|
|
|
|
delete from allotment_object
|
|
|
@ -103,16 +106,21 @@
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
</delete>
|
|
|
|
</delete>
|
|
|
|
<insert id="insert" parameterType="com.sztzjy.fund_investment.entity.AllotmentObject">
|
|
|
|
<insert id="insert" parameterType="com.sztzjy.fund_investment.entity.AllotmentObject">
|
|
|
|
insert into allotment_object (allotment_object_code, flow_id, allotment_object_name,
|
|
|
|
insert into allotment_object (id, allotment_object_code, flow_id,
|
|
|
|
allotment_object_type, investor_code, investor_name,
|
|
|
|
allotment_object_name, allotment_object_type,
|
|
|
|
investor_type)
|
|
|
|
investor_code, investor_name, investor_type,
|
|
|
|
values (#{allotmentObjectCode,jdbcType=VARCHAR}, #{flowId,jdbcType=VARCHAR}, #{allotmentObjectName,jdbcType=VARCHAR},
|
|
|
|
create_time, logic)
|
|
|
|
#{allotmentObjectType,jdbcType=VARCHAR}, #{investorCode,jdbcType=INTEGER}, #{investorName,jdbcType=VARCHAR},
|
|
|
|
values (#{id,jdbcType=VARCHAR}, #{allotmentObjectCode,jdbcType=VARCHAR}, #{flowId,jdbcType=VARCHAR},
|
|
|
|
#{investorType,jdbcType=VARCHAR})
|
|
|
|
#{allotmentObjectName,jdbcType=VARCHAR}, #{allotmentObjectType,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
#{investorCode,jdbcType=INTEGER}, #{investorName,jdbcType=VARCHAR}, #{investorType,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
#{createTime,jdbcType=TIMESTAMP}, #{logic,jdbcType=INTEGER})
|
|
|
|
</insert>
|
|
|
|
</insert>
|
|
|
|
<insert id="insertSelective" parameterType="com.sztzjy.fund_investment.entity.AllotmentObject">
|
|
|
|
<insert id="insertSelective" parameterType="com.sztzjy.fund_investment.entity.AllotmentObject">
|
|
|
|
insert into allotment_object
|
|
|
|
insert into allotment_object
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
|
|
|
|
<if test="id != null">
|
|
|
|
|
|
|
|
id,
|
|
|
|
|
|
|
|
</if>
|
|
|
|
<if test="allotmentObjectCode != null">
|
|
|
|
<if test="allotmentObjectCode != null">
|
|
|
|
allotment_object_code,
|
|
|
|
allotment_object_code,
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
@ -134,8 +142,17 @@
|
|
|
|
<if test="investorType != null">
|
|
|
|
<if test="investorType != null">
|
|
|
|
investor_type,
|
|
|
|
investor_type,
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="createTime != null">
|
|
|
|
|
|
|
|
create_time,
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="logic != null">
|
|
|
|
|
|
|
|
logic,
|
|
|
|
|
|
|
|
</if>
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
|
|
|
<if test="id != null">
|
|
|
|
|
|
|
|
#{id,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
<if test="allotmentObjectCode != null">
|
|
|
|
<if test="allotmentObjectCode != null">
|
|
|
|
#{allotmentObjectCode,jdbcType=VARCHAR},
|
|
|
|
#{allotmentObjectCode,jdbcType=VARCHAR},
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
@ -157,6 +174,12 @@
|
|
|
|
<if test="investorType != null">
|
|
|
|
<if test="investorType != null">
|
|
|
|
#{investorType,jdbcType=VARCHAR},
|
|
|
|
#{investorType,jdbcType=VARCHAR},
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="createTime != null">
|
|
|
|
|
|
|
|
#{createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="logic != null">
|
|
|
|
|
|
|
|
#{logic,jdbcType=INTEGER},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
</insert>
|
|
|
|
</insert>
|
|
|
|
<select id="countByExample" parameterType="com.sztzjy.fund_investment.entity.AllotmentObjectExample" resultType="java.lang.Long">
|
|
|
|
<select id="countByExample" parameterType="com.sztzjy.fund_investment.entity.AllotmentObjectExample" resultType="java.lang.Long">
|
|
|
@ -168,6 +191,9 @@
|
|
|
|
<update id="updateByExampleSelective" parameterType="map">
|
|
|
|
<update id="updateByExampleSelective" parameterType="map">
|
|
|
|
update allotment_object
|
|
|
|
update allotment_object
|
|
|
|
<set>
|
|
|
|
<set>
|
|
|
|
|
|
|
|
<if test="record.id != null">
|
|
|
|
|
|
|
|
id = #{record.id,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
<if test="record.allotmentObjectCode != null">
|
|
|
|
<if test="record.allotmentObjectCode != null">
|
|
|
|
allotment_object_code = #{record.allotmentObjectCode,jdbcType=VARCHAR},
|
|
|
|
allotment_object_code = #{record.allotmentObjectCode,jdbcType=VARCHAR},
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
@ -189,6 +215,12 @@
|
|
|
|
<if test="record.investorType != null">
|
|
|
|
<if test="record.investorType != null">
|
|
|
|
investor_type = #{record.investorType,jdbcType=VARCHAR},
|
|
|
|
investor_type = #{record.investorType,jdbcType=VARCHAR},
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="record.createTime != null">
|
|
|
|
|
|
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="record.logic != null">
|
|
|
|
|
|
|
|
logic = #{record.logic,jdbcType=INTEGER},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
</set>
|
|
|
|
</set>
|
|
|
|
<if test="_parameter != null">
|
|
|
|
<if test="_parameter != null">
|
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
@ -196,13 +228,16 @@
|
|
|
|
</update>
|
|
|
|
</update>
|
|
|
|
<update id="updateByExample" parameterType="map">
|
|
|
|
<update id="updateByExample" parameterType="map">
|
|
|
|
update allotment_object
|
|
|
|
update allotment_object
|
|
|
|
set allotment_object_code = #{record.allotmentObjectCode,jdbcType=VARCHAR},
|
|
|
|
set id = #{record.id,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
allotment_object_code = #{record.allotmentObjectCode,jdbcType=VARCHAR},
|
|
|
|
flow_id = #{record.flowId,jdbcType=VARCHAR},
|
|
|
|
flow_id = #{record.flowId,jdbcType=VARCHAR},
|
|
|
|
allotment_object_name = #{record.allotmentObjectName,jdbcType=VARCHAR},
|
|
|
|
allotment_object_name = #{record.allotmentObjectName,jdbcType=VARCHAR},
|
|
|
|
allotment_object_type = #{record.allotmentObjectType,jdbcType=VARCHAR},
|
|
|
|
allotment_object_type = #{record.allotmentObjectType,jdbcType=VARCHAR},
|
|
|
|
investor_code = #{record.investorCode,jdbcType=INTEGER},
|
|
|
|
investor_code = #{record.investorCode,jdbcType=INTEGER},
|
|
|
|
investor_name = #{record.investorName,jdbcType=VARCHAR},
|
|
|
|
investor_name = #{record.investorName,jdbcType=VARCHAR},
|
|
|
|
investor_type = #{record.investorType,jdbcType=VARCHAR}
|
|
|
|
investor_type = #{record.investorType,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
|
|
|
logic = #{record.logic,jdbcType=INTEGER}
|
|
|
|
<if test="_parameter != null">
|
|
|
|
<if test="_parameter != null">
|
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
@ -210,6 +245,9 @@
|
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.sztzjy.fund_investment.entity.AllotmentObject">
|
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.sztzjy.fund_investment.entity.AllotmentObject">
|
|
|
|
update allotment_object
|
|
|
|
update allotment_object
|
|
|
|
<set>
|
|
|
|
<set>
|
|
|
|
|
|
|
|
<if test="allotmentObjectCode != null">
|
|
|
|
|
|
|
|
allotment_object_code = #{allotmentObjectCode,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
<if test="flowId != null">
|
|
|
|
<if test="flowId != null">
|
|
|
|
flow_id = #{flowId,jdbcType=VARCHAR},
|
|
|
|
flow_id = #{flowId,jdbcType=VARCHAR},
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
@ -228,17 +266,26 @@
|
|
|
|
<if test="investorType != null">
|
|
|
|
<if test="investorType != null">
|
|
|
|
investor_type = #{investorType,jdbcType=VARCHAR},
|
|
|
|
investor_type = #{investorType,jdbcType=VARCHAR},
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="createTime != null">
|
|
|
|
|
|
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="logic != null">
|
|
|
|
|
|
|
|
logic = #{logic,jdbcType=INTEGER},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
</set>
|
|
|
|
</set>
|
|
|
|
where allotment_object_code = #{allotmentObjectCode,jdbcType=VARCHAR}
|
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
|
</update>
|
|
|
|
</update>
|
|
|
|
<update id="updateByPrimaryKey" parameterType="com.sztzjy.fund_investment.entity.AllotmentObject">
|
|
|
|
<update id="updateByPrimaryKey" parameterType="com.sztzjy.fund_investment.entity.AllotmentObject">
|
|
|
|
update allotment_object
|
|
|
|
update allotment_object
|
|
|
|
set flow_id = #{flowId,jdbcType=VARCHAR},
|
|
|
|
set allotment_object_code = #{allotmentObjectCode,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
flow_id = #{flowId,jdbcType=VARCHAR},
|
|
|
|
allotment_object_name = #{allotmentObjectName,jdbcType=VARCHAR},
|
|
|
|
allotment_object_name = #{allotmentObjectName,jdbcType=VARCHAR},
|
|
|
|
allotment_object_type = #{allotmentObjectType,jdbcType=VARCHAR},
|
|
|
|
allotment_object_type = #{allotmentObjectType,jdbcType=VARCHAR},
|
|
|
|
investor_code = #{investorCode,jdbcType=INTEGER},
|
|
|
|
investor_code = #{investorCode,jdbcType=INTEGER},
|
|
|
|
investor_name = #{investorName,jdbcType=VARCHAR},
|
|
|
|
investor_name = #{investorName,jdbcType=VARCHAR},
|
|
|
|
investor_type = #{investorType,jdbcType=VARCHAR}
|
|
|
|
investor_type = #{investorType,jdbcType=VARCHAR},
|
|
|
|
where allotment_object_code = #{allotmentObjectCode,jdbcType=VARCHAR}
|
|
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
|
|
|
logic = #{logic,jdbcType=INTEGER}
|
|
|
|
|
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
|
</update>
|
|
|
|
</update>
|
|
|
|
</mapper>
|
|
|
|
</mapper>
|