From e8e3b2b23cc4014e7739a74b621f1193d771d5fb Mon Sep 17 00:00:00 2001 From: "BOOL\\25024" Date: Fri, 4 Aug 2023 09:38:07 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=9B=BE=E7=89=87?= =?UTF-8?q?=E7=B4=AF=E5=8A=A0bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jsowell-ui/src/views/pile/station/components/SiteInfo.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/jsowell-ui/src/views/pile/station/components/SiteInfo.vue b/jsowell-ui/src/views/pile/station/components/SiteInfo.vue index 0f075a289..532e162a4 100644 --- a/jsowell-ui/src/views/pile/station/components/SiteInfo.vue +++ b/jsowell-ui/src/views/pile/station/components/SiteInfo.vue @@ -450,6 +450,7 @@ export default { }, // 渲染表格数据 async queryStationInfo() { + this.fileList=[]; const res = await getStationInfo(this.stationId); console.log(res); this.station = res.data; @@ -498,8 +499,10 @@ export default { this.station.stationLng = String(data.pos[0]); this.station.stationLat = String(data.pos[1]); // console.log("修改后this.station", this.station); - console.log(data.address,'data.address') - this.station.address = data.address.includes('区') ? data.address.replace(/区/, ' ').split(' ')[1] : data.address + console.log(data.address, "data.address"); + this.station.address = data.address.includes("区") + ? data.address.replace(/区/, " ").split(" ")[1] + : data.address; // 优化之后 // let newAddress2 = this.detailedAddress // .replace(/(?<=[省市区])/g, "$&,") From 6c940bdd4150e1f3560b4ced8c1f47cce592f7d8 Mon Sep 17 00:00:00 2001 From: Lemon Date: Fri, 4 Aug 2023 09:57:48 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20=20=E9=81=A5=E6=8E=A7?= =?UTF-8?q?=E5=9C=B0=E9=94=81=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../jsowell/api/uniapp/PileController.java | 24 ++++++++++++++++++- .../handler/GroundLockDataUploadHandler.java | 2 ++ 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/jsowell-admin/src/main/java/com/jsowell/api/uniapp/PileController.java b/jsowell-admin/src/main/java/com/jsowell/api/uniapp/PileController.java index 4edf0800f..71bf9989b 100644 --- a/jsowell-admin/src/main/java/com/jsowell/api/uniapp/PileController.java +++ b/jsowell-admin/src/main/java/com/jsowell/api/uniapp/PileController.java @@ -7,10 +7,12 @@ import com.jsowell.common.core.page.PageResponse; import com.jsowell.common.enums.ykc.ReturnCodeEnum; import com.jsowell.common.exception.BusinessException; import com.jsowell.common.response.RestApiResponse; +import com.jsowell.pile.domain.ykcCommond.RemoteControlGroundLockCommand; import com.jsowell.pile.dto.QueryConnectorListDTO; import com.jsowell.pile.dto.QueryStationDTO; import com.jsowell.pile.service.IPileConnectorInfoService; import com.jsowell.pile.service.IPileStationInfoService; +import com.jsowell.pile.service.YKCPushCommandService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; @@ -29,7 +31,8 @@ import javax.servlet.http.HttpServletRequest; @RequestMapping("/uniapp/pile") public class PileController extends BaseController { - + @Autowired + private YKCPushCommandService ykcPushCommandService; @Autowired private IPileStationInfoService pileStationInfoService; @@ -106,4 +109,23 @@ public class PileController extends BaseController { return response; } + /** + * 远程遥控地锁指令 + * @param command + * @return + */ + @PostMapping("/remoteGroundLock") + public RestApiResponse remoteGroundLock(@RequestBody RemoteControlGroundLockCommand command) { + logger.info("遥控地锁指令 params:{}", JSONObject.toJSONString(command)); + RestApiResponse response = null; + try { + ykcPushCommandService.pushRemoteControlGroundLock(command); + } catch (Exception e) { + logger.error("遥控地锁指令 error, ", e); + response = new RestApiResponse<>(e); + } + logger.info("遥控地锁指令 result:{}", response); + return response; + } + } diff --git a/jsowell-netty/src/main/java/com/jsowell/netty/handler/GroundLockDataUploadHandler.java b/jsowell-netty/src/main/java/com/jsowell/netty/handler/GroundLockDataUploadHandler.java index 0a9cfd437..aaa31594e 100644 --- a/jsowell-netty/src/main/java/com/jsowell/netty/handler/GroundLockDataUploadHandler.java +++ b/jsowell-netty/src/main/java/com/jsowell/netty/handler/GroundLockDataUploadHandler.java @@ -88,6 +88,8 @@ public class GroundLockDataUploadHandler extends AbstractHandler{ String redisKey = CacheConstants.GROUND_LOCK_DATA + pileSn + connectorCode; redisCache.setCacheObject(redisKey, data, CacheConstants.cache_expire_time_10m); + log.info("[===地锁数据上送===] result: 桩编码:{}, 枪号:{}, 车位锁状态:{}, 车位状态:{}, 地锁电量状态:{}, 报警状态:{}", + pileSn, connectorCode, parkingLockStatus, parkingStatus, groundLockElectric, alarmStatus); return null; } } From 182ee5db2fef7ce86805f981708c0bee0e929219 Mon Sep 17 00:00:00 2001 From: admin-lmm <2497833386@QQ.com> Date: Fri, 4 Aug 2023 10:20:04 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E6=9B=B4=E6=8D=A2=E5=9C=B0=E5=9B=BE?= =?UTF-8?q?=E7=9A=84key=E4=BB=A5=E5=8F=8A=E5=AF=86=E9=92=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jsowell-ui/src/components/MapContainer/MapContainer.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jsowell-ui/src/components/MapContainer/MapContainer.vue b/jsowell-ui/src/components/MapContainer/MapContainer.vue index 4f3ade0ff..0d971b989 100644 --- a/jsowell-ui/src/components/MapContainer/MapContainer.vue +++ b/jsowell-ui/src/components/MapContainer/MapContainer.vue @@ -40,7 +40,7 @@ import bus from "@/bus/bus"; import {getToken} from "@/utils/auth"; window._AMapSecurityConfig = { - securityJsCode: "829b6b73f84682c2eb982eaa47a745b8", + securityJsCode: "b6b6e07309486e524f9986e1f36a5e28", }; export default { props:['stationLat','stationLng'], @@ -88,7 +88,7 @@ export default { initMap() { // console.log(lat, lng); AMapLoader.load({ - key: "61436c9c789d301a5b73853d176710cf", // 申请好的Web端开发者Key,首次调用 load 时必填 + key: "ba9123dd736bce40f30b52f7c0beebc1", // 申请好的Web端开发者Key,首次调用 load 时必填 version: "1.4.15", // 指定要加载的 JSAPI 的版本,缺省时默认为 1.4.15 plugins: ["AMap.AutoComplete", "AMap.PlaceSearch", "AMap.Geocoder"], // 需要使用的的插件列表,如比例尺'AMap.Scale'等 }) @@ -134,7 +134,7 @@ export default { .catch((e) => { console.log(e); }); - + }, select(e) { this.placeSearch.search(e.poi.name); //关键字查询查询