feat(template): 更新免检物料和免检物料类别的导入模板
- 添加示例数据展示永久和周期两种豁免模式 - 为永久模式示例设置空的有效期字段 - 为周期模式示例设置具体的开始和结束日期 - 修改模板导出逻辑以包含两个不同模式的示例记录
This commit is contained in:
parent
6c81dfdf93
commit
2eb99222ed
|
|
@ -199,16 +199,24 @@ public class QmsExemptCategoryController extends BaseController {
|
|||
*/
|
||||
@PostMapping("template")
|
||||
public void template(HttpServletResponse response) throws IOException {
|
||||
QmsExemptCategoryImportDTO example = new QmsExemptCategoryImportDTO()
|
||||
QmsExemptCategoryImportDTO example1 = new QmsExemptCategoryImportDTO()
|
||||
.setSupplierCode("示例供应商编码")
|
||||
.setSupplierName("示例供应商名称(非必填)")
|
||||
.setCategoryCode("示例物料类别编码")
|
||||
.setCategoryName("示例物料类别名称(非必填)")
|
||||
.setExemptMode("永久")
|
||||
.setValidStartDate("")
|
||||
.setValidEndDate("");
|
||||
QmsExemptCategoryImportDTO example2 = new QmsExemptCategoryImportDTO()
|
||||
.setSupplierCode("示例供应商编码")
|
||||
.setSupplierName("示例供应商名称(非必填)")
|
||||
.setCategoryCode("示例物料类别编码")
|
||||
.setCategoryName("示例物料类别名称(非必填)")
|
||||
.setExemptMode("周期")
|
||||
.setValidStartDate("2026-01-01")
|
||||
.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")
|
||||
public void template(HttpServletResponse response) throws IOException {
|
||||
QmsExemptMaterialImportDTO example = new QmsExemptMaterialImportDTO()
|
||||
QmsExemptMaterialImportDTO example1 = new QmsExemptMaterialImportDTO()
|
||||
.setSupplierCode("示例供应商编码")
|
||||
.setSupplierName("示例供应商名称(非必填)")
|
||||
.setMaterialNo("示例物料编号")
|
||||
.setMaterialDesc("示例物料描述(非必填)")
|
||||
.setExemptMode("永久")
|
||||
.setValidStartDate("")
|
||||
.setValidEndDate("");
|
||||
QmsExemptMaterialImportDTO example2 = new QmsExemptMaterialImportDTO()
|
||||
.setSupplierCode("示例供应商编码")
|
||||
.setSupplierName("示例供应商名称(非必填)")
|
||||
.setMaterialNo("示例物料编号")
|
||||
.setMaterialDesc("示例物料描述(非必填)")
|
||||
.setExemptMode("周期")
|
||||
.setValidStartDate("2026-01-01")
|
||||
.setValidEndDate("2026-12-31");
|
||||
|
||||
EecExcelUtil.export("免检物料导入模板", "免检物料导入模板", List.of(example), response);
|
||||
EecExcelUtil.export("免检物料导入模板", "免检物料导入模板", List.of(example1,example2), response);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue