|
|
@@ -3,6 +3,7 @@ package com.uas.platform.b2c.prod.product.common.dao;
|
|
|
import com.uas.platform.b2c.prod.product.common.model.CommonCount;
|
|
|
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.Repository;
|
|
|
|
|
|
import java.util.List;
|
|
|
@@ -18,12 +19,19 @@ public interface CommonCountDao extends JpaSpecificationExecutor<CommonCount>,Jp
|
|
|
* @param status 状态
|
|
|
* @return 计数器
|
|
|
*/
|
|
|
- public List<CommonCount> findByStatusAndUsedForOrderByDetno(Short status, String usedFor);
|
|
|
+ List<CommonCount> findByStatusAndUsedForOrderByDetno(Short status, String usedFor);
|
|
|
|
|
|
/**
|
|
|
* 通过状态获取计数器
|
|
|
* @param status
|
|
|
* @return
|
|
|
*/
|
|
|
- public List<CommonCount> findByStatus(Short status);
|
|
|
+ List<CommonCount> findByStatus(Short status);
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 获取全部技术器(对外)
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @Query(value = "select c from CommonCount c where c.status=1 order by c.id")
|
|
|
+ List<CommonCount> findAllForCust();
|
|
|
}
|