|
@@ -13,6 +13,7 @@ import com.management.platform.service.ProdMaterialService;
|
|
import com.management.platform.service.ProdProcedureService;
|
|
import com.management.platform.service.ProdProcedureService;
|
|
import com.management.platform.service.ProductService;
|
|
import com.management.platform.service.ProductService;
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
|
+import com.management.platform.util.ExcelUtil;
|
|
import com.management.platform.util.HttpRespMsg;
|
|
import com.management.platform.util.HttpRespMsg;
|
|
import com.management.platform.util.MessageUtils;
|
|
import com.management.platform.util.MessageUtils;
|
|
import org.apache.poi.EncryptedDocumentException;
|
|
import org.apache.poi.EncryptedDocumentException;
|
|
@@ -715,18 +716,25 @@ public class ProductServiceImpl extends ServiceImpl<ProductMapper, Product> impl
|
|
case 1: item.add("互检");break;
|
|
case 1: item.add("互检");break;
|
|
case 2: item.add("专检");break;
|
|
case 2: item.add("专检");break;
|
|
}
|
|
}
|
|
|
|
+ dataProcedureList.add(item);
|
|
}
|
|
}
|
|
|
|
|
|
- }
|
|
|
|
|
|
+ HttpRespMsg msg=new HttpRespMsg();
|
|
|
|
+ String fileName = "产品详情"+"_"+System.currentTimeMillis();
|
|
|
|
+ String sheetOneName="产品基本信息";
|
|
|
|
+ String sheetTwoName="派工单";
|
|
|
|
|
|
|
|
|
|
|
|
+ String result = ExcelUtil.exportTwoSheetGeneralExcelByTitleAndList(fileName, dataProductList, dataProcedureList, path, sheetOneName, sheetTwoName);
|
|
|
|
|
|
|
|
+ msg.setData(result);
|
|
|
|
|
|
- /* //导出excel
|
|
|
|
- String result="系统提示:Excel文件导出成功!";
|
|
|
|
- //生成Excel文件
|
|
|
|
- String fileName = "产品详情"+System.currentTimeMillis();
|
|
|
|
- return excelExportService.exportGeneralExcelByTitleAndList(wxCorpInfo,fileName,dataList,path);*/
|
|
|
|
|
|
+ return msg;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ /* return excelExportService.exportGeneralExcelByTitleAndList(wxCorpInfo,fileName,dataList,path);*/
|
|
return null;
|
|
return null;
|
|
}
|
|
}
|
|
|
|
|