|
|
@@ -138,9 +138,7 @@
|
|
138
|
138
|
</if>
|
|
139
|
139
|
</delete>
|
|
140
|
140
|
<insert id="insert" parameterType="com.chinaitop.depot.customer.model.BusinessCustomer" keyProperty="id" useGeneratedKeys="true">
|
|
141
|
|
- <selectKey resultType="java.lang.Integer" keyProperty="id" order="BEFORE" >
|
|
142
|
|
- SELECT SEQ_BUSINESS_CUSTOMER.nextVal from dual
|
|
143
|
|
- </selectKey>
|
|
|
141
|
+
|
|
144
|
142
|
insert into business_customer (id,classify, customer_number, name,
|
|
145
|
143
|
address, mobile, identification,
|
|
146
|
144
|
email, remark, general_property,
|
|
|
@@ -166,9 +164,7 @@
|
|
166
|
164
|
#{lxrsfzh,jdbcType=VARCHAR},#{yzbm,jdbcType=VARCHAR},#{khhh,jdbcType=VARCHAR},#{sfwz,jdbcType=VARCHAR})
|
|
167
|
165
|
</insert>
|
|
168
|
166
|
<insert id="insertSelective" parameterType="com.chinaitop.depot.customer.model.BusinessCustomer" >
|
|
169
|
|
- <selectKey resultType="java.lang.Integer" keyProperty="id" order="BEFORE" >
|
|
170
|
|
- SELECT SEQ_BUSINESS_CUSTOMER.nextVal from dual
|
|
171
|
|
- </selectKey>
|
|
|
167
|
+
|
|
172
|
168
|
insert into business_customer
|
|
173
|
169
|
<trim prefix="(" suffix=")" suffixOverrides="," >
|
|
174
|
170
|
<if test="id != null" >
|
|
|
@@ -287,6 +283,9 @@
|
|
287
|
283
|
</if>
|
|
288
|
284
|
</trim>
|
|
289
|
285
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
|
286
|
+ <if test="id != null" >
|
|
|
287
|
+ #{id,jdbcType=INTEGER},
|
|
|
288
|
+ </if>
|
|
290
|
289
|
<if test="classify != null" >
|
|
291
|
290
|
#{classify,jdbcType=INTEGER},
|
|
292
|
291
|
</if>
|