|
@@ -801,9 +801,9 @@ public class TBDeviceDeliveryServiceImpl extends ServiceImpl<TBDeviceDeliveryMap
|
|
if (Objects.isNull(deviceDelivery)) {
|
|
if (Objects.isNull(deviceDelivery)) {
|
|
throw ExceptionResultEnum.ERROR.exception(String.format("设备发货记录不存在,ID:[%s]", id));
|
|
throw ExceptionResultEnum.ERROR.exception(String.format("设备发货记录不存在,ID:[%s]", id));
|
|
}
|
|
}
|
|
- if (deviceDelivery.getDeviceStatus().equals(deviceStatus)) {
|
|
|
|
- throw ExceptionResultEnum.ERROR.exception("未做改动");
|
|
|
|
- }
|
|
|
|
|
|
+// if (deviceDelivery.getDeviceStatus().equals(deviceStatus)) {
|
|
|
|
+// throw ExceptionResultEnum.ERROR.exception("未做改动");
|
|
|
|
+// }
|
|
//更新设备发货记录的设备状态
|
|
//更新设备发货记录的设备状态
|
|
this.update(new UpdateWrapper<TBDeviceDelivery>().lambda().eq(TBDeviceDelivery::getId, id)
|
|
this.update(new UpdateWrapper<TBDeviceDelivery>().lambda().eq(TBDeviceDelivery::getId, id)
|
|
.set(TBDeviceDelivery::getDeviceStatus, deviceStatus).set(TBDeviceDelivery::getUpdateId, userId)
|
|
.set(TBDeviceDelivery::getDeviceStatus, deviceStatus).set(TBDeviceDelivery::getUpdateId, userId)
|