From 5e391eca1d1e78ddcbc85278d2e3c61aa4d28452 Mon Sep 17 00:00:00 2001 From: Kelvin Date: Sat, 4 Jan 2025 11:31:22 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E5=8F=B0=E8=B4=A6):=20lombok?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../md/service/impl/BaseKnifeServiceImpl.java | 30 +++++-------------- 1 file changed, 7 insertions(+), 23 deletions(-) diff --git a/ktg-mes/src/main/java/com/ktg/mes/md/service/impl/BaseKnifeServiceImpl.java b/ktg-mes/src/main/java/com/ktg/mes/md/service/impl/BaseKnifeServiceImpl.java index f8e8e52..6dbe079 100644 --- a/ktg-mes/src/main/java/com/ktg/mes/md/service/impl/BaseKnifeServiceImpl.java +++ b/ktg-mes/src/main/java/com/ktg/mes/md/service/impl/BaseKnifeServiceImpl.java @@ -12,6 +12,7 @@ import com.ktg.mes.wm.service.impl.WmsInPlanDetailEntityServiceImpl; import jcifs.smb.NtlmPasswordAuthentication; import jcifs.smb.SmbFile; import jcifs.smb.SmbFileInputStream; +import lombok.RequiredArgsConstructor; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @@ -36,30 +37,13 @@ import java.util.*; * @date 2024-10-31 */ @Service +@RequiredArgsConstructor public class BaseKnifeServiceImpl implements IBaseKnifeService { - @Autowired - private BaseKnifeMapper baseKnifeMapper; - - @Autowired - private WmsOutPlanMapper wmsOutPlanMapper; - - @Autowired - private WmsOutPlanDetailEntityMapper wmsOutPlanDetailEntityMapper; - - @Autowired - private WmsOutTaskMapper wmsOutTaskMapper; - - @Autowired - private WmsBusinessTypeMapper wmsBusinessTypeMapper; - - @Autowired - private WmsInPlanDetailEntityMapper wmsInPlanDetailEntityMapper; - - @Autowired - private WmsInPlanDetailEntityServiceImpl wmsInPlanDetailEntityService; - - @Autowired - private MyConfig myConfig; + private final BaseKnifeMapper baseKnifeMapper; + private final WmsOutPlanMapper wmsOutPlanMapper; + private final WmsOutPlanDetailEntityMapper wmsOutPlanDetailEntityMapper; + private final WmsBusinessTypeMapper wmsBusinessTypeMapper; + private final WmsInPlanDetailEntityServiceImpl wmsInPlanDetailEntityService; /** * 查询工具台账