CONFIG_USER_CUSTOMCODEMapper.xml
2.3 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<?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.sunyo.wlpt.base.dao.CONFIG_USER_CUSTOMCODEMapper">
<resultMap id="BaseResultMap" type="com.sunyo.wlpt.base.model.CONFIG_USER_CUSTOMCODE">
<result column="userID" jdbcType="INTEGER" property="userid" />
<result column="customCode" jdbcType="VARCHAR" property="customcode" />
</resultMap>
<insert id="insert" parameterType="com.sunyo.wlpt.base.model.CONFIG_USER_CUSTOMCODE">
insert into CONFIG_USER_CUSTOMCODE (userID, customCode)
values (#{userid,jdbcType=INTEGER}, #{customcode,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.sunyo.wlpt.base.model.CONFIG_USER_CUSTOMCODE">
insert into CONFIG_USER_CUSTOMCODE
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="userid != null">
userID,
</if>
<if test="customcode != null">
customCode,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="userid != null">
#{userid,jdbcType=INTEGER},
</if>
<if test="customcode != null">
#{customcode,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<resultMap id="BaseResultMap" type="com.sunyo.wlpt.base.model.CONFIG_USER_CUSTOMCODE">
<result column="userID" jdbcType="INTEGER" property="userid" />
<result column="customCode" jdbcType="VARCHAR" property="customcode" />
</resultMap>
<insert id="insert" parameterType="com.sunyo.wlpt.base.model.CONFIG_USER_CUSTOMCODE">
insert into CONFIG_USER_CUSTOMCODE (userID, customCode)
values (#{userid,jdbcType=INTEGER}, #{customcode,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.sunyo.wlpt.base.model.CONFIG_USER_CUSTOMCODE">
insert into CONFIG_USER_CUSTOMCODE
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="userid != null">
userID,
</if>
<if test="customcode != null">
customCode,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="userid != null">
#{userid,jdbcType=INTEGER},
</if>
<if test="customcode != null">
#{customcode,jdbcType=VARCHAR},
</if>
</trim>
</insert>
</mapper>