|  | @@ -52,10 +52,12 @@ public class ExportServiceImpl implements ExportService {
 | 
	
		
			
				|  |  |      private MusicGroupDao musicGroupDao;
 | 
	
		
			
				|  |  |      @Autowired
 | 
	
		
			
				|  |  |      private StoragePluginContext storagePluginContext;
 | 
	
		
			
				|  |  | +    @Autowired
 | 
	
		
			
				|  |  | +    private ManagerDownloadDao managerDownloadDao;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      @Override
 | 
	
		
			
				|  |  |      @Async
 | 
	
		
			
				|  |  | -    public void orderList(Map<String, Object> params) throws Exception {
 | 
	
		
			
				|  |  | +    public void orderList(Map<String, Object> params, ManagerDownload managerDownload) throws Exception {
 | 
	
		
			
				|  |  |          List<StudentPaymentOrderExportDto> studentPaymentOrderExportDtos = studentPaymentOrderService.ExportQueryPage(params);
 | 
	
		
			
				|  |  |          long i = 1;
 | 
	
		
			
				|  |  |          for (StudentPaymentOrderExportDto row : studentPaymentOrderExportDtos) {
 | 
	
	
		
			
				|  | @@ -83,7 +85,7 @@ public class ExportServiceImpl implements ExportService {
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |              row.setTransferFee(transferFee);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -            String goodsName = "";
 | 
	
		
			
				|  |  | +            String goodsName = "" ;
 | 
	
		
			
				|  |  |              if (row.getOrderDetailList() != null) {
 | 
	
		
			
				|  |  |                  for (StudentPaymentOrderDetail orderDetail : row.getOrderDetailList()) {
 | 
	
		
			
				|  |  |                      switch (orderDetail.getType()) {
 | 
	
	
		
			
				|  | @@ -212,22 +214,22 @@ public class ExportServiceImpl implements ExportService {
 | 
	
		
			
				|  |  |              if (row.getMusicGroupId() != null && row.getMusicGroupId().equals("null")) {
 | 
	
		
			
				|  |  |                  row.setMusicGroupId("");
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  | -            String paymentChannel = "";
 | 
	
		
			
				|  |  | +            String paymentChannel = "" ;
 | 
	
		
			
				|  |  |              if (row.getPaymentChannel() == null) {
 | 
	
		
			
				|  |  |              } else if (row.getPaymentChannel().equals("YQPAY")) {
 | 
	
		
			
				|  |  | -                paymentChannel = "双乾";
 | 
	
		
			
				|  |  | +                paymentChannel = "双乾" ;
 | 
	
		
			
				|  |  |              } else if (row.getPaymentChannel().equals("ADAPAY")) {
 | 
	
		
			
				|  |  | -                paymentChannel = "汇付";
 | 
	
		
			
				|  |  | +                paymentChannel = "汇付" ;
 | 
	
		
			
				|  |  |              } else if (row.getPaymentChannel().equals("BALANCE")) {
 | 
	
		
			
				|  |  | -                paymentChannel = "余额";
 | 
	
		
			
				|  |  | +                paymentChannel = "余额" ;
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |              row.setPaymentChannel(paymentChannel);
 | 
	
		
			
				|  |  |              row.setId(i);
 | 
	
		
			
				|  |  |              i++;
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -        String basePath = new ApplicationHome(this.getClass()).getSource().getParentFile().getPath() + "/";
 | 
	
		
			
				|  |  | -        File file = new File(basePath + "orderList-" + DateUtil.getDate(new Date()) + ".xls");
 | 
	
		
			
				|  |  | +        String basePath = new ApplicationHome(this.getClass()).getSource().getParentFile().getPath();
 | 
	
		
			
				|  |  | +        File file = new File(basePath + "/" + managerDownload.getName());
 | 
	
		
			
				|  |  |          FileOutputStream fileOutputStream = new FileOutputStream(file);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          HSSFWorkbook workbook = null;
 | 
	
	
		
			
				|  | @@ -241,10 +243,12 @@ public class ExportServiceImpl implements ExportService {
 | 
	
		
			
				|  |  |              fileOutputStream.getFD().sync();
 | 
	
		
			
				|  |  |              fileOutputStream.close();
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -            String folder = UploadUtil.getFileFloder();
 | 
	
		
			
				|  |  | -            String url = storagePluginContext.uploadFile(KS3StoragePlugin.PLUGIN_NAME, "download/" + folder, file);
 | 
	
		
			
				|  |  | +            String folder = "download/" + UploadUtil.getFileFloder();
 | 
	
		
			
				|  |  | +            String url = storagePluginContext.uploadFile(KS3StoragePlugin.PLUGIN_NAME, folder, file);
 | 
	
		
			
				|  |  |              //把记录插入下载表
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | +            managerDownload.setFileUrl(url);
 | 
	
		
			
				|  |  | +            managerDownload.setStatus(1);
 | 
	
		
			
				|  |  | +            managerDownloadDao.update(managerDownload);
 | 
	
		
			
				|  |  |          } catch (Exception e) {
 | 
	
		
			
				|  |  |              e.printStackTrace();
 | 
	
		
			
				|  |  |          } finally {
 |