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; /** * 查询工具台账