Files
jsowell-charger-web/jsowell-pile/src/main/java/com/jsowell/pile/mapper/PileMerchantInfoMapper.java

171 lines
4.3 KiB
Java

package com.jsowell.pile.mapper;
import com.jsowell.pile.domain.PileMerchantInfo;
import com.jsowell.pile.dto.QueryMerchantInfoDTO;
import com.jsowell.pile.vo.web.MerchantSettleInfoVO;
import com.jsowell.pile.vo.web.PileMerchantInfoVO;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface PileMerchantInfoMapper {
int deleteByPrimaryKey(Integer id);
int insertSelective(PileMerchantInfo record);
PileMerchantInfo selectByPrimaryKey(Integer id);
int updateByPrimaryKeySelective(PileMerchantInfo record);
int updateBatch(List<PileMerchantInfo> list);
int updateBatchSelective(List<PileMerchantInfo> list);
int batchInsert(@Param("list") List<PileMerchantInfo> list);
int insertOrUpdate(PileMerchantInfo record);
int insertOrUpdateSelective(PileMerchantInfo record);
/**
* 查询充电桩运营商信息
*
* @param id 充电桩运营商信息主键
* @return 充电桩运营商信息
*/
PileMerchantInfo selectPileMerchantInfoById(Long id);
/**
* 查询运营商列表
*
* @param merchantIdList
* @return
*/
List<PileMerchantInfo> selectPileMerchantInfoListByIdList(@Param("merchantIdList") List<String> merchantIdList);
/**
* 通过appid查询充电桩运营商信息
*
* @param appId
* @return
*/
List<PileMerchantInfo> selectPileMerchantInfoByWxAppId(String appId);
/**
* 查询充电桩运营商信息列表
*
* @param pileMerchantInfo 充电桩运营商信息
* @return 充电桩运营商信息集合
*/
List<PileMerchantInfo> selectPileMerchantInfoList(PileMerchantInfo pileMerchantInfo);
/**
* 新增充电桩运营商信息
*
* @param pileMerchantInfo 充电桩运营商信息
* @return 结果
*/
int insertPileMerchantInfo(PileMerchantInfo pileMerchantInfo);
/**
* 修改充电桩运营商信息
*
* @param pileMerchantInfo 充电桩运营商信息
* @return 结果
*/
int updatePileMerchantInfo(PileMerchantInfo pileMerchantInfo);
/**
* 删除充电桩运营商信息
*
* @param id 充电桩运营商信息主键
* @return 结果
*/
int deletePileMerchantInfoById(Long id);
/**
* 批量删除充电桩运营商信息
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
int deletePileMerchantInfoByIds(Long[] ids);
List<String> queryByMerchantDeptIds(@Param("merchantDeptIds") List<String> merchantDeptIds);
/**
* 根据部门id查询基本信息
*
* @param deptId
* @return
*/
PileMerchantInfo queryInfoByDeptId(@Param("deptId") String deptId);
/**
* 通过ids查询信息列表
*
* @param deptIds
* @return
*/
List<PileMerchantInfo> queryInfoListByIds(@Param("deptIds") List<String> deptIds);
/**
* 查询一级运营商
*/
List<PileMerchantInfo> queryFirstLevelMerchantList();
/**
* 根据appid查询对应一级运营商id
*
* @param wxAppId
* @return
*/
PileMerchantInfo getFirstLevelMerchantByWxAppId(String wxAppId);
/**
* 根据支付宝appid查询对应一级运营商id
*
* @param alipayAppId
* @return
*/
PileMerchantInfo getFirstLevelMerchantByAlipayAppId(String alipayAppId);
/**
* 通过appid查询运营商部门id
*
* @param appId
* @return
*/
List<String> getDeptIdsByWxAppId(@Param("appId") String appId);
/**
* 后管财务中心页面运营商列表
*
* @param dto
* @return
*/
List<MerchantSettleInfoVO> queryMerchantSettleInfoList(@Param("dto") QueryMerchantInfoDTO dto);
/**
* 根据一级运营商id查询自身信息以及下属二级运营商信息
*
* @param firstMerchantId 一级运营商id
* @return
*/
List<PileMerchantInfo> selectListByFirstMerchant(@Param("firstMerchantId") String firstMerchantId);
/**
* 根据站点id查询运营商基本信息
*
* @param stationId
* @return
*/
PileMerchantInfoVO queryMerchantInfoByStationId(String stationId);
/**
* 查询自动提现的运营商信息
* @return
*/
List<PileMerchantInfo> selectAutoWithdrawalMerchantInfoList();
}