This commit is contained in:
Lemon
2024-06-05 09:10:01 +08:00
parent 9d2962714a
commit e6c37d618a
2 changed files with 7 additions and 8 deletions

View File

@@ -144,8 +144,8 @@ public class PileController extends BaseController {
logger.info("查询充电枪口列表 params:{}", JSON.toJSONString(dto)); logger.info("查询充电枪口列表 params:{}", JSON.toJSONString(dto));
RestApiResponse<?> response = null; RestApiResponse<?> response = null;
try { try {
// 修改对接第三方平台的枪口状态 // 查询对接第三方平台的枪口状态
updateThirdPartyConnectorStatus(dto); selectThirdPartyConnectorStatus(dto);
} catch (Exception e) { } catch (Exception e) {
logger.error("修改对接第三方平台的枪口状态 error"); logger.error("修改对接第三方平台的枪口状态 error");
} }
@@ -191,10 +191,10 @@ public class PileController extends BaseController {
/** /**
* 修改第三方平台枪口状态 * 修改第三方平台枪口状态
* @see PileConnectorInfoController#updateThirdPartyConnectorStatus(com.jsowell.pile.dto.QueryConnectorListDTO) * @see PileConnectorInfoController#selectThirdPartyConnectorStatus(com.jsowell.pile.dto.QueryConnectorListDTO)
* 两个方法完全相同,如有修改需同步修改 * 两个方法完全相同,如有修改需同步修改
*/ */
private void updateThirdPartyConnectorStatus(QueryConnectorListDTO dto) { private void selectThirdPartyConnectorStatus(QueryConnectorListDTO dto) {
if (dto == null) { if (dto == null) {
return; return;
} }

View File

@@ -27,7 +27,6 @@ import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import java.util.stream.Collectors;
/** /**
* 充电桩枪口信息Controller * 充电桩枪口信息Controller
@@ -86,7 +85,7 @@ public class PileConnectorInfoController extends BaseController {
logger.info("查询接口列表 param:{}", JSON.toJSONString(dto)); logger.info("查询接口列表 param:{}", JSON.toJSONString(dto));
try { try {
// 修改对接第三方平台的枪口状态 // 修改对接第三方平台的枪口状态
updateThirdPartyConnectorStatus(dto); selectThirdPartyConnectorStatus(dto);
} catch (Exception e) { } catch (Exception e) {
logger.error("修改对接第三方平台的枪口状态 error"); logger.error("修改对接第三方平台的枪口状态 error");
} }
@@ -158,10 +157,10 @@ public class PileConnectorInfoController extends BaseController {
/** /**
* 修改第三方平台枪口状态 * 修改第三方平台枪口状态
* @see PileController#updateThirdPartyConnectorStatus(com.jsowell.pile.dto.QueryConnectorListDTO) * @see PileController#selectThirdPartyConnectorStatus(com.jsowell.pile.dto.QueryConnectorListDTO)
* 两个方法完全相同,如有修改需同步修改 * 两个方法完全相同,如有修改需同步修改
*/ */
private void updateThirdPartyConnectorStatus(QueryConnectorListDTO dto) { private void selectThirdPartyConnectorStatus(QueryConnectorListDTO dto) {
if (dto == null) { if (dto == null) {
return; return;
} }