mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-19 18:45:03 +08:00
wccService新增根据第三方平台类型查询对接第三方平台的运营商列表接口;新增根据站点idList批量查询枪口数据接口
This commit is contained in:
@@ -27,15 +27,18 @@ import com.jsowell.pile.vo.web.PileModelInfoVO;
|
||||
import com.jsowell.pile.vo.web.PileStationVO;
|
||||
import com.jsowell.thirdparty.service.ThirdpartySecretInfoService;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.collections4.CollectionUtils;
|
||||
import org.apache.dubbo.config.annotation.DubboService;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@Service
|
||||
@DubboService(group = "thirdparty" , version = "1.0.0")
|
||||
@Slf4j
|
||||
public class WccServiceImpl implements WccService {
|
||||
@@ -76,6 +79,9 @@ public class WccServiceImpl implements WccService {
|
||||
@Autowired
|
||||
private OrderDetailMapper orderDetailMapper;
|
||||
|
||||
@Autowired
|
||||
private ThirdPartyStationRelationService thirdPartyStationRelationService;
|
||||
|
||||
/**
|
||||
* 测试接口
|
||||
* @param name
|
||||
@@ -577,4 +583,45 @@ public class WccServiceImpl implements WccService {
|
||||
return orderBasicInfoService.updateOrderDetail(orderDetail1);
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据站点idList批量查询枪口数据
|
||||
*
|
||||
* @param stationIds
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public List<JCTConnectorInfoVO> batchSelectConnectorList(List<String> stationIds) {
|
||||
List<JCTConnectorInfoVO> resultList = new ArrayList<>();
|
||||
List<ConnectorInfoVO> connectorInfoVOS = pileConnectorInfoService.batchSelectConnectorList(stationIds);
|
||||
if (CollectionUtils.isNotEmpty(connectorInfoVOS)) {
|
||||
for (ConnectorInfoVO connectorInfoVO : connectorInfoVOS) {
|
||||
// connectorInfoVO复制到JCTConnectorInfoVO
|
||||
JCTConnectorInfoVO jctConnectorInfoVO = new JCTConnectorInfoVO();
|
||||
BeanUtils.copyProperties(connectorInfoVO, jctConnectorInfoVO);
|
||||
resultList.add(jctConnectorInfoVO);
|
||||
}
|
||||
}
|
||||
return resultList;
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据第三方平台类型查询对接第三方平台的运营商列表
|
||||
*
|
||||
* @param thirdPlatformType
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public List<JCTMerchantInfoVO> selectMerchantList(String thirdPlatformType) {
|
||||
List<MerchantInfoVO> merchantInfoVOS = thirdPartyStationRelationService.selectMerchantList(thirdPlatformType);
|
||||
List<JCTMerchantInfoVO> jctMerchantInfoVOS = new ArrayList<>();
|
||||
if (CollectionUtils.isNotEmpty(merchantInfoVOS)) {
|
||||
for (MerchantInfoVO merchantInfoVO : merchantInfoVOS) {
|
||||
JCTMerchantInfoVO jctMerchantInfoVO = new JCTMerchantInfoVO();
|
||||
BeanUtils.copyProperties(merchantInfoVO, jctMerchantInfoVO);
|
||||
jctMerchantInfoVOS.add(jctMerchantInfoVO);
|
||||
}
|
||||
}
|
||||
return jctMerchantInfoVOS;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
2
pom.xml
2
pom.xml
@@ -46,7 +46,7 @@
|
||||
<!--<dubbo.version>2.7.15</dubbo.version>-->
|
||||
<dubbo.version>3.3.0</dubbo.version>
|
||||
<nacos-client.version>2.0.3</nacos-client.version>
|
||||
<charge-common-api.version>0.0.4</charge-common-api.version>
|
||||
<charge-common-api.version>0.0.7</charge-common-api.version>
|
||||
</properties>
|
||||
|
||||
<!-- 依赖声明 -->
|
||||
|
||||
Reference in New Issue
Block a user