SbgjjAssoDetailedMapper.xml 3.09 KB
Newer Older
lal committed
1 2 3 4 5 6 7 8 9 10 11 12
<?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="cn.timer.api.dao.sbgjj.SbgjjAssoDetailedMapper">

    <resultMap id="BaseResultMap" type="cn.timer.api.bean.sbgjj.SbgjjAssoDetailed" >
                <id column="id" property="id" />
                <result column="user_id" property="userId" />
                <result column="attribution_time" property="attributionTime" />
                <result column="cbfzmx_id" property="cbfzmxId" />
                <result column="coverage_name" property="coverageName" />
                <result column="personal_amount" property="personalAmount" />
ilal committed
13 14
                <result column="personal_proportion" property="personalProportion" />
                
lal committed
15
                <result column="company_amount" property="companyAmount" />
ilal committed
16
                <result column="company_proportion" property="companyProportion" />
lal committed
17 18 19
                <result column="xz_type" property="xzType" />
                <result column="org_code" property="orgCode" />
                <result column="addtime" property="addtime" />
ilal committed
20 21 22 23
                
                <result column="cbfns" property="cbfns" />
                <result column="sbjss" property="sbjss" />
                <result column="gjjjss" property="gjjjss" />
ilal committed
24
                <result column="cbryid" property="cbryid" />
lal committed
25 26 27
    </resultMap>

	<insert id="insertsbgjjassodetailedList" parameterType="java.util.List" >
ilal committed
28
	    insert into sbgjj_asso_detailed (user_id,attribution_time,cbfzmx_id,coverage_name,personal_amount,personal_proportion,company_amount,company_proportion,xz_type,org_code,addtime,cbfns,sbjss,gjjjss,cbryid)
lal committed
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
	    <foreach collection="list" item="item" index="index" open="values " close="" separator=",">
	   	(
	      <if test="item.userId != null" >
	        #{item.userId},
	      </if>
	      <if test="item.attributionTime != null" >
	        #{item.attributionTime},
	      </if>
	      <if test="item.cbfzmxId != null" >
	        #{item.cbfzmxId},
	      </if>
	      <if test="item.coverageName != null" >
	        #{item.coverageName},
	      </if>
	      <if test="item.personalAmount != null" >
	        #{item.personalAmount},
	      </if>
ilal committed
46 47 48
	      <if test="item.personalProportion != null" >
	        #{item.personalProportion},
	      </if>
lal committed
49 50 51
	      <if test="item.companyAmount != null" >
	        #{item.companyAmount},
	      </if>
ilal committed
52 53 54
	      <if test="item.companyProportion != null" >
	        #{item.companyProportion},
	      </if>
lal committed
55 56 57 58 59 60 61
	      <if test="item.xzType != null" >
	        #{item.xzType},
	      </if>
	      <if test="item.orgCode != null" >
	        #{item.orgCode},
	      </if>
	      <if test="item.addtime != null" >
ilal committed
62 63 64 65 66 67 68 69 70
	        #{item.addtime},
	      </if>
	      <if test="item.cbfns != null" >
	        #{item.cbfns},
	      </if>
	      <if test="item.sbjss != null" >
	        #{item.sbjss},
	      </if>
	      <if test="item.gjjjss != null" >
ilal committed
71 72 73 74
	        #{item.gjjjss},
	      </if>
	      <if test="item.cbryid != null" >
	        #{item.cbryid}
lal committed
75 76 77 78 79 80 81
	      </if>
	      )
	    </foreach>
   </insert>


</mapper>