|
@@ -4,7 +4,6 @@ import com.uas.ps.entity.ProductUsers;
|
|
|
import org.springframework.data.jpa.repository.JpaRepository;
|
|
import org.springframework.data.jpa.repository.JpaRepository;
|
|
|
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
|
|
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
|
|
|
import org.springframework.data.jpa.repository.Query;
|
|
import org.springframework.data.jpa.repository.Query;
|
|
|
-import org.springframework.data.jpa.repository.query.Procedure;
|
|
|
|
|
import org.springframework.data.repository.query.Param;
|
|
import org.springframework.data.repository.query.Param;
|
|
|
import org.springframework.stereotype.Repository;
|
|
import org.springframework.stereotype.Repository;
|
|
|
|
|
|
|
@@ -59,12 +58,6 @@ public interface ProductUsersDao extends JpaSpecificationExecutor<ProductUsers>,
|
|
|
@Query("select p from ProductUsers p where p.enuu = :enuu and p.useruu = :useruu and p.product.title = :title and p.product.cmpCode = :spec and p.product.brand = :brand")
|
|
@Query("select p from ProductUsers p where p.enuu = :enuu and p.useruu = :useruu and p.product.title = :title and p.product.cmpCode = :spec and p.product.brand = :brand")
|
|
|
List<ProductUsers> findByEnuuAndUseruuAndTitleAndCmpCodeAndBrand(@Param("enuu") Long enuu, @Param("useruu") Long useruu, @Param("title") String title, @Param("spec") String spec, @Param("brand") String brand);
|
|
List<ProductUsers> findByEnuuAndUseruuAndTitleAndCmpCodeAndBrand(@Param("enuu") Long enuu, @Param("useruu") Long useruu, @Param("title") String title, @Param("spec") String spec, @Param("brand") String brand);
|
|
|
|
|
|
|
|
- /**
|
|
|
|
|
- * 通过物料id,enuu,useruu精确
|
|
|
|
|
- */
|
|
|
|
|
- @Procedure(procedureName = "prid_covertouser")
|
|
|
|
|
- void coverToUserByPrid(Long prid, Long enuu, Long useruu);
|
|
|
|
|
-
|
|
|
|
|
/**
|
|
/**
|
|
|
* 根据物料id查找个人物料库记录
|
|
* 根据物料id查找个人物料库记录
|
|
|
* @param id
|
|
* @param id
|