fg电池监控平台的达梦数据库版本
whycxzp
2024-11-12 92ba7a968c67e8c8a64efea1759929649189f390
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
package com.whyc.service;
 
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.whyc.mapper.PageParam2Mapper;
import com.whyc.pojo.PageParam2;
import org.springframework.stereotype.Service;
 
import javax.annotation.Resource;
import java.util.List;
 
@Service
public class PageParam2Service {
 
    @Resource
    private PageParam2Mapper mapper;
 
    public List<PageParam2> getList(int categoryId) {
        QueryWrapper<PageParam2> query = Wrappers.query();
        query.eq("categoryId",categoryId);
        return mapper.selectList(query);
 
    }
 
    public PageParam2 getById(int id) {
        return mapper.selectById(id);
    }
 
    public void updateById(PageParam2 param) {
        mapper.updateById(param);
    }
}