From c0c9157a611af1db2daed87230c4b63670adcbb6 Mon Sep 17 00:00:00 2001 From: haungxing <1203316822@qq.com> Date: Tue, 3 Sep 2024 21:08:32 +0800 Subject: [PATCH 1/3] =?UTF-8?q?fix:=20=E5=B7=A1=E6=A3=80=E6=A8=A1=E6=9D=BF?= =?UTF-8?q?=E4=B8=8E=E9=A1=B9=E7=9B=AE=E7=BB=91=E5=AE=9A=E8=A1=A8=E5=8E=BB?= =?UTF-8?q?=E9=99=A4tenantId=E7=AD=9B=E9=80=89=E6=9D=A1=E4=BB=B6=E6=8B=BC?= =?UTF-8?q?=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/hnac/hzinfo/inspect/obj/mapper/ObjectTemplateMapper.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/obj/mapper/ObjectTemplateMapper.java b/hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/obj/mapper/ObjectTemplateMapper.java index a8d88a2..edfca53 100644 --- a/hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/obj/mapper/ObjectTemplateMapper.java +++ b/hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/obj/mapper/ObjectTemplateMapper.java @@ -1,5 +1,6 @@ package com.hnac.hzinfo.inspect.obj.mapper; +import com.baomidou.mybatisplus.annotation.InterceptorIgnore; import org.springblade.core.datascope.annotation.UserDataAuth; import com.hnac.hzinfo.inspect.obj.vo.TemplateProjectVo; import org.apache.ibatis.annotations.Mapper; @@ -20,6 +21,7 @@ public interface ObjectTemplateMapper extends BaseMapper { * 根据对象id获取模板list * @return */ + @InterceptorIgnore(tenantLine = "true") List getListByObjectId(@Param("objectId") Long objectId, @Param("type") String type); /** @@ -27,6 +29,7 @@ public interface ObjectTemplateMapper extends BaseMapper { * 根据对象id获取模板项目内容 * @param objectId */ + @InterceptorIgnore(tenantLine = "true") List getTemplateByObjectId(Long objectId); From 4dd210c7803cd86c682751636d0cd87f7210b1b2 Mon Sep 17 00:00:00 2001 From: ty <1577900710@qq.com> Date: Tue, 3 Sep 2024 21:14:02 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=EF=BC=9A=E7=BB=9F?= =?UTF-8?q?=E8=AE=A1=E6=9C=88=E6=8A=A5=E6=A8=A1=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/template/word/stationMonthReport.docx | Bin 24431 -> 24430 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/hzims-service/operational/src/main/resources/template/word/stationMonthReport.docx b/hzims-service/operational/src/main/resources/template/word/stationMonthReport.docx index 58e7f11e2d5e1ac4f0529f545712c1a65cc8eb7d..cc5084f131333930a9629fe0c81ee80f60bdd152 100644 GIT binary patch delta 10203 zcmZ9SWlSAR^ybmxZpEGA?(T4ri_68`-TmV37k8()yIXND?ry~?&=%Qucaz=ZKbf2l zCu2FuGjmSnciRtr(+{1@10OK_8O4_($Ox^MV#%x^UGf#aD7?O05Z^|pZiEDW)m7^e z$V9&Y&#c!tj?him8ZrcE49Qe&7q4@-N^HVodD@mO&@QljT5vzxJBapNmWO6y5%pI^ z|CX{vNd%I-|6SxS@-w5Hq4?Ersrdw!V2*D{K0}!vf)C9OQb;{nZhDU{Q8X81=zO$q zdbc9(edqS00327wO)#riMe+CoARF$4bjy{Td1W9{RzOC$tF{${Kk2B2E0 z+E`T)77iB*3JMV_3V0|!6vwY=2q}Ul1NQ+(*l{DgX?7_e3f2L7aB8WstGvk3-C8 z3G6b8<1W_stCIa}evWdGa%r>eu#iRL^&A?+~nXYx}twNne*n~X#2;6?#? zJD4+7U@t>k*{b1hRGqY)CBpsaWD({ebs)OMQ- zeaBj8#_4>h_J*5+X=ZwERb0>PsRPUNO$1h7Q~gy@;?`GIaC8G*<=OT3e$`oh4sqWp z&=#vH(RcV80r6(14m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PW}eKV2A=j0f7Dm%Qfo}gHCu0CPNq_?!_fU?11q0A&enPkl1HYXp&YGZ5Aw+=FYTw18TKv zE07%Xym3(SpKV2n)b$mtVucdOCwDaASqF7QHS{M8!ce_A_`VO z*zV9RK`J!+Jq6Zi?N4}$%`L>DjSwAR^1y<4Zw{@o@ZXm<`Vl1J%r=76?CDPV8GJMtD|0qTV3WVym`%;2nXNS|mn=Nu@4|4ea z5aYmvnfnMX39dezlpyK$jqJB&a*wB5c;g-_RQ&q8iW}qgUhB0D3qP2IE@9E;2(c|2 z)(x7tZ&Q5`nftTr0W9`{>M=hJ{HI*pj0OKNC1oE!>9H{WE9#>=JiFf4mR!Ta5)6(Se1&N@+j_9>Wee%^#%wLfTeZ&Jao|F4X<>6% z;jqS`Y`=pdl@F+Yg#DxO1_yNuzSH{x1p#yGb3s9Y?ezK4{wM(emR_DfS7$wECpK`u z0WtWC7A$y99|?*MyrC}wt*r%i(;^2u7-4|r3<#k}!IlPJps`fI2`YsDcFX>k>kW)- zC_wc8{bEo6fCDrDfcZ}i{xhHe Date: Tue, 3 Sep 2024 21:26:46 +0800 Subject: [PATCH 3/3] =?UTF-8?q?#=E6=B0=B4=E4=BD=8D=E6=95=B0=E6=8D=AE&?= =?UTF-8?q?=E6=B0=B4=E7=94=B5=E7=AB=99=E7=94=9F=E4=BA=A7=E8=BF=90=E8=A1=8C?= =?UTF-8?q?=E6=9C=88=E6=8A=A5=E6=97=B6=E9=97=B4=E6=A0=BC=E5=BC=8F=E5=8C=96?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../operation/home/impl/RealTargetServiceImpl.java | 84 +++++++++++++++++----- .../impl/EcologyFlowStationServiceImpl.java | 7 +- .../main/service/impl/HydropowerServiceImpl.java | 1 + .../main/service/impl/PhotovoltaicServiceImpl.java | 8 ++- .../report/service/impl/RunMonthServiceImpl.java | 7 +- 5 files changed, 88 insertions(+), 19 deletions(-) diff --git a/hzims-service/hzims-scheduled/src/main/java/com/hnac/hzims/scheduled/service/operation/home/impl/RealTargetServiceImpl.java b/hzims-service/hzims-scheduled/src/main/java/com/hnac/hzims/scheduled/service/operation/home/impl/RealTargetServiceImpl.java index 640ea90..98aaa2b 100644 --- a/hzims-service/hzims-scheduled/src/main/java/com/hnac/hzims/scheduled/service/operation/home/impl/RealTargetServiceImpl.java +++ b/hzims-service/hzims-scheduled/src/main/java/com/hnac/hzims/scheduled/service/operation/home/impl/RealTargetServiceImpl.java @@ -41,6 +41,8 @@ import com.hnac.hzinfo.sdk.analyse.po.MultiAnalyzeCodePO; import com.hnac.hzinfo.sdk.core.response.HzPage; import com.hnac.hzinfo.sdk.core.response.Result; import com.hnac.hzinfo.sdk.v5.device.DeviceDataClient; +import com.xxl.job.core.log.XxlJobLogger; +import io.undertow.util.CopyOnWriteMap; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; import org.apache.commons.collections4.MapUtils; @@ -642,14 +644,16 @@ public class RealTargetServiceImpl implements RealTargetService { List list = new CopyOnWriteArrayList<>(); CountDownLatch countDownLatch = new CountDownLatch(modelList.size()); for(HzimsAnalyzeModelStationEntity item : modelList){ - pool.submit(() -> { + pool.execute(() -> { try{ - List multiAnalyzeCodePOList=new ArrayList<>(); - MultiAnalyzeCodePO multiAnalyzeCodePO=new MultiAnalyzeCodePO(); + List multiAnalyzeCodePOList = new ArrayList<>(); + MultiAnalyzeCodePO multiAnalyzeCodePO = new MultiAnalyzeCodePO(); multiAnalyzeCodePO.setDeviceCode(item.getInstanceCode()); multiAnalyzeCodePO.setSignages(Collections.singletonList(HomePageConstant.FRONT_WATER_LEVEL)); multiAnalyzeCodePOList.add(multiAnalyzeCodePO); - R>result=analyseDataSearchClient.getAnalyzeCodeBySignages(multiAnalyzeCodePOList); + R> result = analyseDataSearchClient.getAnalyzeCodeBySignages(multiAnalyzeCodePOList); + + if(result.isSuccess() && CollectionUtil.isNotEmpty(result.getData())){ WaterLevelVo waterLevelVo=new WaterLevelVo(); waterLevelVo.setStationCode(item.getStationId()); @@ -671,21 +675,25 @@ public class RealTargetServiceImpl implements RealTargetService { list.add(waterLevelVo); } countDownLatch.countDown(); - }catch (Exception exception){ - log.error("load_water_level_error : {}",exception.getMessage()); + XxlJobLogger.log("load_water_level : 子线程执行完成 {}", item.getInstanceCode()); + } catch (Exception exception) { countDownLatch.countDown(); + XxlJobLogger.log("load_water_level_error : 子线程执行失败 {}", exception.getMessage()); } }); - } + } try { + XxlJobLogger.log("load_water_level :等待线程执行"); countDownLatch.await(); } catch (InterruptedException e) { e.printStackTrace(); Thread.currentThread().interrupt(); } + XxlJobLogger.log("load_water_level :线程执行结束"); redisTemplate.opsForValue().set(loadwater_level_key,list); } + /** * 光伏站-逆变器实时加载 * @@ -947,7 +955,12 @@ public class RealTargetServiceImpl implements RealTargetService { } return datas.stream().map(data->{ ActivePowerVo active = new ActivePowerVo(); - Date dateTime = DateUtil.parse(data.getTs(), "yyyy-MM-dd HH:mm:ss.s"); + Date dateTime; + if(data.getTs().contains(".0")){ + dateTime = DateUtil.parse(data.getTs(), "yyyy-MM-dd HH:mm:ss.s"); + }else{ + dateTime = DateUtil.parse(data.getTs() + ".0", "yyyy-MM-dd HH:mm:ss.s"); + } active.setHour(dateTime.getHours()); if (StringUtil.isBlank(data.getVal())) { active.setActivePower("0"); @@ -974,7 +987,12 @@ public class RealTargetServiceImpl implements RealTargetService { } return records.stream().map(record -> { UsrPowerVo usr = new UsrPowerVo(); - Date time = DateUtil.parse(record.getTs(), "yyyy-MM-dd HH:mm:ss.s"); + Date time; + if(record.getTs().contains(".0")){ + time = DateUtil.parse(record.getTs(), "yyyy-MM-dd HH:mm:ss.s"); + }else{ + time = DateUtil.parse(record.getTs() + ".0", "yyyy-MM-dd HH:mm:ss.s"); + } usr.setDate(DateUtil.format(time,DateUtil.PATTERN_DATE)); usr.setUsrPower(Float.valueOf(Optional.ofNullable(record.getVal()).orElse("0"))); return usr; @@ -1004,7 +1022,12 @@ public class RealTargetServiceImpl implements RealTargetService { } return records.stream().map(record -> { PowerMonthVo generate = new PowerMonthVo(); - Date time = DateUtil.parse(record.getTs(), "yyyy-MM-dd HH:mm:ss.s"); + Date time; + if(record.getTs().contains(".0")){ + time = DateUtil.parse(record.getTs(), "yyyy-MM-dd HH:mm:ss.s"); + }else{ + time = DateUtil.parse(record.getTs() + ".0", "yyyy-MM-dd HH:mm:ss.s"); + } generate.setStrMonth(DateUtil.format(time, DateUtil.PATTERN_DATE)); if(StringUtil.isEmpty(record.getVal())){ generate.setPower(0f); @@ -1217,7 +1240,12 @@ public class RealTargetServiceImpl implements RealTargetService { if(StringUtil.isEmpty(time) || "-".equals(time)){ return 0.0; } - Date date = DateUtil.parse(time, "yyyy-MM-dd HH:mm:ss.sss"); + Date date; + if(time.contains(".000")){ + date = DateUtil.parse(time, "yyyy-MM-dd HH:mm:ss.sss"); + }else{ + date = DateUtil.parse(time, DateUtil.PATTERN_DATETIME); + } if(System.currentTimeMillis() - date.getTime() > 30 * 60 * 1000L){ return 0.0; } @@ -1245,7 +1273,11 @@ public class RealTargetServiceImpl implements RealTargetService { } return datas.stream().collect(Collectors.toMap( key-> { - Date dateTime = DateUtil.parse(key.getTs(), "yyyy-MM-dd HH:mm:ss.s"); + if(key.getTs().contains(".0")){ + Date dateTime = DateUtil.parse(key.getTs(), "yyyy-MM-dd HH:mm:ss.s"); + return dateTime.getHours(); + } + Date dateTime = DateUtil.parse(key.getTs() + ".0", "yyyy-MM-dd HH:mm:ss.s"); return dateTime.getHours(); }, value -> { @@ -1417,7 +1449,12 @@ public class RealTargetServiceImpl implements RealTargetService { } datas.addAll(records.stream().map(record -> { PowerMonthVo generate = new PowerMonthVo(); - Date time = DateUtil.parse(record.get("ts"), "yyyy-MM-dd HH:mm:ss.s"); + Date time; + if(record.get("ts").contains(".0")){ + time = DateUtil.parse(record.get("ts"), "yyyy-MM-dd HH:mm:ss.s"); + }else{ + time = DateUtil.parse(record.get("ts") + ".0", "yyyy-MM-dd HH:mm:ss.s"); + } generate.setStrMonth(DateUtil.format(time,DateUtil.PATTERN_DATE)); String val = record.get(HomePageConstant.HYDROPOWER_GENERATE_POWER); if(StringUtil.isEmpty(val)){ @@ -1535,7 +1572,12 @@ public class RealTargetServiceImpl implements RealTargetService { } datas.addAll(records.stream().map(record -> { PowerMonthVo generate = new PowerMonthVo(); - Date time = DateUtil.parse(record.getTs(), "yyyy-MM-dd HH:mm:ss.s"); + Date time; + if(record.getTs().contains(".0")){ + time = DateUtil.parse(record.getTs(), "yyyy-MM-dd HH:mm:ss.s"); + }else{ + time = DateUtil.parse(record.getTs() + ".0", "yyyy-MM-dd HH:mm:ss.s"); + } generate.setStrMonth(DateUtil.format(time,DateUtil.PATTERN_DATE)); if(StringUtil.isEmpty(record.getVal())){ generate.setPower(0f); @@ -1782,7 +1824,12 @@ public class RealTargetServiceImpl implements RealTargetService { } return records.stream().map(record -> { PhotovoltaicPowerVo load = new PhotovoltaicPowerVo(); - Date time = DateUtil.parse(record.getTs(), "yyyy-MM-dd HH:mm:ss.s"); + Date time; + if(record.getTs().contains(".0")){ + time = DateUtil.parse(record.getTs(), "yyyy-MM-dd HH:mm:ss.s"); + }else{ + time = DateUtil.parse(record.getTs() + ".0", "yyyy-MM-dd HH:mm:ss.s"); + } load.setHour(time.getHours()); load.setActivePower(Optional.ofNullable(record.getVal()).orElse("0")); return load; @@ -1809,7 +1856,12 @@ public class RealTargetServiceImpl implements RealTargetService { } return records.stream().map(record -> { GenerationPowerVo generate = new GenerationPowerVo(); - Date time = DateUtil.parse(record.getTs(), "yyyy-MM-dd HH:mm:ss.s"); + Date time; + if(record.getTs().contains(".0")){ + time = DateUtil.parse(record.getTs(), "yyyy-MM-dd HH:mm:ss.s"); + }else{ + time = DateUtil.parse(record.getTs() + ".0", "yyyy-MM-dd HH:mm:ss.s"); + } generate.setDate(DateUtil.format(time, DateUtil.PATTERN_DATE)); generate.setGenerate(Float.valueOf(Optional.ofNullable(record.getVal()).orElse("0"))); return generate; diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/ecology/service/impl/EcologyFlowStationServiceImpl.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/ecology/service/impl/EcologyFlowStationServiceImpl.java index 52f2c7f..024c854 100644 --- a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/ecology/service/impl/EcologyFlowStationServiceImpl.java +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/ecology/service/impl/EcologyFlowStationServiceImpl.java @@ -310,7 +310,12 @@ public class EcologyFlowStationServiceImpl extends ServiceImpl { WaterVo water = new WaterVo(); - Date time = DateUtil.parse(record.getTs(), "yyyy-MM-dd HH:mm:ss.s"); + Date time; + if(record.getTs().contains(".0")){ + time = DateUtil.parse(record.getTs(), "yyyy-MM-dd HH:mm:ss.s"); + }else{ + time = DateUtil.parse(record.getTs() + ".0", "yyyy-MM-dd HH:mm:ss.s"); + } water.setTime(DateUtil.format(time,DateUtil.PATTERN_DATE)); water.setWater(Double.valueOf(Optional.ofNullable(record.getVal()).orElse("0"))); if(Math.abs(water.getWater()) == 0){ diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/main/service/impl/HydropowerServiceImpl.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/main/service/impl/HydropowerServiceImpl.java index 9815c00..dd93e24 100644 --- a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/main/service/impl/HydropowerServiceImpl.java +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/main/service/impl/HydropowerServiceImpl.java @@ -569,6 +569,7 @@ public class HydropowerServiceImpl implements HydropowerService { WaterLevelVo level = validList.get(0); // 前池水位、当日水位曲线 response.setFrontWaterLevel(level.getFrontWaterLevel()); + response.setFrontCurveMap(level.getFrontCurveMap()); } /** diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/main/service/impl/PhotovoltaicServiceImpl.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/main/service/impl/PhotovoltaicServiceImpl.java index 7c3d32b..a554ad8 100644 --- a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/main/service/impl/PhotovoltaicServiceImpl.java +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/main/service/impl/PhotovoltaicServiceImpl.java @@ -780,7 +780,13 @@ public class PhotovoltaicServiceImpl implements PhotovoltaicService { } return list.stream().collect(Collectors.groupingBy(AnalyseDataTaosVO::getTs)).entrySet().stream().map(entry ->{ PhotovoltaicLoadGenerateVo target = new PhotovoltaicLoadGenerateVo(); - LocalDateTime time = LocalDateTime.parse(DateUtil.format(DateUtil.parse(entry.getKey(), "yyyy-MM-dd HH:mm:ss.s"),DateUtil.PATTERN_DATETIME), DateUtil.DATETIME_FORMATTER); + Date date; + if(entry.getKey().contains(".0")){ + date = DateUtil.parse(entry.getKey(), "yyyy-MM-dd HH:mm:ss.s"); + }else{ + date = DateUtil.parse(entry.getKey() + ".0", "yyyy-MM-dd HH:mm:ss.s"); + } + LocalDateTime time = LocalDateTime.parse(DateUtil.format(date,DateUtil.PATTERN_DATETIME), DateUtil.DATETIME_FORMATTER); target.setPeriod(String.valueOf(time.getHour())); target.setValue((float) entry.getValue().stream().filter(val -> !StringUtil.isEmpty(val.getVal())).mapToDouble(o-> Double.parseDouble(String.valueOf(o.getVal()))).sum()); return target; diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/report/service/impl/RunMonthServiceImpl.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/report/service/impl/RunMonthServiceImpl.java index f2a3c89..8c45a95 100644 --- a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/report/service/impl/RunMonthServiceImpl.java +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/report/service/impl/RunMonthServiceImpl.java @@ -721,7 +721,12 @@ public class RunMonthServiceImpl extends ServiceImpl{ item.setSignage(data.getSignage()); - Date date = DateUtil.parse(item.getTs(), "yyyy-MM-dd HH:mm:ss.s"); + Date date; + if(item.getTs().contains(".0")){ + date = DateUtil.parse(item.getTs(), "yyyy-MM-dd HH:mm:ss.s"); + }else{ + date = DateUtil.parse(item.getTs() + ".0", "yyyy-MM-dd HH:mm:ss.s"); + } day.setTime(date); item.setTs(String.valueOf(day.get(Calendar.DAY_OF_MONTH))); }).collect(Collectors.toList()));