package com.whyc.service;
|
|
import com.whyc.mapper.LockReportMapper;
|
import com.whyc.pojo.plus_lock_ram.LockReport;
|
import com.whyc.util.ActionUtil;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.stereotype.Service;
|
|
import java.util.List;
|
|
@Service
|
public class LockReportService {
|
@Autowired(required = false)
|
private LockReportMapper mapper;
|
|
//获取锁的频次
|
public List<LockReport> getReport(List<Integer> lockIds) {
|
int nowYear=ActionUtil.getNowYear();
|
List<LockReport> list=mapper.getReport(lockIds,nowYear);
|
return list;
|
}
|
}
|