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,"查询所有的记录");
|
}
|
}
|