| New file | 
|  |  |  | 
|---|
|  |  |  | package com.dy.pipIrrGlobal.daoSe; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import com.baomidou.mybatisplus.core.mapper.BaseMapper; | 
|---|
|  |  |  | import com.dy.pipIrrGlobal.pojoSe.SeVcRefundItem; | 
|---|
|  |  |  | import org.apache.ibatis.annotations.Mapper; | 
|---|
|  |  |  | import org.apache.ibatis.annotations.Param; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * @author ZhuBaoMin | 
|---|
|  |  |  | * @date 2024-03-10 21:05 | 
|---|
|  |  |  | * @LastEditTime 2024-03-10 21:05 | 
|---|
|  |  |  | * @Description | 
|---|
|  |  |  | */ | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Mapper | 
|---|
|  |  |  | public interface SeVcRefundItemMapper extends BaseMapper<SeVcRefundItem> { | 
|---|
|  |  |  | int deleteByPrimaryKey(Long id); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | int insert(SeVcRefundItem record); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | int insertSelective(SeVcRefundItem record); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | SeVcRefundItem selectByPrimaryKey(Long id); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | int updateByPrimaryKeySelective(SeVcRefundItem record); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | int updateByPrimaryKey(SeVcRefundItem record); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 根据订单号获取最后一个退单号 | 
|---|
|  |  |  | * @param orderNumber | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | String getLastRefundNumber(@Param("orderNumber") String orderNumber); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 根据退款通知接口返回的退款单号反查退款ID,查询该退款ID下未退款记录数量 | 
|---|
|  |  |  | * @param refundNumber | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | Integer getNoRefundedCount(String refundNumber); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 根据退款单号获取退款ID,退款通知后更新退款表所需 | 
|---|
|  |  |  | * @param refundNumber | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | Long getRefundIdByRefundNumber(String refundNumber); | 
|---|
|  |  |  | } | 
|---|