diff --git a/jsowell-admin/src/main/java/com/jsowell/web/controller/pile/PileBasicInfoController.java b/jsowell-admin/src/main/java/com/jsowell/web/controller/pile/PileBasicInfoController.java index 15ea397ef..6a4e50bd3 100644 --- a/jsowell-admin/src/main/java/com/jsowell/web/controller/pile/PileBasicInfoController.java +++ b/jsowell-admin/src/main/java/com/jsowell/web/controller/pile/PileBasicInfoController.java @@ -196,12 +196,12 @@ public class PileBasicInfoController extends BaseController { /** * 查询桩对应的第三方平台桩编号列表 - * @param queryPileDTO + * @param dto * @return */ @PostMapping("/getThirdPartySnRelation") - public TableDataInfo getThirdPartySnRelation(@RequestBody QueryPileDTO queryPileDTO) { - List list = thirdpartySnRelationService.getRelationVOList(queryPileDTO); + public TableDataInfo getThirdPartySnRelation(@RequestBody ThirdPartySnRelationDTO dto) { + List list = thirdpartySnRelationService.getRelationVOList(dto); return getDataTable(list); } diff --git a/jsowell-pile/src/main/java/com/jsowell/pile/mapper/ThirdpartySnRelationMapper.java b/jsowell-pile/src/main/java/com/jsowell/pile/mapper/ThirdpartySnRelationMapper.java index 4caad03c7..500237678 100644 --- a/jsowell-pile/src/main/java/com/jsowell/pile/mapper/ThirdpartySnRelationMapper.java +++ b/jsowell-pile/src/main/java/com/jsowell/pile/mapper/ThirdpartySnRelationMapper.java @@ -67,10 +67,10 @@ public interface ThirdpartySnRelationMapper { /** * 查询第三方平台桩编号对应的列表 - * @param queryPileDTO + * @param dto * @return */ - List getRelationVOList(@Param("dto") QueryPileDTO queryPileDTO); + List getRelationVOList(@Param("dto") ThirdPartySnRelationDTO dto); /** * 修改第三方平台对应编号 diff --git a/jsowell-pile/src/main/java/com/jsowell/pile/service/IThirdpartySnRelationService.java b/jsowell-pile/src/main/java/com/jsowell/pile/service/IThirdpartySnRelationService.java index a68b7936f..20c394b1a 100644 --- a/jsowell-pile/src/main/java/com/jsowell/pile/service/IThirdpartySnRelationService.java +++ b/jsowell-pile/src/main/java/com/jsowell/pile/service/IThirdpartySnRelationService.java @@ -67,7 +67,7 @@ public interface IThirdpartySnRelationService { * @param queryPileDTO * @return */ - List getRelationVOList(QueryPileDTO queryPileDTO); + List getRelationVOList(ThirdPartySnRelationDTO dto); /** * 修改第三方平台对应编号 diff --git a/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/ThirdpartySnRelationServiceImpl.java b/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/ThirdpartySnRelationServiceImpl.java index f1ea7e5c5..80d2bd09f 100644 --- a/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/ThirdpartySnRelationServiceImpl.java +++ b/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/ThirdpartySnRelationServiceImpl.java @@ -94,12 +94,12 @@ public class ThirdpartySnRelationServiceImpl implements IThirdpartySnRelationSer /** * 查询第三方平台桩编号对应的列表 - * @param queryPileDTO + * @param dto * @return */ @Override - public List getRelationVOList(QueryPileDTO queryPileDTO) { - List list = thirdpartySnRelationMapper.getRelationVOList(queryPileDTO); + public List getRelationVOList(ThirdPartySnRelationDTO dto) { + List list = thirdpartySnRelationMapper.getRelationVOList(dto); for (ThirdPartySnRelationVO thirdPartySnRelationVO : list) { // 将第三方平台类型中文名称查询出来 String thirdPartyType = thirdPartySnRelationVO.getThirdPartyType(); diff --git a/jsowell-ui/src/views/pile/basic/detail.vue b/jsowell-ui/src/views/pile/basic/detail.vue index a9c505dd9..eb97f3d61 100644 --- a/jsowell-ui/src/views/pile/basic/detail.vue +++ b/jsowell-ui/src/views/pile/basic/detail.vue @@ -275,7 +275,6 @@ export default { // 查询充电桩接口列表 this.queryPileConnectorList(); // 查询桩对应的第三方平台桩编号列表 - this.getThirdPartySnRelationList(); }, mounted() { setTimeout(() => { @@ -336,7 +335,7 @@ export default { }, openEditSnRelation(index) { const updatedSnRelationList = this.snRelationList.map((item, currentIndex) => { - // 只对当前点击的项进行状态切换 + // 只对当前点击的项进行状态切换 if (currentIndex === index) { return { ...item, @@ -345,7 +344,7 @@ export default { } return item; }); - // 更新snRelationList + // 更新snRelationList this.snRelationList = updatedSnRelationList; }, // 修改充电桩别名 @@ -396,12 +395,11 @@ export default { this.pileDetailLoading = false; console.log("getPileDetailById结果:", this.pileDetail); }); - }, - getThirdPartySnRelationList() { const params = { - pileSn: this.pileDetail.pileSn + pileSn: this.pileSn } + console.log("params", params) getThirdPartySnRelation(params).then((response) => { this.snRelationList = response.rows; //默认添加一个状态