|
|
@@ -8,7 +8,6 @@ import org.springframework.data.jpa.repository.Query;
|
|
|
import org.springframework.data.repository.query.Param;
|
|
|
import org.springframework.stereotype.Repository;
|
|
|
|
|
|
-import java.util.Date;
|
|
|
import java.util.List;
|
|
|
|
|
|
/**
|
|
|
@@ -147,7 +146,8 @@ public interface ProductDao extends JpaSpecificationExecutor<Product>, JpaReposi
|
|
|
* @param uuid 器件的uuid
|
|
|
* @return List<Product>
|
|
|
*/
|
|
|
- List<Product> findByCmpUuId(String uuid);
|
|
|
+ @Query(value = "select p from Product where p.cmpUuId = :uuid")
|
|
|
+ List<Product> findByCmpUuId(@Param("uuid") String uuid);
|
|
|
|
|
|
/**
|
|
|
* 通过企业uu,标准器件uuid,来源获取物料信息
|