liurunyu
2024-01-29 c568a328a8c273531773710fe814ac429bafc48f
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
package com.dy.pipIrrGlobal.daoSe;
 
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dy.pipIrrGlobal.pojoSe.SeGeneral;
import com.dy.pipIrrGlobal.voSe.VoGeneral;
import com.dy.pipIrrGlobal.voSe.VoTransactionStatistics;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
 
import java.util.List;
import java.util.Map;
 
/**
 * @author ZhuBaoMin
 * @date 2024-01-24 18:57
 * @LastEditTime 2024-01-25 15:55
 * @Description
 */
 
@Mapper
public interface SeGeneralMapper extends BaseMapper<SeGeneral> {
    int deleteByPrimaryKey(Long id);
 
    int insert(SeGeneral record);
 
    int insertSelective(SeGeneral record);
 
    SeGeneral selectByPrimaryKey(Long id);
 
    int updateByPrimaryKeySelective(SeGeneral record);
 
    int updateByPrimaryKey(SeGeneral record);
 
    /**
     * 获取未生成总账的交易日期列表(当天的交易记录不生成总账)
     * @return
     */
    List<Map<String, Object>> getDatesOfNotInGenerals();
 
    /**
     * 根据交易日期获取总账记录列表(待生成的)
     * @param operateDate
     * @return
     */
    List<SeGeneral> getGeneralByOperateDate(@Param("operateDate") String operateDate);
 
    /**
     * 根据指定条件获取总账记录数
     * @param params
     * @return
     */
    Long getRecordCount(Map<?, ?> params);
 
    /**
     * 根据指定条件获取总账记录
     * @param params
     * @return
     */
    List<VoGeneral> getGenerals(Map<?, ?> params);
 
    /**
     * 财务对账审核页,收银员+日期分组,排除交易类型分组,记录数
     * @param params
     * @return
     */
    Long getToAuditRecordCount(Map<?, ?> params);
 
    /**
     * 财务对账审核页,收银员+日期分组,排除交易类型分组
     * @param params
     * @return
     */
    List<VoTransactionStatistics> getToAudit(Map<?, ?> params);
 
    /**
     * 获取指定日期、指定收银员、指定支付方式实收金额合计
     * @param tradeDate
     * @param paymentId
     * @return
     */
    Float getPaymentSums(@Param("tradeDate") String tradeDate, @Param("cashierId") Long cashierId, @Param("paymentId") Long paymentId);
 
    /**
     * 根基指定日期、指定收银员获取笔数合计、实收金额合计、赠送金额合计
     * @param params
     * @return
     */
    Map getTransactionStatisticsSums(Map<?, ?> params);
}