Переглянути джерело

Merge branch 'dev' of http://101.36.160.140:21044/depot-qinghai/depot-business-qinghai into dev

tangsong 1 рік тому
батько
коміт
ce852ee64c
20 змінених файлів з 2806 додано та 2905 видалено
  1. 3 1
      src/main/java/com/chinaitop/depot/DatePermissionInterceptor.java
  2. 0 1
      src/main/java/com/chinaitop/depot/act/controller/ActDynamicFormController.java
  3. 28 11
      src/main/java/com/chinaitop/depot/business/controller/BusinessContractController.java
  4. 13 0
      src/main/java/com/chinaitop/depot/business/controller/audit/BusinessContractAuditController.java
  5. 372 237
      src/main/java/com/chinaitop/depot/business/mapper/BusinessContractMapper.xml
  6. 475 1157
      src/main/java/com/chinaitop/depot/business/model/BusinessContract.java
  7. 1834 1450
      src/main/java/com/chinaitop/depot/business/model/BusinessContractExample.java
  8. 2 2
      src/main/java/com/chinaitop/depot/business/service/BusinessContractService.java
  9. 16 11
      src/main/java/com/chinaitop/depot/business/service/impl/BusinessContractServiceImpl.java
  10. 3 6
      src/main/java/com/chinaitop/depot/business/service/impl/GrainContractServiceImpl.java
  11. 16 0
      src/main/java/com/chinaitop/depot/rp/controller/BusinessRpReportController.java
  12. 0 1
      src/main/java/com/chinaitop/depot/rp/mapper/BusinessQcQualityInspectionMapper.java
  13. 1 1
      src/main/java/com/chinaitop/depot/rp/mapper/BusinessQcQualityInspectionMapper.xml
  14. 6 2
      src/main/java/com/chinaitop/depot/rp/mapper/BusinessRpReportMapper.xml
  15. 3 12
      src/main/java/com/chinaitop/depot/rp/model/BusinessQcQualityInspection.java
  16. 0 7
      src/main/java/com/chinaitop/depot/rp/param/BusinessRpReportPageParam.java
  17. 2 0
      src/main/java/com/chinaitop/depot/rp/service/BusinessRpReportService.java
  18. 28 6
      src/main/java/com/chinaitop/depot/rp/service/impl/BusinessRpReportServiceImpl.java
  19. 2 0
      src/main/resources/bootstrap-dev.yml
  20. 2 0
      src/main/resources/bootstrap-prod.yml

+ 3 - 1
src/main/java/com/chinaitop/depot/DatePermissionInterceptor.java

@@ -80,7 +80,9 @@ public class DatePermissionInterceptor implements Interceptor {
80 80
 						!"com.chinaitop.depot.business.mapper.BusinessDeliveryStorageNoticeMapper.selectByExample".equals(mappedStatement.getId()) &&
81 81
 						!"com.chinaitop.depot.business.mapper.BusinessNoticeReceiveMapper.getUserRole_COUNT".equals(mappedStatement.getId()) &&
82 82
 						!"com.chinaitop.depot.business.mapper.BusinessMovelibraryMapper.selectList".equals(mappedStatement.getId())&&
83
-						!"com.chinaitop.depot.system.mapper.SysCodeMapper.selectByPrimaryKey".equals(mappedStatement.getId())
83
+						!"com.chinaitop.depot.system.mapper.SysCodeMapper.selectByPrimaryKey".equals(mappedStatement.getId())&&
84
+						!"com.chinaitop.depot.rp.mapper.BusinessRpReportMapper.selectRecListByPageParam".equals(mappedStatement.getId())&&
85
+						!"com.chinaitop.depot.rp.mapper.BusinessRpReportMapper.selectByPageParam".equals(mappedStatement.getId())
84 86
 						){
85 87
 					//解析sql中的表名
86 88
 					Statement statement = CCJSqlParserUtil.parse(bouString);

+ 0 - 1
src/main/java/com/chinaitop/depot/act/controller/ActDynamicFormController.java

@@ -7,7 +7,6 @@ import java.util.HashMap;
7 7
 import java.util.List;
8 8
 import java.util.Map;
9 9
 import java.util.Map.Entry;
10
-import javax.annotation.Resource;
11 10
 import javax.servlet.http.HttpServletRequest;
12 11
 import org.activiti.engine.FormService;
13 12
 import org.activiti.engine.HistoryService;

+ 28 - 11
src/main/java/com/chinaitop/depot/business/controller/BusinessContractController.java

@@ -2,22 +2,26 @@ package com.chinaitop.depot.business.controller;
2 2
 
3 3
 
4 4
 import java.io.IOException;
5
-import java.text.SimpleDateFormat;
6 5
 import java.util.HashMap;
7 6
 import java.util.List;
8 7
 import java.util.Map;
8
+import java.lang.reflect.InvocationTargetException;
9
+import java.lang.reflect.Method;
10
+
9 11
 
10 12
 import javax.annotation.Resource;
11 13
 import javax.servlet.http.HttpServletRequest;
12 14
 
13
-import org.apache.commons.lang.ObjectUtils;
14 15
 import org.apache.commons.lang3.StringUtils;
15 16
 import org.springframework.beans.factory.annotation.Autowired;
17
+import org.springframework.beans.factory.annotation.Value;
16 18
 import org.springframework.http.MediaType;
17 19
 import org.springframework.web.bind.annotation.RequestMapping;
18 20
 import org.springframework.web.bind.annotation.RequestMethod;
19 21
 import org.springframework.web.bind.annotation.RestController;
22
+import org.springframework.web.client.RestTemplate;
20 23
 
24
+import com.alibaba.fastjson.JSON;
21 25
 import com.chinaitop.depot.act.service.ActTaskService;
22 26
 import com.chinaitop.depot.business.model.BusinessContract;
23 27
 import com.chinaitop.depot.business.model.BusinessContractExample;
@@ -64,6 +68,12 @@ public class BusinessContractController {
64 68
     @Autowired
65 69
     private BusinessDeliveryStorageNoticeService businessNoticeService;
66 70
     
71
+    @Autowired
72
+    private RestTemplate restTemplate;
73
+    
74
+    @Value("${customerUrl}")
75
+    private String customerUrl;
76
+    
67 77
     /**
68 78
      * 合同申请列表.
69 79
      * @param pageNum 页码
@@ -242,14 +252,21 @@ public class BusinessContractController {
242 252
 		@ApiImplicitParam(name = "id", value = "合同id", paramType = "query")
243 253
 	})
244 254
     public Map<String, Object> edit(Integer id) {
245
-        Map<String, Object> modelMap = new HashMap<String, Object>();
255
+        Map<String, Object> returnMap = new HashMap<String, Object>();
256
+        
246 257
         if (id != null) {
258
+        	
247 259
             BusinessContract contract = contractService.findById(id);
248
-            modelMap.put("contract", contract);
249
-            List<BusinessFile> fileList= businessFileService.getByBid(id, "contract", null, null);
250
-            modelMap.put("fileList", fileList);
260
+            returnMap.put("contract", contract);
261
+            
262
+            Map<String,Integer> paramMap = new HashMap<String, Integer>();
263
+            paramMap.put("id", contract.getCustomerBid());
264
+            
265
+            Object forObject =  restTemplate.getForEntity(customerUrl+""+contract.getCustomerBid(), Object.class);
266
+            returnMap.put("customer",forObject);
267
+            
251 268
         }
252
-        return modelMap;
269
+        return returnMap;
253 270
     }
254 271
     
255 272
     /**
@@ -520,7 +537,7 @@ public class BusinessContractController {
520 537
     	@ApiImplicitParam(name="depotInfoOrgId", value="当前登录人的组织id", paramType="form")
521 538
     })
522 539
     public Map<String, Object> save(String contractJson, String businessStoreWareDetailJson,
523
-            HttpServletRequest request,Integer userId,String realName,Integer depotInfoOrgId,String fileIds, String deleteFileIds) 
540
+            HttpServletRequest request,Integer userId,String realName,Integer depotInfoOrgId) 
524 541
             throws JsonParseException, JsonMappingException, IOException {
525 542
         Map<String, Object> modelMap = new HashMap<String, Object>();
526 543
     	/*UserInfo userInfo= (UserInfo) request.getSession().getAttribute("userInfo");
@@ -541,7 +558,7 @@ public class BusinessContractController {
541 558
                 storeWareDetailList = (List<BusinessStoreWareDetail>)mapper.readValue(businessStoreWareDetailJson, new TypeReference<List<BusinessStoreWareDetail>>(){});
542 559
             }
543 560
             if (contract.getId() == null) {
544
-                Map<String, Object> returnMap = contractService.add(contract, storeWareDetailList,  userId, realName, depotInfoOrgId,fileIds);
561
+                Map<String, Object> returnMap = contractService.add(contract, storeWareDetailList,  userId, realName, depotInfoOrgId);
545 562
                 if (returnMap != null && returnMap.get("error") != null) {
546 563
                     modelMap.put("status", "error");
547 564
                     modelMap.put("msg", returnMap.get("error"));
@@ -549,7 +566,7 @@ public class BusinessContractController {
549 566
                 }
550 567
                 modelMap.put("id", returnMap.get("id"));
551 568
             } else {
552
-                contractService.update(contract, storeWareDetailList,fileIds,deleteFileIds);
569
+                contractService.update(contract, storeWareDetailList);
553 570
             }
554 571
             modelMap.put("status", "success");
555 572
         } catch (Exception e) {
@@ -670,7 +687,7 @@ public class BusinessContractController {
670 687
             if (contract.getId() == null) {
671 688
                 throw new RuntimeException("合同id为空,保存失败!");
672 689
             } else {
673
-                contractService.update(contract, storeWareDetailList,fileIds,deleteFileIds);
690
+                contractService.update(contract, storeWareDetailList);
674 691
             }
675 692
             modelMap.put("status", "success");
676 693
         } catch (Exception e) {

+ 13 - 0
src/main/java/com/chinaitop/depot/business/controller/audit/BusinessContractAuditController.java

@@ -9,10 +9,12 @@ import javax.annotation.Resource;
9 9
 import javax.servlet.http.HttpServletRequest;
10 10
 
11 11
 import org.springframework.beans.factory.annotation.Autowired;
12
+import org.springframework.beans.factory.annotation.Value;
12 13
 import org.springframework.http.MediaType;
13 14
 import org.springframework.web.bind.annotation.RequestMapping;
14 15
 import org.springframework.web.bind.annotation.RequestMethod;
15 16
 import org.springframework.web.bind.annotation.RestController;
17
+import org.springframework.web.client.RestTemplate;
16 18
 
17 19
 import com.chinaitop.depot.act.model.HistoryList;
18 20
 import com.chinaitop.depot.act.service.ActTaskService;
@@ -58,6 +60,12 @@ public class BusinessContractAuditController {
58 60
     @Autowired
59 61
     private BusinessFileService businessFileService;
60 62
     
63
+    @Autowired
64
+    private RestTemplate restTemplate;
65
+    
66
+    @Value("${customerUrl}")
67
+    private String customerUrl;
68
+    
61 69
     /**
62 70
      * 获取审批列表.
63 71
      * @param pageNum  页码
@@ -147,6 +155,11 @@ public class BusinessContractAuditController {
147 155
         Map<String, Object> modelMap = new HashMap<String, Object>();
148 156
         BusinessContract contract = businessContractService.findById(id);
149 157
         modelMap.put("contract", contract);
158
+        
159
+        //客户
160
+        Object forObject =  restTemplate.getForEntity(customerUrl+""+contract.getCustomerBid(), Object.class);
161
+        modelMap.put("customer",forObject);
162
+        
150 163
        // 获取对应的文件.
151 164
         List<BusinessFile> fileList= businessFileService.getByBid(id,"contract", null, null);
152 165
         

+ 372 - 237
src/main/java/com/chinaitop/depot/business/mapper/BusinessContractMapper.xml

@@ -7,7 +7,7 @@
7 7
       This element is automatically generated by MyBatis Generator, do not modify.
8 8
       This element was generated on Mon Jun 29 19:30:27 CST 2020.
9 9
     -->
10
-    <id column="id" property="id" jdbcType="INTEGER" />
10
+    <!-- <id column="id" property="id" jdbcType="INTEGER" />
11 11
     <result column="contract_number" property="contractNumber" jdbcType="VARCHAR" />
12 12
     <result column="contract_title" property="contractTitle" jdbcType="VARCHAR" />
13 13
     <result column="customer_id" property="customerId" jdbcType="VARCHAR" />
@@ -63,7 +63,72 @@
63 63
     <result column="lybzj" property="lybzj" jdbcType="VARCHAR" />
64 64
     <result column="khqyr" property="khqyr" jdbcType="VARCHAR" />
65 65
     <result column="bfkhh" property="bfkhh" jdbcType="VARCHAR" />
66
+    <result column="bfzh" property="bfzh" jdbcType="VARCHAR" /> -->
67
+    
68
+    <id column="id" property="id" jdbcType="INTEGER" />
69
+    <result column="contract_number" property="contractNumber" jdbcType="VARCHAR" />
70
+    <result column="plan_bid" property="planBid" jdbcType="INTEGER" />
71
+    <result column="contract_title" property="contractTitle" jdbcType="VARCHAR" />
72
+    <result column="contract_type" property="contractType" jdbcType="INTEGER" />
73
+    <result column="signing_time" property="signingTime" jdbcType="DATE" />
74
+    <result column="qddd" property="qddd" jdbcType="VARCHAR" />
75
+    <result column="money_quantity" property="moneyQuantity" jdbcType="VARCHAR" />
76
+    <result column="lybzj" property="lybzj" jdbcType="VARCHAR" />
77
+    <result column="customer_bid" property="customerBid" jdbcType="INTEGER" />
78
+    <result column="grain_quantity" property="grainQuantity" jdbcType="DECIMAL" />
79
+    <result column="customer_id" property="customerId" jdbcType="VARCHAR" />
80
+    <result column="customer_number" property="customerNumber" jdbcType="VARCHAR" />
81
+    <result column="customer_name" property="customerName" jdbcType="VARCHAR" />
82
+    <result column="signing_man" property="signingMan" jdbcType="VARCHAR" />
83
+    <result column="enable_date" property="enableDate" jdbcType="TIMESTAMP" />
84
+    <result column="performance_quantity" property="performanceQuantity" jdbcType="DECIMAL" />
85
+    <result column="performance_rate" property="performanceRate" jdbcType="DECIMAL" />
86
+    <result column="settle_contract_uniformity" property="settleContractUniformity" jdbcType="TINYINT" />
87
+    <result column="settle_contract_uniformity_reason" property="settleContractUniformityReason" jdbcType="VARCHAR" />
88
+    <result column="sign_comple_time" property="signCompleTime" jdbcType="TIMESTAMP" />
89
+    <result column="purchase_unit" property="purchaseUnit" jdbcType="VARCHAR" />
90
+    <result column="disable_date" property="disableDate" jdbcType="TIMESTAMP" />
91
+    <result column="original_contract" property="originalContract" jdbcType="VARCHAR" />
92
+    <result column="original_contract_bid" property="originalContractBid" jdbcType="INTEGER" />
93
+    <result column="root_contract_bid" property="rootContractBid" jdbcType="INTEGER" />
94
+    <result column="shipping_type" property="shippingType" jdbcType="INTEGER" />
95
+    <result column="contract_pay_type" property="contractPayType" jdbcType="INTEGER" />
96
+    <result column="finished_quantity" property="finishedQuantity" jdbcType="VARCHAR" />
97
+    <result column="money_of_finished_quantity" property="moneyOfFinishedQuantity" jdbcType="VARCHAR" />
98
+    <result column="remark" property="remark" jdbcType="VARCHAR" />
99
+    <result column="plant_acreage" property="plantAcreage" jdbcType="VARCHAR" />
100
+    <result column="plan_number" property="planNumber" jdbcType="VARCHAR" />
101
+    <result column="mobile" property="mobile" jdbcType="VARCHAR" />
102
+    <result column="bank_name" property="bankName" jdbcType="VARCHAR" />
103
+    <result column="account_name" property="accountName" jdbcType="VARCHAR" />
104
+    <result column="account_number" property="accountNumber" jdbcType="VARCHAR" />
105
+    <result column="breach_liability" property="breachLiability" jdbcType="VARCHAR" />
106
+    <result column="dissolution_conditions" property="dissolutionConditions" jdbcType="VARCHAR" />
107
+    <result column="identification" property="identification" jdbcType="VARCHAR" />
108
+    <result column="khqyr" property="khqyr" jdbcType="VARCHAR" />
109
+    <result column="bfkhh" property="bfkhh" jdbcType="VARCHAR" />
66 110
     <result column="bfzh" property="bfzh" jdbcType="VARCHAR" />
111
+    <result column="dispute_settlement_method" property="disputeSettlementMethod" jdbcType="VARCHAR" />
112
+    <result column="change_record_flag" property="changeRecordFlag" jdbcType="VARCHAR" />
113
+    <result column="change_reason" property="changeReason" jdbcType="VARCHAR" />
114
+    <result column="change_time" property="changeTime" jdbcType="TIMESTAMP" />
115
+    <result column="change_content" property="changeContent" jdbcType="VARCHAR" />
116
+    <result column="changing" property="changing" jdbcType="VARCHAR" />
117
+    <result column="audit_state" property="auditState" jdbcType="VARCHAR" />
118
+    <result column="process_instance_id" property="processInstanceId" jdbcType="VARCHAR" />
119
+    <result column="process_definition_id" property="processDefinitionId" jdbcType="VARCHAR" />
120
+    <result column="agree_time" property="agreeTime" jdbcType="TIMESTAMP" />
121
+    <result column="create_man" property="createMan" jdbcType="VARCHAR" />
122
+    <result column="creater" property="creater" jdbcType="VARCHAR" />
123
+    <result column="create_time" property="createTime" jdbcType="TIMESTAMP" />
124
+    <result column="create_unit" property="createUnit" jdbcType="VARCHAR" />
125
+    <result column="create_depot" property="createDepot" jdbcType="VARCHAR" />
126
+    <result column="update_time" property="updateTime" jdbcType="TIMESTAMP" />
127
+    <result column="org_id" property="orgId" jdbcType="INTEGER" />
128
+    <result column="in_application" property="inApplication" jdbcType="INTEGER" />
129
+    <result column="creater_id" property="createrId" jdbcType="INTEGER" />
130
+    <result column="updatetime" property="updatetime" jdbcType="TIMESTAMP" />
131
+    <result column="attachment" property="attachment" jdbcType="VARCHAR" />
67 132
     
68 133
   </resultMap>
69 134
   <sql id="Example_Where_Clause" >
@@ -140,16 +205,18 @@
140 205
       This element is automatically generated by MyBatis Generator, do not modify.
141 206
       This element was generated on Mon Jun 29 19:30:27 CST 2020.
142 207
     -->
143
-    id, contract_number, contract_title, customer_id, customer_bid, customer_number, 
144
-    customer_name, grain_quantity, money_quantity, signing_man, signing_time, enable_date, 
145
-    disable_date, contract_type, original_contract, original_contract_bid, root_contract_bid, 
208
+    id, contract_number, plan_bid, contract_title, contract_type, signing_time, qddd, 
209
+    money_quantity, lybzj, customer_bid, grain_quantity, customer_id, customer_number, 
210
+    customer_name, signing_man, enable_date, performance_quantity, performance_rate, 
211
+    settle_contract_uniformity, settle_contract_uniformity_reason, sign_comple_time, 
212
+    purchase_unit, disable_date, original_contract, original_contract_bid, root_contract_bid, 
146 213
     shipping_type, contract_pay_type, finished_quantity, money_of_finished_quantity, 
147 214
     remark, plant_acreage, plan_number, mobile, bank_name, account_name, account_number, 
148
-    breach_liability, dissolution_conditions, dispute_settlement_method, change_record_flag, 
149
-    change_reason, change_time, change_content, changing, plan_bid, audit_state, process_instance_id, 
150
-    process_definition_id, agree_time, create_man, creater, create_time, create_unit, 
151
-    create_depot, update_time, org_id, in_application, creater_id, identification, updatetime, 
152
-    qddd, lybzj, khqyr, bfkhh, bfzh
215
+    breach_liability, dissolution_conditions, identification, khqyr, bfkhh, bfzh, dispute_settlement_method, 
216
+    change_record_flag, change_reason, change_time, change_content, changing, audit_state, 
217
+    process_instance_id, process_definition_id, agree_time, create_man, creater, create_time, 
218
+    create_unit, create_depot, update_time, org_id, in_application, creater_id, updatetime, 
219
+    attachment
153 220
   </sql>
154 221
   <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.chinaitop.depot.business.model.BusinessContractExample" >
155 222
     <!--
@@ -202,58 +269,54 @@
202 269
     </if>
203 270
   </delete>
204 271
   <insert id="insert" useGeneratedKeys="true" keyProperty="id" parameterType="com.chinaitop.depot.business.model.BusinessContract" >
205
-    <!--
206
-      WARNING - @mbggenerated
207
-      This element is automatically generated by MyBatis Generator, do not modify.
208
-      This element was generated on Mon Jun 29 19:30:27 CST 2020.
209
-    -->
210
-    insert into business_contract (id, contract_number, contract_title, 
211
-      customer_id, customer_bid, customer_number, 
212
-      customer_name, grain_quantity, money_quantity, 
213
-      signing_man, signing_time, enable_date, 
214
-      disable_date, contract_type, original_contract, 
215
-      original_contract_bid, root_contract_bid, shipping_type, 
216
-      contract_pay_type, finished_quantity, money_of_finished_quantity, 
272
+    insert into business_contract (id, contract_number, plan_bid, 
273
+      contract_title, contract_type, signing_time, 
274
+      qddd, money_quantity, lybzj, 
275
+      customer_bid, grain_quantity, customer_id, 
276
+      customer_number, customer_name, signing_man, 
277
+      enable_date, performance_quantity, performance_rate, 
278
+      settle_contract_uniformity, settle_contract_uniformity_reason, 
279
+      sign_comple_time, purchase_unit, disable_date, 
280
+      original_contract, original_contract_bid, 
281
+      root_contract_bid, shipping_type, contract_pay_type, 
282
+      finished_quantity, money_of_finished_quantity, 
217 283
       remark, plant_acreage, plan_number, 
218 284
       mobile, bank_name, account_name, 
219 285
       account_number, breach_liability, dissolution_conditions, 
220
-      dispute_settlement_method, change_record_flag, 
286
+      identification, khqyr, bfkhh, 
287
+      bfzh, dispute_settlement_method, change_record_flag, 
221 288
       change_reason, change_time, change_content, 
222
-      changing, plan_bid, audit_state, 
223
-      process_instance_id, process_definition_id, 
224
-      agree_time, create_man, creater, 
225
-      create_time, create_unit, create_depot, 
226
-      update_time, org_id, in_application, 
227
-      creater_id, identification, updatetime, 
228
-      qddd, lybzj, khqyr, 
229
-      bfkhh, bfzh)
230
-    values (#{id,jdbcType=INTEGER}, #{contractNumber,jdbcType=VARCHAR}, #{contractTitle,jdbcType=VARCHAR}, 
231
-      #{customerId,jdbcType=VARCHAR}, #{customerBid,jdbcType=INTEGER}, #{customerNumber,jdbcType=VARCHAR}, 
232
-      #{customerName,jdbcType=VARCHAR}, #{grainQuantity,jdbcType=VARCHAR}, #{moneyQuantity,jdbcType=VARCHAR}, 
233
-      #{signingMan,jdbcType=VARCHAR}, #{signingTime,jdbcType=TIMESTAMP}, #{enableDate,jdbcType=TIMESTAMP}, 
234
-      #{disableDate,jdbcType=TIMESTAMP}, #{contractType,jdbcType=INTEGER}, #{originalContract,jdbcType=VARCHAR}, 
235
-      #{originalContractBid,jdbcType=INTEGER}, #{rootContractBid,jdbcType=INTEGER}, #{shippingType,jdbcType=INTEGER}, 
236
-      #{contractPayType,jdbcType=INTEGER}, #{finishedQuantity,jdbcType=VARCHAR}, #{moneyOfFinishedQuantity,jdbcType=VARCHAR}, 
289
+      changing, audit_state, process_instance_id, 
290
+      process_definition_id, agree_time, create_man, 
291
+      creater, create_time, create_unit, 
292
+      create_depot, update_time, org_id, 
293
+      in_application, creater_id, updatetime, 
294
+      attachment)
295
+    values (#{id,jdbcType=INTEGER}, #{contractNumber,jdbcType=VARCHAR}, #{planBid,jdbcType=INTEGER}, 
296
+      #{contractTitle,jdbcType=VARCHAR}, #{contractType,jdbcType=INTEGER}, #{signingTime,jdbcType=DATE}, 
297
+      #{qddd,jdbcType=VARCHAR}, #{moneyQuantity,jdbcType=VARCHAR}, #{lybzj,jdbcType=VARCHAR}, 
298
+      #{customerBid,jdbcType=INTEGER}, #{grainQuantity,jdbcType=DECIMAL}, #{customerId,jdbcType=VARCHAR}, 
299
+      #{customerNumber,jdbcType=VARCHAR}, #{customerName,jdbcType=VARCHAR}, #{signingMan,jdbcType=VARCHAR}, 
300
+      #{enableDate,jdbcType=TIMESTAMP}, #{performanceQuantity,jdbcType=DECIMAL}, #{performanceRate,jdbcType=DECIMAL}, 
301
+      #{settleContractUniformity,jdbcType=TINYINT}, #{settleContractUniformityReason,jdbcType=VARCHAR}, 
302
+      #{signCompleTime,jdbcType=TIMESTAMP}, #{purchaseUnit,jdbcType=VARCHAR}, #{disableDate,jdbcType=TIMESTAMP}, 
303
+      #{originalContract,jdbcType=VARCHAR}, #{originalContractBid,jdbcType=INTEGER}, 
304
+      #{rootContractBid,jdbcType=INTEGER}, #{shippingType,jdbcType=INTEGER}, #{contractPayType,jdbcType=INTEGER}, 
305
+      #{finishedQuantity,jdbcType=VARCHAR}, #{moneyOfFinishedQuantity,jdbcType=VARCHAR}, 
237 306
       #{remark,jdbcType=VARCHAR}, #{plantAcreage,jdbcType=VARCHAR}, #{planNumber,jdbcType=VARCHAR}, 
238 307
       #{mobile,jdbcType=VARCHAR}, #{bankName,jdbcType=VARCHAR}, #{accountName,jdbcType=VARCHAR}, 
239 308
       #{accountNumber,jdbcType=VARCHAR}, #{breachLiability,jdbcType=VARCHAR}, #{dissolutionConditions,jdbcType=VARCHAR}, 
240
-      #{disputeSettlementMethod,jdbcType=VARCHAR}, #{changeRecordFlag,jdbcType=VARCHAR}, 
309
+      #{identification,jdbcType=VARCHAR}, #{khqyr,jdbcType=VARCHAR}, #{bfkhh,jdbcType=VARCHAR}, 
310
+      #{bfzh,jdbcType=VARCHAR}, #{disputeSettlementMethod,jdbcType=VARCHAR}, #{changeRecordFlag,jdbcType=VARCHAR}, 
241 311
       #{changeReason,jdbcType=VARCHAR}, #{changeTime,jdbcType=TIMESTAMP}, #{changeContent,jdbcType=VARCHAR}, 
242
-      #{changing,jdbcType=VARCHAR}, #{planBid,jdbcType=INTEGER}, #{auditState,jdbcType=VARCHAR}, 
243
-      #{processInstanceId,jdbcType=VARCHAR}, #{processDefinitionId,jdbcType=VARCHAR}, 
244
-      #{agreeTime,jdbcType=TIMESTAMP}, #{createMan,jdbcType=VARCHAR}, #{creater,jdbcType=VARCHAR}, 
245
-      #{createTime,jdbcType=TIMESTAMP}, #{createUnit,jdbcType=VARCHAR}, #{createDepot,jdbcType=VARCHAR}, 
246
-      #{updateTime,jdbcType=TIMESTAMP}, #{orgId,jdbcType=INTEGER}, #{inApplication,jdbcType=INTEGER}, 
247
-      #{createrId,jdbcType=INTEGER}, #{identification,jdbcType=VARCHAR}, #{updatetime,jdbcType=TIMESTAMP}, 
248
-      #{qddd,jdbcType=VARCHAR}, #{lybzj,jdbcType=VARCHAR}, #{khqyr,jdbcType=VARCHAR}, 
249
-      #{bfkhh,jdbcType=VARCHAR}, #{bfzh,jdbcType=VARCHAR})
312
+      #{changing,jdbcType=VARCHAR}, #{auditState,jdbcType=VARCHAR}, #{processInstanceId,jdbcType=VARCHAR}, 
313
+      #{processDefinitionId,jdbcType=VARCHAR}, #{agreeTime,jdbcType=TIMESTAMP}, #{createMan,jdbcType=VARCHAR}, 
314
+      #{creater,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{createUnit,jdbcType=VARCHAR}, 
315
+      #{createDepot,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{orgId,jdbcType=INTEGER}, 
316
+      #{inApplication,jdbcType=INTEGER}, #{createrId,jdbcType=INTEGER}, #{updatetime,jdbcType=TIMESTAMP}, 
317
+      #{attachment,jdbcType=VARCHAR})
250 318
   </insert>
251 319
   <insert id="insertSelective" parameterType="com.chinaitop.depot.business.model.BusinessContract" >
252
-    <!--
253
-      WARNING - @mbggenerated
254
-      This element is automatically generated by MyBatis Generator, do not modify.
255
-      This element was generated on Mon Jun 29 19:30:27 CST 2020.
256
-    -->
257 320
     insert into business_contract
258 321
     <trim prefix="(" suffix=")" suffixOverrides="," >
259 322
       <if test="id != null" >
@@ -262,42 +325,69 @@
262 325
       <if test="contractNumber != null" >
263 326
         contract_number,
264 327
       </if>
328
+      <if test="planBid != null" >
329
+        plan_bid,
330
+      </if>
265 331
       <if test="contractTitle != null" >
266 332
         contract_title,
267 333
       </if>
268
-      <if test="customerId != null" >
269
-        customer_id,
334
+      <if test="contractType != null" >
335
+        contract_type,
336
+      </if>
337
+      <if test="signingTime != null" >
338
+        signing_time,
339
+      </if>
340
+      <if test="qddd != null" >
341
+        qddd,
342
+      </if>
343
+      <if test="moneyQuantity != null" >
344
+        money_quantity,
345
+      </if>
346
+      <if test="lybzj != null" >
347
+        lybzj,
270 348
       </if>
271 349
       <if test="customerBid != null" >
272 350
         customer_bid,
273 351
       </if>
352
+      <if test="grainQuantity != null" >
353
+        grain_quantity,
354
+      </if>
355
+      <if test="customerId != null" >
356
+        customer_id,
357
+      </if>
274 358
       <if test="customerNumber != null" >
275 359
         customer_number,
276 360
       </if>
277 361
       <if test="customerName != null" >
278 362
         customer_name,
279 363
       </if>
280
-      <if test="grainQuantity != null" >
281
-        grain_quantity,
282
-      </if>
283
-      <if test="moneyQuantity != null" >
284
-        money_quantity,
285
-      </if>
286 364
       <if test="signingMan != null" >
287 365
         signing_man,
288 366
       </if>
289
-      <if test="signingTime != null" >
290
-        signing_time,
291
-      </if>
292 367
       <if test="enableDate != null" >
293 368
         enable_date,
294 369
       </if>
370
+      <if test="performanceQuantity != null" >
371
+        performance_quantity,
372
+      </if>
373
+      <if test="performanceRate != null" >
374
+        performance_rate,
375
+      </if>
376
+      <if test="settleContractUniformity != null" >
377
+        settle_contract_uniformity,
378
+      </if>
379
+      <if test="settleContractUniformityReason != null" >
380
+        settle_contract_uniformity_reason,
381
+      </if>
382
+      <if test="signCompleTime != null" >
383
+        sign_comple_time,
384
+      </if>
385
+      <if test="purchaseUnit != null" >
386
+        purchase_unit,
387
+      </if>
295 388
       <if test="disableDate != null" >
296 389
         disable_date,
297 390
       </if>
298
-      <if test="contractType != null" >
299
-        contract_type,
300
-      </if>
301 391
       <if test="originalContract != null" >
302 392
         original_contract,
303 393
       </if>
@@ -346,6 +436,18 @@
346 436
       <if test="dissolutionConditions != null" >
347 437
         dissolution_conditions,
348 438
       </if>
439
+      <if test="identification != null" >
440
+        identification,
441
+      </if>
442
+      <if test="khqyr != null" >
443
+        khqyr,
444
+      </if>
445
+      <if test="bfkhh != null" >
446
+        bfkhh,
447
+      </if>
448
+      <if test="bfzh != null" >
449
+        bfzh,
450
+      </if>
349 451
       <if test="disputeSettlementMethod != null" >
350 452
         dispute_settlement_method,
351 453
       </if>
@@ -364,9 +466,6 @@
364 466
       <if test="changing != null" >
365 467
         changing,
366 468
       </if>
367
-      <if test="planBid != null" >
368
-        plan_bid,
369
-      </if>
370 469
       <if test="auditState != null" >
371 470
         audit_state,
372 471
       </if>
@@ -406,28 +505,12 @@
406 505
       <if test="createrId != null" >
407 506
         creater_id,
408 507
       </if>
409
-      <if test="identification != null" >
410
-        identification,
411
-      </if>
412 508
       <if test="updatetime != null" >
413 509
         updatetime,
414 510
       </if>
415
-      <if test="qddd != null" >
416
-        qddd,
511
+      <if test="attachment != null" >
512
+        attachment,
417 513
       </if>
418
-      <if test="lybzj != null" >
419
-        lybzj,
420
-      </if>
421
-      <if test="khqyr != null" >
422
-        khqyr,
423
-      </if>
424
-      <if test="bfkhh != null" >
425
-        bfkhh,
426
-      </if>
427
-      <if test="bfzh != null" >
428
-        bfzh,
429
-      </if>
430
-      
431 514
     </trim>
432 515
     <trim prefix="values (" suffix=")" suffixOverrides="," >
433 516
       <if test="id != null" >
@@ -436,42 +519,69 @@
436 519
       <if test="contractNumber != null" >
437 520
         #{contractNumber,jdbcType=VARCHAR},
438 521
       </if>
522
+      <if test="planBid != null" >
523
+        #{planBid,jdbcType=INTEGER},
524
+      </if>
439 525
       <if test="contractTitle != null" >
440 526
         #{contractTitle,jdbcType=VARCHAR},
441 527
       </if>
442
-      <if test="customerId != null" >
443
-        #{customerId,jdbcType=VARCHAR},
528
+      <if test="contractType != null" >
529
+        #{contractType,jdbcType=INTEGER},
530
+      </if>
531
+      <if test="signingTime != null" >
532
+        #{signingTime,jdbcType=DATE},
533
+      </if>
534
+      <if test="qddd != null" >
535
+        #{qddd,jdbcType=VARCHAR},
536
+      </if>
537
+      <if test="moneyQuantity != null" >
538
+        #{moneyQuantity,jdbcType=VARCHAR},
539
+      </if>
540
+      <if test="lybzj != null" >
541
+        #{lybzj,jdbcType=VARCHAR},
444 542
       </if>
445 543
       <if test="customerBid != null" >
446 544
         #{customerBid,jdbcType=INTEGER},
447 545
       </if>
546
+      <if test="grainQuantity != null" >
547
+        #{grainQuantity,jdbcType=DECIMAL},
548
+      </if>
549
+      <if test="customerId != null" >
550
+        #{customerId,jdbcType=VARCHAR},
551
+      </if>
448 552
       <if test="customerNumber != null" >
449 553
         #{customerNumber,jdbcType=VARCHAR},
450 554
       </if>
451 555
       <if test="customerName != null" >
452 556
         #{customerName,jdbcType=VARCHAR},
453 557
       </if>
454
-      <if test="grainQuantity != null" >
455
-        #{grainQuantity,jdbcType=VARCHAR},
456
-      </if>
457
-      <if test="moneyQuantity != null" >
458
-        #{moneyQuantity,jdbcType=VARCHAR},
459
-      </if>
460 558
       <if test="signingMan != null" >
461 559
         #{signingMan,jdbcType=VARCHAR},
462 560
       </if>
463
-      <if test="signingTime != null" >
464
-        #{signingTime,jdbcType=TIMESTAMP},
465
-      </if>
466 561
       <if test="enableDate != null" >
467 562
         #{enableDate,jdbcType=TIMESTAMP},
468 563
       </if>
564
+      <if test="performanceQuantity != null" >
565
+        #{performanceQuantity,jdbcType=DECIMAL},
566
+      </if>
567
+      <if test="performanceRate != null" >
568
+        #{performanceRate,jdbcType=DECIMAL},
569
+      </if>
570
+      <if test="settleContractUniformity != null" >
571
+        #{settleContractUniformity,jdbcType=TINYINT},
572
+      </if>
573
+      <if test="settleContractUniformityReason != null" >
574
+        #{settleContractUniformityReason,jdbcType=VARCHAR},
575
+      </if>
576
+      <if test="signCompleTime != null" >
577
+        #{signCompleTime,jdbcType=TIMESTAMP},
578
+      </if>
579
+      <if test="purchaseUnit != null" >
580
+        #{purchaseUnit,jdbcType=VARCHAR},
581
+      </if>
469 582
       <if test="disableDate != null" >
470 583
         #{disableDate,jdbcType=TIMESTAMP},
471 584
       </if>
472
-      <if test="contractType != null" >
473
-        #{contractType,jdbcType=INTEGER},
474
-      </if>
475 585
       <if test="originalContract != null" >
476 586
         #{originalContract,jdbcType=VARCHAR},
477 587
       </if>
@@ -520,6 +630,18 @@
520 630
       <if test="dissolutionConditions != null" >
521 631
         #{dissolutionConditions,jdbcType=VARCHAR},
522 632
       </if>
633
+      <if test="identification != null" >
634
+        #{identification,jdbcType=VARCHAR},
635
+      </if>
636
+      <if test="khqyr != null" >
637
+        #{khqyr,jdbcType=VARCHAR},
638
+      </if>
639
+      <if test="bfkhh != null" >
640
+        #{bfkhh,jdbcType=VARCHAR},
641
+      </if>
642
+      <if test="bfzh != null" >
643
+        #{bfzh,jdbcType=VARCHAR},
644
+      </if>
523 645
       <if test="disputeSettlementMethod != null" >
524 646
         #{disputeSettlementMethod,jdbcType=VARCHAR},
525 647
       </if>
@@ -538,9 +660,6 @@
538 660
       <if test="changing != null" >
539 661
         #{changing,jdbcType=VARCHAR},
540 662
       </if>
541
-      <if test="planBid != null" >
542
-        #{planBid,jdbcType=INTEGER},
543
-      </if>
544 663
       <if test="auditState != null" >
545 664
         #{auditState,jdbcType=VARCHAR},
546 665
       </if>
@@ -580,28 +699,12 @@
580 699
       <if test="createrId != null" >
581 700
         #{createrId,jdbcType=INTEGER},
582 701
       </if>
583
-      <if test="identification != null" >
584
-        #{identification,jdbcType=VARCHAR},
585
-      </if>
586 702
       <if test="updatetime != null" >
587 703
         #{updatetime,jdbcType=TIMESTAMP},
588 704
       </if>
589
-      <if test="qddd != null" >
590
-        #{qddd,jdbcType=VARCHAR},
591
-      </if>
592
-      <if test="lybzj != null" >
593
-        #{lybzj,jdbcType=VARCHAR},
594
-      </if>
595
-      <if test="khqyr != null" >
596
-        #{khqyr,jdbcType=VARCHAR},
597
-      </if>
598
-      <if test="bfkhh != null" >
599
-        #{bfkhh,jdbcType=VARCHAR},
600
-      </if>
601
-      <if test="bfzh != null" >
602
-        #{bfzh,jdbcType=VARCHAR},
705
+      <if test="attachment != null" >
706
+        #{attachment,jdbcType=VARCHAR},
603 707
       </if>
604
-      
605 708
     </trim>
606 709
   </insert>
607 710
   <select id="countByExample" parameterType="com.chinaitop.depot.business.model.BusinessContractExample" resultType="java.lang.Integer" >
@@ -616,11 +719,6 @@
616 719
     </if>
617 720
   </select>
618 721
   <update id="updateByExampleSelective" parameterType="map" >
619
-    <!--
620
-      WARNING - @mbggenerated
621
-      This element is automatically generated by MyBatis Generator, do not modify.
622
-      This element was generated on Mon Jun 29 19:30:27 CST 2020.
623
-    -->
624 722
     update business_contract
625 723
     <set >
626 724
       <if test="record.id != null" >
@@ -629,42 +727,69 @@
629 727
       <if test="record.contractNumber != null" >
630 728
         contract_number = #{record.contractNumber,jdbcType=VARCHAR},
631 729
       </if>
730
+      <if test="record.planBid != null" >
731
+        plan_bid = #{record.planBid,jdbcType=INTEGER},
732
+      </if>
632 733
       <if test="record.contractTitle != null" >
633 734
         contract_title = #{record.contractTitle,jdbcType=VARCHAR},
634 735
       </if>
635
-      <if test="record.customerId != null" >
636
-        customer_id = #{record.customerId,jdbcType=VARCHAR},
736
+      <if test="record.contractType != null" >
737
+        contract_type = #{record.contractType,jdbcType=INTEGER},
738
+      </if>
739
+      <if test="record.signingTime != null" >
740
+        signing_time = #{record.signingTime,jdbcType=DATE},
741
+      </if>
742
+      <if test="record.qddd != null" >
743
+        qddd = #{record.qddd,jdbcType=VARCHAR},
744
+      </if>
745
+      <if test="record.moneyQuantity != null" >
746
+        money_quantity = #{record.moneyQuantity,jdbcType=VARCHAR},
747
+      </if>
748
+      <if test="record.lybzj != null" >
749
+        lybzj = #{record.lybzj,jdbcType=VARCHAR},
637 750
       </if>
638 751
       <if test="record.customerBid != null" >
639 752
         customer_bid = #{record.customerBid,jdbcType=INTEGER},
640 753
       </if>
754
+      <if test="record.grainQuantity != null" >
755
+        grain_quantity = #{record.grainQuantity,jdbcType=DECIMAL},
756
+      </if>
757
+      <if test="record.customerId != null" >
758
+        customer_id = #{record.customerId,jdbcType=VARCHAR},
759
+      </if>
641 760
       <if test="record.customerNumber != null" >
642 761
         customer_number = #{record.customerNumber,jdbcType=VARCHAR},
643 762
       </if>
644 763
       <if test="record.customerName != null" >
645 764
         customer_name = #{record.customerName,jdbcType=VARCHAR},
646 765
       </if>
647
-      <if test="record.grainQuantity != null" >
648
-        grain_quantity = #{record.grainQuantity,jdbcType=VARCHAR},
649
-      </if>
650
-      <if test="record.moneyQuantity != null" >
651
-        money_quantity = #{record.moneyQuantity,jdbcType=VARCHAR},
652
-      </if>
653 766
       <if test="record.signingMan != null" >
654 767
         signing_man = #{record.signingMan,jdbcType=VARCHAR},
655 768
       </if>
656
-      <if test="record.signingTime != null" >
657
-        signing_time = #{record.signingTime,jdbcType=TIMESTAMP},
658
-      </if>
659 769
       <if test="record.enableDate != null" >
660 770
         enable_date = #{record.enableDate,jdbcType=TIMESTAMP},
661 771
       </if>
772
+      <if test="record.performanceQuantity != null" >
773
+        performance_quantity = #{record.performanceQuantity,jdbcType=DECIMAL},
774
+      </if>
775
+      <if test="record.performanceRate != null" >
776
+        performance_rate = #{record.performanceRate,jdbcType=DECIMAL},
777
+      </if>
778
+      <if test="record.settleContractUniformity != null" >
779
+        settle_contract_uniformity = #{record.settleContractUniformity,jdbcType=TINYINT},
780
+      </if>
781
+      <if test="record.settleContractUniformityReason != null" >
782
+        settle_contract_uniformity_reason = #{record.settleContractUniformityReason,jdbcType=VARCHAR},
783
+      </if>
784
+      <if test="record.signCompleTime != null" >
785
+        sign_comple_time = #{record.signCompleTime,jdbcType=TIMESTAMP},
786
+      </if>
787
+      <if test="record.purchaseUnit != null" >
788
+        purchase_unit = #{record.purchaseUnit,jdbcType=VARCHAR},
789
+      </if>
662 790
       <if test="record.disableDate != null" >
663 791
         disable_date = #{record.disableDate,jdbcType=TIMESTAMP},
664 792
       </if>
665
-      <if test="record.contractType != null" >
666
-        contract_type = #{record.contractType,jdbcType=INTEGER},
667
-      </if>
668 793
       <if test="record.originalContract != null" >
669 794
         original_contract = #{record.originalContract,jdbcType=VARCHAR},
670 795
       </if>
@@ -713,6 +838,18 @@
713 838
       <if test="record.dissolutionConditions != null" >
714 839
         dissolution_conditions = #{record.dissolutionConditions,jdbcType=VARCHAR},
715 840
       </if>
841
+      <if test="record.identification != null" >
842
+        identification = #{record.identification,jdbcType=VARCHAR},
843
+      </if>
844
+      <if test="record.khqyr != null" >
845
+        khqyr = #{record.khqyr,jdbcType=VARCHAR},
846
+      </if>
847
+      <if test="record.bfkhh != null" >
848
+        bfkhh = #{record.bfkhh,jdbcType=VARCHAR},
849
+      </if>
850
+      <if test="record.bfzh != null" >
851
+        bfzh = #{record.bfzh,jdbcType=VARCHAR},
852
+      </if>
716 853
       <if test="record.disputeSettlementMethod != null" >
717 854
         dispute_settlement_method = #{record.disputeSettlementMethod,jdbcType=VARCHAR},
718 855
       </if>
@@ -731,9 +868,6 @@
731 868
       <if test="record.changing != null" >
732 869
         changing = #{record.changing,jdbcType=VARCHAR},
733 870
       </if>
734
-      <if test="record.planBid != null" >
735
-        plan_bid = #{record.planBid,jdbcType=INTEGER},
736
-      </if>
737 871
       <if test="record.auditState != null" >
738 872
         audit_state = #{record.auditState,jdbcType=VARCHAR},
739 873
       </if>
@@ -773,54 +907,42 @@
773 907
       <if test="record.createrId != null" >
774 908
         creater_id = #{record.createrId,jdbcType=INTEGER},
775 909
       </if>
776
-      <if test="record.identification != null" >
777
-        identification = #{record.identification,jdbcType=VARCHAR},
778
-      </if>
779 910
       <if test="record.updatetime != null" >
780 911
         updatetime = #{record.updatetime,jdbcType=TIMESTAMP},
781 912
       </if>
782
-      <if test="record.qddd != null" >
783
-        qddd = #{record.qddd,jdbcType=VARCHAR},
913
+      <if test="record.attachment != null" >
914
+        attachment = #{record.attachment,jdbcType=VARCHAR},
784 915
       </if>
785
-      <if test="record.lybzj != null" >
786
-        lybzj = #{record.lybzj,jdbcType=VARCHAR},
787
-      </if>
788
-      <if test="record.khqyr != null" >
789
-        khqyr = #{record.khqyr,jdbcType=VARCHAR},
790
-      </if>
791
-      <if test="record.bfkhh != null" >
792
-        bfkhh = #{record.bfkhh,jdbcType=VARCHAR},
793
-      </if>
794
-      <if test="record.bfzh != null" >
795
-        bfzh = #{record.bfzh,jdbcType=VARCHAR},
796
-      </if>
797
-      
798 916
     </set>
799 917
     <if test="_parameter != null" >
800 918
       <include refid="Update_By_Example_Where_Clause" />
801 919
     </if>
802 920
   </update>
803 921
   <update id="updateByExample" parameterType="map" >
804
-    <!--
805
-      WARNING - @mbggenerated
806
-      This element is automatically generated by MyBatis Generator, do not modify.
807
-      This element was generated on Mon Jun 29 19:30:27 CST 2020.
808
-    -->
809 922
     update business_contract
810 923
     set id = #{record.id,jdbcType=INTEGER},
811 924
       contract_number = #{record.contractNumber,jdbcType=VARCHAR},
925
+      plan_bid = #{record.planBid,jdbcType=INTEGER},
812 926
       contract_title = #{record.contractTitle,jdbcType=VARCHAR},
813
-      customer_id = #{record.customerId,jdbcType=VARCHAR},
927
+      contract_type = #{record.contractType,jdbcType=INTEGER},
928
+      signing_time = #{record.signingTime,jdbcType=DATE},
929
+      qddd = #{record.qddd,jdbcType=VARCHAR},
930
+      money_quantity = #{record.moneyQuantity,jdbcType=VARCHAR},
931
+      lybzj = #{record.lybzj,jdbcType=VARCHAR},
814 932
       customer_bid = #{record.customerBid,jdbcType=INTEGER},
933
+      grain_quantity = #{record.grainQuantity,jdbcType=DECIMAL},
934
+      customer_id = #{record.customerId,jdbcType=VARCHAR},
815 935
       customer_number = #{record.customerNumber,jdbcType=VARCHAR},
816 936
       customer_name = #{record.customerName,jdbcType=VARCHAR},
817
-      grain_quantity = #{record.grainQuantity,jdbcType=VARCHAR},
818
-      money_quantity = #{record.moneyQuantity,jdbcType=VARCHAR},
819 937
       signing_man = #{record.signingMan,jdbcType=VARCHAR},
820
-      signing_time = #{record.signingTime,jdbcType=TIMESTAMP},
821 938
       enable_date = #{record.enableDate,jdbcType=TIMESTAMP},
939
+      performance_quantity = #{record.performanceQuantity,jdbcType=DECIMAL},
940
+      performance_rate = #{record.performanceRate,jdbcType=DECIMAL},
941
+      settle_contract_uniformity = #{record.settleContractUniformity,jdbcType=TINYINT},
942
+      settle_contract_uniformity_reason = #{record.settleContractUniformityReason,jdbcType=VARCHAR},
943
+      sign_comple_time = #{record.signCompleTime,jdbcType=TIMESTAMP},
944
+      purchase_unit = #{record.purchaseUnit,jdbcType=VARCHAR},
822 945
       disable_date = #{record.disableDate,jdbcType=TIMESTAMP},
823
-      contract_type = #{record.contractType,jdbcType=INTEGER},
824 946
       original_contract = #{record.originalContract,jdbcType=VARCHAR},
825 947
       original_contract_bid = #{record.originalContractBid,jdbcType=INTEGER},
826 948
       root_contract_bid = #{record.rootContractBid,jdbcType=INTEGER},
@@ -837,13 +959,16 @@
837 959
       account_number = #{record.accountNumber,jdbcType=VARCHAR},
838 960
       breach_liability = #{record.breachLiability,jdbcType=VARCHAR},
839 961
       dissolution_conditions = #{record.dissolutionConditions,jdbcType=VARCHAR},
962
+      identification = #{record.identification,jdbcType=VARCHAR},
963
+      khqyr = #{record.khqyr,jdbcType=VARCHAR},
964
+      bfkhh = #{record.bfkhh,jdbcType=VARCHAR},
965
+      bfzh = #{record.bfzh,jdbcType=VARCHAR},
840 966
       dispute_settlement_method = #{record.disputeSettlementMethod,jdbcType=VARCHAR},
841 967
       change_record_flag = #{record.changeRecordFlag,jdbcType=VARCHAR},
842 968
       change_reason = #{record.changeReason,jdbcType=VARCHAR},
843 969
       change_time = #{record.changeTime,jdbcType=TIMESTAMP},
844 970
       change_content = #{record.changeContent,jdbcType=VARCHAR},
845 971
       changing = #{record.changing,jdbcType=VARCHAR},
846
-      plan_bid = #{record.planBid,jdbcType=INTEGER},
847 972
       audit_state = #{record.auditState,jdbcType=VARCHAR},
848 973
       process_instance_id = #{record.processInstanceId,jdbcType=VARCHAR},
849 974
       process_definition_id = #{record.processDefinitionId,jdbcType=VARCHAR},
@@ -857,65 +982,81 @@
857 982
       org_id = #{record.orgId,jdbcType=INTEGER},
858 983
       in_application = #{record.inApplication,jdbcType=INTEGER},
859 984
       creater_id = #{record.createrId,jdbcType=INTEGER},
860
-      identification = #{record.identification,jdbcType=VARCHAR},
861 985
       updatetime = #{record.updatetime,jdbcType=TIMESTAMP},
862
-      qddd = #{record.qddd,jdbcType=VARCHAR},
863
-      lybzj = #{record.lybzj,jdbcType=VARCHAR},
864
-      khqyr = #{record.khqyr,jdbcType=VARCHAR},
865
-      bfkhh = #{record.bfkhh,jdbcType=VARCHAR},
866
-      bfzh = #{record.bfzh,jdbcType=VARCHAR}
867
-      
986
+      attachment = #{record.attachment,jdbcType=VARCHAR}
868 987
     <if test="_parameter != null" >
869 988
       <include refid="Update_By_Example_Where_Clause" />
870 989
     </if>
871 990
   </update>
872 991
   <update id="updateByPrimaryKeySelective" parameterType="com.chinaitop.depot.business.model.BusinessContract" >
873
-    <!--
874
-      WARNING - @mbggenerated
875
-      This element is automatically generated by MyBatis Generator, do not modify.
876
-      This element was generated on Mon Jun 29 19:30:27 CST 2020.
877
-    -->
878 992
     update business_contract
879 993
     <set >
880 994
       <if test="contractNumber != null" >
881 995
         contract_number = #{contractNumber,jdbcType=VARCHAR},
882 996
       </if>
997
+      <if test="planBid != null" >
998
+        plan_bid = #{planBid,jdbcType=INTEGER},
999
+      </if>
883 1000
       <if test="contractTitle != null" >
884 1001
         contract_title = #{contractTitle,jdbcType=VARCHAR},
885 1002
       </if>
886
-      <if test="customerId != null" >
887
-        customer_id = #{customerId,jdbcType=VARCHAR},
1003
+      <if test="contractType != null" >
1004
+        contract_type = #{contractType,jdbcType=INTEGER},
1005
+      </if>
1006
+      <if test="signingTime != null" >
1007
+        signing_time = #{signingTime,jdbcType=DATE},
1008
+      </if>
1009
+      <if test="qddd != null" >
1010
+        qddd = #{qddd,jdbcType=VARCHAR},
1011
+      </if>
1012
+      <if test="moneyQuantity != null" >
1013
+        money_quantity = #{moneyQuantity,jdbcType=VARCHAR},
1014
+      </if>
1015
+      <if test="lybzj != null" >
1016
+        lybzj = #{lybzj,jdbcType=VARCHAR},
888 1017
       </if>
889 1018
       <if test="customerBid != null" >
890 1019
         customer_bid = #{customerBid,jdbcType=INTEGER},
891 1020
       </if>
1021
+      <if test="grainQuantity != null" >
1022
+        grain_quantity = #{grainQuantity,jdbcType=DECIMAL},
1023
+      </if>
1024
+      <if test="customerId != null" >
1025
+        customer_id = #{customerId,jdbcType=VARCHAR},
1026
+      </if>
892 1027
       <if test="customerNumber != null" >
893 1028
         customer_number = #{customerNumber,jdbcType=VARCHAR},
894 1029
       </if>
895 1030
       <if test="customerName != null" >
896 1031
         customer_name = #{customerName,jdbcType=VARCHAR},
897 1032
       </if>
898
-      <if test="grainQuantity != null" >
899
-        grain_quantity = #{grainQuantity,jdbcType=VARCHAR},
900
-      </if>
901
-      <if test="moneyQuantity != null" >
902
-        money_quantity = #{moneyQuantity,jdbcType=VARCHAR},
903
-      </if>
904 1033
       <if test="signingMan != null" >
905 1034
         signing_man = #{signingMan,jdbcType=VARCHAR},
906 1035
       </if>
907
-      <if test="signingTime != null" >
908
-        signing_time = #{signingTime,jdbcType=TIMESTAMP},
909
-      </if>
910 1036
       <if test="enableDate != null" >
911 1037
         enable_date = #{enableDate,jdbcType=TIMESTAMP},
912 1038
       </if>
1039
+      <if test="performanceQuantity != null" >
1040
+        performance_quantity = #{performanceQuantity,jdbcType=DECIMAL},
1041
+      </if>
1042
+      <if test="performanceRate != null" >
1043
+        performance_rate = #{performanceRate,jdbcType=DECIMAL},
1044
+      </if>
1045
+      <if test="settleContractUniformity != null" >
1046
+        settle_contract_uniformity = #{settleContractUniformity,jdbcType=TINYINT},
1047
+      </if>
1048
+      <if test="settleContractUniformityReason != null" >
1049
+        settle_contract_uniformity_reason = #{settleContractUniformityReason,jdbcType=VARCHAR},
1050
+      </if>
1051
+      <if test="signCompleTime != null" >
1052
+        sign_comple_time = #{signCompleTime,jdbcType=TIMESTAMP},
1053
+      </if>
1054
+      <if test="purchaseUnit != null" >
1055
+        purchase_unit = #{purchaseUnit,jdbcType=VARCHAR},
1056
+      </if>
913 1057
       <if test="disableDate != null" >
914 1058
         disable_date = #{disableDate,jdbcType=TIMESTAMP},
915 1059
       </if>
916
-      <if test="contractType != null" >
917
-        contract_type = #{contractType,jdbcType=INTEGER},
918
-      </if>
919 1060
       <if test="originalContract != null" >
920 1061
         original_contract = #{originalContract,jdbcType=VARCHAR},
921 1062
       </if>
@@ -964,6 +1105,18 @@
964 1105
       <if test="dissolutionConditions != null" >
965 1106
         dissolution_conditions = #{dissolutionConditions,jdbcType=VARCHAR},
966 1107
       </if>
1108
+      <if test="identification != null" >
1109
+        identification = #{identification,jdbcType=VARCHAR},
1110
+      </if>
1111
+      <if test="khqyr != null" >
1112
+        khqyr = #{khqyr,jdbcType=VARCHAR},
1113
+      </if>
1114
+      <if test="bfkhh != null" >
1115
+        bfkhh = #{bfkhh,jdbcType=VARCHAR},
1116
+      </if>
1117
+      <if test="bfzh != null" >
1118
+        bfzh = #{bfzh,jdbcType=VARCHAR},
1119
+      </if>
967 1120
       <if test="disputeSettlementMethod != null" >
968 1121
         dispute_settlement_method = #{disputeSettlementMethod,jdbcType=VARCHAR},
969 1122
       </if>
@@ -982,9 +1135,6 @@
982 1135
       <if test="changing != null" >
983 1136
         changing = #{changing,jdbcType=VARCHAR},
984 1137
       </if>
985
-      <if test="planBid != null" >
986
-        plan_bid = #{planBid,jdbcType=INTEGER},
987
-      </if>
988 1138
       <if test="auditState != null" >
989 1139
         audit_state = #{auditState,jdbcType=VARCHAR},
990 1140
       </if>
@@ -1024,51 +1174,39 @@
1024 1174
       <if test="createrId != null" >
1025 1175
         creater_id = #{createrId,jdbcType=INTEGER},
1026 1176
       </if>
1027
-      <if test="identification != null" >
1028
-        identification = #{identification,jdbcType=VARCHAR},
1029
-      </if>
1030 1177
       <if test="updatetime != null" >
1031 1178
         updatetime = #{updatetime,jdbcType=TIMESTAMP},
1032 1179
       </if>
1033
-      <if test="qddd != null" >
1034
-        qddd = #{qddd,jdbcType=VARCHAR},
1180
+      <if test="attachment != null" >
1181
+        attachment = #{attachment,jdbcType=VARCHAR},
1035 1182
       </if>
1036
-      <if test="lybzj != null" >
1037
-        lybzj = #{lybzj,jdbcType=VARCHAR},
1038
-      </if>
1039
-      <if test="khqyr != null" >
1040
-        khqyr = #{khqyr,jdbcType=VARCHAR},
1041
-      </if>
1042
-      <if test="bfkhh != null" >
1043
-        bfkhh = #{bfkhh,jdbcType=VARCHAR},
1044
-      </if>
1045
-      <if test="bfzh != null" >
1046
-        bfzh = #{bfzh,jdbcType=VARCHAR},
1047
-      </if>
1048
-      
1049 1183
     </set>
1050 1184
     where id = #{id,jdbcType=INTEGER}
1051 1185
   </update>
1052 1186
   <update id="updateByPrimaryKey" parameterType="com.chinaitop.depot.business.model.BusinessContract" >
1053
-    <!--
1054
-      WARNING - @mbggenerated
1055
-      This element is automatically generated by MyBatis Generator, do not modify.
1056
-      This element was generated on Mon Jun 29 19:30:27 CST 2020.
1057
-    -->
1058 1187
     update business_contract
1059 1188
     set contract_number = #{contractNumber,jdbcType=VARCHAR},
1189
+      plan_bid = #{planBid,jdbcType=INTEGER},
1060 1190
       contract_title = #{contractTitle,jdbcType=VARCHAR},
1061
-      customer_id = #{customerId,jdbcType=VARCHAR},
1191
+      contract_type = #{contractType,jdbcType=INTEGER},
1192
+      signing_time = #{signingTime,jdbcType=DATE},
1193
+      qddd = #{qddd,jdbcType=VARCHAR},
1194
+      money_quantity = #{moneyQuantity,jdbcType=VARCHAR},
1195
+      lybzj = #{lybzj,jdbcType=VARCHAR},
1062 1196
       customer_bid = #{customerBid,jdbcType=INTEGER},
1197
+      grain_quantity = #{grainQuantity,jdbcType=DECIMAL},
1198
+      customer_id = #{customerId,jdbcType=VARCHAR},
1063 1199
       customer_number = #{customerNumber,jdbcType=VARCHAR},
1064 1200
       customer_name = #{customerName,jdbcType=VARCHAR},
1065
-      grain_quantity = #{grainQuantity,jdbcType=VARCHAR},
1066
-      money_quantity = #{moneyQuantity,jdbcType=VARCHAR},
1067 1201
       signing_man = #{signingMan,jdbcType=VARCHAR},
1068
-      signing_time = #{signingTime,jdbcType=TIMESTAMP},
1069 1202
       enable_date = #{enableDate,jdbcType=TIMESTAMP},
1203
+      performance_quantity = #{performanceQuantity,jdbcType=DECIMAL},
1204
+      performance_rate = #{performanceRate,jdbcType=DECIMAL},
1205
+      settle_contract_uniformity = #{settleContractUniformity,jdbcType=TINYINT},
1206
+      settle_contract_uniformity_reason = #{settleContractUniformityReason,jdbcType=VARCHAR},
1207
+      sign_comple_time = #{signCompleTime,jdbcType=TIMESTAMP},
1208
+      purchase_unit = #{purchaseUnit,jdbcType=VARCHAR},
1070 1209
       disable_date = #{disableDate,jdbcType=TIMESTAMP},
1071
-      contract_type = #{contractType,jdbcType=INTEGER},
1072 1210
       original_contract = #{originalContract,jdbcType=VARCHAR},
1073 1211
       original_contract_bid = #{originalContractBid,jdbcType=INTEGER},
1074 1212
       root_contract_bid = #{rootContractBid,jdbcType=INTEGER},
@@ -1085,13 +1223,16 @@
1085 1223
       account_number = #{accountNumber,jdbcType=VARCHAR},
1086 1224
       breach_liability = #{breachLiability,jdbcType=VARCHAR},
1087 1225
       dissolution_conditions = #{dissolutionConditions,jdbcType=VARCHAR},
1226
+      identification = #{identification,jdbcType=VARCHAR},
1227
+      khqyr = #{khqyr,jdbcType=VARCHAR},
1228
+      bfkhh = #{bfkhh,jdbcType=VARCHAR},
1229
+      bfzh = #{bfzh,jdbcType=VARCHAR},
1088 1230
       dispute_settlement_method = #{disputeSettlementMethod,jdbcType=VARCHAR},
1089 1231
       change_record_flag = #{changeRecordFlag,jdbcType=VARCHAR},
1090 1232
       change_reason = #{changeReason,jdbcType=VARCHAR},
1091 1233
       change_time = #{changeTime,jdbcType=TIMESTAMP},
1092 1234
       change_content = #{changeContent,jdbcType=VARCHAR},
1093 1235
       changing = #{changing,jdbcType=VARCHAR},
1094
-      plan_bid = #{planBid,jdbcType=INTEGER},
1095 1236
       audit_state = #{auditState,jdbcType=VARCHAR},
1096 1237
       process_instance_id = #{processInstanceId,jdbcType=VARCHAR},
1097 1238
       process_definition_id = #{processDefinitionId,jdbcType=VARCHAR},
@@ -1105,14 +1246,8 @@
1105 1246
       org_id = #{orgId,jdbcType=INTEGER},
1106 1247
       in_application = #{inApplication,jdbcType=INTEGER},
1107 1248
       creater_id = #{createrId,jdbcType=INTEGER},
1108
-      identification = #{identification,jdbcType=VARCHAR},
1109 1249
       updatetime = #{updatetime,jdbcType=TIMESTAMP},
1110
-      qddd = #{qddd,jdbcType=VARCHAR},
1111
-      lybzj = #{lybzj,jdbcType=VARCHAR},
1112
-      khqyr = #{khqyr,jdbcType=VARCHAR},
1113
-      bfkhh = #{bfkhh,jdbcType=VARCHAR},
1114
-      bfzh = #{bfzh,jdbcType=VARCHAR}
1115
-      
1250
+      attachment = #{attachment,jdbcType=VARCHAR}
1116 1251
     where id = #{id,jdbcType=INTEGER}
1117 1252
   </update>
1118 1253
   

Різницю між файлами не показано, бо вона завелика
+ 475 - 1157
src/main/java/com/chinaitop/depot/business/model/BusinessContract.java


Різницю між файлами не показано, бо вона завелика
+ 1834 - 1450
src/main/java/com/chinaitop/depot/business/model/BusinessContractExample.java


+ 2 - 2
src/main/java/com/chinaitop/depot/business/service/BusinessContractService.java

@@ -16,7 +16,7 @@ public interface BusinessContractService {
16 16
 	
17 17
 	BusinessContract findById(Integer id);
18 18
 	
19
-	void update(BusinessContract contract, List<BusinessStoreWareDetail> storeWareDetailList, String fileIds, String deleteFileIds);
19
+	void update(BusinessContract contract, List<BusinessStoreWareDetail> storeWareDetailList);
20 20
 	
21 21
 	void remove(Integer id,String processInstanceId,String deleteReason, Integer planBid);
22 22
 	
@@ -154,7 +154,7 @@ public interface BusinessContractService {
154 154
      */
155 155
     Map<String, Object> add(BusinessContract contract,
156 156
             List<BusinessStoreWareDetail> storeWareDetailList, Integer userId,
157
-            String realName,Integer depotInfoOrgId, String fileIds);
157
+            String realName,Integer depotInfoOrgId);
158 158
 
159 159
     /**
160 160
      * 根据计划id修改应用状态.

+ 16 - 11
src/main/java/com/chinaitop/depot/business/service/impl/BusinessContractServiceImpl.java

@@ -100,7 +100,7 @@ public class BusinessContractServiceImpl implements BusinessContractService {
100 100
      */
101 101
     @Transactional(readOnly = false)
102 102
     public Map<String, Object> add(BusinessContract contract, List<BusinessStoreWareDetail> storeWareDetailList,
103
-            Integer userId,String realName,Integer depotInfoOrgId,String fileIds) {
103
+            Integer userId,String realName,Integer depotInfoOrgId) {
104 104
         Map<String, Object> returnMap = new HashMap<String, Object>();
105 105
         
106 106
         /*// 通过规则,获取合同编号.
@@ -112,8 +112,10 @@ public class BusinessContractServiceImpl implements BusinessContractService {
112 112
             return returnMap;
113 113
         }*/
114 114
         // 合同数量.
115
-        String grainQuantity = contract.getGrainQuantity();
116
-        BigDecimal grainQuantityB = new BigDecimal(grainQuantity);
115
+        /*String grainQuantity = contract.getGrainQuantity()+"";
116
+        BigDecimal grainQuantityB = new BigDecimal(grainQuantity);*/
117
+        
118
+        BigDecimal grainQuantityB = contract.getGrainQuantity();
117 119
         // 合同单价.
118 120
        // String grainPrice = contract.getGrainPrice();
119 121
         //BigDecimal grainPriceB = new BigDecimal(grainPrice);
@@ -173,19 +175,19 @@ public class BusinessContractServiceImpl implements BusinessContractService {
173 175
             }
174 176
         }
175 177
        // 修改fileIds对应附件的bid为当前计划的id.
176
-        businessFileService.updateFileByFileIdsAndBid(fileIds, contract.getId(),"contract");
178
+       // businessFileService.updateFileByFileIdsAndBid(fileIds, contract.getId(),"contract");
177 179
         return returnMap;
178 180
     }
179 181
 
180 182
     /**
181 183
      * 修改.
182 184
      */
183
-    public void update(BusinessContract contract, List<BusinessStoreWareDetail> storeWareDetailList,String fileIds, String deleteFileIds) {
185
+    public void update(BusinessContract contract, List<BusinessStoreWareDetail> storeWareDetailList) {
184 186
         contractMapper.updateByPrimaryKey(contract);
185
-        // 修改fileIds对应附件的bid为当前计划的id.
187
+       /* // 修改fileIds对应附件的bid为当前计划的id.
186 188
         businessFileService.updateFileByFileIdsAndBid(fileIds, contract.getId(),"contract");
187 189
         // 删除附件.
188
-        businessFileService.deleteFileByFileIdArrayString(deleteFileIds);
190
+        businessFileService.deleteFileByFileIdArrayString(deleteFileIds);*/
189 191
         // 修改仓房货位数量质量标准子表.
190 192
         if (storeWareDetailList != null && storeWareDetailList.size() > 0) {
191 193
             for (BusinessStoreWareDetail storeWareDetail : storeWareDetailList) {
@@ -1073,8 +1075,9 @@ public class BusinessContractServiceImpl implements BusinessContractService {
1073 1075
                                 businessContractV.setCompleteAmount(sumRkslD.stripTrailingZeros().toPlainString());
1074 1076
                                 
1075 1077
                                 // 要求数量.
1076
-                                String demandAmount = businessContractV.getGrainQuantity();
1077
-                                BigDecimal demandAmountD = new BigDecimal(demandAmount.toString());
1078
+                                /*String demandAmount = businessContractV.getGrainQuantity()+"";
1079
+                                BigDecimal demandAmountD = new BigDecimal(demandAmount.toString());*/
1080
+                                BigDecimal demandAmountD = businessContractV.getGrainQuantity();
1078 1081
                                 
1079 1082
                                 // 除法. 已完成数量/要求数量
1080 1083
                                 BigDecimal complete = sumRkslD.divide(demandAmountD, 4, BigDecimal.ROUND_HALF_DOWN);
@@ -1098,8 +1101,10 @@ public class BusinessContractServiceImpl implements BusinessContractService {
1098 1101
                                 businessContractV.setCompleteAmount(sumCkslD.stripTrailingZeros().toPlainString());
1099 1102
                                 
1100 1103
                                 // 要求数量.
1101
-                                String demandAmount = businessContractV.getGrainQuantity();
1102
-                                BigDecimal demandAmountD = new BigDecimal(demandAmount.toString());
1104
+                                /*String demandAmount = businessContractV.getGrainQuantity();
1105
+                                BigDecimal demandAmountD = new BigDecimal(demandAmount.toString());*/
1106
+                                
1107
+                                BigDecimal demandAmountD = businessContractV.getGrainQuantity();
1103 1108
                                 
1104 1109
                                 // 除法. 已完成数量/要求数量
1105 1110
                                 BigDecimal complete = sumCkslD.divide(demandAmountD, 4, BigDecimal.ROUND_HALF_DOWN);

+ 3 - 6
src/main/java/com/chinaitop/depot/business/service/impl/GrainContractServiceImpl.java

@@ -89,8 +89,7 @@ public class GrainContractServiceImpl implements GrainContractService {
89 89
         Map<String, Object> returnMap = new HashMap<String, Object>();
90 90
         
91 91
         // 合同数量.
92
-        String grainQuantity = contract.getGrainQuantity();
93
-        BigDecimal grainQuantityB = new BigDecimal(grainQuantity);
92
+        BigDecimal grainQuantityB = contract.getGrainQuantity();
94 93
         // 合同单价.
95 94
        // String grainPrice = contract.getGrainPrice();
96 95
         //BigDecimal grainPriceB = new BigDecimal(grainPrice);
@@ -999,8 +998,7 @@ public class GrainContractServiceImpl implements GrainContractService {
999 998
                                 businessContractV.setCompleteAmount(sumRkslD.stripTrailingZeros().toPlainString());
1000 999
                                 
1001 1000
                                 // 要求数量.
1002
-                                String demandAmount = businessContractV.getGrainQuantity();
1003
-                                BigDecimal demandAmountD = new BigDecimal(demandAmount.toString());
1001
+                                BigDecimal demandAmountD = businessContractV.getGrainQuantity();
1004 1002
                                 
1005 1003
                                 // 除法. 已完成数量/要求数量
1006 1004
                                 BigDecimal complete = sumRkslD.divide(demandAmountD, 4, BigDecimal.ROUND_HALF_DOWN);
@@ -1020,8 +1018,7 @@ public class GrainContractServiceImpl implements GrainContractService {
1020 1018
                                 businessContractV.setCompleteAmount(sumCkslD.stripTrailingZeros().toPlainString());
1021 1019
                                 
1022 1020
                                 // 要求数量.
1023
-                                String demandAmount = businessContractV.getGrainQuantity();
1024
-                                BigDecimal demandAmountD = new BigDecimal(demandAmount.toString());
1021
+                                BigDecimal demandAmountD = businessContractV.getGrainQuantity();
1025 1022
                                 
1026 1023
                                 // 除法. 已完成数量/要求数量
1027 1024
                                 BigDecimal complete = sumCkslD.divide(demandAmountD, 4, BigDecimal.ROUND_HALF_DOWN);

+ 16 - 0
src/main/java/com/chinaitop/depot/rp/controller/BusinessRpReportController.java

@@ -125,6 +125,7 @@ public class BusinessRpReportController {
125 125
 
126 126
 
127 127
 
128
+
128 129
     //
129 130
     /**
130 131
      * 新增时得到轮换计划详情
@@ -166,6 +167,20 @@ public class BusinessRpReportController {
166 167
         return list;
167 168
     }
168 169
 
170
+    /**
171
+     * 根据质检单号查询质检报告
172
+     * @return
173
+     * @throws
174
+     */
175
+    @GetMapping("/getFindByReportIds")
176
+    @ApiOperation(value="根据质检单号查询质检报告", notes = "根据质检单号查询质检报告")
177
+    public List<BusinessQcQualityInspection> getFindByReportIds(@RequestParam("ids") String ids) throws Exception {
178
+
179
+        List<BusinessQcQualityInspection> list = businessRpReportService.getFindByReportIds(ids);
180
+        return list;
181
+    }
182
+
183
+
169 184
 
170 185
     //保存
171 186
 
@@ -213,6 +228,7 @@ public class BusinessRpReportController {
213 228
     @RequestMapping(value="/getRecList",produces = MediaType.APPLICATION_JSON_VALUE, method=RequestMethod.POST)
214 229
     @ApiOperation(value="轮换计划接收列表", notes = "查询数据列表,支持分页")
215 230
     public PageInfo<Map<String,Object>> getRecList(BusinessRpReportPageParam businessRpReportPageParam) throws Exception {
231
+        System.out.println("----------------------------");
216 232
 
217 233
         List<Map<String,Object>> list = businessRpReportService.getRecList(businessRpReportPageParam);
218 234
         PageInfo<Map<String,Object>> pageInfo = new PageInfo<>(list);

+ 0 - 1
src/main/java/com/chinaitop/depot/rp/mapper/BusinessQcQualityInspectionMapper.java

@@ -35,5 +35,4 @@ public interface BusinessQcQualityInspectionMapper {
35 35
 	List<BusinessQcQualityInspection> getQualityInspectionFindByWarehouseId(Map<String, Object> map);
36 36
 
37 37
 
38
-
39 38
 }

+ 1 - 1
src/main/java/com/chinaitop/depot/rp/mapper/BusinessQcQualityInspectionMapper.xml

@@ -14,7 +14,7 @@
14 14
     <result column="grain_variety_id" property="grainVarietyId" jdbcType="INTEGER" />
15 15
     <result column="grain_grade_id" property="grainGradeId" jdbcType="INTEGER" />
16 16
     <result column="rkrq" property="rkrq" jdbcType="DATE" />
17
-    <result column="receive_year" property="receiveYear" jdbcType="DATE" />
17
+    <result column="receive_year" property="receiveYear" jdbcType="VARCHAR" />
18 18
     <result column="produce_area" property="produceArea" jdbcType="VARCHAR" />
19 19
     <result column="jysj" property="jysj" jdbcType="TIMESTAMP" />
20 20
     <result column="check_result" property="checkResult" jdbcType="TINYINT" />

+ 6 - 2
src/main/java/com/chinaitop/depot/rp/mapper/BusinessRpReportMapper.xml

@@ -427,6 +427,9 @@
427 427
         <if test="pageParam.rotationYear !=null and pageParam.rotationYear!=''">
428 428
             and a.rotation_year like concat("%",#{pageParam.rotationYear},"%")
429 429
         </if>
430
+        <if test="pageParam.unitId !=null and pageParam.unitId!=''">
431
+            and a.unit_info_id=#{pageParam.unitId}
432
+        </if>
430 433
 
431 434
     </select>
432 435
 
@@ -461,7 +464,7 @@
461 464
         inner JOIN province_all.biz_rp_issuance a ON c.id = a.rp_report_id
462 465
         LEFT JOIN  depot_qh.business_rp_outbound d on d.rp_report_id = c.id
463 466
         LEFT JOIN province_all.biz_unit_info b on c.unit_info_id = b.id
464
-        where 1=1
467
+        where c.status =1
465 468
         <if test="pageParam.unitName !=null and pageParam.unitName!=''">
466 469
             and b.dwmc like concat("%",#{pageParam.unitName},"%")
467 470
         </if>
@@ -474,12 +477,13 @@
474 477
         <if test="pageParam.unitId !=null and pageParam.unitId!=''">
475 478
             and c.unit_info_id = #{pageParam.unitId}
476 479
         </if>
477
-        <if test="pageParam.unitId !=null and pageParam.unitId!=''">
480
+        <if test="pageParam.orgId !=null and pageParam.orgId!=''">
478 481
             and d.org_Id = #{pageParam.orgId}
479 482
         </if>
480 483
         <!-- <if test="pageParam.lsxzName !=null and pageParam.lsxzName!=''">
481 484
              and a.dwmc like concat("%",#{pageParam.lsxzName},"%")
482 485
          </if>-->
486
+        group by  cast(c.rotation_year as char)
483 487
         ORDER BY c.report_time desc
484 488
     </select>
485 489
     <select id="getRpReportByById" resultMap="BaseResultMap2">

+ 3 - 12
src/main/java/com/chinaitop/depot/rp/model/BusinessQcQualityInspection.java

@@ -34,8 +34,7 @@ public class BusinessQcQualityInspection {
34 34
     @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
35 35
     private Date rkrq;
36 36
 
37
-    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
38
-    private Date receiveYear;
37
+    private String receiveYear;
39 38
 
40 39
     private String produceArea;
41 40
 
@@ -282,19 +281,11 @@ public class BusinessQcQualityInspection {
282 281
         this.rkrq = rkrq;
283 282
     }
284 283
 
285
-    /**
286
-     * 收获年度
287
-     * @return receive_year 收获年度
288
-     */
289
-    public Date getReceiveYear() {
284
+    public String getReceiveYear() {
290 285
         return receiveYear;
291 286
     }
292 287
 
293
-    /**
294
-     * 收获年度
295
-     * @param receiveYear 收获年度
296
-     */
297
-    public void setReceiveYear(Date receiveYear) {
288
+    public void setReceiveYear(String receiveYear) {
298 289
         this.receiveYear = receiveYear;
299 290
     }
300 291
 

+ 0 - 7
src/main/java/com/chinaitop/depot/rp/param/BusinessRpReportPageParam.java

@@ -17,13 +17,6 @@ public class BusinessRpReportPageParam {
17 17
     @ApiModelProperty(value = "每页条数")
18 18
     private Integer size;
19 19
 
20
-    /** 排序字段 */
21
-    @ApiModelProperty(value = "排序字段,字段驼峰名称,如:userName")
22
-    private String sortField;
23
-
24
-    /** 排序方式 */
25
-    @ApiModelProperty(value = "排序方式,升序:ASCEND;降序:DESCEND")
26
-    private String sortOrder;
27 20
 
28 21
     /** 企业名称 */
29 22
     @ApiModelProperty(value = "企业名称")

+ 2 - 0
src/main/java/com/chinaitop/depot/rp/service/BusinessRpReportService.java

@@ -69,4 +69,6 @@ public interface BusinessRpReportService  {
69 69
     List<BusinessQcQualityInspection> getQualityInspectionFindById(String rpReportId, Integer warehouseId, String jylb,Integer inspectionReportId);
70 70
 
71 71
     List<BusinessQcQualityInspection> getQualityInspectionFindByWarehouseId(String jylb,Integer warehouseId);
72
+
73
+    List<BusinessQcQualityInspection> getFindByReportIds(String ids);
72 74
 }

+ 28 - 6
src/main/java/com/chinaitop/depot/rp/service/impl/BusinessRpReportServiceImpl.java

@@ -118,13 +118,9 @@ public class BusinessRpReportServiceImpl implements BusinessRpReportService {
118 118
     public Map<String, Object> add(BusinessRpReport businessRpReport) {
119 119
         Map<String,Object> result = new HashMap<>();
120 120
         List<BusinessRpInbound>  businessRpInbound = businessRpReport.getBusinessRpInboundList();
121
-//        if (businessRpInbound.size() <= 0){
122
-//            result.put("msg", "出库信息不能为空");
123
-//            return result;
124
-//        }
125 121
         BusinessRpInboundExample businessRpInboundExample =new BusinessRpInboundExample();
126 122
        businessRpReport.setUpdateTime(new Date());
127
-        if(businessRpReport.getStatus()==0){ //保存
123
+        if(businessRpReport.getStatus()==0){
128 124
             if(businessRpReport.getId()!=null){//修改
129 125
                 businessRpReportMapper.updateByPrimaryKeySelective(businessRpReport);
130 126
                 businessRpInboundMapper.deleteByReportId(businessRpReport.getId());
@@ -165,13 +161,14 @@ public class BusinessRpReportServiceImpl implements BusinessRpReportService {
165 161
 
166 162
         }else{//提交
167 163
 
168
-            if(businessRpReport.getId()!=null){//修改
164
+            if(businessRpReport.getId()!=null){
169 165
                 //根据id查找主表数据
170 166
                 BusinessRpReportVO businessRpReportVO =businessRpReportMapper.getRpReportFindByById(businessRpReport.getId());
171 167
                 if(businessRpReportVO!=null){
172 168
                     result.put("status", "error");
173 169
                     result.put("msg", "请填写数据后再执行上传操作");
174 170
                 }
171
+                businessRpReport.setReportTime(new Date());
175 172
                 businessRpReportMapper.updateByPrimaryKeySelective(businessRpReport);
176 173
                 List<BusinessRpInbound> inList =businessRpReport.getBusinessRpInboundList();
177 174
                 if(inList != null && !inList.isEmpty()){
@@ -199,6 +196,7 @@ public class BusinessRpReportServiceImpl implements BusinessRpReportService {
199 196
 
200 197
                 businessRpReport.setCreateTime(new Date());
201 198
                 businessRpReport.setUpdateTime(new Date());
199
+                businessRpReport.setReportTime(new Date());
202 200
                 businessRpReportMapper.insert(businessRpReport);
203 201
                 List<BusinessRpInbound> inList =businessRpReport.getBusinessRpInboundList();
204 202
                 for (BusinessRpInbound br: inList) {
@@ -300,5 +298,29 @@ public class BusinessRpReportServiceImpl implements BusinessRpReportService {
300 298
         return list;
301 299
     }
302 300
 
301
+    @Override
302
+    public List<BusinessQcQualityInspection> getFindByReportIds(String ids) {
303
+        List<BusinessQcQualityInspection> list = new ArrayList<>();
304
+        try {
305
+            if (ids.contains(",")) {
306
+                String[] idArray = ids.split(",");
307
+                for (String idStr : idArray) {
308
+                    int id = Integer.parseInt(idStr);
309
+                    BusinessQcQualityInspection inspection = businessQcQualityInspectionMapper.selectByPrimaryKey(id);
310
+                    list.add(inspection);
311
+                }
312
+            } else {
313
+                int id = Integer.parseInt(ids);
314
+                list.add(businessQcQualityInspectionMapper.selectByPrimaryKey(id));
315
+            }
316
+        } catch (NumberFormatException e) {
317
+            // 处理ID转换失败的情况
318
+            // 可以记录日志、抛出自定义异常或返回错误信息
319
+            System.err.println("Failed to parse ID from string: " + ids);
320
+        }
321
+
322
+        return list;
323
+    }
324
+
303 325
 
304 326
 }

+ 2 - 0
src/main/resources/bootstrap-dev.yml

@@ -69,3 +69,5 @@ logging:
69 69
     com.chinaitop.depot.system.mapper: debug
70 70
 
71 71
 jsgjjsjUrl: http://localhost:9022/recPublish/sendMessage
72
+customerUrl: http://localhost:9016/depot/business/customer/edit?id=
73
+

+ 2 - 0
src/main/resources/bootstrap-prod.yml

@@ -65,3 +65,5 @@ cxf:
65 65
 crk-webservice: http://10.223.3.62:9025/Base/webServices/StoreChangeServer?wsdl
66 66
 
67 67
 jsgjjsjUrl: http://localhost:9022/recPublish/sendMessage
68
+customerUrl: http://localhost:9016/depot/business/customer/edit?id=
69
+