Parcourir la source

设备管理费pc接口

李进 il y a 1 an
Parent
commit
7448aba4de

+ 2 - 4
device-api-service/src/main/java/com/xy/service/DeviceChargingServiceImpl.java

@@ -21,7 +21,6 @@ import com.xy.utils.*;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
 import lombok.AllArgsConstructor;
-import lombok.extern.slf4j.Slf4j;
 import org.springframework.context.annotation.Lazy;
 import org.springframework.stereotype.Service;
 import org.springframework.validation.annotation.Validated;
@@ -45,7 +44,6 @@ import static com.xy.utils.PlusBeans.toPageBean;
  * @author lijin
  * @since 2023-04-14
  */
-@Slf4j
 @Service
 @Api(tags = "设备计费表")
 @AllArgsConstructor(onConstructor_ = @Lazy)
@@ -113,11 +111,11 @@ public class DeviceChargingServiceImpl extends ServiceImpl<DeviceChargingMapper,
                     .setTimeout(now)
                     .setCreateTime(now)
             );
-            throw new CommRuntimeException(R.Enum.CHARGING.getCode(), R.Enum.CHARGING.getMsg());
+            throw new CommRuntimeException("管理费欠费");
         }
         int contrast = DataTime.stringContrast(DataTime.toString(deviceCharging.getTimeout()), DataTime.toString(now));
         if (deviceCharging.getChargingX() == 0 && contrast <= 0) {
-            throw new CommRuntimeException(R.Enum.CHARGING.getCode(), R.Enum.CHARGING.getMsg());
+            throw new CommRuntimeException("管理费欠费");
         }
         return R.ok();
     }