Merge remote-tracking branch 'origin/feature/NoScanning' into feature/NoScanning
This commit is contained in:
commit
e2a30431a8
|
|
@ -199,16 +199,24 @@ public class QmsExemptCategoryController extends BaseController {
|
||||||
*/
|
*/
|
||||||
@PostMapping("template")
|
@PostMapping("template")
|
||||||
public void template(HttpServletResponse response) throws IOException {
|
public void template(HttpServletResponse response) throws IOException {
|
||||||
QmsExemptCategoryImportDTO example = new QmsExemptCategoryImportDTO()
|
QmsExemptCategoryImportDTO example1 = new QmsExemptCategoryImportDTO()
|
||||||
.setSupplierCode("示例供应商编码")
|
.setSupplierCode("示例供应商编码")
|
||||||
.setSupplierName("示例供应商名称(非必填)")
|
.setSupplierName("示例供应商名称(非必填)")
|
||||||
.setCategoryCode("示例物料类别编码")
|
.setCategoryCode("示例物料类别编码")
|
||||||
.setCategoryName("示例物料类别名称(非必填)")
|
.setCategoryName("示例物料类别名称(非必填)")
|
||||||
.setExemptMode("永久")
|
.setExemptMode("永久")
|
||||||
|
.setValidStartDate("")
|
||||||
|
.setValidEndDate("");
|
||||||
|
QmsExemptCategoryImportDTO example2 = new QmsExemptCategoryImportDTO()
|
||||||
|
.setSupplierCode("示例供应商编码")
|
||||||
|
.setSupplierName("示例供应商名称(非必填)")
|
||||||
|
.setCategoryCode("示例物料类别编码")
|
||||||
|
.setCategoryName("示例物料类别名称(非必填)")
|
||||||
|
.setExemptMode("周期")
|
||||||
.setValidStartDate("2026-01-01")
|
.setValidStartDate("2026-01-01")
|
||||||
.setValidEndDate("2026-12-31");
|
.setValidEndDate("2026-12-31");
|
||||||
|
|
||||||
EecExcelUtil.export("免检物料类别导入模板", "免检物料类别导入模板", List.of(example), response);
|
EecExcelUtil.export("免检物料类别导入模板", "免检物料类别导入模板", List.of(example1,example2), response);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -206,16 +206,24 @@ public class QmsExemptMaterialController extends BaseController {
|
||||||
*/
|
*/
|
||||||
@PostMapping("template")
|
@PostMapping("template")
|
||||||
public void template(HttpServletResponse response) throws IOException {
|
public void template(HttpServletResponse response) throws IOException {
|
||||||
QmsExemptMaterialImportDTO example = new QmsExemptMaterialImportDTO()
|
QmsExemptMaterialImportDTO example1 = new QmsExemptMaterialImportDTO()
|
||||||
.setSupplierCode("示例供应商编码")
|
.setSupplierCode("示例供应商编码")
|
||||||
.setSupplierName("示例供应商名称(非必填)")
|
.setSupplierName("示例供应商名称(非必填)")
|
||||||
.setMaterialNo("示例物料编号")
|
.setMaterialNo("示例物料编号")
|
||||||
.setMaterialDesc("示例物料描述(非必填)")
|
.setMaterialDesc("示例物料描述(非必填)")
|
||||||
.setExemptMode("永久")
|
.setExemptMode("永久")
|
||||||
|
.setValidStartDate("")
|
||||||
|
.setValidEndDate("");
|
||||||
|
QmsExemptMaterialImportDTO example2 = new QmsExemptMaterialImportDTO()
|
||||||
|
.setSupplierCode("示例供应商编码")
|
||||||
|
.setSupplierName("示例供应商名称(非必填)")
|
||||||
|
.setMaterialNo("示例物料编号")
|
||||||
|
.setMaterialDesc("示例物料描述(非必填)")
|
||||||
|
.setExemptMode("周期")
|
||||||
.setValidStartDate("2026-01-01")
|
.setValidStartDate("2026-01-01")
|
||||||
.setValidEndDate("2026-12-31");
|
.setValidEndDate("2026-12-31");
|
||||||
|
|
||||||
EecExcelUtil.export("免检物料导入模板", "免检物料导入模板", List.of(example), response);
|
EecExcelUtil.export("免检物料导入模板", "免检物料导入模板", List.of(example1,example2), response);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue