update 平台配置页面

This commit is contained in:
2024-04-24 17:08:14 +08:00
parent bf0e3f5334
commit 9ed65fbd23
13 changed files with 375 additions and 42 deletions

View File

@@ -2,6 +2,7 @@ package com.jsowell.pile.mapper;
import com.jsowell.pile.domain.ThirdPartyStationRelation;
import com.jsowell.pile.vo.base.MerchantInfoVO;
import com.jsowell.pile.vo.base.StationInfoVO;
import com.jsowell.pile.vo.base.ThirdPartyStationRelationVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;
@@ -87,5 +88,17 @@ public interface ThirdPartyStationRelationMapper {
*/
int updateRelationDelFlag(@Param("stationId") String stationId, @Param("types") List<String> types);
/**
* 根据第三方平台类型查询对接第三方平台的运营商列表
* @param thirdPlatformType
* @return
*/
List<MerchantInfoVO> selectMerchantList(String thirdPlatformType);
/**
* 根据第三方平台类型查询对接第三方平台的站点列表
* @param thirdPlatformType
* @return
*/
List<StationInfoVO> selectStationList(String thirdPlatformType);
}

View File

@@ -2,6 +2,7 @@ package com.jsowell.pile.service;
import com.jsowell.pile.domain.ThirdPartyStationRelation;
import com.jsowell.pile.vo.base.MerchantInfoVO;
import com.jsowell.pile.vo.base.StationInfoVO;
import com.jsowell.pile.vo.base.ThirdPartyStationRelationVO;
import java.util.List;
@@ -95,5 +96,17 @@ public interface ThirdPartyStationRelationService {
int updateRelationDelFlag(String stationId, List<String> types);
/**
* 根据第三方平台类型查询对接第三方平台的运营商列表
* @param thirdPlatformType
* @return
*/
List<MerchantInfoVO> selectMerchantList(String thirdPlatformType);
/**
* 根据第三方平台类型查询对接第三方平台的站点列表
* @param thirdPlatformType
* @return
*/
List<StationInfoVO> selectStationList(String thirdPlatformType);
}

View File

@@ -8,6 +8,7 @@ import com.jsowell.pile.domain.ThirdPartyStationRelation;
import com.jsowell.pile.mapper.ThirdPartyStationRelationMapper;
import com.jsowell.pile.service.ThirdPartyStationRelationService;
import com.jsowell.pile.vo.base.MerchantInfoVO;
import com.jsowell.pile.vo.base.StationInfoVO;
import com.jsowell.pile.vo.base.ThirdPartyStationRelationVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@@ -171,4 +172,9 @@ public class ThirdPartyStationRelationServiceImpl implements ThirdPartyStationRe
public List<MerchantInfoVO> selectMerchantList(String thirdPlatformType) {
return thirdPartyStationRelationMapper.selectMerchantList(thirdPlatformType);
}
@Override
public List<StationInfoVO> selectStationList(String thirdPlatformType) {
return thirdPartyStationRelationMapper.selectStationList(thirdPlatformType);
}
}

View File

@@ -1,6 +1,7 @@
package com.jsowell.thirdparty.service;
import com.jsowell.pile.vo.ThirdPartySecretInfoVO;
import com.jsowell.pile.vo.base.StationInfoVO;
import com.jsowell.thirdparty.domain.ThirdpartySecretInfo;
import java.util.List;
@@ -80,4 +81,11 @@ public interface ThirdpartySecretInfoService {
* @return
*/
List<ThirdPartySecretInfoVO> queryStationToPlatformList(String stationId);
/**
* 根据第三方平台类型查询对接第三方平台的站点列表
* @param thirdPlatformType
* @return
*/
List<StationInfoVO> selectStationList(String thirdPlatformType);
}

View File

@@ -3,7 +3,9 @@ package com.jsowell.thirdparty.service.impl;
import com.jsowell.common.constant.CacheConstants;
import com.jsowell.common.core.redis.RedisCache;
import com.jsowell.common.util.DateUtils;
import com.jsowell.pile.mapper.ThirdPartyStationRelationMapper;
import com.jsowell.pile.vo.ThirdPartySecretInfoVO;
import com.jsowell.pile.vo.base.StationInfoVO;
import com.jsowell.thirdparty.domain.ThirdpartySecretInfo;
import com.jsowell.thirdparty.mapper.ThirdpartySecretInfoMapper;
import com.jsowell.thirdparty.service.ThirdpartySecretInfoService;
@@ -24,6 +26,9 @@ public class ThirdpartySecretInfoServiceImpl implements ThirdpartySecretInfoServ
@Autowired
private ThirdpartySecretInfoMapper thirdpartySecretInfoMapper;
@Autowired
private ThirdPartyStationRelationMapper thirdPartyStationRelationMapper;
@Autowired
private RedisCache redisCache;
@@ -133,4 +138,9 @@ public class ThirdpartySecretInfoServiceImpl implements ThirdpartySecretInfoServ
List<ThirdPartySecretInfoVO> list = thirdpartySecretInfoMapper.queryStationToPlatformList(stationId);
return list;
}
@Override
public List<StationInfoVO> selectStationList(String thirdPlatformType) {
return thirdPartyStationRelationMapper.selectStationList(thirdPlatformType);
}
}