whyclxw
2025-04-17 92efd8906a1af014079e9a11b45d99df91ffd72d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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;
    }
}