BUG修改
This commit is contained in:
parent
9596bc5160
commit
346d0f2b1a
|
|
@ -113,10 +113,10 @@ public class PartBackController {
|
||||||
vo.setXh(num[0]);
|
vo.setXh(num[0]);
|
||||||
num[0]++;
|
num[0]++;
|
||||||
});
|
});
|
||||||
ExportParams exportParams = new ExportParams("配件入库", "配件入库", ExcelType.XSSF);
|
ExportParams exportParams = new ExportParams("配件退回", "配件退回", ExcelType.XSSF);
|
||||||
Workbook workbook = ExcelExportUtil.exportExcel(exportParams, PartBackVo.class, list);
|
Workbook workbook = ExcelExportUtil.exportExcel(exportParams, PartBackVo.class, list);
|
||||||
response.setContentType("application/vnd.ms-excel");
|
response.setContentType("application/vnd.ms-excel");
|
||||||
response.setHeader("content-disposition", "attachment;fileName=" + URLEncoder.encode("配件入库" + ".xlsx", "UTF-8"));
|
response.setHeader("content-disposition", "attachment;fileName=" + URLEncoder.encode("配件退回" + ".xlsx", "UTF-8"));
|
||||||
ServletOutputStream outputStream = response.getOutputStream();
|
ServletOutputStream outputStream = response.getOutputStream();
|
||||||
workbook.write(outputStream);
|
workbook.write(outputStream);
|
||||||
outputStream.close();
|
outputStream.close();
|
||||||
|
|
@ -140,10 +140,10 @@ public class PartBackController {
|
||||||
vo.setXh(num[0]);
|
vo.setXh(num[0]);
|
||||||
num[0]++;
|
num[0]++;
|
||||||
});
|
});
|
||||||
ExportParams exportParams = new ExportParams("配件入库明细", "配件入库明细", ExcelType.XSSF);
|
ExportParams exportParams = new ExportParams("配件退回明细", "配件退回明细", ExcelType.XSSF);
|
||||||
Workbook workbook = ExcelExportUtil.exportExcel(exportParams, PartBackDetailsVo.class, list);
|
Workbook workbook = ExcelExportUtil.exportExcel(exportParams, PartBackDetailsVo.class, list);
|
||||||
response.setContentType("application/vnd.ms-excel");
|
response.setContentType("application/vnd.ms-excel");
|
||||||
response.setHeader("content-disposition", "attachment;fileName=" + URLEncoder.encode("配件入库明细" + ".xlsx", "UTF-8"));
|
response.setHeader("content-disposition", "attachment;fileName=" + URLEncoder.encode("配件退回明细" + ".xlsx", "UTF-8"));
|
||||||
ServletOutputStream outputStream = response.getOutputStream();
|
ServletOutputStream outputStream = response.getOutputStream();
|
||||||
workbook.write(outputStream);
|
workbook.write(outputStream);
|
||||||
outputStream.close();
|
outputStream.close();
|
||||||
|
|
|
||||||
|
|
@ -8,12 +8,12 @@ spring:
|
||||||
# 配置数据源
|
# 配置数据源
|
||||||
datasource:
|
datasource:
|
||||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||||
url: jdbc:mysql://192.168.0.14:1109/gzimtcs?serverTimezone=UTC&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&useSSL=false
|
# url: jdbc:mysql://192.168.0.14:1109/gzimtcs?serverTimezone=UTC&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&useSSL=false
|
||||||
username: root
|
# username: root
|
||||||
password: zhzadmin@gzimtcs14!
|
# password: zhzadmin@gzimtcs14!
|
||||||
# url: jdbc:mysql://127.0.0.1:3306/gzimtcs?serverTimezone=UTC&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&useSSL=false
|
url: jdbc:mysql://127.0.0.1:3306/gzimtcs?serverTimezone=UTC&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&useSSL=false
|
||||||
# username: mroot
|
username: mroot
|
||||||
# password: bonus@admin123
|
password: bonus@admin123
|
||||||
type: com.alibaba.druid.pool.DruidDataSource
|
type: com.alibaba.druid.pool.DruidDataSource
|
||||||
# redis:
|
# redis:
|
||||||
# host: 192.168.0.14
|
# host: 192.168.0.14
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue