重写用户获取火点数据的接口
This commit is contained in:
parent
1aa674b883
commit
a5df38c4b4
@ -4,13 +4,16 @@ import com.xkrs.common.encapsulation.PromptMessageEnum;
|
|||||||
import com.xkrs.straw.dao.FirePointChannelConfigDao;
|
import com.xkrs.straw.dao.FirePointChannelConfigDao;
|
||||||
import com.xkrs.straw.dao.FirePointOrdinaryDao;
|
import com.xkrs.straw.dao.FirePointOrdinaryDao;
|
||||||
import com.xkrs.straw.dao.FirePointPreciseDao;
|
import com.xkrs.straw.dao.FirePointPreciseDao;
|
||||||
|
import com.xkrs.straw.dao.SysUserDao;
|
||||||
import com.xkrs.straw.helper.GeoCodeHelper;
|
import com.xkrs.straw.helper.GeoCodeHelper;
|
||||||
import com.xkrs.straw.model.entity.FirePointChannelConfigEntity;
|
import com.xkrs.straw.model.entity.FirePointChannelConfigEntity;
|
||||||
import com.xkrs.straw.model.entity.FirePointOrdinaryEntity;
|
import com.xkrs.straw.model.entity.FirePointOrdinaryEntity;
|
||||||
import com.xkrs.straw.model.entity.FirePointPreciseEntity;
|
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.model.qo.AllFirePointQo;
|
||||||
import com.xkrs.straw.service.DispatchFirePointService;
|
import com.xkrs.straw.service.DispatchFirePointService;
|
||||||
import com.xkrs.straw.utils.DispatchFirePointUtils;
|
import com.xkrs.straw.utils.DispatchFirePointUtils;
|
||||||
|
import com.xkrs.straw.utils.FirePointQueryManager;
|
||||||
import com.xkrs.utils.DateTimeUtils;
|
import com.xkrs.utils.DateTimeUtils;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
@ -22,6 +25,7 @@ import java.time.LocalDateTime;
|
|||||||
import java.time.ZoneOffset;
|
import java.time.ZoneOffset;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Locale;
|
import java.util.Locale;
|
||||||
|
import java.util.Optional;
|
||||||
|
|
||||||
import static com.xkrs.common.encapsulation.OutputEncapsulation.outputEncapsulationObject;
|
import static com.xkrs.common.encapsulation.OutputEncapsulation.outputEncapsulationObject;
|
||||||
|
|
||||||
@ -41,9 +45,18 @@ public class DispatchFirePointServiceImpl implements DispatchFirePointService {
|
|||||||
@Resource
|
@Resource
|
||||||
private FirePointPreciseDao firePointPreciseDao;
|
private FirePointPreciseDao firePointPreciseDao;
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
private SysUserDao sysUserDao;
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
private FirePointQueryManager firePointQueryManager;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String debug() {
|
public String debug() {
|
||||||
|
|
||||||
|
Optional<SysUserEntity> sysUser = sysUserDao.findById(1120L);
|
||||||
|
firePointQueryManager.queryFirePointBelongToUser(sysUser.get(), null, null, null, null);
|
||||||
|
|
||||||
// FirePointChannelConfigBean firePointChannelConfigBean = new FirePointChannelConfigBean();
|
// FirePointChannelConfigBean firePointChannelConfigBean = new FirePointChannelConfigBean();
|
||||||
// firePointChannelConfigBean.setChannelName(FirePointChannelConfigBean.Ordinary);
|
// firePointChannelConfigBean.setChannelName(FirePointChannelConfigBean.Ordinary);
|
||||||
// List<FirePointChannelConfigBean.ChannelConfig> configList = new ArrayList<>();
|
// List<FirePointChannelConfigBean.ChannelConfig> configList = new ArrayList<>();
|
||||||
|
@ -185,4 +185,16 @@ public class VipTimeRangeUtils {
|
|||||||
return LocalDateTime.parse(formattedTime, DateTimeUtils.DATE_TIME_FORMATTER_1);
|
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<VipTimeRangeBean.VipTimeRangeItemBean> list = new ArrayList<>();
|
||||||
|
list.add(vipTimeRangeItemBean);
|
||||||
|
VipTimeRangeBean vipTimeRangeBean = new VipTimeRangeBean();
|
||||||
|
vipTimeRangeBean.setList(list);
|
||||||
|
String serialize = JsonUtils.<VipTimeRangeBean>serialize(vipTimeRangeBean);
|
||||||
|
System.out.printf("serialize = " + serialize);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user