package com.ssm.manage.dao.impl;

import com.ssm.core.impl.BaseDaoImpl;
import com.ssm.manage.dao.SsmPayDao;
import com.ssm.manage.entity.PayList;
import com.ssm.manage.mapper.PayListMapper;
import com.ssm.manage.query.StoreDailyRequest;
import com.ssm.manage.response.PayListVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.math.BigDecimal;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;

@Component
public class SsmPayDaoImpl extends BaseDaoImpl<PayList> implements SsmPayDao {
    @Autowired
    private PayListMapper mapper;

    @Override
    public PayListMapper getMapper() {
        return mapper;
    }

    @Override
    public int addPayList(List<PayList> payLists) {
        return mapper.addPayList(payLists);
    }

    @Override
    public List<PayListVo> selectByDay(String tab,List<Long> storeIds, Date startTime, Date endTime) {
        return mapper.selectByDay(tab,storeIds,startTime,endTime);
    }

    @Override
    public void updateByNum(PayList list) {
        mapper.updateByNum(list);
    }

    @Override
    public BigDecimal selectStoreDailys(StoreDailyRequest storeDailyRequest) {
        return mapper.selectStoreDailys(storeDailyRequest);
    }

}
