package com.whyc.service;
|
|
import com.whyc.dto.Response;
|
import com.whyc.dto.SystemInfDTO;
|
import com.whyc.mapper.DeviceInfMapper;
|
import org.springframework.stereotype.Service;
|
|
import javax.annotation.Resource;
|
import java.util.List;
|
|
@Service
|
public class DeviceInfService {
|
|
@Resource
|
private DeviceInfMapper mapper;
|
|
public Response<List<SystemInfDTO>> getAll() {
|
/*QueryWrapper<DeviceInf> query = Wrappers.query();
|
query.select("system_id","system_name","GROUP_concat(device_id,\"-\",device_name) as deviceName").groupBy("system_id");
|
List<DeviceInf> deviceInfs = mapper.selectList(query);*/
|
List<SystemInfDTO> systemList = mapper.getAll();
|
System.out.println(System.getProperty("user.timezone"));
|
|
return new Response<List<SystemInfDTO>>().set(1,systemList);
|
}
|
}
|