2023-03-04 16:29:55 +08:00
|
|
|
|
package com.jsowell.pile.service;
|
|
|
|
|
|
|
|
|
|
|
|
import com.jsowell.pile.domain.PileMerchantInfo;
|
2023-07-01 15:54:54 +08:00
|
|
|
|
import com.jsowell.pile.dto.CreateMerchantDTO;
|
2023-09-16 13:45:22 +08:00
|
|
|
|
import com.jsowell.pile.dto.QueryMerchantInfoDTO;
|
2023-03-04 16:29:55 +08:00
|
|
|
|
import com.jsowell.pile.vo.base.MerchantInfoVO;
|
2023-09-16 13:45:22 +08:00
|
|
|
|
import com.jsowell.pile.vo.web.MerchantSettleInfoVO;
|
2025-03-06 14:36:42 +08:00
|
|
|
|
import com.jsowell.pile.vo.web.MerchantWithdrawalTypeVO;
|
2024-04-15 13:57:09 +08:00
|
|
|
|
import com.jsowell.pile.vo.web.PileMerchantInfoVO;
|
2023-03-04 16:29:55 +08:00
|
|
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 充电桩运营商信息Service接口
|
|
|
|
|
|
*
|
|
|
|
|
|
* @author jsowell
|
|
|
|
|
|
* @date 2022-08-27
|
|
|
|
|
|
*/
|
2024-01-06 15:20:28 +08:00
|
|
|
|
public interface PileMerchantInfoService {
|
2023-03-04 16:29:55 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* 查询充电桩运营商信息
|
|
|
|
|
|
*
|
|
|
|
|
|
* @param id 充电桩运营商信息主键
|
|
|
|
|
|
* @return 充电桩运营商信息
|
|
|
|
|
|
*/
|
|
|
|
|
|
public PileMerchantInfo selectPileMerchantInfoById(Long id);
|
|
|
|
|
|
|
2023-08-17 11:16:32 +08:00
|
|
|
|
PileMerchantInfo selectPileMerchantInfoById(String merchantId);
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
2023-03-04 16:29:55 +08:00
|
|
|
|
* 查询充电桩运营商信息列表
|
|
|
|
|
|
*
|
|
|
|
|
|
* @param pileMerchantInfo 充电桩运营商信息
|
|
|
|
|
|
* @return 充电桩运营商信息集合
|
|
|
|
|
|
*/
|
2023-07-26 19:41:13 +08:00
|
|
|
|
List<PileMerchantInfo> selectPileMerchantInfoListWithAuth(PileMerchantInfo pileMerchantInfo);
|
2023-03-04 16:29:55 +08:00
|
|
|
|
|
2024-07-01 11:06:43 +08:00
|
|
|
|
List<PileMerchantInfo> pagePileMerchantInfoListWithAuth(PileMerchantInfo pileMerchantInfo);
|
|
|
|
|
|
|
|
|
|
|
|
List<PileMerchantInfo> selectPileMerchantInfoList(PileMerchantInfo pileMerchantInfo);
|
2023-07-26 19:41:13 +08:00
|
|
|
|
|
2024-06-13 15:44:46 +08:00
|
|
|
|
List<PileMerchantInfo> selectPileMerchantInfoListByIdList(List<String> merchantIdList);
|
|
|
|
|
|
|
2023-07-26 19:41:13 +08:00
|
|
|
|
/**
|
2023-03-04 16:29:55 +08:00
|
|
|
|
* 新增充电桩运营商信息
|
|
|
|
|
|
*
|
|
|
|
|
|
* @param pileMerchantInfo 充电桩运营商信息
|
|
|
|
|
|
* @return 结果
|
|
|
|
|
|
*/
|
2023-07-01 15:54:54 +08:00
|
|
|
|
public int insertPileMerchantInfo(CreateMerchantDTO pileMerchantInfo);
|
2023-03-04 16:29:55 +08:00
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 修改充电桩运营商信息
|
|
|
|
|
|
*
|
|
|
|
|
|
* @param pileMerchantInfo 充电桩运营商信息
|
|
|
|
|
|
* @return 结果
|
|
|
|
|
|
*/
|
|
|
|
|
|
public int updatePileMerchantInfo(PileMerchantInfo pileMerchantInfo);
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 批量删除充电桩运营商信息
|
|
|
|
|
|
*
|
|
|
|
|
|
* @param ids 需要删除的充电桩运营商信息主键集合
|
|
|
|
|
|
* @return 结果
|
|
|
|
|
|
*/
|
|
|
|
|
|
public int deletePileMerchantInfoByIds(Long[] ids);
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 删除充电桩运营商信息信息
|
|
|
|
|
|
*
|
|
|
|
|
|
* @param id 充电桩运营商信息主键
|
|
|
|
|
|
* @return 结果
|
|
|
|
|
|
*/
|
|
|
|
|
|
public int deletePileMerchantInfoById(Long id);
|
|
|
|
|
|
|
2024-06-17 14:11:59 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* 根据微信appId查询一级运营商信息
|
|
|
|
|
|
* @param wxAppId 微信appId
|
|
|
|
|
|
* @return
|
|
|
|
|
|
*/
|
|
|
|
|
|
PileMerchantInfo getFirstLevelMerchantByWxAppId(String wxAppId);
|
2023-08-25 16:07:15 +08:00
|
|
|
|
|
2024-06-17 14:11:59 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* 根据支付宝appId查询一级运营商信息
|
|
|
|
|
|
* @param alipayAppId 微信appId
|
|
|
|
|
|
* @return
|
|
|
|
|
|
*/
|
|
|
|
|
|
PileMerchantInfo getFirstLevelMerchantByAlipayAppId(String alipayAppId);
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
2023-08-15 15:53:37 +08:00
|
|
|
|
* 通过微信小程序appId查询一级运营商merchantId
|
2024-06-13 15:44:46 +08:00
|
|
|
|
* @param wechatAppId 微信小程序appId
|
2023-08-15 15:53:37 +08:00
|
|
|
|
* @return 一级运营商merchantId
|
2023-08-04 14:19:45 +08:00
|
|
|
|
*/
|
2024-06-13 14:12:15 +08:00
|
|
|
|
String getFirstLevelMerchantIdByWxAppId(String wechatAppId);
|
|
|
|
|
|
|
2024-06-13 15:44:46 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* 通过支付宝小程序appId查询一级运营商merchantId
|
|
|
|
|
|
* @param alipayAppId 微信小程序appId
|
|
|
|
|
|
* @return 一级运营商merchantId
|
|
|
|
|
|
*/
|
2024-06-13 14:12:15 +08:00
|
|
|
|
String getFirstLevelMerchantIdByAliAppId(String alipayAppId);
|
2023-07-26 15:30:14 +08:00
|
|
|
|
|
2023-11-10 17:20:16 +08:00
|
|
|
|
MerchantInfoVO getMerchantInfoVO(String merchantId);
|
2023-05-13 17:41:05 +08:00
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 根据运营商部门ids 查询所有站点id
|
|
|
|
|
|
* @param merchantDeptIds
|
|
|
|
|
|
* @return
|
|
|
|
|
|
*/
|
|
|
|
|
|
List<String> queryByMerchantDeptIds(List<String> merchantDeptIds);
|
2023-06-09 16:10:25 +08:00
|
|
|
|
|
2023-07-04 14:49:50 +08:00
|
|
|
|
PileMerchantInfo queryInfoByDeptId(String deptId);
|
2023-11-10 17:20:16 +08:00
|
|
|
|
|
|
|
|
|
|
MerchantInfoVO queryMerchantInfoVOByDeptId(String deptId);
|
2023-07-06 15:48:06 +08:00
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 通过ids查询信息列表
|
2023-09-16 13:45:22 +08:00
|
|
|
|
* @param dto
|
2023-07-06 15:48:06 +08:00
|
|
|
|
* @return
|
|
|
|
|
|
*/
|
2023-09-16 13:45:22 +08:00
|
|
|
|
List<MerchantSettleInfoVO> queryMerchantInfoListByAuth(QueryMerchantInfoDTO dto);
|
2023-08-03 17:59:42 +08:00
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 查询一级运营商列表
|
|
|
|
|
|
* @return
|
|
|
|
|
|
*/
|
2023-08-26 14:09:04 +08:00
|
|
|
|
List<PileMerchantInfo> queryFirstLevelMerchantList();
|
2023-08-17 14:25:45 +08:00
|
|
|
|
|
|
|
|
|
|
String queryAppIdByMerchantId(String merchantId);
|
2023-08-18 09:27:22 +08:00
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 通过appid获取运营商部门id
|
|
|
|
|
|
* @param appId
|
|
|
|
|
|
* @return
|
|
|
|
|
|
*/
|
|
|
|
|
|
List<String> getDeptIdsByAppId(String appId);
|
2023-08-25 16:07:15 +08:00
|
|
|
|
|
2024-06-21 11:16:53 +08:00
|
|
|
|
// @Override
|
|
|
|
|
|
// public String getDelayModeByWechatAppId(String wechatAppId) {
|
|
|
|
|
|
// PileMerchantInfo merchant = getFirstLevelMerchantByAppId(wechatAppId);
|
|
|
|
|
|
// if (merchant != null) {
|
|
|
|
|
|
// String delayMode = merchant.getDelayMode();
|
|
|
|
|
|
// if (StringUtils.equals(delayMode, Constants.ONE)) {
|
|
|
|
|
|
// return Constants.ADAPAY_PAY_MODE_DELAY;
|
|
|
|
|
|
// }
|
|
|
|
|
|
// }
|
|
|
|
|
|
// return null;
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
String getDelayModeByAppIdAndRequestSource(String appId, String requestSource);
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
2023-11-28 14:27:42 +08:00
|
|
|
|
* 通过wechatAppId查询一级运营商的延时支付模式配置
|
|
|
|
|
|
* @param wechatAppId 微信小程序id
|
|
|
|
|
|
* @return 延时分账模式(0-不延时;1-延时分账)
|
|
|
|
|
|
*/
|
2023-08-25 16:07:15 +08:00
|
|
|
|
String getDelayModeByWechatAppId(String wechatAppId);
|
2023-08-26 14:09:04 +08:00
|
|
|
|
|
2024-06-17 15:08:13 +08:00
|
|
|
|
String getDelayModeByAlipayAppId(String alipayAppId);
|
|
|
|
|
|
|
2023-11-28 14:27:42 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* 通过运营商id查询一级运营商配置的delayMode
|
|
|
|
|
|
* @param merchantId 运营商id
|
|
|
|
|
|
* @return 延时分账模式(0-不延时;1-延时分账)
|
|
|
|
|
|
*/
|
2023-09-01 15:45:04 +08:00
|
|
|
|
String getDelayModeByMerchantId(String merchantId);
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
2023-08-26 14:09:04 +08:00
|
|
|
|
* 通过merchantId获取一级运营商信息
|
|
|
|
|
|
*/
|
|
|
|
|
|
PileMerchantInfo getFirstLevelMerchantByMerchantId(String merchantId);
|
2023-08-31 14:06:25 +08:00
|
|
|
|
|
2023-11-02 09:33:45 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* 通过merchantId获取一级运营商id
|
|
|
|
|
|
*/
|
2023-08-31 14:06:25 +08:00
|
|
|
|
String getFirstLevelMerchantIdByMerchantId(String merchantId);
|
2023-11-10 17:13:27 +08:00
|
|
|
|
|
|
|
|
|
|
// 查询全部生效的运营商
|
|
|
|
|
|
List<MerchantInfoVO> selectAll();
|
|
|
|
|
|
|
|
|
|
|
|
// 查询一级运营商下属的二级运营商
|
|
|
|
|
|
List<MerchantInfoVO> selectListByFirstMerchant(String firstMerchantId);
|
2024-04-15 13:57:09 +08:00
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 通过站点id查询运营商基本信息
|
|
|
|
|
|
* @param stationId
|
|
|
|
|
|
* @return
|
|
|
|
|
|
*/
|
|
|
|
|
|
PileMerchantInfoVO queryMerchantInfoByStationId(String stationId);
|
2025-03-06 14:36:42 +08:00
|
|
|
|
|
|
|
|
|
|
MerchantWithdrawalTypeVO queryWithdrawalType(QueryMerchantInfoDTO dto);
|
|
|
|
|
|
|
|
|
|
|
|
int updateWithdrawalType(MerchantWithdrawalTypeVO dto);
|
2025-03-13 13:43:30 +08:00
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* 查询设置自动提现的运营商列表
|
|
|
|
|
|
* @return
|
|
|
|
|
|
*/
|
|
|
|
|
|
List<PileMerchantInfo> selectAutoWithdrawalMerchantInfoList();
|
2023-03-04 16:29:55 +08:00
|
|
|
|
}
|