Pu Zhibing
2025-03-17 b68ac80de1daf22142886af16d36479259106065
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
package com.ruoyi.system.service.impl;
 
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.core.web.page.PageInfo;
import com.ruoyi.system.api.model.Enterprise;
import com.ruoyi.system.api.query.GetEnterpriseListReq;
import com.ruoyi.system.mapper.EnterpriseMapper;
import com.ruoyi.system.service.IEnterpriseService;
import org.springframework.stereotype.Service;
 
/**
 * @author zhibing.pu
 * @Date 2025/3/4 18:32
 */
@Service
public class EnterpriseServiceImpl extends ServiceImpl<EnterpriseMapper, Enterprise> implements IEnterpriseService {
    
    
    /**
     * 获取公司列表数据
     *
     * @param req
     * @return
     */
    @Override
    public PageInfo<Enterprise> getEnterpriseList(GetEnterpriseListReq req) {
        PageInfo<Enterprise> page = new PageInfo<>(req.getPageCurr(), req.getPageSize());
        return this.baseMapper.getEnterpriseList(page, req);
    }
}