|
|
@@ -258,9 +258,9 @@ public class DeviceInfoService {
|
|
|
* @return
|
|
|
*/
|
|
|
public ResultContent updateDeviceState(DeviceInfoUpdateRemark param) {
|
|
|
- DeviceInfo deviceInfo = deviceInfoDao.findTopById(param.getId());
|
|
|
+ DeviceInfo deviceInfo = deviceInfoDao.findTopByDeviceId(param.getDeviceId());
|
|
|
if (ObjectUtils.isEmpty(deviceInfo)) {
|
|
|
- return ResultContent.buildFail(String.format(ResultMessage.DATA_NOT_EXIST, param.getId()));
|
|
|
+ return ResultContent.buildFail(String.format(ResultMessage.DATA_NOT_EXIST, param.getDeviceId()));
|
|
|
}
|
|
|
if (deviceInfo.getState() == DeviceState.Cancel) {
|
|
|
return ResultContent.buildFail("设备已注销");
|