Bladeren bron

设备异常事件

李进 2 jaren geleden
bovenliggende
commit
f63083df1e

+ 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;