From 7eb5c67db72d9e864b6593fd5e331a5061da6f3a Mon Sep 17 00:00:00 2001 From: nmy <849173236@qq.com> Date: Tue, 5 Dec 2023 21:32:58 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=9B=B4=E6=96=B0=E3=80=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/bonus/zlpt/company/ZlptCompanyApplication.java | 2 ++ .../com/bonus/zlpt/company/controller/MaUpOffController.java | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/zlpt-modules/zlpt-company/src/main/java/com/bonus/zlpt/company/ZlptCompanyApplication.java b/zlpt-modules/zlpt-company/src/main/java/com/bonus/zlpt/company/ZlptCompanyApplication.java index 92fd802..0693ec1 100644 --- a/zlpt-modules/zlpt-company/src/main/java/com/bonus/zlpt/company/ZlptCompanyApplication.java +++ b/zlpt-modules/zlpt-company/src/main/java/com/bonus/zlpt/company/ZlptCompanyApplication.java @@ -5,6 +5,7 @@ import com.bonus.zlpt.common.security.annotation.EnableRyFeignClients; import com.bonus.zlpt.common.swagger.annotation.EnableCustomSwagger2; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.context.annotation.Import; /** * Description: 企业模块启动类 @@ -17,6 +18,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication; @EnableCustomSwagger2 @EnableRyFeignClients @SpringBootApplication +@Import({com.bonus.zlpt.home.service.impl.MaTypeInfoServiceImpl.class}) public class ZlptCompanyApplication { public static void main(String[] args) { SpringApplication.run(ZlptCompanyApplication.class, args); diff --git a/zlpt-modules/zlpt-company/src/main/java/com/bonus/zlpt/company/controller/MaUpOffController.java b/zlpt-modules/zlpt-company/src/main/java/com/bonus/zlpt/company/controller/MaUpOffController.java index 0ec9635..4988679 100644 --- a/zlpt-modules/zlpt-company/src/main/java/com/bonus/zlpt/company/controller/MaUpOffController.java +++ b/zlpt-modules/zlpt-company/src/main/java/com/bonus/zlpt/company/controller/MaUpOffController.java @@ -37,7 +37,7 @@ public class MaUpOffController extends BaseController { @Resource private MaUpOffMapper maUpOffMapper; - @Autowired(required = false) + @Autowired private MaTypeInfoSevice maTypeInfoSevice; /**