<?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.tanpu.fund.mapper.generator.IfaImportedNonavFundMapper"> <resultMap id="BaseResultMap" type="com.tanpu.fund.entity.generator.IfaImportedNonavFund"> <!--@mbg.generated--> <!--@Table tamp_fund.ifa_imported_nonav_fund--> <id column="id" jdbcType="VARCHAR" property="id" /> <result column="fund_name" jdbcType="VARCHAR" property="fundName" /> <result column="start_end_date" jdbcType="VARCHAR" property="startEndDate" /> <result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> <result column="delete_tag" jdbcType="INTEGER" property="deleteTag" /> <result column="ifa_id" jdbcType="VARCHAR" property="ifaId" /> <result column="org_id" jdbcType="VARCHAR" property="orgId" /> </resultMap> <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.tanpu.fund.entity.generator.IfaImportedNonavFund"> <!--@mbg.generated--> <!--@Table tamp_fund.ifa_imported_nonav_fund--> <result column="summary" jdbcType="LONGVARCHAR" property="summary" /> <result column="detail" jdbcType="LONGVARCHAR" property="detail" /> <result column="fund_file" jdbcType="LONGVARCHAR" property="fundFile" /> <result column="fund_png" jdbcType="LONGVARCHAR" property="fundPng" /> </resultMap> <sql id="Example_Where_Clause"> <!--@mbg.generated--> <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"> <!--@mbg.generated--> <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"> <!--@mbg.generated--> id, fund_name, start_end_date, create_time, update_time, delete_tag, ifa_id, org_id </sql> <sql id="Blob_Column_List"> <!--@mbg.generated--> summary, detail, fund_file, fund_png </sql> <select id="selectByExampleWithBLOBs" parameterType="com.tanpu.fund.entity.generator.IfaImportedNonavFundExample" resultMap="ResultMapWithBLOBs"> <!--@mbg.generated--> select <if test="distinct"> distinct </if> <include refid="Base_Column_List" /> , <include refid="Blob_Column_List" /> from tamp_fund.ifa_imported_nonav_fund <if test="_parameter != null"> <include refid="Example_Where_Clause" /> </if> <if test="orderByClause != null"> order by ${orderByClause} </if> </select> <select id="selectByExample" parameterType="com.tanpu.fund.entity.generator.IfaImportedNonavFundExample" resultMap="BaseResultMap"> <!--@mbg.generated--> select <if test="distinct"> distinct </if> <include refid="Base_Column_List" /> from tamp_fund.ifa_imported_nonav_fund <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="ResultMapWithBLOBs"> <!--@mbg.generated--> select <include refid="Base_Column_List" /> , <include refid="Blob_Column_List" /> from tamp_fund.ifa_imported_nonav_fund where id = #{id,jdbcType=VARCHAR} </select> <delete id="deleteByPrimaryKey" parameterType="java.lang.String"> <!--@mbg.generated--> delete from tamp_fund.ifa_imported_nonav_fund where id = #{id,jdbcType=VARCHAR} </delete> <delete id="deleteByExample" parameterType="com.tanpu.fund.entity.generator.IfaImportedNonavFundExample"> <!--@mbg.generated--> delete from tamp_fund.ifa_imported_nonav_fund <if test="_parameter != null"> <include refid="Example_Where_Clause" /> </if> </delete> <insert id="insert" parameterType="com.tanpu.fund.entity.generator.IfaImportedNonavFund"> <!--@mbg.generated--> insert into tamp_fund.ifa_imported_nonav_fund (id, fund_name, start_end_date, create_time, update_time, delete_tag, ifa_id, org_id, summary, detail, fund_file, fund_png ) values (#{id,jdbcType=VARCHAR}, #{fundName,jdbcType=VARCHAR}, #{startEndDate,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{deleteTag,jdbcType=INTEGER}, #{ifaId,jdbcType=VARCHAR}, #{orgId,jdbcType=VARCHAR}, #{summary,jdbcType=LONGVARCHAR}, #{detail,jdbcType=LONGVARCHAR}, #{fundFile,jdbcType=LONGVARCHAR}, #{fundPng,jdbcType=LONGVARCHAR} ) </insert> <insert id="insertSelective" parameterType="com.tanpu.fund.entity.generator.IfaImportedNonavFund"> <!--@mbg.generated--> insert into tamp_fund.ifa_imported_nonav_fund <trim prefix="(" suffix=")" suffixOverrides=","> <if test="id != null"> id, </if> <if test="fundName != null"> fund_name, </if> <if test="startEndDate != null"> start_end_date, </if> <if test="createTime != null"> create_time, </if> <if test="updateTime != null"> update_time, </if> <if test="deleteTag != null"> delete_tag, </if> <if test="ifaId != null"> ifa_id, </if> <if test="orgId != null"> org_id, </if> <if test="summary != null"> summary, </if> <if test="detail != null"> detail, </if> <if test="fundFile != null"> fund_file, </if> <if test="fundPng != null"> fund_png, </if> </trim> <trim prefix="values (" suffix=")" suffixOverrides=","> <if test="id != null"> #{id,jdbcType=VARCHAR}, </if> <if test="fundName != null"> #{fundName,jdbcType=VARCHAR}, </if> <if test="startEndDate != null"> #{startEndDate,jdbcType=VARCHAR}, </if> <if test="createTime != null"> #{createTime,jdbcType=TIMESTAMP}, </if> <if test="updateTime != null"> #{updateTime,jdbcType=TIMESTAMP}, </if> <if test="deleteTag != null"> #{deleteTag,jdbcType=INTEGER}, </if> <if test="ifaId != null"> #{ifaId,jdbcType=VARCHAR}, </if> <if test="orgId != null"> #{orgId,jdbcType=VARCHAR}, </if> <if test="summary != null"> #{summary,jdbcType=LONGVARCHAR}, </if> <if test="detail != null"> #{detail,jdbcType=LONGVARCHAR}, </if> <if test="fundFile != null"> #{fundFile,jdbcType=LONGVARCHAR}, </if> <if test="fundPng != null"> #{fundPng,jdbcType=LONGVARCHAR}, </if> </trim> </insert> <select id="countByExample" parameterType="com.tanpu.fund.entity.generator.IfaImportedNonavFundExample" resultType="java.lang.Long"> <!--@mbg.generated--> select count(*) from tamp_fund.ifa_imported_nonav_fund <if test="_parameter != null"> <include refid="Example_Where_Clause" /> </if> </select> <update id="updateByExampleSelective" parameterType="map"> <!--@mbg.generated--> update tamp_fund.ifa_imported_nonav_fund <set> <if test="record.id != null"> id = #{record.id,jdbcType=VARCHAR}, </if> <if test="record.fundName != null"> fund_name = #{record.fundName,jdbcType=VARCHAR}, </if> <if test="record.startEndDate != null"> start_end_date = #{record.startEndDate,jdbcType=VARCHAR}, </if> <if test="record.createTime != null"> create_time = #{record.createTime,jdbcType=TIMESTAMP}, </if> <if test="record.updateTime != null"> update_time = #{record.updateTime,jdbcType=TIMESTAMP}, </if> <if test="record.deleteTag != null"> delete_tag = #{record.deleteTag,jdbcType=INTEGER}, </if> <if test="record.ifaId != null"> ifa_id = #{record.ifaId,jdbcType=VARCHAR}, </if> <if test="record.orgId != null"> org_id = #{record.orgId,jdbcType=VARCHAR}, </if> <if test="record.summary != null"> summary = #{record.summary,jdbcType=LONGVARCHAR}, </if> <if test="record.detail != null"> detail = #{record.detail,jdbcType=LONGVARCHAR}, </if> <if test="record.fundFile != null"> fund_file = #{record.fundFile,jdbcType=LONGVARCHAR}, </if> <if test="record.fundPng != null"> fund_png = #{record.fundPng,jdbcType=LONGVARCHAR}, </if> </set> <if test="_parameter != null"> <include refid="Update_By_Example_Where_Clause" /> </if> </update> <update id="updateByExampleWithBLOBs" parameterType="map"> <!--@mbg.generated--> update tamp_fund.ifa_imported_nonav_fund set id = #{record.id,jdbcType=VARCHAR}, fund_name = #{record.fundName,jdbcType=VARCHAR}, start_end_date = #{record.startEndDate,jdbcType=VARCHAR}, create_time = #{record.createTime,jdbcType=TIMESTAMP}, update_time = #{record.updateTime,jdbcType=TIMESTAMP}, delete_tag = #{record.deleteTag,jdbcType=INTEGER}, ifa_id = #{record.ifaId,jdbcType=VARCHAR}, org_id = #{record.orgId,jdbcType=VARCHAR}, summary = #{record.summary,jdbcType=LONGVARCHAR}, detail = #{record.detail,jdbcType=LONGVARCHAR}, fund_file = #{record.fundFile,jdbcType=LONGVARCHAR}, fund_png = #{record.fundPng,jdbcType=LONGVARCHAR} <if test="_parameter != null"> <include refid="Update_By_Example_Where_Clause" /> </if> </update> <update id="updateByExample" parameterType="map"> <!--@mbg.generated--> update tamp_fund.ifa_imported_nonav_fund set id = #{record.id,jdbcType=VARCHAR}, fund_name = #{record.fundName,jdbcType=VARCHAR}, start_end_date = #{record.startEndDate,jdbcType=VARCHAR}, create_time = #{record.createTime,jdbcType=TIMESTAMP}, update_time = #{record.updateTime,jdbcType=TIMESTAMP}, delete_tag = #{record.deleteTag,jdbcType=INTEGER}, ifa_id = #{record.ifaId,jdbcType=VARCHAR}, org_id = #{record.orgId,jdbcType=VARCHAR} <if test="_parameter != null"> <include refid="Update_By_Example_Where_Clause" /> </if> </update> <update id="updateByPrimaryKeySelective" parameterType="com.tanpu.fund.entity.generator.IfaImportedNonavFund"> <!--@mbg.generated--> update tamp_fund.ifa_imported_nonav_fund <set> <if test="fundName != null"> fund_name = #{fundName,jdbcType=VARCHAR}, </if> <if test="startEndDate != null"> start_end_date = #{startEndDate,jdbcType=VARCHAR}, </if> <if test="createTime != null"> create_time = #{createTime,jdbcType=TIMESTAMP}, </if> <if test="updateTime != null"> update_time = #{updateTime,jdbcType=TIMESTAMP}, </if> <if test="deleteTag != null"> delete_tag = #{deleteTag,jdbcType=INTEGER}, </if> <if test="ifaId != null"> ifa_id = #{ifaId,jdbcType=VARCHAR}, </if> <if test="orgId != null"> org_id = #{orgId,jdbcType=VARCHAR}, </if> <if test="summary != null"> summary = #{summary,jdbcType=LONGVARCHAR}, </if> <if test="detail != null"> detail = #{detail,jdbcType=LONGVARCHAR}, </if> <if test="fundFile != null"> fund_file = #{fundFile,jdbcType=LONGVARCHAR}, </if> <if test="fundPng != null"> fund_png = #{fundPng,jdbcType=LONGVARCHAR}, </if> </set> where id = #{id,jdbcType=VARCHAR} </update> <update id="updateByPrimaryKeyWithBLOBs" parameterType="com.tanpu.fund.entity.generator.IfaImportedNonavFund"> <!--@mbg.generated--> update tamp_fund.ifa_imported_nonav_fund set fund_name = #{fundName,jdbcType=VARCHAR}, start_end_date = #{startEndDate,jdbcType=VARCHAR}, create_time = #{createTime,jdbcType=TIMESTAMP}, update_time = #{updateTime,jdbcType=TIMESTAMP}, delete_tag = #{deleteTag,jdbcType=INTEGER}, ifa_id = #{ifaId,jdbcType=VARCHAR}, org_id = #{orgId,jdbcType=VARCHAR}, summary = #{summary,jdbcType=LONGVARCHAR}, detail = #{detail,jdbcType=LONGVARCHAR}, fund_file = #{fundFile,jdbcType=LONGVARCHAR}, fund_png = #{fundPng,jdbcType=LONGVARCHAR} where id = #{id,jdbcType=VARCHAR} </update> <update id="updateByPrimaryKey" parameterType="com.tanpu.fund.entity.generator.IfaImportedNonavFund"> <!--@mbg.generated--> update tamp_fund.ifa_imported_nonav_fund set fund_name = #{fundName,jdbcType=VARCHAR}, start_end_date = #{startEndDate,jdbcType=VARCHAR}, create_time = #{createTime,jdbcType=TIMESTAMP}, update_time = #{updateTime,jdbcType=TIMESTAMP}, delete_tag = #{deleteTag,jdbcType=INTEGER}, ifa_id = #{ifaId,jdbcType=VARCHAR}, org_id = #{orgId,jdbcType=VARCHAR} where id = #{id,jdbcType=VARCHAR} </update> <update id="updateBatch" parameterType="java.util.List"> <!--@mbg.generated--> update tamp_fund.ifa_imported_nonav_fund <trim prefix="set" suffixOverrides=","> <trim prefix="fund_name = case" suffix="end,"> <foreach collection="list" index="index" item="item"> when id = #{item.id,jdbcType=VARCHAR} then #{item.fundName,jdbcType=VARCHAR} </foreach> </trim> <trim prefix="start_end_date = case" suffix="end,"> <foreach collection="list" index="index" item="item"> when id = #{item.id,jdbcType=VARCHAR} then #{item.startEndDate,jdbcType=VARCHAR} </foreach> </trim> <trim prefix="create_time = case" suffix="end,"> <foreach collection="list" index="index" item="item"> when id = #{item.id,jdbcType=VARCHAR} then #{item.createTime,jdbcType=TIMESTAMP} </foreach> </trim> <trim prefix="update_time = case" suffix="end,"> <foreach collection="list" index="index" item="item"> when id = #{item.id,jdbcType=VARCHAR} then #{item.updateTime,jdbcType=TIMESTAMP} </foreach> </trim> <trim prefix="delete_tag = case" suffix="end,"> <foreach collection="list" index="index" item="item"> when id = #{item.id,jdbcType=VARCHAR} then #{item.deleteTag,jdbcType=INTEGER} </foreach> </trim> <trim prefix="ifa_id = case" suffix="end,"> <foreach collection="list" index="index" item="item"> when id = #{item.id,jdbcType=VARCHAR} then #{item.ifaId,jdbcType=VARCHAR} </foreach> </trim> <trim prefix="org_id = case" suffix="end,"> <foreach collection="list" index="index" item="item"> when id = #{item.id,jdbcType=VARCHAR} then #{item.orgId,jdbcType=VARCHAR} </foreach> </trim> <trim prefix="summary = case" suffix="end,"> <foreach collection="list" index="index" item="item"> when id = #{item.id,jdbcType=VARCHAR} then #{item.summary,jdbcType=LONGVARCHAR} </foreach> </trim> <trim prefix="detail = case" suffix="end,"> <foreach collection="list" index="index" item="item"> when id = #{item.id,jdbcType=VARCHAR} then #{item.detail,jdbcType=LONGVARCHAR} </foreach> </trim> <trim prefix="fund_file = case" suffix="end,"> <foreach collection="list" index="index" item="item"> when id = #{item.id,jdbcType=VARCHAR} then #{item.fundFile,jdbcType=LONGVARCHAR} </foreach> </trim> <trim prefix="fund_png = case" suffix="end,"> <foreach collection="list" index="index" item="item"> when id = #{item.id,jdbcType=VARCHAR} then #{item.fundPng,jdbcType=LONGVARCHAR} </foreach> </trim> </trim> where id in <foreach close=")" collection="list" item="item" open="(" separator=", "> #{item.id,jdbcType=VARCHAR} </foreach> </update> <update id="updateBatchSelective" parameterType="java.util.List"> <!--@mbg.generated--> update tamp_fund.ifa_imported_nonav_fund <trim prefix="set" suffixOverrides=","> <trim prefix="fund_name = case" suffix="end,"> <foreach collection="list" index="index" item="item"> <if test="item.fundName != null"> when id = #{item.id,jdbcType=VARCHAR} then #{item.fundName,jdbcType=VARCHAR} </if> </foreach> </trim> <trim prefix="start_end_date = case" suffix="end,"> <foreach collection="list" index="index" item="item"> <if test="item.startEndDate != null"> when id = #{item.id,jdbcType=VARCHAR} then #{item.startEndDate,jdbcType=VARCHAR} </if> </foreach> </trim> <trim prefix="create_time = case" suffix="end,"> <foreach collection="list" index="index" item="item"> <if test="item.createTime != null"> when id = #{item.id,jdbcType=VARCHAR} then #{item.createTime,jdbcType=TIMESTAMP} </if> </foreach> </trim> <trim prefix="update_time = case" suffix="end,"> <foreach collection="list" index="index" item="item"> <if test="item.updateTime != null"> when id = #{item.id,jdbcType=VARCHAR} then #{item.updateTime,jdbcType=TIMESTAMP} </if> </foreach> </trim> <trim prefix="delete_tag = case" suffix="end,"> <foreach collection="list" index="index" item="item"> <if test="item.deleteTag != null"> when id = #{item.id,jdbcType=VARCHAR} then #{item.deleteTag,jdbcType=INTEGER} </if> </foreach> </trim> <trim prefix="ifa_id = case" suffix="end,"> <foreach collection="list" index="index" item="item"> <if test="item.ifaId != null"> when id = #{item.id,jdbcType=VARCHAR} then #{item.ifaId,jdbcType=VARCHAR} </if> </foreach> </trim> <trim prefix="org_id = case" suffix="end,"> <foreach collection="list" index="index" item="item"> <if test="item.orgId != null"> when id = #{item.id,jdbcType=VARCHAR} then #{item.orgId,jdbcType=VARCHAR} </if> </foreach> </trim> <trim prefix="summary = case" suffix="end,"> <foreach collection="list" index="index" item="item"> <if test="item.summary != null"> when id = #{item.id,jdbcType=VARCHAR} then #{item.summary,jdbcType=LONGVARCHAR} </if> </foreach> </trim> <trim prefix="detail = case" suffix="end,"> <foreach collection="list" index="index" item="item"> <if test="item.detail != null"> when id = #{item.id,jdbcType=VARCHAR} then #{item.detail,jdbcType=LONGVARCHAR} </if> </foreach> </trim> <trim prefix="fund_file = case" suffix="end,"> <foreach collection="list" index="index" item="item"> <if test="item.fundFile != null"> when id = #{item.id,jdbcType=VARCHAR} then #{item.fundFile,jdbcType=LONGVARCHAR} </if> </foreach> </trim> <trim prefix="fund_png = case" suffix="end,"> <foreach collection="list" index="index" item="item"> <if test="item.fundPng != null"> when id = #{item.id,jdbcType=VARCHAR} then #{item.fundPng,jdbcType=LONGVARCHAR} </if> </foreach> </trim> </trim> where id in <foreach close=")" collection="list" item="item" open="(" separator=", "> #{item.id,jdbcType=VARCHAR} </foreach> </update> <insert id="batchInsert" parameterType="map"> <!--@mbg.generated--> insert into tamp_fund.ifa_imported_nonav_fund (id, fund_name, start_end_date, create_time, update_time, delete_tag, ifa_id, org_id, summary, detail, fund_file, fund_png) values <foreach collection="list" item="item" separator=","> (#{item.id,jdbcType=VARCHAR}, #{item.fundName,jdbcType=VARCHAR}, #{item.startEndDate,jdbcType=VARCHAR}, #{item.createTime,jdbcType=TIMESTAMP}, #{item.updateTime,jdbcType=TIMESTAMP}, #{item.deleteTag,jdbcType=INTEGER}, #{item.ifaId,jdbcType=VARCHAR}, #{item.orgId,jdbcType=VARCHAR}, #{item.summary,jdbcType=LONGVARCHAR}, #{item.detail,jdbcType=LONGVARCHAR}, #{item.fundFile,jdbcType=LONGVARCHAR}, #{item.fundPng,jdbcType=LONGVARCHAR} ) </foreach> </insert> <insert id="insertOrUpdate" parameterType="com.tanpu.fund.entity.generator.IfaImportedNonavFund"> <!--@mbg.generated--> insert into tamp_fund.ifa_imported_nonav_fund (id, fund_name, start_end_date, create_time, update_time, delete_tag, ifa_id, org_id ) values (#{id,jdbcType=VARCHAR}, #{fundName,jdbcType=VARCHAR}, #{startEndDate,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{deleteTag,jdbcType=INTEGER}, #{ifaId,jdbcType=VARCHAR}, #{orgId,jdbcType=VARCHAR}) on duplicate key update id = #{id,jdbcType=VARCHAR}, fund_name = #{fundName,jdbcType=VARCHAR}, start_end_date = #{startEndDate,jdbcType=VARCHAR}, create_time = #{createTime,jdbcType=TIMESTAMP}, update_time = #{updateTime,jdbcType=TIMESTAMP}, delete_tag = #{deleteTag,jdbcType=INTEGER}, ifa_id = #{ifaId,jdbcType=VARCHAR}, org_id = #{orgId,jdbcType=VARCHAR} </insert> <insert id="insertOrUpdateWithBLOBs" parameterType="com.tanpu.fund.entity.generator.IfaImportedNonavFund"> <!--@mbg.generated--> insert into tamp_fund.ifa_imported_nonav_fund (id, fund_name, start_end_date, create_time, update_time, delete_tag, ifa_id, org_id, summary, detail, fund_file, fund_png) values (#{id,jdbcType=VARCHAR}, #{fundName,jdbcType=VARCHAR}, #{startEndDate,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{deleteTag,jdbcType=INTEGER}, #{ifaId,jdbcType=VARCHAR}, #{orgId,jdbcType=VARCHAR}, #{summary,jdbcType=LONGVARCHAR}, #{detail,jdbcType=LONGVARCHAR}, #{fundFile,jdbcType=LONGVARCHAR}, #{fundPng,jdbcType=LONGVARCHAR} ) on duplicate key update id = #{id,jdbcType=VARCHAR}, fund_name = #{fundName,jdbcType=VARCHAR}, start_end_date = #{startEndDate,jdbcType=VARCHAR}, create_time = #{createTime,jdbcType=TIMESTAMP}, update_time = #{updateTime,jdbcType=TIMESTAMP}, delete_tag = #{deleteTag,jdbcType=INTEGER}, ifa_id = #{ifaId,jdbcType=VARCHAR}, org_id = #{orgId,jdbcType=VARCHAR}, summary = #{summary,jdbcType=LONGVARCHAR}, detail = #{detail,jdbcType=LONGVARCHAR}, fund_file = #{fundFile,jdbcType=LONGVARCHAR}, fund_png = #{fundPng,jdbcType=LONGVARCHAR} </insert> <insert id="insertOrUpdateSelective" parameterType="com.tanpu.fund.entity.generator.IfaImportedNonavFund"> <!--@mbg.generated--> insert into tamp_fund.ifa_imported_nonav_fund <trim prefix="(" suffix=")" suffixOverrides=","> <if test="id != null"> id, </if> <if test="fundName != null"> fund_name, </if> <if test="startEndDate != null"> start_end_date, </if> <if test="createTime != null"> create_time, </if> <if test="updateTime != null"> update_time, </if> <if test="deleteTag != null"> delete_tag, </if> <if test="ifaId != null"> ifa_id, </if> <if test="orgId != null"> org_id, </if> <if test="summary != null"> summary, </if> <if test="detail != null"> detail, </if> <if test="fundFile != null"> fund_file, </if> <if test="fundPng != null"> fund_png, </if> </trim> values <trim prefix="(" suffix=")" suffixOverrides=","> <if test="id != null"> #{id,jdbcType=VARCHAR}, </if> <if test="fundName != null"> #{fundName,jdbcType=VARCHAR}, </if> <if test="startEndDate != null"> #{startEndDate,jdbcType=VARCHAR}, </if> <if test="createTime != null"> #{createTime,jdbcType=TIMESTAMP}, </if> <if test="updateTime != null"> #{updateTime,jdbcType=TIMESTAMP}, </if> <if test="deleteTag != null"> #{deleteTag,jdbcType=INTEGER}, </if> <if test="ifaId != null"> #{ifaId,jdbcType=VARCHAR}, </if> <if test="orgId != null"> #{orgId,jdbcType=VARCHAR}, </if> <if test="summary != null"> #{summary,jdbcType=LONGVARCHAR}, </if> <if test="detail != null"> #{detail,jdbcType=LONGVARCHAR}, </if> <if test="fundFile != null"> #{fundFile,jdbcType=LONGVARCHAR}, </if> <if test="fundPng != null"> #{fundPng,jdbcType=LONGVARCHAR}, </if> </trim> on duplicate key update <trim suffixOverrides=","> <if test="id != null"> id = #{id,jdbcType=VARCHAR}, </if> <if test="fundName != null"> fund_name = #{fundName,jdbcType=VARCHAR}, </if> <if test="startEndDate != null"> start_end_date = #{startEndDate,jdbcType=VARCHAR}, </if> <if test="createTime != null"> create_time = #{createTime,jdbcType=TIMESTAMP}, </if> <if test="updateTime != null"> update_time = #{updateTime,jdbcType=TIMESTAMP}, </if> <if test="deleteTag != null"> delete_tag = #{deleteTag,jdbcType=INTEGER}, </if> <if test="ifaId != null"> ifa_id = #{ifaId,jdbcType=VARCHAR}, </if> <if test="orgId != null"> org_id = #{orgId,jdbcType=VARCHAR}, </if> <if test="summary != null"> summary = #{summary,jdbcType=LONGVARCHAR}, </if> <if test="detail != null"> detail = #{detail,jdbcType=LONGVARCHAR}, </if> <if test="fundFile != null"> fund_file = #{fundFile,jdbcType=LONGVARCHAR}, </if> <if test="fundPng != null"> fund_png = #{fundPng,jdbcType=LONGVARCHAR}, </if> </trim> </insert> </mapper>