update 打印日志

This commit is contained in:
Lemon
2024-09-09 20:57:54 +08:00
parent c646700ddc
commit f2a18a6ea1
2 changed files with 18 additions and 1 deletions

View File

@@ -12,6 +12,7 @@ import com.jsowell.pile.dto.QueryConnectorListDTO;
import com.jsowell.pile.dto.QueryStationDTO;
import com.jsowell.pile.dto.RemoteGroundLockDTO;
import com.jsowell.pile.service.*;
import com.jsowell.pile.vo.base.ConnectorInfoVO;
import com.jsowell.pile.vo.uniapp.customer.BillingPriceVO;
import com.jsowell.pile.vo.web.ThirdPartySnRelationVO;
import com.jsowell.web.controller.pile.PileConnectorInfoController;
@@ -216,6 +217,22 @@ public class PileController extends BaseController {
}
}
@GetMapping("/selectConnectorInfoList/{pileSn}")
public RestApiResponse<?> selectConnectorInfoList(@PathVariable("pileSn") String pileSn) {
RestApiResponse<?> response = null;
try {
List<ConnectorInfoVO> connectorInfoVOS = pileConnectorInfoService.selectConnectorInfoList(pileSn);
response = new RestApiResponse<>(connectorInfoVOS);
}catch (Exception e) {
logger.error("查询充电枪口详情 error", e);
response = new RestApiResponse<>(e);
}
logger.info("查询充电枪口详情 response:{}", response);
return response;
}
/**
* 预约充电接口
*/

View File

@@ -182,7 +182,7 @@ public class PileService {
// 查询站点信息
PileStationVO stationInfo = pileStationInfoService.getStationInfo(pileInfoVO.getStationId());
log.info("查询充电枪口详情-getStationInfo:{}, onLineStatus:{}", pileInfoVO.getStationId(), JSON.toJSONString(stationInfo));
log.info("查询充电枪口详情-getStationInfo:{}, stationInfo:{}", pileInfoVO.getStationId(), JSON.toJSONString(stationInfo));
if (stationInfo == null || StringUtils.equals(stationInfo.getOpenFlag(), Constants.ZERO)) {
throw new BusinessException(ReturnCodeEnum.CODE_STATION_IS_NOT_OPEN);
}