lxw
2023-11-09 72f8d13b6446dbf3b532c75134a267f09b681f96
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package com.whyc.service;
 
import com.whyc.mapper.DevStateMapper;
import com.whyc.pojo.Response;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
 
import java.util.List;
 
@Service
public class DevStateService {
    @Autowired(required = false)
    private DevStateMapper mapper;
 
 
    //查询所有的记录
    public Response getAllDev(){
        List list=mapper.selectList(null);
        return new Response().setII(1,list!=null,list,"查询所有的记录");
    }
}