浏览代码

设备管理费

李进 1 年之前
父节点
当前提交
588cd425b2
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      device-api-service/src/main/java/com/xy/service/DeviceChargingServiceImpl.java

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

@@ -9,6 +9,7 @@ import com.xy.utils.R;
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
 import lombok.AllArgsConstructor;
+import org.springframework.context.annotation.Lazy;
 import org.springframework.stereotype.Service;
 import org.springframework.validation.annotation.Validated;
 import org.springframework.web.bind.annotation.PostMapping;
@@ -27,8 +28,8 @@ import java.util.List;
  * @since 2023-04-14
  */
 @Service
-@AllArgsConstructor
 @Api(tags = "设备计费表")
+@AllArgsConstructor(onConstructor_ = @Lazy)
 public class DeviceChargingServiceImpl extends ServiceImpl<DeviceChargingMapper, DeviceCharging> implements DeviceChargingService {
 
     private DeviceChargingJob deviceChargingJob;