|
|
|
@ -85,9 +85,10 @@ public class PsdcDeviceServiceImpl implements IPsdcDeviceService { |
|
|
|
|
public List<PsdcDevice> queryAllByLimit(PsdcDevice psdcDevice) { |
|
|
|
|
List<PsdcDevice> list = psdcDeviceMapper.queryAllByLimit(psdcDevice); |
|
|
|
|
for (PsdcDevice dev : list){ |
|
|
|
|
dev.setDevType(s("t", dev.getDeviceType())); |
|
|
|
|
dev.setDevStatus(s("s", dev.getDeviceStatus())); |
|
|
|
|
dev.setDevRunstatus(s("r", dev.getDeviceRunstatus())); |
|
|
|
|
// 导出时转换为String
|
|
|
|
|
dev.setDevType(coverStr("t", dev.getDeviceType())); |
|
|
|
|
dev.setDevStatus(coverStr("s", dev.getDeviceStatus())); |
|
|
|
|
dev.setDevRunstatus(coverStr("r", dev.getDeviceRunstatus())); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return list; |
|
|
|
@ -252,7 +253,7 @@ public class PsdcDeviceServiceImpl implements IPsdcDeviceService { |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private String s(String s, int i) { |
|
|
|
|
private String coverStr(String s, int i) { |
|
|
|
|
switch (s) { |
|
|
|
|
case "s": |
|
|
|
|
switch (i) { |
|
|
|
|