xiaoyong931011
2023-08-28 d03394c01ca1ae7f3431755c628e1bd2106dc287
src/main/java/cc/mrbird/febs/dapp/mapper/DappMemberDao.java
@@ -2,14 +2,19 @@
import cc.mrbird.febs.dapp.dto.MallGoodsQueryDto;
import cc.mrbird.febs.dapp.dto.MallOrderQueryDto;
import cc.mrbird.febs.dapp.dto.PackageRecordDto;
import cc.mrbird.febs.dapp.entity.DappMemberEntity;
import cc.mrbird.febs.dapp.entity.MallAddressInfo;
import cc.mrbird.febs.dapp.entity.MallOrderInfo;
import cc.mrbird.febs.dapp.vo.*;
import cn.hutool.core.date.DateTime;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
/**
@@ -52,6 +57,8 @@
    List<DappMemberEntity> selectMemberInfoByRefererId(@Param("refererId")String inviteId);
    List<DappMemberEntity> selectAllMemberInfoByRefererId(@Param("inviteId")String inviteId);
    Integer selectCountByAccountTypeAndRefererId(@Param("accountType")String code, @Param("refererId")String inviteId);
    IPage<AdminTeamInfoVo> findTeamInfoListInPage(Page<AdminTeamInfoVo> page, @Param("record")DappMemberEntity dappMemberEntity);
@@ -92,4 +99,36 @@
    DappMemberEntity selectInviteRight(@Param("inviteId")String inviteId);
    List<DappMemberEntity> selectMemberByActiveStatus();
    BigDecimal selectAchieveRecordByInviteId(@Param("inviteId")String inviteId);
    List<DappMemberEntity> selectChildAgentList(@Param("inviteId")String inviteId, @Param("accountType")String accountType);
    DappMemberInfoVo selectDappMemberInfoVoByMemberId(@Param("memberId")long id);
    IPage<MallAddressInfo> selectAddressListInPage(@Param("record")MallGoodsQueryDto queryDto, Page<MallAddressInfo> page);
    Integer selectOrderCntByMemberIdAndStatus(@Param("memberId")Long id, @Param("status")int i);
    IPage<MallAddressInfo> selectShopAddressListInPage(@Param("record")MallGoodsQueryDto queryDto, Page<MallAddressInfo> page);
    int updateIsDefault(@Param("isDefault") Integer isDefault, @Param("memberId") Long memberId, @Param("id") Long id);
    void deleteByOrderId(@Param("orderId")Long id);
    MallAddressInfo selectAddressOneByMemberId(@Param("memberId")Long memberId);
    BigDecimal selectOrderAmountByTime(@Param("type") String type, @Param("date") Date date);
    Integer selectOrderCountByTime(@Param("type") String type, @Param("date") Date date);
    BigDecimal selectAccountChangeAfterAmountByTime(@Param("type") String type, @Param("date") Date date);
    List<PackageRecordVo> selectPackageRecordDayInPage(@Param("date") Date date);
    List<PackageRecordVo> selectPackageRecordMonthInPage(@Param("date") Date date);
    List<PackageRecordVo> selectPackageRecordWeekInPage(@Param("date") Date date);
    MallOrderInfo selectOrderByOrderNo(@Param("orderNo") String orderNo);
}