mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-06-13 03:39:55 +08:00
update 打印日志
This commit is contained in:
@@ -12,6 +12,7 @@ import com.jsowell.pile.dto.QueryConnectorListDTO;
|
|||||||
import com.jsowell.pile.dto.QueryStationDTO;
|
import com.jsowell.pile.dto.QueryStationDTO;
|
||||||
import com.jsowell.pile.dto.RemoteGroundLockDTO;
|
import com.jsowell.pile.dto.RemoteGroundLockDTO;
|
||||||
import com.jsowell.pile.service.*;
|
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.uniapp.customer.BillingPriceVO;
|
||||||
import com.jsowell.pile.vo.web.ThirdPartySnRelationVO;
|
import com.jsowell.pile.vo.web.ThirdPartySnRelationVO;
|
||||||
import com.jsowell.web.controller.pile.PileConnectorInfoController;
|
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;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 预约充电接口
|
* 预约充电接口
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -182,7 +182,7 @@ public class PileService {
|
|||||||
|
|
||||||
// 查询站点信息
|
// 查询站点信息
|
||||||
PileStationVO stationInfo = pileStationInfoService.getStationInfo(pileInfoVO.getStationId());
|
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)) {
|
if (stationInfo == null || StringUtils.equals(stationInfo.getOpenFlag(), Constants.ZERO)) {
|
||||||
throw new BusinessException(ReturnCodeEnum.CODE_STATION_IS_NOT_OPEN);
|
throw new BusinessException(ReturnCodeEnum.CODE_STATION_IS_NOT_OPEN);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user