package com.hzs.report.report.service.impl;/**
 * @Description:
 * @Author: yuhui
 * @Time: 2024/9/3 16:38
 * @Classname: WaresSalesVolumeServiceImpl
 * @PackageName: com.hzs.report.report.service.impl
 */

import com.hzs.report.report.mapper.WaresSalesVolumeMapper;
import com.hzs.report.report.service.WaresSalesVolumeService;
import com.hzs.report.report.vo.WaresSalesVolume;
import com.hzs.report.report.vo.WaresSalesVolumeProduct;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

/**
 *@BelongsProject: hzs_cloud
 *@BelongsPackage: com.hzs.report.report.service.impl
 *@Author: yh
 *@CreateTime: 2024-09-03  16:38
 *@Description: TODO
 *@Version: 1.0
 */
@Slf4j
@Service
public class WaresSalesVolumeServiceImpl implements WaresSalesVolumeService {


    @Autowired
    private WaresSalesVolumeMapper waresSalesVolumeMapper;

    /**
     * 商品销量统计
     */
    @Override
    public List<WaresSalesVolume> queryList(String waresCode, String waresName, Date startDate , Date endDate) {

        return waresSalesVolumeMapper.queryList( waresCode,  waresName,  startDate , endDate);
    }

    /**
     * 产品信息
     * @param pkWares
     * @return
     */
    @Override
    public List<WaresSalesVolumeProduct> queryProductList(Integer pkWares) {
        return waresSalesVolumeMapper.queryProductList(pkWares);
    }
}
