|
|
@@ -1,6 +1,5 @@
|
|
|
package com.uas.platform.b2b.controller;
|
|
|
|
|
|
-import com.alibaba.fastjson.JSONObject;
|
|
|
import com.uas.dfs.service.FileClient;
|
|
|
import com.uas.platform.b2b.dao.CommonDao;
|
|
|
import com.uas.platform.b2b.model.Attach;
|
|
|
@@ -8,10 +7,7 @@ import com.uas.platform.b2b.model.PurchaseOrderAll;
|
|
|
import com.uas.platform.b2b.ps.InquiryUtils;
|
|
|
import com.uas.platform.b2b.service.AttachService;
|
|
|
import com.uas.platform.b2b.service.PurchaseOrderService;
|
|
|
-import com.uas.platform.b2b.support.SystemSession;
|
|
|
-import com.uas.platform.b2b.support.UsageBufferedLogger;
|
|
|
import com.uas.platform.core.exception.NotFoundException;
|
|
|
-import com.uas.platform.core.logging.BufferedLoggerManager;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.util.CollectionUtils;
|
|
|
import org.springframework.web.bind.annotation.PathVariable;
|
|
|
@@ -104,7 +100,8 @@ public class FileController {
|
|
|
* @modify-desc 增加日志记录
|
|
|
*/
|
|
|
@RequestMapping("/batch/{id}")
|
|
|
- public void batchDownload(@PathVariable("id") long id, HttpServletResponse response) throws IOException {
|
|
|
+ public void batchDownload(@PathVariable("id") long id, HttpServletResponse response) throws Exception {
|
|
|
+// response.sendRedirect(" http://113.105.127.36:8099/ERP/common/downloadbyIds.action?ids=67819;67820;67818;67817;67813;67814&zipName=MP180300096 ");
|
|
|
PurchaseOrderAll orderAll = purchaseOrderService.findById(id);
|
|
|
String sql = " select at_path path,attachs.at_id id from attachs left join purc$prod$attach on attachs.at_id = purc$prod$attach.at_id " +
|
|
|
"left join purc$orderitems on purc$orderitems.pd_id = purc$prod$attach.pd_id where purc$orderitems.pd_puid = " + id;
|