pans
2017-08-30 71c92f101b6c8b4a678a8c3cfe2d8edbf488efa4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?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.com.basic.face.discern.baseapi.checking.CheckingCompanyMapper" >
  <resultMap id="BaseResultMap" type="cn.com.basic.face.discern.checking.entity.CheckingCompany" >
    <result column="personID" property="personid" jdbcType="INTEGER" />
    <result column="companyID" property="companyid" jdbcType="INTEGER" />
  </resultMap>
  <insert id="insert" parameterType="cn.com.basic.face.discern.checking.entity.CheckingCompany" >
    insert into t_checkingcompany (personID, companyID)
    values (#{personid,jdbcType=INTEGER}, #{companyid,jdbcType=INTEGER})
  </insert>
  <insert id="insertSelective" parameterType="cn.com.basic.face.discern.checking.entity.CheckingCompany" >
    insert into t_checkingcompany
    <trim prefix="(" suffix=")" suffixOverrides="," >
      <if test="personid != null" >
        personID,
      </if>
      <if test="companyid != null" >
        companyID,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides="," >
      <if test="personid != null" >
        #{personid,jdbcType=INTEGER},
      </if>
      <if test="companyid != null" >
        #{companyid,jdbcType=INTEGER},
      </if>
    </trim>
  </insert>
</mapper>