Merge branch 'feature/bug-1286' into develop
This commit is contained in:
commit
6ff6b0c64f
|
|
@ -823,6 +823,7 @@ public class DeviceController extends ControllerBase {
|
||||||
List<DeviceAgentRecordVO> vos = new ArrayList<>();
|
List<DeviceAgentRecordVO> vos = new ArrayList<>();
|
||||||
for (DeviceAgentRecord r : list) {
|
for (DeviceAgentRecord r : list) {
|
||||||
DeviceAgentRecordVO vo = new DeviceAgentRecordVO()
|
DeviceAgentRecordVO vo = new DeviceAgentRecordVO()
|
||||||
|
.setId(r.getId())
|
||||||
.setOldAgentCode(oldAgentCode)
|
.setOldAgentCode(oldAgentCode)
|
||||||
.setOldAgentName(oldAgentName)
|
.setOldAgentName(oldAgentName)
|
||||||
.setNewAgentCode(r.getAgentCode())
|
.setNewAgentCode(r.getAgentCode())
|
||||||
|
|
@ -833,6 +834,7 @@ public class DeviceController extends ControllerBase {
|
||||||
oldAgentName = r.getAgentName();
|
oldAgentName = r.getAgentName();
|
||||||
vos.add(vo);
|
vos.add(vo);
|
||||||
}
|
}
|
||||||
|
vos.sort(Comparator.comparingLong(DeviceAgentRecordVO::getId).reversed());
|
||||||
return ApiResult.success(vos);
|
return ApiResult.success(vos);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,8 @@ import java.time.LocalDateTime;
|
||||||
@Accessors(chain = true)
|
@Accessors(chain = true)
|
||||||
public class DeviceAgentRecordVO {
|
public class DeviceAgentRecordVO {
|
||||||
|
|
||||||
|
private Long id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 变更前公司编码
|
* 变更前公司编码
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -867,6 +867,7 @@ public class DeviceController extends ControllerBase {
|
||||||
List<DeviceAgentRecordVO> vos = new ArrayList<>();
|
List<DeviceAgentRecordVO> vos = new ArrayList<>();
|
||||||
for (GongfuDeviceAgentRecord r : list) {
|
for (GongfuDeviceAgentRecord r : list) {
|
||||||
DeviceAgentRecordVO vo = new DeviceAgentRecordVO()
|
DeviceAgentRecordVO vo = new DeviceAgentRecordVO()
|
||||||
|
.setId(r.getId())
|
||||||
.setOldAgentCode(oldAgentCode)
|
.setOldAgentCode(oldAgentCode)
|
||||||
.setOldAgentName(oldAgentName)
|
.setOldAgentName(oldAgentName)
|
||||||
.setNewAgentCode(r.getAgentCode())
|
.setNewAgentCode(r.getAgentCode())
|
||||||
|
|
@ -877,6 +878,7 @@ public class DeviceController extends ControllerBase {
|
||||||
oldAgentName = r.getAgentName();
|
oldAgentName = r.getAgentName();
|
||||||
vos.add(vo);
|
vos.add(vo);
|
||||||
}
|
}
|
||||||
|
vos.sort(Comparator.comparingLong(DeviceAgentRecordVO::getId).reversed());
|
||||||
return ApiResult.success(vos);
|
return ApiResult.success(vos);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue