This commit is contained in:
Lemon
2023-09-06 09:35:39 +08:00
parent f1947e859f
commit ad018e22f4
2 changed files with 17 additions and 15 deletions

View File

@@ -295,16 +295,16 @@ public class MemberBasicInfoServiceImpl implements IMemberBasicInfoService {
* @return * @return
*/ */
@Override @Override
public List<MemberVO> selectMemberList(QueryMemberInfoDTO dto) { public List<MemberVO> selectMemberList(QueryMemberInfoDTO dto) {
// 获取登录账号信息 // // 获取登录账号信息
AuthorizedDeptVO authorizedMap = SecurityUtils.getAuthorizedMap(); // AuthorizedDeptVO authorizedMap = SecurityUtils.getAuthorizedMap();
if (authorizedMap == null) { // if (authorizedMap == null) {
return new ArrayList<>(); // return new ArrayList<>();
} // }
List<String> merchantDeptIds = authorizedMap.getMerchantDeptIds(); // List<String> merchantDeptIds = authorizedMap.getMerchantDeptIds();
if (CollectionUtils.isNotEmpty(merchantDeptIds)) { // if (CollectionUtils.isNotEmpty(merchantDeptIds)) {
dto.setMerchantDeptIds(merchantDeptIds); // dto.setMerchantDeptIds(merchantDeptIds);
} // }
return memberBasicInfoMapper.selectMemberList(dto); return memberBasicInfoMapper.selectMemberList(dto);
} }

View File

@@ -3328,11 +3328,13 @@ public class OrderBasicInfoServiceImpl implements IOrderBasicInfoService {
throw new BusinessException(ReturnCodeEnum.CODE_STATION_IS_NOT_OPEN); throw new BusinessException(ReturnCodeEnum.CODE_STATION_IS_NOT_OPEN);
} }
// 校验启动桩使用的小程序,和充电桩所属一级运营商是否一致 if (StringUtils.isNotBlank(dto.getAppId())) {
String merchantIdByAppId = pileMerchantInfoService.getFirstLevelMerchantIdByAppId(dto.getAppId()); // 校验启动桩使用的小程序,和充电桩所属一级运营商是否一致
String merchantIdByMerchantId = pileMerchantInfoService.getFirstLevelMerchantIdByMerchantId(stationInfo.getMerchantId()); String merchantIdByAppId = pileMerchantInfoService.getFirstLevelMerchantIdByAppId(dto.getAppId());
if (!StringUtils.equals(merchantIdByAppId, merchantIdByMerchantId)) { String merchantIdByMerchantId = pileMerchantInfoService.getFirstLevelMerchantIdByMerchantId(stationInfo.getMerchantId());
throw new BusinessException("", "当前桩运营商与小程序所属运营商不一致"); if (!StringUtils.equals(merchantIdByAppId, merchantIdByMerchantId)) {
throw new BusinessException("", "当前桩运营商与小程序所属运营商不一致");
}
} }
// 如果是鉴权卡或者vin启动不判断枪口状态 // 如果是鉴权卡或者vin启动不判断枪口状态