diff --git a/dk-modules/business/src/main/java/org/dromara/business/service/impl/BusinessAlertStatisticsServiceImpl.java b/dk-modules/business/src/main/java/org/dromara/business/service/impl/BusinessAlertStatisticsServiceImpl.java index 5304f9f..b58c20c 100644 --- a/dk-modules/business/src/main/java/org/dromara/business/service/impl/BusinessAlertStatisticsServiceImpl.java +++ b/dk-modules/business/src/main/java/org/dromara/business/service/impl/BusinessAlertStatisticsServiceImpl.java @@ -136,6 +136,11 @@ public class BusinessAlertStatisticsServiceImpl implements IBusinessAlertStatist return baseMapper.countAlertCompare(businessAlertBo); } + public static void main(String[] args) { + LocalDate today = LocalDate.now(); + System.out.println( today.toString()); + } + @Override public StatObj countPanelAlert(BusinessAlertBo businessAlertBo) { LocalDate today = LocalDate.now(); @@ -145,7 +150,7 @@ public class BusinessAlertStatisticsServiceImpl implements IBusinessAlertStatist return new StatObj(0, 0,0,0,0,0); } - businessAlertBo.setCreateTime(today.getYear()+"-"+today.getMonthValue()+"-"+today.getDayOfMonth()); + businessAlertBo.setCreateTime(today.toString()); businessAlertBo.setAiLabelEnList(getAiLabel(businessAlertBo.getPostCode()).stream().map(RemoteAiLabelPostVo::getLabelEn).collect(Collectors.toList())); }