浏览代码

设备异常事件

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

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

@@ -15,6 +15,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.web.bind.annotation.PostMapping;
 import org.springframework.web.bind.annotation.RequestBody;
@@ -35,8 +36,8 @@ import static com.xy.utils.PlusBeans.toPageBean;
  * @since 2023-01-09
  */
 @Service
-@AllArgsConstructor
 @Api(tags = "机器-故障表")
+@AllArgsConstructor(onConstructor_ = @Lazy)
 public class DeviceErrorsRecordServiceImpl extends ServiceImpl<DeviceErrorsRecordMapper, DeviceErrorsRecord> implements DeviceErrorsRecordService {
 
     private DeviceInfoServiceImpl deviceInfoService;