diff --git a/src/main/java/com/xkrs/dao/QcInspectionDataSourceDao.java b/src/main/java/com/xkrs/dao/QcInspectionDataSourceDao.java index 96b4390..eb42c45 100644 --- a/src/main/java/com/xkrs/dao/QcInspectionDataSourceDao.java +++ b/src/main/java/com/xkrs/dao/QcInspectionDataSourceDao.java @@ -4,11 +4,11 @@ import com.xkrs.model.entity.QcInspectionDataSource; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.JpaSpecificationExecutor; import org.springframework.data.jpa.repository.Query; -import org.springframework.stereotype.Component; +import org.springframework.stereotype.Repository; import java.util.List; -@Component +@Repository public interface QcInspectionDataSourceDao extends JpaRepository, JpaSpecificationExecutor { /** diff --git a/src/main/java/com/xkrs/dao/QcInspectionFileDao.java b/src/main/java/com/xkrs/dao/QcInspectionFileDao.java index c0a371e..b54fad6 100644 --- a/src/main/java/com/xkrs/dao/QcInspectionFileDao.java +++ b/src/main/java/com/xkrs/dao/QcInspectionFileDao.java @@ -5,7 +5,7 @@ import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.JpaSpecificationExecutor; import org.springframework.data.jpa.repository.Modifying; import org.springframework.data.jpa.repository.Query; -import org.springframework.stereotype.Component; +import org.springframework.stereotype.Repository; import java.util.List; @@ -13,7 +13,7 @@ import java.util.List; * @Author: XinYi Song * @Date: 2022/1/20 15:23 */ -@Component +@Repository public interface QcInspectionFileDao extends JpaRepository, JpaSpecificationExecutor { /** diff --git a/src/main/java/com/xkrs/dao/QcInspectionItemDictDao.java b/src/main/java/com/xkrs/dao/QcInspectionItemDictDao.java index 6abe5e3..8347df9 100644 --- a/src/main/java/com/xkrs/dao/QcInspectionItemDictDao.java +++ b/src/main/java/com/xkrs/dao/QcInspectionItemDictDao.java @@ -5,9 +5,9 @@ import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.JpaSpecificationExecutor; import org.springframework.data.jpa.repository.Modifying; import org.springframework.data.jpa.repository.Query; -import org.springframework.stereotype.Component; +import org.springframework.stereotype.Repository; -@Component +@Repository public interface QcInspectionItemDictDao extends JpaRepository, JpaSpecificationExecutor { /** diff --git a/src/main/java/com/xkrs/dao/QcInspectionPictureDao.java b/src/main/java/com/xkrs/dao/QcInspectionPictureDao.java index 4ab31ea..36e5a10 100644 --- a/src/main/java/com/xkrs/dao/QcInspectionPictureDao.java +++ b/src/main/java/com/xkrs/dao/QcInspectionPictureDao.java @@ -5,11 +5,11 @@ import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.JpaSpecificationExecutor; import org.springframework.data.jpa.repository.Modifying; import org.springframework.data.jpa.repository.Query; -import org.springframework.stereotype.Component; +import org.springframework.stereotype.Repository; import java.util.List; -@Component +@Repository public interface QcInspectionPictureDao extends JpaRepository, JpaSpecificationExecutor { /** diff --git a/src/main/java/com/xkrs/dao/QcInspectionSpecDao.java b/src/main/java/com/xkrs/dao/QcInspectionSpecDao.java index 0bfa2f6..09ea292 100644 --- a/src/main/java/com/xkrs/dao/QcInspectionSpecDao.java +++ b/src/main/java/com/xkrs/dao/QcInspectionSpecDao.java @@ -3,11 +3,11 @@ package com.xkrs.dao; import com.xkrs.model.entity.QcInspectionSpec; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.JpaSpecificationExecutor; -import org.springframework.stereotype.Component; +import org.springframework.stereotype.Repository; import java.util.List; -@Component +@Repository public interface QcInspectionSpecDao extends JpaRepository, JpaSpecificationExecutor { List findByPartNoAndInspectionItemCode(String partNo, String inspectionItemCode); diff --git a/src/main/java/com/xkrs/service/impl/QcInspectionPictureServiceImpl.java b/src/main/java/com/xkrs/service/impl/QcInspectionPictureServiceImpl.java index 8b803ef..074ae45 100644 --- a/src/main/java/com/xkrs/service/impl/QcInspectionPictureServiceImpl.java +++ b/src/main/java/com/xkrs/service/impl/QcInspectionPictureServiceImpl.java @@ -7,6 +7,7 @@ import com.xkrs.model.qo.QcInspectionPictureQo; import com.xkrs.service.QcInspectionPictureService; import com.xkrs.util.ExcelUploadUtil; import org.springframework.context.i18n.LocaleContextHolder; +import org.springframework.stereotype.Service; import org.springframework.web.multipart.MultipartFile; import javax.annotation.Resource; @@ -15,6 +16,7 @@ import java.util.Locale; import static com.xkrs.encapsulation.OutputEncapsulation.outputEncapsulationObject; +@Service public class QcInspectionPictureServiceImpl implements QcInspectionPictureService { @Resource diff --git a/src/main/java/com/xkrs/service/impl/QcInspectionSpecServiceImpl.java b/src/main/java/com/xkrs/service/impl/QcInspectionSpecServiceImpl.java index 41caee4..4a429d3 100644 --- a/src/main/java/com/xkrs/service/impl/QcInspectionSpecServiceImpl.java +++ b/src/main/java/com/xkrs/service/impl/QcInspectionSpecServiceImpl.java @@ -7,12 +7,14 @@ import com.xkrs.model.entity.QcInspectionSpec; import com.xkrs.model.qo.QcInspectionSpecQo; import com.xkrs.service.QcInspectionSpecService; import org.springframework.context.i18n.LocaleContextHolder; +import org.springframework.stereotype.Service; import javax.annotation.Resource; import java.util.Locale; import static com.xkrs.encapsulation.OutputEncapsulation.outputEncapsulationObject; +@Service public class QcInspectionSpecServiceImpl implements QcInspectionSpecService { @Resource