|
|
@@ -4,6 +4,7 @@ import com.uas.platform.b2c.common.account.model.Enterprise;
|
|
|
import org.springframework.data.jpa.repository.JpaRepository;
|
|
|
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
|
|
|
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.stereotype.Repository;
|
|
|
|
|
|
@@ -19,4 +20,12 @@ public interface EnterpriseDao extends JpaSpecificationExecutor<Enterprise>, Jpa
|
|
|
|
|
|
@Query(value="select e.uu from Enterprise e where e.enName like %?1%")
|
|
|
public List<Long> findEnuuByName(String name);
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 企业资料初始化
|
|
|
+ *
|
|
|
+ * @param enUU
|
|
|
+ */
|
|
|
+ @Procedure(procedureName = "init_en_b2c")
|
|
|
+ public void callInitProcedure(Long enUU);
|
|
|
}
|