package com.xhpc.payment.mapper;

import com.xhpc.payment.domain.XhpcRefundAudit;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * 退款审核信息 数据层
 *
 * @author ruoyi
 */
public interface XhpcRefundAuditMapper {

    /**
     * 新增 退款审核信息
     *
     * @param xhpcRefundAudit 退款审核信息
     * @return 结果
     */
    public int insert(XhpcRefundAudit xhpcRefundAudit);

    /**
     * 退款审核列表
     *
     * @param refundOrderId
     * @return
     */
    public List<Map<String, Object>> list(@Param("refundOrderId") Long refundOrderId);

    //社区人员退款或修改 是否有退款订单审核
    int updateCommunityPersonnelMoney(@Param("communityPersonnelId")Long communityPersonnelId,@Param("surplusMoney") BigDecimal surplusMoney,@Param("isRefundApplication") Integer isRefundApplication);

    //查询社区人员信息
    Map<String, Object> getCommunityPersonnelById(@Param("userId")Long userId,@Param("tenantId")String tenantId);

    Map<String, Object> getXhpcAppInternetUserById(@Param("userId")Long userId,@Param("tenantId")String tenantId);
}
