Files
jsowell-charger-web/jsowell-pile/src/main/java/com/jsowell/pile/service/PileMerchantInfoService.java

191 lines
5.1 KiB
Java
Raw Normal View History

2023-03-04 16:29:55 +08:00
package com.jsowell.pile.service;
import com.jsowell.pile.domain.PileMerchantInfo;
import com.jsowell.pile.dto.CreateMerchantDTO;
import com.jsowell.pile.dto.QueryMerchantInfoDTO;
2023-03-04 16:29:55 +08:00
import com.jsowell.pile.vo.base.MerchantInfoVO;
import com.jsowell.pile.vo.web.MerchantSettleInfoVO;
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
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 结果
*/
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
* @param wechatAppId 微信小程序appId
2023-08-15 15:53:37 +08:00
* @return 一级运营商merchantId
*/
2024-06-13 14:12:15 +08:00
String getFirstLevelMerchantIdByWxAppId(String wechatAppId);
/**
* 通过支付宝小程序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
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查询信息列表
* @param dto
2023-07-06 15:48:06 +08:00
* @return
*/
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-11-02 09:33:45 +08:00
/**
* 通过merchantId获取一级运营商id
*/
String getFirstLevelMerchantIdByMerchantId(String merchantId);
2023-11-10 17:13:27 +08:00
// 查询全部生效的运营商
List<MerchantInfoVO> selectAll();
// 查询一级运营商下属的二级运营商
List<MerchantInfoVO> selectListByFirstMerchant(String firstMerchantId);
/**
* 通过站点id查询运营商基本信息
* @param stationId
* @return
*/
PileMerchantInfoVO queryMerchantInfoByStationId(String stationId);
2023-03-04 16:29:55 +08:00
}