|
|
@@ -6,6 +6,7 @@ import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
|
|
|
import org.springframework.data.jpa.repository.Modifying;
|
|
|
import org.springframework.data.jpa.repository.Query;
|
|
|
import org.springframework.data.jpa.repository.QueryHints;
|
|
|
+import org.springframework.data.jpa.repository.query.Procedure;
|
|
|
import org.springframework.data.repository.query.Param;
|
|
|
import org.springframework.stereotype.Repository;
|
|
|
|
|
|
@@ -137,4 +138,14 @@ public interface VendorDao extends JpaSpecificationExecutor<Vendor>, GenericRepo
|
|
|
*/
|
|
|
List<Vendor> findByMyEnUUAndErpstatus(Long myEnuu, Integer status);
|
|
|
|
|
|
+ /**
|
|
|
+ * 新增单据时判断客户是否存在以及自动分配客户关系
|
|
|
+ *
|
|
|
+ * @param myenuu
|
|
|
+ * @param myuseruu
|
|
|
+ * @param venduu
|
|
|
+ * @param useruu
|
|
|
+ */
|
|
|
+ @Procedure(procedureName = "INIT_VENDORANDDISTRIBUTE")
|
|
|
+ void initVendorAndDistribute(Long myenuu, Long myuseruu, Long enuu, Long useruu);
|
|
|
}
|