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
32
33
34
35
36
37
38
39
40
<?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.user.ImageMapper" >
  <resultMap id="BaseResultMap" type="cn.com.basic.face.discern.user.entity.Image" >
    <result column="personID" property="personid" jdbcType="INTEGER" />
    <result column="imageTye" property="imagetye" jdbcType="VARCHAR" />
    <result column="imagePath" property="imagepath" jdbcType="VARCHAR" />
  </resultMap>
  <insert id="insert" parameterType="cn.com.basic.face.discern.user.entity.Image" >
    insert into t_image (personID, imageTye, imagePath
      )
    values (#{personid,jdbcType=INTEGER}, #{imagetye,jdbcType=VARCHAR}, #{imagepath,jdbcType=VARCHAR}
      )
  </insert>
  <insert id="insertSelective" parameterType="cn.com.basic.face.discern.user.entity.Image" >
    insert into t_image
    <trim prefix="(" suffix=")" suffixOverrides="," >
      <if test="personid != null" >
        personID,
      </if>
      <if test="imagetye != null" >
        imageTye,
      </if>
      <if test="imagepath != null" >
        imagePath,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides="," >
      <if test="personid != null" >
        #{personid,jdbcType=INTEGER},
      </if>
      <if test="imagetye != null" >
        #{imagetye,jdbcType=VARCHAR},
      </if>
      <if test="imagepath != null" >
        #{imagepath,jdbcType=VARCHAR},
      </if>
    </trim>
  </insert>
</mapper>