物料申请,采购大类批量导入

This commit is contained in:
10001392 2024-09-26 17:19:57 +08:00
parent f1b0f1a9da
commit 775fbf15e2
1 changed files with 1 additions and 1 deletions

View File

@ -558,7 +558,7 @@ public class MaterialExcelService {
// 1151 && 一次性物料新申请则运算起始时间为申请日期一年之后 // 1151 && 一次性物料新申请则运算起始时间为申请日期一年之后
if ((materialCategoryCode.startsWith("10") || materialCategoryCode.startsWith("50")) if ((materialCategoryCode.startsWith("10") || materialCategoryCode.startsWith("50"))
&& to.getReuseOfOnceState() == 1) { && ObjectUtil.isNotEmpty(to.getReuseOfOnceState()) && to.getReuseOfOnceState() == 1) {
Date startDate = Date.from(LocalDate.now().plusYears(1L).atStartOfDay().atZone(ZoneId.systemDefault()).toInstant()); Date startDate = Date.from(LocalDate.now().plusYears(1L).atStartOfDay().atZone(ZoneId.systemDefault()).toInstant());
to.setFreezeCalcStart(startDate); to.setFreezeCalcStart(startDate);
} }