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.VoTradeDetails;
|
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> getSummaries(Map<?, ?> params);
|
|
/**
|
* 获取指定日期、指定收银员、指定支付方式实收金额合计
|
* @param tradeDate
|
* @param paymentId
|
* @return
|
*/
|
Float getPaymentSums(@Param("tradeDate") String tradeDate, @Param("cashierId") Long cashierId, @Param("paymentId") Long paymentId);
|
|
/**
|
* 根据收银员ID及日期获取财务对账_交易明细记录数
|
* @param params
|
* @return
|
*/
|
Long getTradeDetailsRecordCount(Map<?, ?> params);
|
|
/**
|
* 根据收银员ID及日期获取财务对账_交易明细记录
|
* @param params
|
* @return
|
*/
|
List<VoTradeDetails> getTradeDetails(Map<?, ?> params);
|
|
/**
|
* 删除今天的总账
|
* @return
|
*/
|
int deleteTodayGeneral();
|
}
|