gaodd преди 2 години
родител
ревизия
814fd5299c

+ 1 - 1
src/main/java/com/chinaitop/depot/business/controller/BusinessFileController.java

@@ -78,7 +78,7 @@ public class BusinessFileController {
78 78
             @ApiImplicitParam(name = "fileIds", value = "文件ID集合", paramType = "form"),
79 79
             @ApiImplicitParam(name = "bid", value = "主键id", paramType = "form")
80 80
     })
81
-    public void updateFile(String fileIds, Integer bid, String fileType){
81
+    public void updateFile(String fileIds, String bid, String fileType){
82 82
         businessFileService.updateFileByFileIdsAndBid(fileIds,bid,fileType);
83 83
     }
84 84
 

+ 1 - 1
src/main/java/com/chinaitop/depot/business/service/BusinessFileService.java

@@ -58,7 +58,7 @@ public interface BusinessFileService {
58 58
      * @param fileIds 数组字符串,如:[1,2,3]
59 59
      * @param bid 
60 60
      */
61
-    void updateFileByFileIdsAndBid(String fileIds, Integer bid, String fileType);
61
+    void updateFileByFileIdsAndBid(String fileIds, String bid, String fileType);
62 62
 
63 63
     /**
64 64
      * @param userInfo 

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

@@ -161,7 +161,7 @@ public class BusinessContractServiceImpl implements BusinessContractService {
161 161
             }
162 162
         }
163 163
        // 修改fileIds对应附件的bid为当前计划的id.
164
-        businessFileService.updateFileByFileIdsAndBid(fileIds, contract.getId(),"contract");
164
+        businessFileService.updateFileByFileIdsAndBid(fileIds, contract.getId().toString(),"contract");
165 165
         return returnMap;
166 166
     }
167 167
 
@@ -171,7 +171,7 @@ public class BusinessContractServiceImpl implements BusinessContractService {
171 171
     public void update(BusinessContract contract, List<BusinessStoreWareDetail> storeWareDetailList,String fileIds, String deleteFileIds) {
172 172
         contractMapper.updateByPrimaryKey(contract);
173 173
         // 修改fileIds对应附件的bid为当前计划的id.
174
-        businessFileService.updateFileByFileIdsAndBid(fileIds, contract.getId(),"contract");
174
+        businessFileService.updateFileByFileIdsAndBid(fileIds, contract.getId().toString(),"contract");
175 175
         // 删除附件.
176 176
         businessFileService.deleteFileByFileIdArrayString(deleteFileIds);
177 177
         // 修改仓房货位数量质量标准子表.
@@ -652,7 +652,7 @@ public class BusinessContractServiceImpl implements BusinessContractService {
652 652
         }
653 653
         
654 654
        // 修改fileIds对应附件的bid为当前合同的id.
655
-        businessFileService.updateFileByFileIdsAndBid(fileIds, contract.getId(),"contract");
655
+        businessFileService.updateFileByFileIdsAndBid(fileIds, contract.getId().toString(),"contract");
656 656
         return returnMap;
657 657
     }
658 658
 

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

@@ -117,10 +117,10 @@ public class BusinessFileServiceImpl implements BusinessFileService {
117 117
      * @param fileIds
118 118
      * @param bid
119 119
      */
120
-    public void updateFileByFileIdsAndBid(String fileIds, Integer bid,String fileType) {
120
+    public void updateFileByFileIdsAndBid(String fileIds, String bid,String fileType) {
121 121
         if (StringUtils.isNotBlank(fileIds) && !"[]".equals(fileIds)) {
122 122
             BusinessFile businessFile = new BusinessFile();
123
-            businessFile.setBid(bid);
123
+            businessFile.setBid(Integer.valueOf(bid));
124 124
             
125 125
             BusinessFileExample example = new BusinessFileExample();
126 126
             Criteria createCriteria = example.createCriteria();

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

@@ -162,7 +162,7 @@ public class BusinessPlanServiceImpl implements BusinessPlanService {
162 162
         }
163 163
         
164 164
         // 修改fileIds对应附件的bid为当前计划的id.
165
-        businessFileService.updateFileByFileIdsAndBid(fileIds, plan.getId(),"plan");
165
+        businessFileService.updateFileByFileIdsAndBid(fileIds, plan.getId().toString(),"plan");
166 166
         return returnMap;
167 167
     }
168 168
 
@@ -174,7 +174,7 @@ public class BusinessPlanServiceImpl implements BusinessPlanService {
174 174
     public void update(BusinessPlan plan, List<BusinessStoreWareDetail> storeWareDetailList, String fileIds, String deleteFileIds) {
175 175
         planMapper.updateByPrimaryKey(plan);
176 176
         // 修改fileIds对应附件的bid为当前计划的id.
177
-        businessFileService.updateFileByFileIdsAndBid(fileIds, plan.getId(),"plan");
177
+        businessFileService.updateFileByFileIdsAndBid(fileIds, plan.getId().toString(),"plan");
178 178
         // 删除附件.
179 179
         businessFileService.deleteFileByFileIdArrayString(deleteFileIds);
180 180
         
@@ -920,7 +920,7 @@ public class BusinessPlanServiceImpl implements BusinessPlanService {
920 920
             planMapper.addAcceptanceDetail(map);
921 921
         }
922 922
         // 修改fileIds对应附件的bid为当前计划的id.
923
-        businessFileService.updateFileByFileIdsAndBid(fileIds, acceptanceId,"acceptance");
923
+        businessFileService.updateFileByFileIdsAndBid(fileIds, acceptanceId.toString(),"acceptance");
924 924
         return returnMap;
925 925
     }
926 926
 

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

@@ -151,7 +151,7 @@ public class GrainContractServiceImpl implements GrainContractService {
151 151
             }
152 152
         }
153 153
        // 修改fileIds对应附件的bid为当前计划的id.
154
-        businessFileService.updateFileByFileIdsAndBid(fileIds, contract.getId(),"cblContract");
154
+        businessFileService.updateFileByFileIdsAndBid(fileIds, contract.getId().toString(),"cblContract");
155 155
         return returnMap;
156 156
     }
157 157
 
@@ -161,7 +161,7 @@ public class GrainContractServiceImpl implements GrainContractService {
161 161
     public void update(BusinessContract contract, List<BusinessStoreWareDetail> storeWareDetailList,String fileIds, String deleteFileIds) {
162 162
         contractMapper.updateByPrimaryKey(contract);
163 163
         // 修改fileIds对应附件的bid为当前计划的id.
164
-        businessFileService.updateFileByFileIdsAndBid(fileIds, contract.getId(),"cblContract");
164
+        businessFileService.updateFileByFileIdsAndBid(fileIds, contract.getId().toString(),"cblContract");
165 165
         // 删除附件.
166 166
         businessFileService.deleteFileByFileIdArrayString(deleteFileIds);
167 167
         // 修改仓房货位数量质量标准子表.
@@ -606,7 +606,7 @@ public class GrainContractServiceImpl implements GrainContractService {
606 606
             }
607 607
         }
608 608
        // 修改fileIds对应附件的bid为当前合同的id.
609
-        businessFileService.updateFileByFileIdsAndBid(fileIds, contract.getId(),"cblContract");
609
+        businessFileService.updateFileByFileIdsAndBid(fileIds, contract.getId().toString(),"cblContract");
610 610
         return returnMap;
611 611
     }
612 612