diff --git a/blade-service/logpm-basic/src/main/java/com/logpm/basic/app/BasicMaterielPDAlController.java b/blade-service/logpm-basic/src/main/java/com/logpm/basic/app/BasicMaterielPDAlController.java index 19bf6c8f4..384606b15 100644 --- a/blade-service/logpm-basic/src/main/java/com/logpm/basic/app/BasicMaterielPDAlController.java +++ b/blade-service/logpm-basic/src/main/java/com/logpm/basic/app/BasicMaterielPDAlController.java @@ -16,6 +16,7 @@ import org.springblade.core.mp.support.Query; import org.springblade.core.secure.utils.AuthUtil; import org.springblade.core.tool.api.R; import org.springblade.core.tool.utils.Func; +import org.springblade.core.tool.utils.SpringUtil; import org.springframework.web.bind.annotation.*; import javax.validation.Valid; @@ -38,6 +39,9 @@ public class BasicMaterielPDAlController { if (Func.isEmpty(tenantId)){ return null; } + if (Func.isEmpty(basicMaterialService)){ + basicMaterialService = SpringUtil.getBean(IBasicMaterialService.class); + } LambdaQueryWrapper apply = Wrappers.query().lambda() .eq(BasicMaterialEntity::getTenantId, tenantId); @@ -62,6 +66,9 @@ public class BasicMaterielPDAlController { @ApiOperationSupport(order = 1) @ApiOperation(value = "PDA维护物料信息", notes = "DistributionStockListVO") private R updateMateriel(@Valid @RequestBody BasicMaterialEntity basicMaterial){ + if (Func.isEmpty(basicMaterialService)){ + basicMaterialService = SpringUtil.getBean(IBasicMaterialService.class); + } boolean flag = basicMaterialService.updateById(basicMaterial); return R.status(flag); } diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionSignforServiceImpl.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionSignforServiceImpl.java index ed39b3534..3bd646409 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionSignforServiceImpl.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionSignforServiceImpl.java @@ -1782,6 +1782,7 @@ public class DistributionSignforServiceImpl extends BaseServiceImpl