Commit fc1e24d6 authored by wei's avatar wei 🎱

有效期LocalDateTime

parent 747c2f42
...@@ -20,6 +20,7 @@ import org.springframework.beans.factory.annotation.Autowired; ...@@ -20,6 +20,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import java.time.LocalDate; import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List; import java.util.List;
/** /**
...@@ -59,7 +60,8 @@ public class ExtSupplierManageServiceImpl<V extends ExtSupplierManageVO> impleme ...@@ -59,7 +60,8 @@ public class ExtSupplierManageServiceImpl<V extends ExtSupplierManageVO> impleme
public DxPageImpl earlyWarning(SearchQueryCondition searchQueryCondition, int warningDay) { public DxPageImpl earlyWarning(SearchQueryCondition searchQueryCondition, int warningDay) {
List<SupplierEarlyWarningVO> list = Lists.newArrayList(); List<SupplierEarlyWarningVO> list = Lists.newArrayList();
LocalDate warningDate = LocalDate.now().minusDays(warningDay); LocalDate warningDate = LocalDate.now().minusDays(warningDay);
DxPageImpl dxPage = this.recursionSupplierManageLinks(searchQueryCondition, warningDate.toString()); LocalDateTime localDateTime = warningDate.atStartOfDay();
DxPageImpl dxPage = this.recursionSupplierManageLinks(searchQueryCondition, localDateTime);
List<ExtSupplierManageLinkVO> content = dxPage.getContent(); List<ExtSupplierManageLinkVO> content = dxPage.getContent();
for (ExtSupplierManageLinkVO extSupplierManageLinkVO : content) { for (ExtSupplierManageLinkVO extSupplierManageLinkVO : content) {
ExtSupplierManageVO source = extSupplierManageLinkVO.getSource(); ExtSupplierManageVO source = extSupplierManageLinkVO.getSource();
...@@ -86,7 +88,7 @@ public class ExtSupplierManageServiceImpl<V extends ExtSupplierManageVO> impleme ...@@ -86,7 +88,7 @@ public class ExtSupplierManageServiceImpl<V extends ExtSupplierManageVO> impleme
return supplierEarlyWarningVO; return supplierEarlyWarningVO;
} }
private DxPageImpl recursionSupplierManageLinks(SearchQueryCondition searchQueryCondition, String warningDate) { private DxPageImpl recursionSupplierManageLinks(SearchQueryCondition searchQueryCondition, LocalDateTime warningDate) {
/*SearchQueryCondition condition = SearchQueryCondition.builder().searchItems( /*SearchQueryCondition condition = SearchQueryCondition.builder().searchItems(
SearchItems.of( SearchItems.of(
SearchItems.BooleanOperator.AND, SearchItems.BooleanOperator.AND,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment