935090232@qq.com
2021-11-21 59634aeabb04aae0e819bd4c5fe909bb9cdbeb28
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
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 com.matrix.system.hive.vo.DailyBeautyListVo;
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);
 
    List<DailyBeautyListVo> selectDailyBeautyList(@Param("record") AchieveNew achieveNew, @Param("pageVo") PaginationVO pageVo);
    int selectDailyBeautyListTotal(@Param("record") AchieveNew achieveNew);
 
    String selectPlInfoByVipIdAndDate(@Param("datatime") Date datatime, @Param("vipId") Long vipId);
}