mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-15 07:18:31 +08:00
第三方小程序查询站点列表添加查询运营商id校验
This commit is contained in:
@@ -7,6 +7,7 @@ import com.jsowell.common.core.page.PageResponse;
|
|||||||
import com.jsowell.common.enums.ykc.ReturnCodeEnum;
|
import com.jsowell.common.enums.ykc.ReturnCodeEnum;
|
||||||
import com.jsowell.common.exception.BusinessException;
|
import com.jsowell.common.exception.BusinessException;
|
||||||
import com.jsowell.common.response.RestApiResponse;
|
import com.jsowell.common.response.RestApiResponse;
|
||||||
|
import com.jsowell.common.util.StringUtils;
|
||||||
import com.jsowell.pile.domain.ykcCommond.RemoteControlGroundLockCommand;
|
import com.jsowell.pile.domain.ykcCommond.RemoteControlGroundLockCommand;
|
||||||
import com.jsowell.pile.dto.QueryConnectorListDTO;
|
import com.jsowell.pile.dto.QueryConnectorListDTO;
|
||||||
import com.jsowell.pile.dto.QueryStationDTO;
|
import com.jsowell.pile.dto.QueryStationDTO;
|
||||||
@@ -41,6 +42,9 @@ public class PileController extends BaseController {
|
|||||||
@Autowired
|
@Autowired
|
||||||
private IPileBillingTemplateService pileBillingTemplateService;
|
private IPileBillingTemplateService pileBillingTemplateService;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private IPileMerchantInfoService pileMerchantInfoService;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询充电站信息列表(主页)
|
* 查询充电站信息列表(主页)
|
||||||
@@ -52,6 +56,13 @@ public class PileController extends BaseController {
|
|||||||
logger.info("查询充电站信息列表 param:{}", JSONObject.toJSONString(queryStationDTO));
|
logger.info("查询充电站信息列表 param:{}", JSONObject.toJSONString(queryStationDTO));
|
||||||
RestApiResponse<?> response = null;
|
RestApiResponse<?> response = null;
|
||||||
try {
|
try {
|
||||||
|
// 获取appid(第三方平台用)
|
||||||
|
String appId = request.getHeader("appId");
|
||||||
|
if (StringUtils.isNotBlank(appId)) {
|
||||||
|
// 获取merchantId
|
||||||
|
String merchantId = pileMerchantInfoService.getFirstLevelMerchantIdByAppId(appId);
|
||||||
|
queryStationDTO.setMerchantId(merchantId);
|
||||||
|
}
|
||||||
PageResponse pageResponse = pileStationInfoService.uniAppQueryStationInfoList(queryStationDTO);
|
PageResponse pageResponse = pileStationInfoService.uniAppQueryStationInfoList(queryStationDTO);
|
||||||
response = new RestApiResponse<>(pageResponse);
|
response = new RestApiResponse<>(pageResponse);
|
||||||
} catch (BusinessException e) {
|
} catch (BusinessException e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user