询价发行--整体修改
parent
61337238af
commit
2d6cb45ef3
@ -1,291 +0,0 @@
|
|||||||
<?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.sztzjy.fund_investment.mapper.AllotmentObjectMapper">
|
|
||||||
<resultMap id="BaseResultMap" type="com.sztzjy.fund_investment.entity.AllotmentObject">
|
|
||||||
<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="allotment_object_name" jdbcType="VARCHAR" property="allotmentObjectName" />
|
|
||||||
<result column="allotment_object_type" jdbcType="VARCHAR" property="allotmentObjectType" />
|
|
||||||
<result column="investor_code" jdbcType="INTEGER" property="investorCode" />
|
|
||||||
<result column="investor_name" jdbcType="VARCHAR" property="investorName" />
|
|
||||||
<result column="investor_type" jdbcType="VARCHAR" property="investorType" />
|
|
||||||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
||||||
<result column="logic" jdbcType="INTEGER" property="logic" />
|
|
||||||
</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, allotment_object_code, flow_id, allotment_object_name, allotment_object_type,
|
|
||||||
investor_code, investor_name, investor_type, create_time, logic
|
|
||||||
</sql>
|
|
||||||
<select id="selectByExample" parameterType="com.sztzjy.fund_investment.entity.AllotmentObjectExample" resultMap="BaseResultMap">
|
|
||||||
select
|
|
||||||
<if test="distinct">
|
|
||||||
distinct
|
|
||||||
</if>
|
|
||||||
<include refid="Base_Column_List" />
|
|
||||||
from allotment_object
|
|
||||||
<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 allotment_object
|
|
||||||
where id = #{id,jdbcType=VARCHAR}
|
|
||||||
</select>
|
|
||||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
|
||||||
delete from allotment_object
|
|
||||||
where id = #{id,jdbcType=VARCHAR}
|
|
||||||
</delete>
|
|
||||||
<delete id="deleteByExample" parameterType="com.sztzjy.fund_investment.entity.AllotmentObjectExample">
|
|
||||||
delete from allotment_object
|
|
||||||
<if test="_parameter != null">
|
|
||||||
<include refid="Example_Where_Clause" />
|
|
||||||
</if>
|
|
||||||
</delete>
|
|
||||||
<insert id="insert" parameterType="com.sztzjy.fund_investment.entity.AllotmentObject">
|
|
||||||
insert into allotment_object (id, allotment_object_code, flow_id,
|
|
||||||
allotment_object_name, allotment_object_type,
|
|
||||||
investor_code, investor_name, investor_type,
|
|
||||||
create_time, logic)
|
|
||||||
values (#{id,jdbcType=VARCHAR}, #{allotmentObjectCode,jdbcType=VARCHAR}, #{flowId,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 id="insertSelective" parameterType="com.sztzjy.fund_investment.entity.AllotmentObject">
|
|
||||||
insert into allotment_object
|
|
||||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
||||||
<if test="id != null">
|
|
||||||
id,
|
|
||||||
</if>
|
|
||||||
<if test="allotmentObjectCode != null">
|
|
||||||
allotment_object_code,
|
|
||||||
</if>
|
|
||||||
<if test="flowId != null">
|
|
||||||
flow_id,
|
|
||||||
</if>
|
|
||||||
<if test="allotmentObjectName != null">
|
|
||||||
allotment_object_name,
|
|
||||||
</if>
|
|
||||||
<if test="allotmentObjectType != null">
|
|
||||||
allotment_object_type,
|
|
||||||
</if>
|
|
||||||
<if test="investorCode != null">
|
|
||||||
investor_code,
|
|
||||||
</if>
|
|
||||||
<if test="investorName != null">
|
|
||||||
investor_name,
|
|
||||||
</if>
|
|
||||||
<if test="investorType != null">
|
|
||||||
investor_type,
|
|
||||||
</if>
|
|
||||||
<if test="createTime != null">
|
|
||||||
create_time,
|
|
||||||
</if>
|
|
||||||
<if test="logic != null">
|
|
||||||
logic,
|
|
||||||
</if>
|
|
||||||
</trim>
|
|
||||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
||||||
<if test="id != null">
|
|
||||||
#{id,jdbcType=VARCHAR},
|
|
||||||
</if>
|
|
||||||
<if test="allotmentObjectCode != null">
|
|
||||||
#{allotmentObjectCode,jdbcType=VARCHAR},
|
|
||||||
</if>
|
|
||||||
<if test="flowId != null">
|
|
||||||
#{flowId,jdbcType=VARCHAR},
|
|
||||||
</if>
|
|
||||||
<if test="allotmentObjectName != null">
|
|
||||||
#{allotmentObjectName,jdbcType=VARCHAR},
|
|
||||||
</if>
|
|
||||||
<if test="allotmentObjectType != null">
|
|
||||||
#{allotmentObjectType,jdbcType=VARCHAR},
|
|
||||||
</if>
|
|
||||||
<if test="investorCode != null">
|
|
||||||
#{investorCode,jdbcType=INTEGER},
|
|
||||||
</if>
|
|
||||||
<if test="investorName != null">
|
|
||||||
#{investorName,jdbcType=VARCHAR},
|
|
||||||
</if>
|
|
||||||
<if test="investorType != null">
|
|
||||||
#{investorType,jdbcType=VARCHAR},
|
|
||||||
</if>
|
|
||||||
<if test="createTime != null">
|
|
||||||
#{createTime,jdbcType=TIMESTAMP},
|
|
||||||
</if>
|
|
||||||
<if test="logic != null">
|
|
||||||
#{logic,jdbcType=INTEGER},
|
|
||||||
</if>
|
|
||||||
</trim>
|
|
||||||
</insert>
|
|
||||||
<select id="countByExample" parameterType="com.sztzjy.fund_investment.entity.AllotmentObjectExample" resultType="java.lang.Long">
|
|
||||||
select count(*) from allotment_object
|
|
||||||
<if test="_parameter != null">
|
|
||||||
<include refid="Example_Where_Clause" />
|
|
||||||
</if>
|
|
||||||
</select>
|
|
||||||
<update id="updateByExampleSelective" parameterType="map">
|
|
||||||
update allotment_object
|
|
||||||
<set>
|
|
||||||
<if test="record.id != null">
|
|
||||||
id = #{record.id,jdbcType=VARCHAR},
|
|
||||||
</if>
|
|
||||||
<if test="record.allotmentObjectCode != null">
|
|
||||||
allotment_object_code = #{record.allotmentObjectCode,jdbcType=VARCHAR},
|
|
||||||
</if>
|
|
||||||
<if test="record.flowId != null">
|
|
||||||
flow_id = #{record.flowId,jdbcType=VARCHAR},
|
|
||||||
</if>
|
|
||||||
<if test="record.allotmentObjectName != null">
|
|
||||||
allotment_object_name = #{record.allotmentObjectName,jdbcType=VARCHAR},
|
|
||||||
</if>
|
|
||||||
<if test="record.allotmentObjectType != null">
|
|
||||||
allotment_object_type = #{record.allotmentObjectType,jdbcType=VARCHAR},
|
|
||||||
</if>
|
|
||||||
<if test="record.investorCode != null">
|
|
||||||
investor_code = #{record.investorCode,jdbcType=INTEGER},
|
|
||||||
</if>
|
|
||||||
<if test="record.investorName != null">
|
|
||||||
investor_name = #{record.investorName,jdbcType=VARCHAR},
|
|
||||||
</if>
|
|
||||||
<if test="record.investorType != null">
|
|
||||||
investor_type = #{record.investorType,jdbcType=VARCHAR},
|
|
||||||
</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>
|
|
||||||
<if test="_parameter != null">
|
|
||||||
<include refid="Update_By_Example_Where_Clause" />
|
|
||||||
</if>
|
|
||||||
</update>
|
|
||||||
<update id="updateByExample" parameterType="map">
|
|
||||||
update allotment_object
|
|
||||||
set id = #{record.id,jdbcType=VARCHAR},
|
|
||||||
allotment_object_code = #{record.allotmentObjectCode,jdbcType=VARCHAR},
|
|
||||||
flow_id = #{record.flowId,jdbcType=VARCHAR},
|
|
||||||
allotment_object_name = #{record.allotmentObjectName,jdbcType=VARCHAR},
|
|
||||||
allotment_object_type = #{record.allotmentObjectType,jdbcType=VARCHAR},
|
|
||||||
investor_code = #{record.investorCode,jdbcType=INTEGER},
|
|
||||||
investor_name = #{record.investorName,jdbcType=VARCHAR},
|
|
||||||
investor_type = #{record.investorType,jdbcType=VARCHAR},
|
|
||||||
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
||||||
logic = #{record.logic,jdbcType=INTEGER}
|
|
||||||
<if test="_parameter != null">
|
|
||||||
<include refid="Update_By_Example_Where_Clause" />
|
|
||||||
</if>
|
|
||||||
</update>
|
|
||||||
<update id="updateByPrimaryKeySelective" parameterType="com.sztzjy.fund_investment.entity.AllotmentObject">
|
|
||||||
update allotment_object
|
|
||||||
<set>
|
|
||||||
<if test="allotmentObjectCode != null">
|
|
||||||
allotment_object_code = #{allotmentObjectCode,jdbcType=VARCHAR},
|
|
||||||
</if>
|
|
||||||
<if test="flowId != null">
|
|
||||||
flow_id = #{flowId,jdbcType=VARCHAR},
|
|
||||||
</if>
|
|
||||||
<if test="allotmentObjectName != null">
|
|
||||||
allotment_object_name = #{allotmentObjectName,jdbcType=VARCHAR},
|
|
||||||
</if>
|
|
||||||
<if test="allotmentObjectType != null">
|
|
||||||
allotment_object_type = #{allotmentObjectType,jdbcType=VARCHAR},
|
|
||||||
</if>
|
|
||||||
<if test="investorCode != null">
|
|
||||||
investor_code = #{investorCode,jdbcType=INTEGER},
|
|
||||||
</if>
|
|
||||||
<if test="investorName != null">
|
|
||||||
investor_name = #{investorName,jdbcType=VARCHAR},
|
|
||||||
</if>
|
|
||||||
<if test="investorType != null">
|
|
||||||
investor_type = #{investorType,jdbcType=VARCHAR},
|
|
||||||
</if>
|
|
||||||
<if test="createTime != null">
|
|
||||||
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
||||||
</if>
|
|
||||||
<if test="logic != null">
|
|
||||||
logic = #{logic,jdbcType=INTEGER},
|
|
||||||
</if>
|
|
||||||
</set>
|
|
||||||
where id = #{id,jdbcType=VARCHAR}
|
|
||||||
</update>
|
|
||||||
<update id="updateByPrimaryKey" parameterType="com.sztzjy.fund_investment.entity.AllotmentObject">
|
|
||||||
update allotment_object
|
|
||||||
set allotment_object_code = #{allotmentObjectCode,jdbcType=VARCHAR},
|
|
||||||
flow_id = #{flowId,jdbcType=VARCHAR},
|
|
||||||
allotment_object_name = #{allotmentObjectName,jdbcType=VARCHAR},
|
|
||||||
allotment_object_type = #{allotmentObjectType,jdbcType=VARCHAR},
|
|
||||||
investor_code = #{investorCode,jdbcType=INTEGER},
|
|
||||||
investor_name = #{investorName,jdbcType=VARCHAR},
|
|
||||||
investor_type = #{investorType,jdbcType=VARCHAR},
|
|
||||||
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
||||||
logic = #{logic,jdbcType=INTEGER}
|
|
||||||
where id = #{id,jdbcType=VARCHAR}
|
|
||||||
</update>
|
|
||||||
</mapper>
|
|
Loading…
Reference in New Issue