T_TXD_FWBPARTYMapper.xml
6.8 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
<?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.example.demo.mapper.T_TXD_FWBPARTYMapper" >
<resultMap id="BaseResultMap" type="com.example.demo.model.T_TXD_FWBPARTY" >
<id column="FID" property="fid" jdbcType="DECIMAL" />
<result column="PRIMARYID" property="primaryid" jdbcType="VARCHAR" />
<result column="NAME" property="name" jdbcType="VARCHAR" />
<result column="ACCOUNTID" property="accountid" jdbcType="VARCHAR" />
<result column="ROLECODE" property="rolecode" jdbcType="VARCHAR" />
<result column="ROLE" property="role" jdbcType="VARCHAR" />
<result column="CITYNAME" property="cityname" jdbcType="VARCHAR" />
<result column="COUNTRYID" property="countryid" jdbcType="VARCHAR" />
<result column="SPECIFIEDADDRESSLOCATION" property="specifiedaddresslocation" jdbcType="VARCHAR" />
<result column="SPECIFIEDCARGOAGENTLOCATION" property="specifiedcargoagentlocation" jdbcType="VARCHAR" />
<result column="DEFINEDTRADECONTACT" property="definedtradecontact" jdbcType="VARCHAR" />
<result column="TXD_FWB_ID" property="txdFwbId" jdbcType="DECIMAL" />
</resultMap>
<sql id="Base_Column_List" >
FID, PRIMARYID, NAME, ACCOUNTID, ROLECODE, ROLE, CITYNAME, COUNTRYID, SPECIFIEDADDRESSLOCATION,
SPECIFIEDCARGOAGENTLOCATION, DEFINEDTRADECONTACT, TXD_FWB_ID
</sql>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.math.BigDecimal" >
select
<include refid="Base_Column_List" />
from T_TXD_FWBPARTY
where FID = #{fid,jdbcType=DECIMAL}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.math.BigDecimal" >
delete from T_TXD_FWBPARTY
where FID = #{fid,jdbcType=DECIMAL}
</delete>
<insert id="insert" parameterType="com.example.demo.model.T_TXD_FWBPARTY" >
insert into T_TXD_FWBPARTY (FID, PRIMARYID, NAME,
ACCOUNTID, ROLECODE, ROLE,
CITYNAME, COUNTRYID, SPECIFIEDADDRESSLOCATION,
SPECIFIEDCARGOAGENTLOCATION, DEFINEDTRADECONTACT,
TXD_FWB_ID)
values (#{fid,jdbcType=DECIMAL}, #{primaryid,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR},
#{accountid,jdbcType=VARCHAR}, #{rolecode,jdbcType=VARCHAR}, #{role,jdbcType=VARCHAR},
#{cityname,jdbcType=VARCHAR}, #{countryid,jdbcType=VARCHAR}, #{specifiedaddresslocation,jdbcType=VARCHAR},
#{specifiedcargoagentlocation,jdbcType=VARCHAR}, #{definedtradecontact,jdbcType=VARCHAR},
#{txdFwbId,jdbcType=DECIMAL})
</insert>
<insert id="insertSelective" parameterType="com.example.demo.model.T_TXD_FWBPARTY" >
insert into T_TXD_FWBPARTY
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="fid != null" >
FID,
</if>
<if test="primaryid != null" >
PRIMARYID,
</if>
<if test="name != null" >
NAME,
</if>
<if test="accountid != null" >
ACCOUNTID,
</if>
<if test="rolecode != null" >
ROLECODE,
</if>
<if test="role != null" >
ROLE,
</if>
<if test="cityname != null" >
CITYNAME,
</if>
<if test="countryid != null" >
COUNTRYID,
</if>
<if test="specifiedaddresslocation != null" >
SPECIFIEDADDRESSLOCATION,
</if>
<if test="specifiedcargoagentlocation != null" >
SPECIFIEDCARGOAGENTLOCATION,
</if>
<if test="definedtradecontact != null" >
DEFINEDTRADECONTACT,
</if>
<if test="txdFwbId != null" >
TXD_FWB_ID,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="fid != null" >
#{fid,jdbcType=DECIMAL},
</if>
<if test="primaryid != null" >
#{primaryid,jdbcType=VARCHAR},
</if>
<if test="name != null" >
#{name,jdbcType=VARCHAR},
</if>
<if test="accountid != null" >
#{accountid,jdbcType=VARCHAR},
</if>
<if test="rolecode != null" >
#{rolecode,jdbcType=VARCHAR},
</if>
<if test="role != null" >
#{role,jdbcType=VARCHAR},
</if>
<if test="cityname != null" >
#{cityname,jdbcType=VARCHAR},
</if>
<if test="countryid != null" >
#{countryid,jdbcType=VARCHAR},
</if>
<if test="specifiedaddresslocation != null" >
#{specifiedaddresslocation,jdbcType=VARCHAR},
</if>
<if test="specifiedcargoagentlocation != null" >
#{specifiedcargoagentlocation,jdbcType=VARCHAR},
</if>
<if test="definedtradecontact != null" >
#{definedtradecontact,jdbcType=VARCHAR},
</if>
<if test="txdFwbId != null" >
#{txdFwbId,jdbcType=DECIMAL},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.example.demo.model.T_TXD_FWBPARTY" >
update T_TXD_FWBPARTY
<set >
<if test="primaryid != null" >
PRIMARYID = #{primaryid,jdbcType=VARCHAR},
</if>
<if test="name != null" >
NAME = #{name,jdbcType=VARCHAR},
</if>
<if test="accountid != null" >
ACCOUNTID = #{accountid,jdbcType=VARCHAR},
</if>
<if test="rolecode != null" >
ROLECODE = #{rolecode,jdbcType=VARCHAR},
</if>
<if test="role != null" >
ROLE = #{role,jdbcType=VARCHAR},
</if>
<if test="cityname != null" >
CITYNAME = #{cityname,jdbcType=VARCHAR},
</if>
<if test="countryid != null" >
COUNTRYID = #{countryid,jdbcType=VARCHAR},
</if>
<if test="specifiedaddresslocation != null" >
SPECIFIEDADDRESSLOCATION = #{specifiedaddresslocation,jdbcType=VARCHAR},
</if>
<if test="specifiedcargoagentlocation != null" >
SPECIFIEDCARGOAGENTLOCATION = #{specifiedcargoagentlocation,jdbcType=VARCHAR},
</if>
<if test="definedtradecontact != null" >
DEFINEDTRADECONTACT = #{definedtradecontact,jdbcType=VARCHAR},
</if>
<if test="txdFwbId != null" >
TXD_FWB_ID = #{txdFwbId,jdbcType=DECIMAL},
</if>
</set>
where FID = #{fid,jdbcType=DECIMAL}
</update>
<update id="updateByPrimaryKey" parameterType="com.example.demo.model.T_TXD_FWBPARTY" >
update T_TXD_FWBPARTY
set PRIMARYID = #{primaryid,jdbcType=VARCHAR},
NAME = #{name,jdbcType=VARCHAR},
ACCOUNTID = #{accountid,jdbcType=VARCHAR},
ROLECODE = #{rolecode,jdbcType=VARCHAR},
ROLE = #{role,jdbcType=VARCHAR},
CITYNAME = #{cityname,jdbcType=VARCHAR},
COUNTRYID = #{countryid,jdbcType=VARCHAR},
SPECIFIEDADDRESSLOCATION = #{specifiedaddresslocation,jdbcType=VARCHAR},
SPECIFIEDCARGOAGENTLOCATION = #{specifiedcargoagentlocation,jdbcType=VARCHAR},
DEFINEDTRADECONTACT = #{definedtradecontact,jdbcType=VARCHAR},
TXD_FWB_ID = #{txdFwbId,jdbcType=DECIMAL}
where FID = #{fid,jdbcType=DECIMAL}
</update>
</mapper>