mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-03 01:20:15 +08:00
update 查询枪口状态之前先查询该站点有没有推送第三方平台(华为)
This commit is contained in:
@@ -84,5 +84,5 @@ public interface ThirdpartySnRelationMapper {
|
||||
* @param stationId
|
||||
* @return
|
||||
*/
|
||||
List<ThirdPartySnRelationVO> selectSnRelationListByParams(@Param("stationId") String stationId, @Param("pileSn") String pileSn);
|
||||
List<ThirdPartySnRelationVO> selectSnRelationListByParams(@Param("stationId") String stationId, @Param("pileSn") String pileSn, @Param("pileIds") List<Long> pileIds);
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@ public interface IThirdpartySnRelationService {
|
||||
*/
|
||||
public List<ThirdpartySnRelation> selectThirdpartySnRelationList(ThirdpartySnRelation thirdpartySnRelation);
|
||||
|
||||
public List<ThirdPartySnRelationVO> selectSnRelationListByParams(String stationId, String pileSn);
|
||||
public List<ThirdPartySnRelationVO> selectSnRelationListByParams(String stationId, String pileSn, List<Long> pileIds);
|
||||
|
||||
/**
|
||||
* 新增万车充--第三方平台桩编号对应关系
|
||||
|
||||
@@ -3056,7 +3056,7 @@ public class OrderBasicInfoServiceImpl implements OrderBasicInfoService {
|
||||
}
|
||||
|
||||
// 判断该桩是否对接了类似华为平台的第三方站点
|
||||
List<ThirdPartySnRelationVO> list = snRelationService.selectSnRelationListByParams(null, orderInfo.getPileSn());
|
||||
List<ThirdPartySnRelationVO> list = snRelationService.selectSnRelationListByParams(null, orderInfo.getPileSn(), null);
|
||||
if (CollectionUtils.isNotEmpty(list)) {
|
||||
for (ThirdPartySnRelationVO vo : list) {
|
||||
String startMode = vo.getStartMode();
|
||||
|
||||
@@ -45,9 +45,9 @@ public class ThirdpartySnRelationServiceImpl implements IThirdpartySnRelationSer
|
||||
return thirdpartySnRelationMapper.selectThirdpartySnRelationList(thirdpartySnRelation);
|
||||
}
|
||||
|
||||
|
||||
public List<ThirdPartySnRelationVO> selectSnRelationListByParams(String stationId, String pileSn) {
|
||||
return thirdpartySnRelationMapper.selectSnRelationListByParams(stationId, pileSn);
|
||||
@Override
|
||||
public List<ThirdPartySnRelationVO> selectSnRelationListByParams(String stationId, String pileSn, List<Long> pileIds) {
|
||||
return thirdpartySnRelationMapper.selectSnRelationListByParams(stationId, pileSn, pileIds);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -99,6 +99,7 @@
|
||||
FROM
|
||||
thirdparty_sn_relation t1
|
||||
JOIN thirdparty_station_relation t2 ON t1.thirdparty_type = t2.third_party_type
|
||||
JOIN pile_basic_info t3 on t1.pile_sn = t3.sn
|
||||
WHERE
|
||||
t1.del_flag = '0'
|
||||
<if test="stationId != null and stationId != ''">
|
||||
@@ -107,6 +108,12 @@
|
||||
<if test="pileSn != null and pileSn != ''">
|
||||
AND t1.pile_sn = #{pileSn,jdbcType=VARCHAR}
|
||||
</if>
|
||||
<if test="pileIds != null and pileIds.size() != 0">
|
||||
AND t3.id in
|
||||
<foreach collection="pileIds" item="pileId" open="(" separator="," close=")">
|
||||
#{pileId,jdbcType=BIGINT}
|
||||
</foreach>
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="getRelationVOList" resultType="com.jsowell.pile.vo.web.ThirdPartySnRelationVO">
|
||||
|
||||
Reference in New Issue
Block a user