diff --git a/cs-device/cs-device-api/src/main/java/com/njcn/csdevice/pojo/vo/DevCountVO.java b/cs-device/cs-device-api/src/main/java/com/njcn/csdevice/pojo/vo/DevCountVO.java index c22b074..fce640a 100644 --- a/cs-device/cs-device-api/src/main/java/com/njcn/csdevice/pojo/vo/DevCountVO.java +++ b/cs-device/cs-device-api/src/main/java/com/njcn/csdevice/pojo/vo/DevCountVO.java @@ -56,10 +56,10 @@ public class DevCountVO { @ApiModelProperty(value = "稳态件数") private Integer currentHarmonicCount; - @ApiModelProperty(value = "项目数") + @ApiModelProperty(value = "当前项目数") private Integer currentProjectCount; - @ApiModelProperty(value = "项目数") + @ApiModelProperty(value = "反馈数") private Integer feedBackCount; diff --git a/cs-device/cs-device-boot/src/main/java/com/njcn/csdevice/controller/equipment/EquipmentDeliveryController.java b/cs-device/cs-device-boot/src/main/java/com/njcn/csdevice/controller/equipment/EquipmentDeliveryController.java index ad4d9e1..5d07027 100644 --- a/cs-device/cs-device-boot/src/main/java/com/njcn/csdevice/controller/equipment/EquipmentDeliveryController.java +++ b/cs-device/cs-device-boot/src/main/java/com/njcn/csdevice/controller/equipment/EquipmentDeliveryController.java @@ -67,10 +67,14 @@ public class EquipmentDeliveryController extends BaseController { @DeviceLog(operateType = DeviceOperate.ADD) public HttpResult addEquipmentDelivery(@RequestBody @Validated CsEquipmentDeliveryAddParm csEquipmentDeliveryAddParm){ String methodDescribe = getMethodDescribe("addEquipmentDelivery"); - Boolean flag = csEquipmentDeliveryService.save (csEquipmentDeliveryAddParm); + Boolean flag = csEquipmentDeliveryService.save(csEquipmentDeliveryAddParm); if (flag){ - //初始化装置mqtt连接信息(使用sha256加密) - mqttUserService.insertMqttUser(csEquipmentDeliveryAddParm.getNdid()); + //查询mqtt用户名和密码是否存在 + boolean result = mqttUserService.findMqttUser(csEquipmentDeliveryAddParm.getNdid()); + if (result){ + //初始化装置mqtt连接信息(使用sha256加密) + mqttUserService.insertMqttUser(csEquipmentDeliveryAddParm.getNdid()); + } } return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, flag, methodDescribe); } diff --git a/cs-device/cs-device-boot/src/main/java/com/njcn/csdevice/mapper/mapping/CsDataArrayMapper.xml b/cs-device/cs-device-boot/src/main/java/com/njcn/csdevice/mapper/mapping/CsDataArrayMapper.xml index d2b9dcf..bdf5a6a 100644 --- a/cs-device/cs-device-boot/src/main/java/com/njcn/csdevice/mapper/mapping/CsDataArrayMapper.xml +++ b/cs-device/cs-device-boot/src/main/java/com/njcn/csdevice/mapper/mapping/CsDataArrayMapper.xml @@ -96,9 +96,9 @@ from cs_equipment_delivery t0 left join - cs_dev_model_relation t1 on t0.id = t1.dev_id + cs_dev_model_relation t1 on t0.id = t1.dev_id and t1.status = 1 left join - cs_dev_model t2 on t1.model_id = t2.id + cs_dev_model t2 on t1.model_id = t2.id and t2.status = 1 left join cs_data_set t3 on t3.pid = t2.id left join cs_data_array t4 on t3.id = t4.pid where diff --git a/cs-device/cs-device-boot/src/main/java/com/njcn/csdevice/service/IMqttUserService.java b/cs-device/cs-device-boot/src/main/java/com/njcn/csdevice/service/IMqttUserService.java index 6311359..02f67cd 100644 --- a/cs-device/cs-device-boot/src/main/java/com/njcn/csdevice/service/IMqttUserService.java +++ b/cs-device/cs-device-boot/src/main/java/com/njcn/csdevice/service/IMqttUserService.java @@ -13,6 +13,13 @@ import com.njcn.csdevice.pojo.po.MqttUser; */ public interface IMqttUserService extends IService { + /** + * 查询新增的mqtt用户名和密码是否存在 + * @param userName 用户名 + * @return boolean + */ + boolean findMqttUser(String userName); + /** * 根据密码生成mqtt连接信息 * @param password diff --git a/cs-device/cs-device-boot/src/main/java/com/njcn/csdevice/service/impl/CsDevCapacityPOServiceImpl.java b/cs-device/cs-device-boot/src/main/java/com/njcn/csdevice/service/impl/CsDevCapacityPOServiceImpl.java index 673b7f5..7a05dd9 100644 --- a/cs-device/cs-device-boot/src/main/java/com/njcn/csdevice/service/impl/CsDevCapacityPOServiceImpl.java +++ b/cs-device/cs-device-boot/src/main/java/com/njcn/csdevice/service/impl/CsDevCapacityPOServiceImpl.java @@ -57,9 +57,10 @@ public class CsDevCapacityPOServiceImpl extends ServiceImpl new BusinessException(AlgorithmResponseEnum.DATA_MISSING)); - - +// Optional.ofNullable(one).orElseThrow(()-> new BusinessException(AlgorithmResponseEnum.DATA_MISSING)); + if(Objects.isNull(one)){ + return 0.0; + } return Double.valueOf(df.format(one.getCapacity()*0.1)); } } diff --git a/cs-device/cs-device-boot/src/main/java/com/njcn/csdevice/service/impl/CsDeviceUserPOServiceImpl.java b/cs-device/cs-device-boot/src/main/java/com/njcn/csdevice/service/impl/CsDeviceUserPOServiceImpl.java index 46061fa..d750c56 100644 --- a/cs-device/cs-device-boot/src/main/java/com/njcn/csdevice/service/impl/CsDeviceUserPOServiceImpl.java +++ b/cs-device/cs-device-boot/src/main/java/com/njcn/csdevice/service/impl/CsDeviceUserPOServiceImpl.java @@ -302,7 +302,7 @@ public class CsDeviceUserPOServiceImpl extends ServiceImpl list1 = iCsLedgerService.lambdaQuery().eq(CsLedger::getPid, eid).list(); - if(!com.alibaba.nacos.client.naming.utils.CollectionUtils.isEmpty(list1)){ + if(!CollectionUtils.isEmpty(list1)){ List collect = list1.stream().map(CsLedger::getId).collect(Collectors.toList()); LambdaQueryWrapper csLinePOLambdaQueryWrapper = new LambdaQueryWrapper<>(); csLinePOLambdaQueryWrapper.in(CsLinePO::getLineId,collect); diff --git a/cs-device/cs-device-boot/src/main/java/com/njcn/csdevice/service/impl/CsEquipmentDeliveryServiceImpl.java b/cs-device/cs-device-boot/src/main/java/com/njcn/csdevice/service/impl/CsEquipmentDeliveryServiceImpl.java index 1c5b40d..d2125c0 100644 --- a/cs-device/cs-device-boot/src/main/java/com/njcn/csdevice/service/impl/CsEquipmentDeliveryServiceImpl.java +++ b/cs-device/cs-device-boot/src/main/java/com/njcn/csdevice/service/impl/CsEquipmentDeliveryServiceImpl.java @@ -125,10 +125,10 @@ public class CsEquipmentDeliveryServiceImpl extends ServiceImpl wrapper = new UpdateWrapper(); + //物理删除 + QueryWrapper wrapper = new QueryWrapper(); wrapper.eq ("id", id); - wrapper.set ("run_status", "0"); - boolean update = this.update (wrapper); + boolean update = this.remove (wrapper); //删除deviceuser表里的设备,游客数据设备,删除监测点相关数据 List list = csLedgerService.lambdaQuery().eq(CsLedger::getPid, id).list(); if(!CollectionUtils.isEmpty(list)){ @@ -153,9 +153,9 @@ public class CsEquipmentDeliveryServiceImpl extends ServiceImpl queryWrap = new QueryWrapper<>(); queryWrap.eq("device_id",id); csTouristDataPOService.getBaseMapper().delete(queryWrap); - - CsEquipmentDeliveryPO csEquipmentDeliveryPO = this.getBaseMapper().selectById(id); - mqttUserService.deleteUser(csEquipmentDeliveryPO.getNdid()); + /*后续徐那边做处理*/ +// CsEquipmentDeliveryPO csEquipmentDeliveryPO = this.getBaseMapper().selectById(id); +// mqttUserService.deleteUser(csEquipmentDeliveryPO.getNdid()); csDevModelRelationService.lambdaUpdate().eq(CsDevModelRelationPO::getDevId,id).set(CsDevModelRelationPO::getStatus,0).update(); @@ -496,8 +496,8 @@ public class CsEquipmentDeliveryServiceImpl extends ServiceImpl list = csEquipmentProcessPOService.lambdaQuery().eq(CsEquipmentProcessPO::getDevId, one.getNdid()). @@ -516,8 +516,8 @@ public class CsEquipmentDeliveryServiceImpl extends ServiceImpl list = csEquipmentProcessPOService.lambdaQuery().eq(CsEquipmentProcessPO::getDevId, one.getNdid()). diff --git a/cs-device/cs-device-boot/src/main/java/com/njcn/csdevice/service/impl/CsLedgerServiceImpl.java b/cs-device/cs-device-boot/src/main/java/com/njcn/csdevice/service/impl/CsLedgerServiceImpl.java index cb10dbc..78f7002 100644 --- a/cs-device/cs-device-boot/src/main/java/com/njcn/csdevice/service/impl/CsLedgerServiceImpl.java +++ b/cs-device/cs-device-boot/src/main/java/com/njcn/csdevice/service/impl/CsLedgerServiceImpl.java @@ -5,17 +5,11 @@ import cn.hutool.core.collection.CollectionUtil; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.njcn.csdevice.enums.LineBaseEnum; -import com.njcn.csdevice.mapper.AppProjectMapper; -import com.njcn.csdevice.mapper.AppTopologyDiagramMapper; -import com.njcn.csdevice.mapper.CsEngineeringMapper; -import com.njcn.csdevice.mapper.CsLedgerMapper; +import com.njcn.csdevice.mapper.*; import com.njcn.csdevice.pojo.dto.DevDetailDTO; import com.njcn.csdevice.pojo.dto.LineParamDTO; import com.njcn.csdevice.pojo.param.CsLedgerParam; -import com.njcn.csdevice.pojo.po.AppProjectPO; -import com.njcn.csdevice.pojo.po.AppTopologyDiagramPO; -import com.njcn.csdevice.pojo.po.CsEngineeringPO; -import com.njcn.csdevice.pojo.po.CsLedger; +import com.njcn.csdevice.pojo.po.*; import com.njcn.csdevice.pojo.vo.CsLedgerVO; import com.njcn.csdevice.service.CsLinePOService; import com.njcn.csdevice.service.ICsEngineeringUserService; @@ -57,6 +51,9 @@ public class CsLedgerServiceImpl extends ServiceImpl i private final FileStorageUtil fileStorageUtil; private final RoleEngineerDevService roleEngineerDevService; + private final CsEquipmentDeliveryMapper csEquipmentDeliveryMapper; + + @Override public List getLedgerTree() { @@ -92,7 +89,15 @@ public class CsLedgerServiceImpl extends ServiceImpl i // } List projectList = allList.stream().filter(item -> item.getLevel().equals(LineBaseEnum.PROJECT_LEVEL.getCode())).sorted(Comparator.comparing(CsLedgerVO::getSort)).collect(Collectors.toList()); // List deviceList = allList.stream().filter(item -> item.getLevel().equals(LineBaseEnum.DEVICE_LEVEL.getCode())).sorted(Comparator.comparing(CsLedgerVO::getSort)).collect(Collectors.toList()); - List deviceList = allList.stream().filter(item -> device.contains(item.getId())).sorted(Comparator.comparing(CsLedgerVO::getSort)).collect(Collectors.toList()); + List deviceList = allList.stream().filter(item -> device.contains(item.getId())). + map( + temp->{ + CsEquipmentDeliveryPO csEquipmentDeliveryPO = csEquipmentDeliveryMapper.selectById(temp.getId()); + temp.setComFlag(csEquipmentDeliveryPO.getRunStatus()); + return temp; + } + ). + sorted(Comparator.comparing(CsLedgerVO::getSort)).collect(Collectors.toList()); List lineList = allList.stream().filter(item -> item.getLevel().equals(LineBaseEnum.LINE_LEVEL.getCode())).sorted(Comparator.comparing(CsLedgerVO::getSort)).collect(Collectors.toList()); // List collect = lineList.stream().map(CsLedgerVO::getId).collect(Collectors.toList()); @@ -125,7 +130,15 @@ public class CsLedgerServiceImpl extends ServiceImpl i // } List projectList = allList.stream().filter(item -> item.getLevel().equals(LineBaseEnum.PROJECT_LEVEL.getCode())).sorted(Comparator.comparing(CsLedgerVO::getSort)).collect(Collectors.toList()); // List deviceList = allList.stream().filter(item -> item.getLevel().equals(LineBaseEnum.DEVICE_LEVEL.getCode())).sorted(Comparator.comparing(CsLedgerVO::getSort)).collect(Collectors.toList()); - List deviceList = allList.stream().filter(item -> device.contains(item.getId())).sorted(Comparator.comparing(CsLedgerVO::getSort)).collect(Collectors.toList()); + List deviceList = allList.stream().filter(item -> device.contains(item.getId())). + map( + temp->{ + CsEquipmentDeliveryPO csEquipmentDeliveryPO = csEquipmentDeliveryMapper.selectById(temp.getId()); + temp.setComFlag(csEquipmentDeliveryPO.getRunStatus()); + return temp; + } + ). + sorted(Comparator.comparing(CsLedgerVO::getSort)).collect(Collectors.toList()); projectList.forEach(pro -> pro.setChildren(getChildren(pro, deviceList))); engineeringList.forEach(eng -> eng.setChildren(getChildren(eng, projectList))); diff --git a/cs-device/cs-device-boot/src/main/java/com/njcn/csdevice/service/impl/MqttUserServiceImpl.java b/cs-device/cs-device-boot/src/main/java/com/njcn/csdevice/service/impl/MqttUserServiceImpl.java index 6a06acb..c8965bb 100644 --- a/cs-device/cs-device-boot/src/main/java/com/njcn/csdevice/service/impl/MqttUserServiceImpl.java +++ b/cs-device/cs-device-boot/src/main/java/com/njcn/csdevice/service/impl/MqttUserServiceImpl.java @@ -9,6 +9,7 @@ import com.njcn.csdevice.pojo.po.MqttUser; import com.njcn.csdevice.service.IMqttUserService; import org.springframework.stereotype.Service; +import java.util.Objects; import java.util.Random; /** @@ -23,6 +24,12 @@ import java.util.Random; @DS("mqtt") public class MqttUserServiceImpl extends ServiceImpl implements IMqttUserService { + @Override + public boolean findMqttUser(String userName) { + MqttUser mqttUser = this.lambdaQuery().eq(MqttUser::getUsername,userName).one(); + return Objects.isNull(mqttUser); + } + @Override public void insertMqttUser(String password) { Random r = new Random(); diff --git a/cs-device/cs-device-boot/src/main/java/com/njcn/csdevice/service/impl/RoleEngineerDevServiceImpl.java b/cs-device/cs-device-boot/src/main/java/com/njcn/csdevice/service/impl/RoleEngineerDevServiceImpl.java index f9282b8..076afd1 100644 --- a/cs-device/cs-device-boot/src/main/java/com/njcn/csdevice/service/impl/RoleEngineerDevServiceImpl.java +++ b/cs-device/cs-device-boot/src/main/java/com/njcn/csdevice/service/impl/RoleEngineerDevServiceImpl.java @@ -99,7 +99,7 @@ public class RoleEngineerDevServiceImpl implements RoleEngineerDevService { }else if(Objects.equals(role,AppRoleEnum.ROOT.getCode())||Objects.equals(role,AppRoleEnum.OPERATION_MANAGER.getCode())){ List csEngineeringPOS = csEngineeringMapper.selectList(null); - collect =csEngineeringPOS.stream().map(CsEngineeringPO::getId).collect(Collectors.toList()); + collect =csEngineeringPOS.stream().filter(temp->Objects.equals(temp.getStatus(),"1")).map(CsEngineeringPO::getId).collect(Collectors.toList()); } return collect; diff --git a/cs-harmonic/cs-harmonic-api/src/main/java/com/njcn/csharmonic/pojo/vo/ThdDataVO.java b/cs-harmonic/cs-harmonic-api/src/main/java/com/njcn/csharmonic/pojo/vo/ThdDataVO.java index 4b6fa7f..9efbb40 100644 --- a/cs-harmonic/cs-harmonic-api/src/main/java/com/njcn/csharmonic/pojo/vo/ThdDataVO.java +++ b/cs-harmonic/cs-harmonic-api/src/main/java/com/njcn/csharmonic/pojo/vo/ThdDataVO.java @@ -1,9 +1,12 @@ package com.njcn.csharmonic.pojo.vo; import com.fasterxml.jackson.annotation.JsonFormat; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.njcn.common.utils.serializer.InstantDateSerializer; import lombok.Data; import org.springframework.format.annotation.DateTimeFormat; +import java.time.Instant; import java.time.LocalDateTime; /** @@ -15,9 +18,8 @@ import java.time.LocalDateTime; */ @Data public class ThdDataVO { - @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") - @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") - private LocalDateTime time; + @JsonSerialize(using = InstantDateSerializer.class) + private Instant time; private String lineId; private String position; private String lineName; diff --git a/cs-harmonic/cs-harmonic-boot/src/main/java/com/njcn/csharmonic/service/impl/CsEventUserPOServiceImpl.java b/cs-harmonic/cs-harmonic-boot/src/main/java/com/njcn/csharmonic/service/impl/CsEventUserPOServiceImpl.java index 4ae115c..7c2bcce 100644 --- a/cs-harmonic/cs-harmonic-boot/src/main/java/com/njcn/csharmonic/service/impl/CsEventUserPOServiceImpl.java +++ b/cs-harmonic/cs-harmonic-boot/src/main/java/com/njcn/csharmonic/service/impl/CsEventUserPOServiceImpl.java @@ -81,11 +81,11 @@ public class CsEventUserPOServiceImpl extends ServiceImpl data = dicDataFeignClient.getDicDataByTypeCode(DicDataTypeEnum.APP_EVENT.getCode()).getData(); @@ -227,10 +227,10 @@ public class CsEventUserPOServiceImpl extends ServiceImpl deviceId = new ArrayList<>(); List data = csLedgerFeignClient.getDeviceTree().getData(); diff --git a/cs-harmonic/cs-harmonic-boot/src/main/java/com/njcn/csharmonic/service/impl/DeviceDataTrendServiceImpl.java b/cs-harmonic/cs-harmonic-boot/src/main/java/com/njcn/csharmonic/service/impl/DeviceDataTrendServiceImpl.java index 147fc1b..b3b6df6 100644 --- a/cs-harmonic/cs-harmonic-boot/src/main/java/com/njcn/csharmonic/service/impl/DeviceDataTrendServiceImpl.java +++ b/cs-harmonic/cs-harmonic-boot/src/main/java/com/njcn/csharmonic/service/impl/DeviceDataTrendServiceImpl.java @@ -64,7 +64,7 @@ public class DeviceDataTrendServiceImpl implements DeviceDataTrendService { vo.setLineId(statisticalDataDTO.getLineId()); vo.setPhase(statisticalDataDTO.getPhaseType()); - vo.setTime(statisticalDataDTO.getTime().atZone(ZoneId.systemDefault()).toLocalDateTime()); + vo.setTime(statisticalDataDTO.getTime()); vo.setStatMethod(statisticalDataDTO.getValueType()); vo.setStatisticalData(BigDecimal.valueOf(statisticalDataDTO.getValue()).setScale(4, RoundingMode.UP).doubleValue()); vo.setStatisticalIndex(temp.getDataId()); diff --git a/cs-harmonic/cs-harmonic-boot/src/main/java/com/njcn/csharmonic/service/impl/StableDataServiceImpl.java b/cs-harmonic/cs-harmonic-boot/src/main/java/com/njcn/csharmonic/service/impl/StableDataServiceImpl.java index 252a7ef..7d80cfe 100644 --- a/cs-harmonic/cs-harmonic-boot/src/main/java/com/njcn/csharmonic/service/impl/StableDataServiceImpl.java +++ b/cs-harmonic/cs-harmonic-boot/src/main/java/com/njcn/csharmonic/service/impl/StableDataServiceImpl.java @@ -80,7 +80,7 @@ public class StableDataServiceImpl implements StableDataService { ThdDataVO thdDataVO = new ThdDataVO(); BeanUtils.copyProperties(temp,thdDataVO); thdDataVO.setStatisticalName(statisticalName); - thdDataVO.setTime(temp.getTime().atZone(ZoneId.systemDefault()).toLocalDateTime()); + thdDataVO.setTime(temp.getTime()); String position = csLinePOList.stream().filter(csLinePO -> Objects.equals(csLinePO.getLineId(), thdDataVO.getLineId())).collect(Collectors.toList()).get(0).getPosition(); thdDataVO.setPosition(position); Double statisticalValue = 0.00; @@ -106,7 +106,7 @@ public class StableDataServiceImpl implements StableDataService { ThdDataVO thdDataVO = new ThdDataVO(); BeanUtils.copyProperties(temp,thdDataVO); thdDataVO.setStatisticalName(thdDataQueryParm.getStatisticalName()); - thdDataVO.setTime(temp.getTime().atZone(ZoneId.systemDefault()).toLocalDateTime()); + thdDataVO.setTime(temp.getTime()); String position = csLinePOList.stream().filter(csLinePO -> Objects.equals(csLinePO.getLineId(), thdDataVO.getLineId())).collect(Collectors.toList()).get(0).getPosition(); thdDataVO.setPosition(position); Double statisticalValue = 0.00; @@ -133,7 +133,7 @@ public class StableDataServiceImpl implements StableDataService { ThdDataVO thdDataVO = new ThdDataVO(); BeanUtils.copyProperties(temp,thdDataVO); thdDataVO.setStatisticalName(statisticalName); - thdDataVO.setTime(temp.getTime().atZone(ZoneId.systemDefault()).toLocalDateTime()); + thdDataVO.setTime(temp.getTime()); String position = csLinePOList.stream().filter(csLinePO -> Objects.equals(csLinePO.getLineId(), thdDataVO.getLineId())).collect(Collectors.toList()).get(0).getPosition(); thdDataVO.setPosition(position); Double statisticalValue = 0.00; @@ -158,7 +158,7 @@ public class StableDataServiceImpl implements StableDataService { ThdDataVO thdDataVO = new ThdDataVO(); BeanUtils.copyProperties(temp,thdDataVO); thdDataVO.setStatisticalName(thdDataQueryParm.getStatisticalName()); - thdDataVO.setTime(temp.getTime().atZone(ZoneId.systemDefault()).toLocalDateTime()); + thdDataVO.setTime(temp.getTime()); String position = csLinePOList.stream().filter(csLinePO -> Objects.equals(csLinePO.getLineId(), thdDataVO.getLineId())).collect(Collectors.toList()).get(0).getPosition(); thdDataVO.setPosition(position); Double statisticalValue = 0.00; @@ -214,7 +214,7 @@ public class StableDataServiceImpl implements StableDataService { vo.setPhase(phaseReflection(temp.getPhaseType())); String position = finalCsLinePOList.stream().filter(csLinePO -> Objects.equals(csLinePO.getLineId(), vo.getLineId())).collect(Collectors.toList()).get(0).getPosition(); vo.setPosition(position); - vo.setTime(temp.getTime().atZone(ZoneId.systemDefault()).toLocalDateTime()); + vo.setTime(temp.getTime()); vo.setStatMethod(temp.getValueType()); vo.setStatisticalData(Double.valueOf(df.format(temp.getValue()))); vo.setStatisticalIndex(data.getId()); @@ -265,7 +265,7 @@ public class StableDataServiceImpl implements StableDataService { vo.setPhase(temp.getPhaseType()); String position = csLinePOList.stream().filter(csLinePO -> Objects.equals(csLinePO.getLineId(), vo.getLineId())).collect(Collectors.toList()).get(0).getPosition(); vo.setPosition(position); - vo.setTime(temp.getTime().atZone(ZoneId.systemDefault()).toLocalDateTime()); + vo.setTime(temp.getTime()); vo.setStatMethod(temp.getValueType()); vo.setStatisticalData(Double.valueOf(df.format(temp.getValue()))); vo.setStatisticalIndex(epdPqd.getId()); @@ -325,7 +325,7 @@ public class StableDataServiceImpl implements StableDataService { vo.setLineName(lineName); vo.setPosition(position); - vo.setTime(temp.getTime().atZone(ZoneId.systemDefault()).toLocalDateTime()); + vo.setTime(temp.getTime()); vo.setStatMethod(temp.getValueType()); vo.setStatisticalData(Double.valueOf(df.format(temp.getValue()))); vo.setStatisticalIndex(epdPqd.getId()); diff --git a/pom.xml b/pom.xml index 7b01bdd..95b2804 100644 --- a/pom.xml +++ b/pom.xml @@ -1,7 +1,7 @@ + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 com.njcn @@ -28,8 +28,8 @@ ${middle.server.url}:18848 - 415a1c87-33aa-47bd-8e25-13cc456c87ed - + eccf606c-4213-4ee1-846e-a265a50ae355 + ${middle.server.url}:8080 @@ -85,7 +85,7 @@ 1.2.7 4.4.0 0.5.3 - 4.8.1 + 4.9.0 8.2.1 1.7.0-Hoxton @@ -332,10 +332,50 @@ progressbar ${progressbar.version} + + com.squareup.okhttp3 + logging-interceptor + ${okhttp3.version} + + + com.squareup.okhttp3 + mockwebserver + ${okhttp3.version} + + + com.squareup.okhttp3 + okcurl + ${okhttp3.version} + com.squareup.okhttp3 okhttp - ${okhttp.version} + ${okhttp3.version} + + + com.squareup.okhttp3 + okhttp-dnsoverhttps + ${okhttp3.version} + + + com.squareup.okhttp3 + okhttp-sse + ${okhttp3.version} + + + com.squareup.okhttp3 + okhttp-testing-support + ${okhttp3.version} + + + com.squareup.okhttp3 + okhttp-tls + ${okhttp3.version} + + + com.squareup.okhttp3 + okhttp-urlconnection + ${okhttp3.version} io.minio