| | |
| | | package com.zy.asrs.common.sys.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.zy.asrs.common.sys.entity.OperateLog; |
| | | import com.zy.asrs.common.sys.mapper.OperateLogMapper; |
| | | import com.zy.asrs.common.sys.service.OperateLogService; |
| | | import com.zy.asrs.framework.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); |
| | | } |
| | | |
| | | } |
| | | package com.zy.asrs.common.sys.service.impl;
|
| | |
|
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
| | | import com.zy.asrs.common.sys.entity.OperateLog;
|
| | | import com.zy.asrs.common.sys.mapper.OperateLogMapper;
|
| | | import com.zy.asrs.common.sys.service.OperateLogService;
|
| | | import com.zy.asrs.framework.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);
|
| | | }
|
| | |
|
| | | }
|