<?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>
|