From a5df38c4b4005d6b7bb7ee5270660f19c12ed28a Mon Sep 17 00:00:00 2001 From: liuchengqian Date: Mon, 27 Feb 2023 10:14:45 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E5=86=99=E7=94=A8=E6=88=B7=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E7=81=AB=E7=82=B9=E6=95=B0=E6=8D=AE=E7=9A=84=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/DispatchFirePointServiceImpl.java | 13 +++++++++++++ .../com/xkrs/straw/utils/VipTimeRangeUtils.java | 12 ++++++++++++ 2 files changed, 25 insertions(+) diff --git a/src/main/java/com/xkrs/straw/service/impl/DispatchFirePointServiceImpl.java b/src/main/java/com/xkrs/straw/service/impl/DispatchFirePointServiceImpl.java index 7e505fe..8ba7556 100644 --- a/src/main/java/com/xkrs/straw/service/impl/DispatchFirePointServiceImpl.java +++ b/src/main/java/com/xkrs/straw/service/impl/DispatchFirePointServiceImpl.java @@ -4,13 +4,16 @@ import com.xkrs.common.encapsulation.PromptMessageEnum; import com.xkrs.straw.dao.FirePointChannelConfigDao; import com.xkrs.straw.dao.FirePointOrdinaryDao; import com.xkrs.straw.dao.FirePointPreciseDao; +import com.xkrs.straw.dao.SysUserDao; import com.xkrs.straw.helper.GeoCodeHelper; import com.xkrs.straw.model.entity.FirePointChannelConfigEntity; import com.xkrs.straw.model.entity.FirePointOrdinaryEntity; import com.xkrs.straw.model.entity.FirePointPreciseEntity; +import com.xkrs.straw.model.entity.SysUserEntity; import com.xkrs.straw.model.qo.AllFirePointQo; import com.xkrs.straw.service.DispatchFirePointService; import com.xkrs.straw.utils.DispatchFirePointUtils; +import com.xkrs.straw.utils.FirePointQueryManager; import com.xkrs.utils.DateTimeUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -22,6 +25,7 @@ import java.time.LocalDateTime; import java.time.ZoneOffset; import java.util.List; import java.util.Locale; +import java.util.Optional; import static com.xkrs.common.encapsulation.OutputEncapsulation.outputEncapsulationObject; @@ -41,9 +45,18 @@ public class DispatchFirePointServiceImpl implements DispatchFirePointService { @Resource private FirePointPreciseDao firePointPreciseDao; + @Resource + private SysUserDao sysUserDao; + + @Resource + private FirePointQueryManager firePointQueryManager; + @Override public String debug() { + Optional sysUser = sysUserDao.findById(1120L); + firePointQueryManager.queryFirePointBelongToUser(sysUser.get(), null, null, null, null); + // FirePointChannelConfigBean firePointChannelConfigBean = new FirePointChannelConfigBean(); // firePointChannelConfigBean.setChannelName(FirePointChannelConfigBean.Ordinary); // List configList = new ArrayList<>(); diff --git a/src/main/java/com/xkrs/straw/utils/VipTimeRangeUtils.java b/src/main/java/com/xkrs/straw/utils/VipTimeRangeUtils.java index ec244ab..d40d523 100644 --- a/src/main/java/com/xkrs/straw/utils/VipTimeRangeUtils.java +++ b/src/main/java/com/xkrs/straw/utils/VipTimeRangeUtils.java @@ -185,4 +185,16 @@ public class VipTimeRangeUtils { return LocalDateTime.parse(formattedTime, DateTimeUtils.DATE_TIME_FORMATTER_1); } + public static void main(String[] args) { + VipTimeRangeBean.VipTimeRangeItemBean vipTimeRangeItemBean = new VipTimeRangeBean.VipTimeRangeItemBean(); + vipTimeRangeItemBean.setStartTime("2022-06-27 11:15:00"); + vipTimeRangeItemBean.setEndTime("2022-07-07 18:20:00"); + List list = new ArrayList<>(); + list.add(vipTimeRangeItemBean); + VipTimeRangeBean vipTimeRangeBean = new VipTimeRangeBean(); + vipTimeRangeBean.setList(list); + String serialize = JsonUtils.serialize(vipTimeRangeBean); + System.out.printf("serialize = " + serialize); + } + }