| package com.matrix.system.hive.dao; | 
|   | 
| import com.baomidou.mybatisplus.core.mapper.BaseMapper; | 
| import com.baomidou.mybatisplus.core.metadata.IPage; | 
| import com.baomidou.mybatisplus.extension.plugins.pagination.Page; | 
| import com.matrix.core.pojo.PaginationVO; | 
| import com.matrix.system.app.vo.OrderDetailAchieveItemVo; | 
| import com.matrix.system.app.vo.RankingVo; | 
| import com.matrix.system.app.vo.UserAchieveVo; | 
| import com.matrix.system.hive.bean.AchieveNew; | 
| import com.matrix.system.hive.dto.AchieveNewStatisticsDto; | 
| import com.matrix.system.hive.vo.AchieveNewStatisticsVo; | 
| import org.apache.ibatis.annotations.Param; | 
|   | 
| import java.util.ArrayList; | 
| import java.util.Date; | 
| import java.util.List; | 
| import java.util.Map; | 
|   | 
|   | 
| /** | 
|  * | 
|  * @date 2019-03-24 16:01 | 
|  */ | 
|   | 
|   | 
| public interface AchieveNewDao extends BaseMapper<AchieveNew> { | 
|   | 
|     public int insert(@Param("item") AchieveNew achieveNew); | 
|         | 
|        public int batchInsert(@Param("list") List<AchieveNew> achieveNewList); | 
|         | 
|     public int updateByMap(Map<String, Object> modifyMap); | 
|      | 
|     public int updateByModel(@Param("record") AchieveNew achieveNew); | 
|      | 
|     public int deleteByIds(@Param("list") List<Long> list); | 
|      | 
|     public int deleteById(Long id); | 
|   | 
|     public int deleteByModel(@Param("record") AchieveNew achieveNew); | 
|      | 
|   | 
|     public abstract int updateAchieveTime(@Param("record") AchieveNew paramAchieveNew); | 
|        | 
|      | 
|     public List<AchieveNew> selectInPage(@Param("record") AchieveNew achieveNew, @Param("pageVo") PaginationVO pageVo); | 
|   | 
|     public List<AchieveNew> selectByModel(@Param("record") AchieveNew achieveNew); | 
|      | 
|     public int  selectTotalRecord(@Param("record") AchieveNew achieveNew); | 
|      | 
|     public AchieveNew  selectById(Long id); | 
|      | 
|     public AchieveNew  selectForUpdate(Long id); | 
|   | 
|     public List<AchieveNew> findDayFlow(@Param("record") AchieveNew achieveNew, @Param("pageVo") PaginationVO pageVo); | 
|   | 
|     public int findDayFlowTotal(@Param("record") AchieveNew achieveNew, @Param("pageVo") PaginationVO pageVo); | 
|      | 
|   | 
|     public List<AchieveNew> findSumDailyInfoNew(@Param("record") AchieveNew achieveNew, @Param("pageVo") PaginationVO pageVo); | 
|   | 
|   | 
|     List<Map<String, Object>> selectVipConsumeStatisticsList(@Param("record") AchieveNew achieveNew, @Param("pageVo") PaginationVO pageVo); | 
|   | 
|     int selectVipConsumeStatisticsTotal(@Param("record") AchieveNew achieveNew); | 
|   | 
|     UserAchieveVo selectUserAchieveByTime(@Param("startTime") Date startTime, @Param("endTime") Date endTime, @Param("userId") Long userId); | 
|   | 
|     List<OrderDetailAchieveItemVo> selectApiOrderItemAchieve(@Param("itemId") Long itemId); | 
|   | 
|     List<RankingVo> selectShopConsumeAchieveRanking(@Param("record") AchieveNew achieveNew); | 
|   | 
|     List<RankingVo> selectShopSaleAchieveRanking(@Param("record") AchieveNew achieveNew); | 
|   | 
|     List<RankingVo> selectBeauticianConsumeAchieveRanking(@Param("record") AchieveNew achieveNew); | 
|   | 
|     List<AchieveNew> selectOrderItemAchieveByOrderId(Long orderId); | 
|   | 
|     List<RankingVo> selectStaffSaleAchieveRanking(@Param("record") AchieveNew achieveNew); | 
|   | 
|     int deleteByOrderId(@Param("orderId") Long orderId); | 
|   | 
|     List<AchieveNew> selectSaleManAchieveList(@Param("saleId") Long saleId, @Param("vipId") Long vipId, @Param("date") Date date); | 
|   | 
|     List<AchieveNew> selectBeautyManAchieveList(@Param("beautyId") Long beautyId, @Param("vipId") Long vipId, @Param("date") Date date); | 
|   | 
|     int updateAchieveNumOfPeople(@Param("list") List<AchieveNew> list, @Param("num") Double num); | 
|   | 
|     IPage<AchieveNewStatisticsVo> achieveNewStatistics(Page<AchieveNewStatisticsVo> page,  @Param("record")AchieveNewStatisticsDto queryDto); | 
|   | 
|      void setPayMethod(@Param("paymethod") String paymethod, @Param("list")  ArrayList<Long> ids); | 
|   | 
|      List<RankingVo> selectNumOfPeopleAchieveRanking(@Param("record") AchieveNew achieveNew); | 
| } |