mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-23 04:25:21 +08:00
commit
This commit is contained in:
@@ -0,0 +1,110 @@
|
||||
package com.jsowell.pile.mapper;
|
||||
|
||||
import com.jsowell.pile.domain.MemberBasicInfo;
|
||||
import com.jsowell.pile.vo.uniapp.MemberVO;
|
||||
import com.jsowell.pile.vo.uniapp.MemberWalletLogVO;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 会员基础信息Mapper接口
|
||||
*
|
||||
* @author jsowell
|
||||
* @date 2022-10-12
|
||||
*/
|
||||
@Repository
|
||||
public interface MemberBasicInfoMapper {
|
||||
/**
|
||||
* 查询会员基础信息
|
||||
*
|
||||
* @param id 会员基础信息主键
|
||||
* @return 会员基础信息
|
||||
*/
|
||||
public MemberBasicInfo selectMemberBasicInfoById(Integer id);
|
||||
|
||||
/**
|
||||
* 查询会员基础信息列表
|
||||
*
|
||||
* @param memberBasicInfo 会员基础信息
|
||||
* @return 会员基础信息集合
|
||||
*/
|
||||
public List<MemberBasicInfo> selectMemberBasicInfoList(MemberBasicInfo memberBasicInfo);
|
||||
|
||||
/**
|
||||
* 新增会员基础信息
|
||||
*
|
||||
* @param memberBasicInfo 会员基础信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertMemberBasicInfo(MemberBasicInfo memberBasicInfo);
|
||||
|
||||
/**
|
||||
* 修改会员基础信息
|
||||
*
|
||||
* @param memberBasicInfo 会员基础信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateMemberBasicInfo(MemberBasicInfo memberBasicInfo);
|
||||
|
||||
/**
|
||||
* 批量删除会员基础信息
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteMemberBasicInfoByIds(List<Integer> ids);
|
||||
|
||||
/**
|
||||
* 通过物理卡号查询基本信息
|
||||
*
|
||||
* @param physicsCard 物理卡号
|
||||
* @return 会员基础信息
|
||||
*/
|
||||
MemberVO selectInfoByPhysicsCard(@Param("physicsCard") String physicsCard);
|
||||
|
||||
/**
|
||||
* 通过手机号和商户id查询会员信息
|
||||
* 不同手机号可以在多个运营商下注册账号
|
||||
*
|
||||
* @param mobileNumber 手机号
|
||||
* @param merchantId 运营商id
|
||||
* @return 会员信息
|
||||
*/
|
||||
MemberBasicInfo selectInfoByMobileNumberAndMerchantId(@Param("mobileNumber") String mobileNumber, @Param("merchantId") String merchantId);
|
||||
|
||||
/**
|
||||
* 通过手机号码查询会员信息
|
||||
*
|
||||
* @param mobileNumber 电话号码
|
||||
* @return 会员信息
|
||||
*/
|
||||
// MemberBasicInfo selectInfoByMobileNumber(@Param("mobileNumber") String mobileNumber);
|
||||
|
||||
/**
|
||||
* 通过会员id查询会员详情
|
||||
* @param memberId
|
||||
* @return
|
||||
*/
|
||||
MemberBasicInfo selectInfoByMemberId(String memberId);
|
||||
|
||||
/**
|
||||
* 更新会员余额
|
||||
* @param memberId 会员id
|
||||
* @param newPrincipalBalance new本金余额
|
||||
* @param newGiftBalance new赠送余额
|
||||
* @param version 上次查询的版本号
|
||||
* @return 更新行数 0-更新失败,1-更新成功
|
||||
*/
|
||||
int updateMemberBalance(@Param("memberId") String memberId, @Param("newPrincipalBalance") BigDecimal newPrincipalBalance,
|
||||
@Param("newGiftBalance") BigDecimal newGiftBalance, @Param("version") Integer version);
|
||||
|
||||
MemberVO queryMemberInfoByMemberId(String memberId);
|
||||
|
||||
|
||||
List<MemberVO> selectMemberList(@Param("mobileNumber") String mobileNumber, @Param("nickName") String nickName);
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
package com.jsowell.pile.mapper;
|
||||
|
||||
import com.jsowell.pile.domain.MemberTransactionRecord;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface MemberTransactionRecordMapper {
|
||||
|
||||
int insertSelective(MemberTransactionRecord record);
|
||||
|
||||
List<MemberTransactionRecord> selectByMemberId(String memberId);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package com.jsowell.pile.mapper;
|
||||
|
||||
import com.jsowell.pile.domain.MemberWalletInfo;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
@Repository
|
||||
public interface MemberWalletInfoMapper {
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
int insert(MemberWalletInfo record);
|
||||
|
||||
int insertSelective(MemberWalletInfo record);
|
||||
|
||||
MemberWalletInfo selectByPrimaryKey(Integer id);
|
||||
|
||||
MemberWalletInfo selectByMemberId(String memberId);
|
||||
|
||||
int updateByPrimaryKeySelective(MemberWalletInfo record);
|
||||
|
||||
int updateByPrimaryKey(MemberWalletInfo record);
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
package com.jsowell.pile.mapper;
|
||||
|
||||
|
||||
import com.jsowell.pile.domain.MemberWalletLog;
|
||||
import com.jsowell.pile.vo.uniapp.MemberWalletLogVO;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Repository
|
||||
public interface MemberWalletLogMapper {
|
||||
// int deleteByPrimaryKey(Integer id);
|
||||
|
||||
// int insert(MemberWalletLog record);
|
||||
|
||||
// int insertSelective(MemberWalletLog record);
|
||||
|
||||
// MemberWalletLog selectByPrimaryKey(Integer id);
|
||||
|
||||
// int updateByPrimaryKeySelective(MemberWalletLog record);
|
||||
|
||||
// int updateByPrimaryKey(MemberWalletLog record);
|
||||
|
||||
void batchInsert(@Param("list") List<MemberWalletLog> logList);
|
||||
|
||||
/**
|
||||
* 查询用户账户余额变动信息
|
||||
* @param memberId 会员id
|
||||
* @param type 1-进账;2-出账 不传查全部
|
||||
*/
|
||||
List<MemberWalletLogVO> getMemberBalanceChanges(@Param("memberId") String memberId, @Param("type") String type);
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
package com.jsowell.pile.mapper;
|
||||
|
||||
import com.jsowell.pile.domain.OrderAbnormalRecord;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface OrderAbnormalRecordMapper {
|
||||
|
||||
/**
|
||||
* 查询订单异常记录
|
||||
*
|
||||
* @param id 订单异常记录主键
|
||||
* @return 订单异常记录
|
||||
*/
|
||||
public OrderAbnormalRecord selectOrderAbnormalRecordById(Integer id);
|
||||
|
||||
/**
|
||||
* 查询订单异常记录列表
|
||||
*
|
||||
* @param orderAbnormalRecord 订单异常记录
|
||||
* @return 订单异常记录集合
|
||||
*/
|
||||
public List<OrderAbnormalRecord> selectOrderAbnormalRecordList(OrderAbnormalRecord orderAbnormalRecord);
|
||||
|
||||
/**
|
||||
* 新增订单异常记录
|
||||
*
|
||||
* @param orderAbnormalRecord 订单异常记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertOrderAbnormalRecord(OrderAbnormalRecord orderAbnormalRecord);
|
||||
|
||||
/**
|
||||
* 修改订单异常记录
|
||||
*
|
||||
* @param orderAbnormalRecord 订单异常记录
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateOrderAbnormalRecord(OrderAbnormalRecord orderAbnormalRecord);
|
||||
|
||||
/**
|
||||
* 删除订单异常记录
|
||||
*
|
||||
* @param id 订单异常记录主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteOrderAbnormalRecordById(Integer id);
|
||||
|
||||
/**
|
||||
* 批量删除订单异常记录
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteOrderAbnormalRecordByIds(Integer[] ids);
|
||||
}
|
||||
@@ -0,0 +1,185 @@
|
||||
package com.jsowell.pile.mapper;
|
||||
|
||||
import com.jsowell.pile.domain.OrderBasicInfo;
|
||||
import com.jsowell.pile.domain.OrderDetail;
|
||||
import com.jsowell.pile.dto.IndexQueryDTO;
|
||||
import com.jsowell.pile.dto.QueryOrderDTO;
|
||||
import com.jsowell.pile.dto.QueryPersonPileDTO;
|
||||
import com.jsowell.pile.vo.uniapp.OrderVO;
|
||||
import com.jsowell.pile.vo.uniapp.PersonPileConnectorSumInfoVO;
|
||||
import com.jsowell.pile.vo.uniapp.SendMessageVO;
|
||||
import com.jsowell.pile.vo.web.IndexOrderInfoVO;
|
||||
import com.jsowell.pile.vo.web.OrderListVO;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 订单Mapper接口
|
||||
*
|
||||
* @author jsowell
|
||||
* @date 2022-09-30
|
||||
*/
|
||||
@Repository
|
||||
public interface OrderBasicInfoMapper {
|
||||
/**
|
||||
* 查询订单
|
||||
*
|
||||
* @param id 订单主键
|
||||
* @return 订单
|
||||
*/
|
||||
public OrderBasicInfo selectOrderBasicInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 条件查询订单基础信息
|
||||
* @param info
|
||||
* @return
|
||||
*/
|
||||
OrderBasicInfo getOrderBasicInfo(OrderBasicInfo info);
|
||||
|
||||
/**
|
||||
* 查询订单列表
|
||||
*
|
||||
* @param orderBasicInfo 订单
|
||||
* @return 订单集合
|
||||
*/
|
||||
public List<OrderListVO> selectOrderBasicInfoList(QueryOrderDTO orderBasicInfo);
|
||||
|
||||
/**
|
||||
* 新增订单
|
||||
*
|
||||
* @param orderBasicInfo 订单
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertOrderBasicInfo(OrderBasicInfo orderBasicInfo);
|
||||
|
||||
/**
|
||||
* 修改订单
|
||||
*
|
||||
* @param orderBasicInfo 订单
|
||||
* @return 结果
|
||||
*/
|
||||
public int updateOrderBasicInfo(OrderBasicInfo orderBasicInfo);
|
||||
|
||||
/**
|
||||
* 批量删除订单
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteOrderBasicInfoByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 批量删除订单详情
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteOrderDetailByOrderCodes(Long[] ids);
|
||||
|
||||
/**
|
||||
* 批量新增订单详情
|
||||
*
|
||||
* @param orderDetailList 订单详情列表
|
||||
* @return 结果
|
||||
*/
|
||||
public int batchOrderDetail(List<OrderDetail> orderDetailList);
|
||||
|
||||
|
||||
/**
|
||||
* 通过订单主键删除订单详情信息
|
||||
*
|
||||
* @param id 订单ID
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteOrderDetailByOrderCode(Long id);
|
||||
|
||||
/**
|
||||
* 修改订单详情
|
||||
* @param orderDetail 订单详情
|
||||
*/
|
||||
void updateOrderDetail(OrderDetail orderDetail);
|
||||
|
||||
/**
|
||||
* 通过订单号查询订单基本信息
|
||||
*
|
||||
* @param orderCode 订单号
|
||||
* @return
|
||||
*/
|
||||
OrderBasicInfo getOrderInfoByOrderCode(String orderCode);
|
||||
|
||||
/**
|
||||
* 根据桩编号和枪口号查询某状态订单
|
||||
*
|
||||
* @param pileSn 桩编号
|
||||
* @param connectorCode 枪口号
|
||||
* @param orderStatus 订单状态
|
||||
* @return 订单
|
||||
*/
|
||||
OrderBasicInfo queryOrderBasicInfo(@Param("pileSn") String pileSn, @Param("connectorCode") String connectorCode, @Param("orderStatus") String orderStatus);
|
||||
|
||||
/**
|
||||
* 通过订单号查询订单详情
|
||||
*
|
||||
* @param orderCode 订单号
|
||||
* @return 订单详情
|
||||
*/
|
||||
OrderDetail getOrderDetailByOrderCode(@Param("orderCode") String orderCode);
|
||||
|
||||
/**
|
||||
* 通过会员Id和订单状态查询订单信息
|
||||
*
|
||||
* @param memberId 会员id
|
||||
* @param orderStatusList 订单状态集合
|
||||
* @return
|
||||
*/
|
||||
List<OrderVO> getListByMemberIdAndOrderStatus(@Param("memberId") String memberId, @Param("orderStatusList") List<String> orderStatusList);
|
||||
|
||||
/**
|
||||
* 将某订单修改为某状态
|
||||
* @param orderCode 订单号
|
||||
* @param orderStatus 修改为某状态
|
||||
*/
|
||||
void updateOrderStatusByOrderCode(@Param("orderCode") String orderCode, @Param("orderStatus") String orderStatus);
|
||||
|
||||
|
||||
/**
|
||||
* 首页订单数据展示
|
||||
* @param dto 首页信息查询dto
|
||||
* @return
|
||||
*/
|
||||
List<IndexOrderInfoVO> getIndexOrderInfo(@Param("dto") IndexQueryDTO dto);
|
||||
|
||||
/**
|
||||
* 获取超过15分钟的待支付状态订单
|
||||
* @return
|
||||
*/
|
||||
List<OrderBasicInfo> getUnpaidOrderListOver15Min(@Param("createTime") String createTime);
|
||||
|
||||
/**
|
||||
* 根据orderId批量修改订单状态
|
||||
* @param orderIds
|
||||
* @param orderStatus
|
||||
*/
|
||||
void updateOrderStatusById(@Param("orderIds") List<String> orderIds, @Param("orderStatus") String orderStatus);
|
||||
|
||||
/**
|
||||
* 通过订单号查询订单信息(小程序发送消息用)
|
||||
* @param orderCode
|
||||
* @return
|
||||
*/
|
||||
SendMessageVO selectOrderInfoByOrderCode(@Param("orderCode") String orderCode);
|
||||
|
||||
List<OrderBasicInfo> selectOrderListByTimeRangeAndStatus(@Param("startTime") String startTime,
|
||||
@Param("endTime") String endTime,
|
||||
@Param("orderStatus") String orderStatus,
|
||||
@Param("payStatus") String payStatus);
|
||||
|
||||
/**
|
||||
* 个人桩查询充电数据
|
||||
* @param dto
|
||||
* @return
|
||||
*/
|
||||
List<PersonPileConnectorSumInfoVO> getAccumulativeInfo(QueryPersonPileDTO dto);
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package com.jsowell.pile.mapper;
|
||||
|
||||
import com.jsowell.pile.domain.OrderPayRecord;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface OrderPayRecordMapper {
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
// int insert(OrderPayRecord record);
|
||||
|
||||
// int insertSelective(OrderPayRecord record);
|
||||
|
||||
OrderPayRecord selectByPrimaryKey(Integer id);
|
||||
|
||||
int updateByPrimaryKeySelective(OrderPayRecord record);
|
||||
|
||||
int updateByPrimaryKey(OrderPayRecord record);
|
||||
|
||||
int batchInsert(@Param("payRecordList") List<OrderPayRecord> payRecordList);
|
||||
|
||||
List<OrderPayRecord> getOrderPayRecordList(@Param("orderCode") String orderCode);
|
||||
}
|
||||
@@ -0,0 +1,146 @@
|
||||
package com.jsowell.pile.mapper;
|
||||
|
||||
import com.jsowell.pile.domain.PileBasicInfo;
|
||||
import com.jsowell.pile.dto.IndexQueryDTO;
|
||||
import com.jsowell.pile.vo.uniapp.PersonalPileInfoVO;
|
||||
import com.jsowell.pile.vo.web.IndexGeneralSituationVO;
|
||||
import com.jsowell.pile.dto.QueryPileDTO;
|
||||
import com.jsowell.pile.dto.ReplaceMerchantStationDTO;
|
||||
import com.jsowell.pile.vo.web.PileDetailVO;
|
||||
import com.jsowell.pile.vo.uniapp.PileConnectorDetailVO;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 设备管理Mapper接口
|
||||
*
|
||||
* @author jsowell
|
||||
* @date 2022-08-26
|
||||
*/
|
||||
@Repository
|
||||
public interface PileBasicInfoMapper {
|
||||
/**
|
||||
* 查询设备管理
|
||||
*
|
||||
* @param id 设备管理主键
|
||||
* @return 设备管理
|
||||
*/
|
||||
PileBasicInfo selectPileBasicInfoById(Long id);
|
||||
|
||||
PileBasicInfo selectPileBasicInfoBySn(String pileSn);
|
||||
|
||||
/**
|
||||
* 查询设备管理列表
|
||||
*
|
||||
* @param pileBasicInfo 设备管理
|
||||
* @return 设备管理集合
|
||||
*/
|
||||
List<PileBasicInfo> selectPileBasicInfoList(PileBasicInfo pileBasicInfo);
|
||||
|
||||
/**
|
||||
* 新增设备管理
|
||||
*
|
||||
* @param pileBasicInfo 设备管理
|
||||
* @return 结果
|
||||
*/
|
||||
int insertPileBasicInfo(PileBasicInfo pileBasicInfo);
|
||||
|
||||
/**
|
||||
* 批量保存
|
||||
*
|
||||
* @param pileBasicInfoList
|
||||
* @return
|
||||
*/
|
||||
int batchInsertPileBasicInfo(@Param("infoList") List<PileBasicInfo> pileBasicInfoList);
|
||||
|
||||
/**
|
||||
* 修改设备管理
|
||||
*
|
||||
* @param pileBasicInfo 设备管理
|
||||
* @return 结果
|
||||
*/
|
||||
int updatePileBasicInfo(PileBasicInfo pileBasicInfo);
|
||||
|
||||
/**
|
||||
* 删除设备管理
|
||||
*
|
||||
* @param id 设备管理主键
|
||||
* @return 结果
|
||||
*/
|
||||
int deletePileBasicInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除设备管理
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
int deletePileBasicInfoByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 查询设备信息
|
||||
*
|
||||
* @param dto 查询条件实体类
|
||||
* @return 设备信息对象集合
|
||||
*/
|
||||
List<PileDetailVO> queryPileInfos(@Param("dto") QueryPileDTO dto);
|
||||
|
||||
/**
|
||||
* 通过站点ids查询桩信息
|
||||
*
|
||||
* @param stationIds 站点id
|
||||
* @return 桩对象集合
|
||||
*/
|
||||
List<PileDetailVO> selectPileListByStationIds(@Param("stationIds") List<Long> stationIds);
|
||||
|
||||
/**
|
||||
* 通过pileId更换站点、运营商信息
|
||||
*
|
||||
* @param dto
|
||||
* @return
|
||||
*/
|
||||
int replaceMerchantStationByPileIds(ReplaceMerchantStationDTO dto);
|
||||
|
||||
/**
|
||||
* 通过桩id查询basic信息
|
||||
*
|
||||
* @param id 桩id
|
||||
* @return PileBasic对象集合
|
||||
*/
|
||||
PileDetailVO selectBasicInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 通过idList批量查询
|
||||
*
|
||||
* @param pileIdList
|
||||
* @return
|
||||
*/
|
||||
List<PileBasicInfo> selectByIdList(@Param("pileIdList") List<Long> pileIdList);
|
||||
|
||||
/**
|
||||
* 查询充电桩信息
|
||||
*
|
||||
* @param pileConnectorCode 充电枪编号
|
||||
* @return
|
||||
*/
|
||||
PileConnectorDetailVO queryPileConnectorDetail(@Param("pileConnectorCode") String pileConnectorCode);
|
||||
|
||||
|
||||
/**
|
||||
* 后管首页基本信息查询
|
||||
*
|
||||
* @param dto 站点Id
|
||||
* @return 首页基本信息
|
||||
*/
|
||||
public IndexGeneralSituationVO getGeneralSituation(@Param("IndexQueryDTO")IndexQueryDTO dto);
|
||||
|
||||
|
||||
/**
|
||||
* 通过会员id查询个人桩列表
|
||||
* @param memberId
|
||||
* @return
|
||||
*/
|
||||
public List<PersonalPileInfoVO> getPileInfoByMemberId(String memberId);
|
||||
}
|
||||
@@ -0,0 +1,144 @@
|
||||
package com.jsowell.pile.mapper;
|
||||
|
||||
import com.jsowell.pile.domain.PileBillingDetail;
|
||||
import com.jsowell.pile.domain.PileBillingRelation;
|
||||
import com.jsowell.pile.domain.PileBillingTemplate;
|
||||
import com.jsowell.pile.vo.web.BillingTemplateVO;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 计费模板Mapper接口
|
||||
*
|
||||
* @author jsowell
|
||||
* @date 2022-09-20
|
||||
*/
|
||||
@Repository
|
||||
public interface PileBillingTemplateMapper {
|
||||
/**
|
||||
* 查询计费模板
|
||||
*
|
||||
* @param id 计费模板主键
|
||||
* @return 计费模板
|
||||
*/
|
||||
public PileBillingTemplate selectPileBillingTemplateById(Long id);
|
||||
|
||||
/**
|
||||
* 查询计费模板列表
|
||||
*
|
||||
* @param pileBillingTemplate 计费模板
|
||||
* @return 计费模板集合
|
||||
*/
|
||||
public List<PileBillingTemplate> selectPileBillingTemplateList(PileBillingTemplate pileBillingTemplate);
|
||||
|
||||
/**
|
||||
* 新增计费模板
|
||||
*
|
||||
* @param pileBillingTemplate 计费模板
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertPileBillingTemplate(PileBillingTemplate pileBillingTemplate);
|
||||
|
||||
/**
|
||||
* 修改计费模板
|
||||
*
|
||||
* @param pileBillingTemplate 计费模板
|
||||
* @return 结果
|
||||
*/
|
||||
public int updatePileBillingTemplate(PileBillingTemplate pileBillingTemplate);
|
||||
|
||||
/**
|
||||
* 删除计费模板
|
||||
*
|
||||
* @param id 计费模板主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePileBillingTemplateById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除计费模板
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePileBillingTemplateByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 批量删除计费模板详情
|
||||
*
|
||||
* @param templateCodes 需要删除的templateCode集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePileBillingDetailByTemplateCodes(@Param("templateCodes") List<String> templateCodes);
|
||||
|
||||
/**
|
||||
* 批量新增计费模板详情
|
||||
*
|
||||
* @param pileBillingDetailList 计费模板详情列表
|
||||
* @return 结果
|
||||
*/
|
||||
public int batchPileBillingDetail(List<PileBillingDetail> pileBillingDetailList);
|
||||
|
||||
|
||||
/**
|
||||
* 通过计费模板主键删除计费模板详情信息
|
||||
*
|
||||
* @param templateCode 计费模板code
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePileBillingDetailByTemplateCode(String templateCode);
|
||||
|
||||
/**
|
||||
* 查询公共计费模板列表
|
||||
* @return
|
||||
*/
|
||||
List<BillingTemplateVO> queryPublicBillingTemplateList();
|
||||
|
||||
/**
|
||||
* 根据站点id查询站点计费模板列表
|
||||
* 根据发布时间倒序,最新一条就是目前正在使用的计费模板
|
||||
* @param stationId 站点id
|
||||
* @return
|
||||
*/
|
||||
List<BillingTemplateVO> queryStationBillingTemplateList(String stationId);
|
||||
|
||||
/**
|
||||
* 通过桩sn号查询计费模板
|
||||
*
|
||||
* @param pileSn 桩sn
|
||||
* @return 计费模板编号
|
||||
*/
|
||||
BillingTemplateVO selectBillingTemplateByPileSn(@Param("pileSn") String pileSn);
|
||||
|
||||
/**
|
||||
* 通过计费模板id查询
|
||||
* @param templateId 计费模板id
|
||||
* @return
|
||||
*/
|
||||
BillingTemplateVO selectBillingTemplateByTemplateId(@Param("templateId") String templateId);
|
||||
|
||||
/**
|
||||
* 查询站点最新发布的计费模板
|
||||
* @param stationId
|
||||
* @return
|
||||
*/
|
||||
BillingTemplateVO selectBillingTemplateByStationId(@Param("stationId") String stationId);
|
||||
|
||||
/**
|
||||
* 通过模板id查询计费模板详情列表
|
||||
*/
|
||||
List<PileBillingDetail> queryBillingDetailByTemplateIds(@Param("templateIds") Long[] templateIds);
|
||||
|
||||
/**
|
||||
* 插入充电桩和计费模板关系
|
||||
*/
|
||||
void insertPileBillingRelation(List<PileBillingRelation> relationList);
|
||||
|
||||
/**
|
||||
* 根据桩号删除计费模板关系
|
||||
* @param pileSnList
|
||||
*/
|
||||
void deleteRelationByPileSn(@Param("pileSnList") List<String> pileSnList);
|
||||
}
|
||||
@@ -0,0 +1,141 @@
|
||||
package com.jsowell.pile.mapper;
|
||||
|
||||
import com.jsowell.pile.domain.PileConnectorInfo;
|
||||
import com.jsowell.pile.dto.QueryConnectorDTO;
|
||||
import com.jsowell.pile.vo.base.ConnectorInfoVO;
|
||||
import com.jsowell.pile.vo.web.PileConnectorInfoVO;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 充电桩枪口信息Mapper接口
|
||||
*
|
||||
* @author jsowell
|
||||
* @date 2022-08-31
|
||||
*/
|
||||
@Repository
|
||||
public interface PileConnectorInfoMapper {
|
||||
/**
|
||||
* 查询充电桩枪口信息
|
||||
*
|
||||
* @param id 充电桩枪口信息主键
|
||||
* @return 充电桩枪口信息
|
||||
*/
|
||||
public PileConnectorInfo selectPileConnectorInfoById(Integer id);
|
||||
|
||||
/**
|
||||
* 查询充电桩枪口信息列表
|
||||
*
|
||||
* @param pileConnectorInfo 充电桩枪口信息
|
||||
* @return 充电桩枪口信息集合
|
||||
*/
|
||||
public List<PileConnectorInfo> selectPileConnectorInfoList(PileConnectorInfo pileConnectorInfo);
|
||||
|
||||
/**
|
||||
* 新增充电桩枪口信息
|
||||
*
|
||||
* @param pileConnectorInfo 充电桩枪口信息
|
||||
* @return 结果
|
||||
*/
|
||||
// public int insertPileConnectorInfo(PileConnectorInfo pileConnectorInfo);
|
||||
|
||||
/**
|
||||
* 批量新增充电桩枪口信息
|
||||
*
|
||||
* @param pileConnectorInfoList 充电桩枪口集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int batchInsertConnectorInfo(@Param("connectorList") List<PileConnectorInfo> pileConnectorInfoList);
|
||||
|
||||
/**
|
||||
* 修改充电桩枪口信息
|
||||
*
|
||||
* @param pileConnectorInfo 充电桩枪口信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updatePileConnectorInfo(PileConnectorInfo pileConnectorInfo);
|
||||
|
||||
/**
|
||||
* 删除充电桩枪口信息
|
||||
*
|
||||
* @param id 充电桩枪口信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
// public int deletePileConnectorInfoById(Integer id);
|
||||
|
||||
/**
|
||||
* 批量删除充电桩枪口信息
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
// public int deletePileConnectorInfoByIds(Integer[] ids);
|
||||
|
||||
/**
|
||||
* 根据充电桩编号删除充电桩枪口信息
|
||||
* @param pileSnList
|
||||
* @return
|
||||
*/
|
||||
int deletePileConnectorInfoByPileSnList(List<String> pileSnList);
|
||||
|
||||
/**
|
||||
* 获取充电接口信息列表
|
||||
*
|
||||
* @param dto 前台参数
|
||||
* @return 充电接口对象集合
|
||||
*/
|
||||
List<PileConnectorInfoVO> getConnectorInfoList(@Param("connectorDTO") QueryConnectorDTO dto);
|
||||
|
||||
/**
|
||||
* 通过站点id查询充电枪信息
|
||||
*
|
||||
* @param stationId 站点id
|
||||
* @return 充电枪设备集合
|
||||
*/
|
||||
List<PileConnectorInfoVO> selectConnectorListByStationId(@Param("stationId") Long stationId);
|
||||
|
||||
/**
|
||||
* 通过充电桩sn或connectorId 查询充电桩接口列表
|
||||
*
|
||||
* @param pileSns 桩编号列表
|
||||
* @param connectorIds 枪口号列表
|
||||
* @return 充电桩接口列表
|
||||
*/
|
||||
List<PileConnectorInfoVO> getPileConnectorInfoList(@Param("pileSns") List<String> pileSns, @Param("connectorIds") List<Long> connectorIds, @Param("connectorCodes") List<String> connectorCodeList);
|
||||
|
||||
/**
|
||||
* 根据枪口号 修改枪口状态
|
||||
*
|
||||
* @param connectorCode 枪口号
|
||||
* @param connectorStatus 状态
|
||||
*/
|
||||
int updateConnectorStatus(@Param("connectorCode") String connectorCode, @Param("connectorStatus") String connectorStatus);
|
||||
|
||||
/**
|
||||
* 根据桩编号修改枪口状态
|
||||
*
|
||||
* @param pileSn 桩编号
|
||||
* @param connectorStatus 状态
|
||||
* @return 修改数量
|
||||
*/
|
||||
int updateConnectorStatusByPileSn(@Param("pileSn") String pileSn, @Param("connectorStatus") String connectorStatus);
|
||||
|
||||
/**
|
||||
* 查询枪口信息
|
||||
* @param pileConnectorCode 枪口号
|
||||
* @return 枪口信息
|
||||
*/
|
||||
PileConnectorInfoVO getPileConnectorInfoByConnectorCode(@Param("pileConnectorCode") String pileConnectorCode);
|
||||
|
||||
|
||||
/**
|
||||
* uniApp通过站点id查询枪口列表信息
|
||||
*
|
||||
* @param stationId 站点id
|
||||
* @return
|
||||
*/
|
||||
List<ConnectorInfoVO> getUniAppConnectorList(@Param("stationId") Long stationId);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package com.jsowell.pile.mapper;
|
||||
|
||||
import com.jsowell.pile.domain.PileLicenceInfo;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 充电桩证书信息Mapper接口
|
||||
*
|
||||
* @author jsowell
|
||||
* @date 2022-08-27
|
||||
*/
|
||||
public interface PileLicenceInfoMapper {
|
||||
/**
|
||||
* 查询充电桩证书信息
|
||||
*
|
||||
* @param id 充电桩证书信息主键
|
||||
* @return 充电桩证书信息
|
||||
*/
|
||||
public PileLicenceInfo selectPileLicenceInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 查询充电桩证书信息列表
|
||||
*
|
||||
* @param pileLicenceInfo 充电桩证书信息
|
||||
* @return 充电桩证书信息集合
|
||||
*/
|
||||
public List<PileLicenceInfo> selectPileLicenceInfoList(PileLicenceInfo pileLicenceInfo);
|
||||
|
||||
/**
|
||||
* 新增充电桩证书信息
|
||||
*
|
||||
* @param pileLicenceInfo 充电桩证书信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertPileLicenceInfo(PileLicenceInfo pileLicenceInfo);
|
||||
|
||||
/**
|
||||
* 修改充电桩证书信息
|
||||
*
|
||||
* @param pileLicenceInfo 充电桩证书信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updatePileLicenceInfo(PileLicenceInfo pileLicenceInfo);
|
||||
|
||||
/**
|
||||
* 删除充电桩证书信息
|
||||
*
|
||||
* @param id 充电桩证书信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePileLicenceInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除充电桩证书信息
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePileLicenceInfoByIds(Long[] ids);
|
||||
}
|
||||
@@ -0,0 +1,74 @@
|
||||
package com.jsowell.pile.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import com.jsowell.pile.domain.PileMemberRelation;
|
||||
import com.jsowell.pile.vo.uniapp.PersonalPileInfoVO;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
* 桩与用户绑定关系Mapper接口
|
||||
*
|
||||
* @author jsowell
|
||||
* @date 2023-02-21
|
||||
*/
|
||||
@Repository
|
||||
public interface PileMemberRelationMapper
|
||||
{
|
||||
/**
|
||||
* 查询桩与用户绑定关系
|
||||
*
|
||||
* @param id 桩与用户绑定关系主键
|
||||
* @return 桩与用户绑定关系
|
||||
*/
|
||||
public PileMemberRelation selectPileMemberRelationById(Integer id);
|
||||
|
||||
/**
|
||||
* 查询桩与用户绑定关系列表
|
||||
*
|
||||
* @param pileMemberRelation 桩与用户绑定关系
|
||||
* @return 桩与用户绑定关系集合
|
||||
*/
|
||||
public List<PileMemberRelation> selectPileMemberRelationList(PileMemberRelation pileMemberRelation);
|
||||
|
||||
/**
|
||||
* 条件查询桩与用户绑定关系
|
||||
*
|
||||
* @param pileMemberRelation
|
||||
* @return
|
||||
*/
|
||||
PileMemberRelation selectPileMemberRelation(PileMemberRelation pileMemberRelation);
|
||||
|
||||
/**
|
||||
* 新增桩与用户绑定关系
|
||||
*
|
||||
* @param pileMemberRelation 桩与用户绑定关系
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertPileMemberRelation(PileMemberRelation pileMemberRelation);
|
||||
|
||||
/**
|
||||
* 修改桩与用户绑定关系
|
||||
*
|
||||
* @param pileMemberRelation 桩与用户绑定关系
|
||||
* @return 结果
|
||||
*/
|
||||
public int updatePileMemberRelation(PileMemberRelation pileMemberRelation);
|
||||
|
||||
/**
|
||||
* 删除桩与用户绑定关系
|
||||
*
|
||||
* @param id 桩与用户绑定关系主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePileMemberRelationById(Integer id);
|
||||
|
||||
/**
|
||||
* 批量删除桩与用户绑定关系
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePileMemberRelationByIds(Integer[] ids);
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
package com.jsowell.pile.mapper;
|
||||
|
||||
import com.jsowell.pile.domain.PileMerchantInfo;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 充电桩运营商信息Mapper接口
|
||||
*
|
||||
* @author jsowell
|
||||
* @date 2022-08-27
|
||||
*/
|
||||
@Repository
|
||||
public interface PileMerchantInfoMapper {
|
||||
/**
|
||||
* 查询充电桩运营商信息
|
||||
*
|
||||
* @param id 充电桩运营商信息主键
|
||||
* @return 充电桩运营商信息
|
||||
*/
|
||||
public PileMerchantInfo selectPileMerchantInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 通过appid查询充电桩运营商信息
|
||||
* @param appId
|
||||
* @return
|
||||
*/
|
||||
PileMerchantInfo selectPileMerchantInfoByAppId(String appId);
|
||||
|
||||
/**
|
||||
* 查询充电桩运营商信息列表
|
||||
*
|
||||
* @param pileMerchantInfo 充电桩运营商信息
|
||||
* @return 充电桩运营商信息集合
|
||||
*/
|
||||
public List<PileMerchantInfo> selectPileMerchantInfoList(PileMerchantInfo pileMerchantInfo);
|
||||
|
||||
/**
|
||||
* 新增充电桩运营商信息
|
||||
*
|
||||
* @param pileMerchantInfo 充电桩运营商信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertPileMerchantInfo(PileMerchantInfo pileMerchantInfo);
|
||||
|
||||
/**
|
||||
* 修改充电桩运营商信息
|
||||
*
|
||||
* @param pileMerchantInfo 充电桩运营商信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updatePileMerchantInfo(PileMerchantInfo pileMerchantInfo);
|
||||
|
||||
/**
|
||||
* 删除充电桩运营商信息
|
||||
*
|
||||
* @param id 充电桩运营商信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePileMerchantInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除充电桩运营商信息
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePileMerchantInfoByIds(Long[] ids);
|
||||
}
|
||||
@@ -0,0 +1,73 @@
|
||||
package com.jsowell.pile.mapper;
|
||||
|
||||
import com.jsowell.pile.domain.PileModelInfo;
|
||||
import com.jsowell.pile.vo.web.PileModelInfoVO;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 充电桩型号信息Mapper接口
|
||||
*
|
||||
* @author jsowell
|
||||
* @date 2022-08-26
|
||||
*/
|
||||
@Repository
|
||||
public interface PileModelInfoMapper {
|
||||
/**
|
||||
* 查询充电桩型号信息
|
||||
*
|
||||
* @param id 充电桩型号信息主键
|
||||
* @return 充电桩型号信息
|
||||
*/
|
||||
public PileModelInfo selectPileModelInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 查询充电桩型号信息列表
|
||||
*
|
||||
* @param pileModelInfo 充电桩型号信息
|
||||
* @return 充电桩型号信息集合
|
||||
*/
|
||||
public List<PileModelInfo> selectPileModelInfoList(PileModelInfo pileModelInfo);
|
||||
|
||||
/**
|
||||
* 新增充电桩型号信息
|
||||
*
|
||||
* @param pileModelInfo 充电桩型号信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertPileModelInfo(PileModelInfo pileModelInfo);
|
||||
|
||||
/**
|
||||
* 修改充电桩型号信息
|
||||
*
|
||||
* @param pileModelInfo 充电桩型号信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updatePileModelInfo(PileModelInfo pileModelInfo);
|
||||
|
||||
/**
|
||||
* 删除充电桩型号信息
|
||||
*
|
||||
* @param id 充电桩型号信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePileModelInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除充电桩型号信息
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePileModelInfoByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 通过桩编号集合获取型号表中数据
|
||||
*
|
||||
* @param pileSns 桩编号集合
|
||||
* @return PileModelInfo对象
|
||||
*/
|
||||
List<PileModelInfoVO> getPileModelInfoByPileSnList(@Param("pileSnList") List<String> pileSns);
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
package com.jsowell.pile.mapper;
|
||||
|
||||
import com.jsowell.pile.domain.PileMsgRecord;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Repository
|
||||
public interface PileMsgRecordMapper {
|
||||
int insertSelective(PileMsgRecord record);
|
||||
|
||||
// PileMsgRecord selectByPrimaryKey(Integer id);
|
||||
|
||||
// PileMsgRecord getByPileSn(String pileSn);
|
||||
|
||||
// PileMsgRecord getByConnectorCode(String connectorCode);
|
||||
|
||||
/**
|
||||
* 根据枪口号查询枪口日志
|
||||
* @param connectorCodeList
|
||||
* @return
|
||||
*/
|
||||
// List<PileMsgRecord> getByConnectorCodeList(@Param("connectorCodeList") List<String> connectorCodeList);
|
||||
|
||||
/**
|
||||
* 查询充电桩通信日志
|
||||
* @param pileSn 桩号
|
||||
* @return
|
||||
*/
|
||||
List<PileMsgRecord> getPileFeedList(@Param("pileSn") String pileSn);
|
||||
}
|
||||
@@ -0,0 +1,96 @@
|
||||
package com.jsowell.pile.mapper;
|
||||
|
||||
import com.jsowell.pile.domain.PileSimInfo;
|
||||
import com.jsowell.pile.dto.QuerySimInfoDTO;
|
||||
import com.jsowell.pile.vo.web.SimCardInfoVO;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 充电桩SIM卡信息Mapper接口
|
||||
*
|
||||
* @author jsowell
|
||||
* @date 2022-08-26
|
||||
*/
|
||||
@Component
|
||||
public interface PileSimInfoMapper {
|
||||
/**
|
||||
* 查询充电桩SIM卡信息
|
||||
*
|
||||
* @param id 充电桩SIM卡信息主键
|
||||
* @return 充电桩SIM卡信息
|
||||
*/
|
||||
public PileSimInfo selectPileSimInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 查询充电桩SIM卡信息列表
|
||||
*
|
||||
* @param pileSimInfo 充电桩SIM卡信息
|
||||
* @return 充电桩SIM卡信息集合
|
||||
*/
|
||||
public List<PileSimInfo> selectPileSimInfoList(PileSimInfo pileSimInfo);
|
||||
|
||||
/**
|
||||
* 后管查询sim卡信息列表
|
||||
* @return
|
||||
*/
|
||||
List<SimCardInfoVO> getSimInfoList(@Param("dto") QuerySimInfoDTO dto);
|
||||
|
||||
/**
|
||||
* 新增充电桩SIM卡信息
|
||||
*
|
||||
* @param pileSimInfo 充电桩SIM卡信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertPileSimInfo(PileSimInfo pileSimInfo);
|
||||
|
||||
/**
|
||||
* 修改充电桩SIM卡信息
|
||||
*
|
||||
* @param pileSimInfo 充电桩SIM卡信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updatePileSimInfo(PileSimInfo pileSimInfo);
|
||||
|
||||
/**
|
||||
* 删除充电桩SIM卡信息
|
||||
*
|
||||
* @param id 充电桩SIM卡信息主键
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePileSimInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除充电桩SIM卡信息
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePileSimInfoByIds(Long[] ids);
|
||||
|
||||
|
||||
/**
|
||||
* 通过桩编码查询sim卡信息
|
||||
* @param pileSn 桩编码
|
||||
* @return
|
||||
*/
|
||||
SimCardInfoVO querySimCardInfoByPileSn(String pileSn);
|
||||
|
||||
/**
|
||||
* 通过卡号批量查询sim卡信息
|
||||
* @param iccIds 卡号集合
|
||||
* @return
|
||||
*/
|
||||
List<PileSimInfo> selectSimInfoByIccIds(@Param("iccIds") List<String> iccIds);
|
||||
|
||||
/**
|
||||
* 通过卡号查询sim卡信息
|
||||
* @param iccId 卡号
|
||||
* @return
|
||||
*/
|
||||
PileSimInfo getBasicInfoByIccId(@Param("iccId") String iccId);
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,74 @@
|
||||
package com.jsowell.pile.mapper;
|
||||
|
||||
import com.jsowell.pile.domain.PileStationInfo;
|
||||
import com.jsowell.pile.dto.QueryStationDTO;
|
||||
import com.jsowell.pile.vo.web.PileStationVO;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 充电站信息Mapper接口
|
||||
*
|
||||
* @author jsowell
|
||||
* @date 2022-08-30
|
||||
*/
|
||||
@Repository
|
||||
public interface PileStationInfoMapper {
|
||||
/**
|
||||
* 查询充电站信息
|
||||
*
|
||||
* @param id 充电站信息主键
|
||||
* @return 充电站信息
|
||||
*/
|
||||
public PileStationInfo selectPileStationInfoById(Long id);
|
||||
|
||||
/**
|
||||
* 查询充电站信息列表
|
||||
*
|
||||
* @param pileStationInfo 充电站信息
|
||||
* @return 充电站信息集合
|
||||
*/
|
||||
public List<PileStationInfo> selectPileStationInfoList(PileStationInfo pileStationInfo);
|
||||
|
||||
/**
|
||||
* 通过运营商id查询站点信息
|
||||
*
|
||||
* @param merchantId 运营商id
|
||||
* @return 站点信息列表
|
||||
*/
|
||||
public List<PileStationInfo> selectStationListByMerchantId(Long merchantId);
|
||||
|
||||
/**
|
||||
* 新增充电站信息
|
||||
*
|
||||
* @param pileStationInfo 充电站信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int insertPileStationInfo(PileStationInfo pileStationInfo);
|
||||
|
||||
/**
|
||||
* 修改充电站信息
|
||||
*
|
||||
* @param pileStationInfo 充电站信息
|
||||
* @return 结果
|
||||
*/
|
||||
public int updatePileStationInfo(PileStationInfo pileStationInfo);
|
||||
|
||||
/**
|
||||
* 批量删除充电站信息
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deletePileStationInfoByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 查询充电站信息
|
||||
*
|
||||
* @param dto 前台参数
|
||||
* @return 充电站对象集合
|
||||
*/
|
||||
List<PileStationVO> queryStationInfos(@Param("stationDTO") QueryStationDTO dto);
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
package com.jsowell.pile.mapper;
|
||||
|
||||
|
||||
import com.jsowell.pile.domain.WxpayCallbackRecord;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
|
||||
public interface WxpayCallbackRecordMapper {
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
int insert(WxpayCallbackRecord record);
|
||||
|
||||
int insertSelective(WxpayCallbackRecord record);
|
||||
|
||||
WxpayCallbackRecord selectByPrimaryKey(Integer id);
|
||||
|
||||
int updateByPrimaryKeySelective(WxpayCallbackRecord record);
|
||||
|
||||
int updateByPrimaryKey(WxpayCallbackRecord record);
|
||||
|
||||
/**
|
||||
* 通过订单号查询支付记录
|
||||
* @param orderCode
|
||||
* @return
|
||||
*/
|
||||
WxpayCallbackRecord selectByOrderCode(String orderCode);
|
||||
|
||||
/**
|
||||
* 根据会员id和时间查询支付记录
|
||||
* @param memberId 会员id
|
||||
* @param date 日期,查询该日期之后的记录
|
||||
* @return
|
||||
*/
|
||||
List<WxpayCallbackRecord> selectBalanceRechargeRecord(@Param("memberId") String memberId, @Param("date") LocalDateTime date);
|
||||
|
||||
WxpayCallbackRecord selectByOutTradeNo(@Param("outTradeNo") String outTradeNo);
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package com.jsowell.pile.mapper;
|
||||
|
||||
import com.jsowell.pile.domain.WxpayRefundCallback;
|
||||
|
||||
public interface WxpayRefundCallbackMapper {
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
int insert(WxpayRefundCallback record);
|
||||
|
||||
int insertSelective(WxpayRefundCallback record);
|
||||
|
||||
WxpayRefundCallback selectByPrimaryKey(Integer id);
|
||||
|
||||
int updateByPrimaryKeySelective(WxpayRefundCallback record);
|
||||
|
||||
int updateByPrimaryKey(WxpayRefundCallback record);
|
||||
}
|
||||
Reference in New Issue
Block a user