gaodd 2 роки тому
батько
коміт
1d270b8f85

+ 1 - 1
src/main/java/com/chinaitop/depot/customer/mapper/BusinessCustomerBadrecordMapper.xml

@@ -110,7 +110,7 @@
110 110
       happen_date, food_amount, money_amount, 
111 111
       record_type, record_info, name, 
112 112
       org_id)
113
-    values (SEQ_BUSINESS_CUSTOMER_BADRECORD.nextVal, #{customerBid,jdbcType=INTEGER}, #{customerId,jdbcType=INTEGER}, 
113
+    values (#{id,jdbcType=INTEGER}, #{customerBid,jdbcType=INTEGER}, #{customerId,jdbcType=INTEGER}, 
114 114
       #{happenDate,jdbcType=TIMESTAMP}, #{foodAmount,jdbcType=DECIMAL}, #{moneyAmount,jdbcType=DECIMAL}, 
115 115
       #{recordType,jdbcType=VARCHAR}, #{recordInfo,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, 
116 116
       #{orgId,jdbcType=INTEGER})

+ 5 - 6
src/main/java/com/chinaitop/depot/customer/mapper/BusinessCustomerMapper.xml

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

+ 1 - 3
src/main/java/com/chinaitop/depot/grainAnalysis/mapper/GrainAnalysisAbnormalMapper.xml

@@ -109,9 +109,7 @@
109 109
     </if>
110 110
   </delete>
111 111
   <insert id="insert" parameterType="com.chinaitop.depot.grainAnalysis.model.GrainAnalysisAbnormal" >
112
-    <selectKey keyProperty="id" resultType="java.lang.Integer" order="BEFORE">
113
-      select seq_business_agent_tank.nextVal from dual
114
-    </selectKey>
112
+    
115 113
     insert into grain_analysis_abnormal (id, ycqklx, ycqkbw,
116 114
       ycqkfw, ycqklw, ycqksf, 
117 115
       swjcqsqk, swjchcqk, swjcbzqk, 

+ 1 - 3
src/main/java/com/chinaitop/depot/grainAnalysis/mapper/GrainAnalysisMapper.xml

@@ -121,9 +121,7 @@
121 121
     </if>
122 122
   </delete>
123 123
   <insert id="insert" parameterType="com.chinaitop.depot.grainAnalysis.model.GrainAnalysis" >
124
-    <selectKey keyProperty="id" resultType="java.lang.Integer" order="BEFORE">
125
-      select seq_business_agent_tank.nextVal from dual
126
-    </selectKey>
124
+   
127 125
     insert into grain_analysis (id, bh, lkmc,
128 126
       house_id, house_code, warehouse_id, 
129 127
       house_type, lspz, zrbgy, 

+ 0 - 3
src/main/java/com/chinaitop/depot/keeperAccount/mapper/StorageAccountRecordMapper.xml

@@ -138,9 +138,6 @@
138 138
       )
139 139
   </insert>
140 140
   <insert id="insertSelective" parameterType="com.chinaitop.depot.keeperAccount.model.StorageAccountRecord">
141
-    <selectKey keyProperty="id" resultType="java.lang.Integer" order="BEFORE">
142
-  		select seq_storage_account_record.nextVal from dual
143
-  	</selectKey>
144 141
     insert into storage_account_record
145 142
     <trim prefix="(" suffix=")" suffixOverrides=",">
146 143
       <if test="id != null">

+ 1 - 1
src/main/java/com/chinaitop/depot/profitlossStatement/mapper/BusinessApprovalMapper.xml

@@ -182,7 +182,7 @@
182 182
       title, version, task_type_name, 
183 183
       is_hide, is_countersign, apply_name, 
184 184
       apply_name_id, apply_time)
185
-    values (business_approval_seq.nextVal, #{createTime,jdbcType=TIMESTAMP}, #{isDeleted,jdbcType=INTEGER},
185
+    values (#{id,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, #{isDeleted,jdbcType=INTEGER},
186 186
       #{remark,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{content,jdbcType=VARCHAR}, 
187 187
       #{fromDepartment,jdbcType=VARCHAR}, #{fromPeople,jdbcType=VARCHAR}, #{fromUserName,jdbcType=VARCHAR}, 
188 188
       #{lastPeople,jdbcType=VARCHAR}, #{operateTime,jdbcType=VARCHAR}, #{operator,jdbcType=VARCHAR},