| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115 |
- <?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.ydtech.modules.ins.dao.InsIncomeMapper">
- <resultMap id="BaseResultMap" type="com.ydtech.modules.ins.model.InsIncome">
- <id column="policyno" jdbcType="VARCHAR" property="policyno"/>
- <result column="commission" jdbcType="DOUBLE" property="commission"/>
- <result column="finalcommission" jdbcType="DOUBLE" property="finalcommission"/>
- <result column="doingcommission" jdbcType="DOUBLE" property="doingcommission"/>
- <result column="creattime" jdbcType="TIMESTAMP" property="creattime"/>
- <result column="updatedate" jdbcType="TIMESTAMP" property="updatedate"/>
- </resultMap>
- <sql id="Base_Column_List">
- policyno, commission, finalcommission, doingcommission, creattime, updatedate
- </sql>
- <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
- select
- <include refid="Base_Column_List"/>
- from ins_income
- where policyno = #{policyno,jdbcType=VARCHAR}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
- delete
- from ins_income
- where policyno = #{policyno,jdbcType=VARCHAR}
- </delete>
- <insert id="insert" parameterType="com.ydtech.modules.ins.model.InsIncome">
- insert into ins_income (policyno, commission, finalcommission,
- doingcommission, creattime, updatedate)
- values (#{policyno,jdbcType=VARCHAR}, #{commission,jdbcType=DOUBLE}, #{finalcommission,jdbcType=DOUBLE},
- #{doingcommission,jdbcType=DOUBLE}, #{creattime,jdbcType=TIMESTAMP}, #{updatedate,jdbcType=TIMESTAMP})
- </insert>
- <insert id="insertSelective" parameterType="com.ydtech.modules.ins.model.InsIncome">
- insert into ins_income
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="policyno != null">
- policyno,
- </if>
- <if test="commission != null">
- commission,
- </if>
- <if test="finalcommission != null">
- finalcommission,
- </if>
- <if test="doingcommission != null">
- doingcommission,
- </if>
- <if test="creattime != null">
- creattime,
- </if>
- <if test="updatedate != null">
- updatedate,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="policyno != null">
- #{policyno,jdbcType=VARCHAR},
- </if>
- <if test="commission != null">
- #{commission,jdbcType=DOUBLE},
- </if>
- <if test="finalcommission != null">
- #{finalcommission,jdbcType=DOUBLE},
- </if>
- <if test="doingcommission != null">
- #{doingcommission,jdbcType=DOUBLE},
- </if>
- <if test="creattime != null">
- #{creattime,jdbcType=TIMESTAMP},
- </if>
- <if test="updatedate != null">
- #{updatedate,jdbcType=TIMESTAMP},
- </if>
- </trim>
- </insert>
- <update id="updateByPrimaryKeySelective" parameterType="com.ydtech.modules.ins.model.InsIncome">
- update ins_income
- <set>
- <if test="commission != null">
- commission = #{commission,jdbcType=DOUBLE},
- </if>
- <if test="finalcommission != null">
- finalcommission = #{finalcommission,jdbcType=DOUBLE},
- </if>
- <if test="doingcommission != null">
- doingcommission = #{doingcommission,jdbcType=DOUBLE},
- </if>
- <if test="creattime != null">
- creattime = #{creattime,jdbcType=TIMESTAMP},
- </if>
- <if test="updatedate != null">
- updatedate = #{updatedate,jdbcType=TIMESTAMP},
- </if>
- </set>
- where policyno = #{policyno,jdbcType=VARCHAR}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.ydtech.modules.ins.model.InsIncome">
- update ins_income
- set commission = #{commission,jdbcType=DOUBLE},
- finalcommission = #{finalcommission,jdbcType=DOUBLE},
- doingcommission = #{doingcommission,jdbcType=DOUBLE},
- creattime = #{creattime,jdbcType=TIMESTAMP},
- updatedate = #{updatedate,jdbcType=TIMESTAMP}
- where policyno = #{policyno,jdbcType=VARCHAR}
- </update>
- <update id="updateBatch">
- <foreach collection="incomeList" separator=";" item="item">
- update ins_income set
- commission = #{item.commission},
- finalcommission = #{item.finalcommission},
- doingcommission = #{item.doingcommission},
- updatedate = #{item.updatedate}
- where policyno = #{item.policyno}
- </foreach>
- </update>
- </mapper>
|