自动化立体仓库 - WMS系统
vincent
2020-05-24 fb3b3aa7f0fcbfd3f3cb333b31a317f73605a9ec
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
package com.zy.system.service.impl;
 
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.zy.system.entity.OperateLog;
import com.zy.system.mapper.OperateLogMapper;
import com.zy.system.service.OperateLogService;
import com.core.common.Cools;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
 
import java.util.List;
import java.util.Map;
 
@Service("operateLogService")
public class OperateLogServiceImpl extends ServiceImpl<OperateLogMapper, OperateLog> implements OperateLogService {
 
    @Autowired
    private OperateLogMapper operateLogMapper;
 
 
    @Override
    public int selectCountByCurrentWeek() {
        return operateLogMapper.selectCountByCurrentWeek();
    }
 
    @Override
    public List<Map<String, Object>> getReport(Integer year, Integer month) {
        if (Cools.isEmpty(month)) {
            return operateLogMapper.getReportByYear(year);
        }
        return operateLogMapper.getReportByMonth(year, month);
    }
 
}