haogh 1 년 전
부모
커밋
e66fd38515
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      sop-business/src/main/java/com/qmth/sop/business/service/impl/TBDeviceDeliveryServiceImpl.java

+ 3 - 3
sop-business/src/main/java/com/qmth/sop/business/service/impl/TBDeviceDeliveryServiceImpl.java

@@ -801,9 +801,9 @@ public class TBDeviceDeliveryServiceImpl extends ServiceImpl<TBDeviceDeliveryMap
         if (Objects.isNull(deviceDelivery)) {
             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)
                 .set(TBDeviceDelivery::getDeviceStatus, deviceStatus).set(TBDeviceDelivery::getUpdateId, userId)