脚本引擎移植到动态表单
parent
4f6f6878fe
commit
15e0f1c3f5
@ -0,0 +1,9 @@
|
|||||||
|
package cn.estsh.i3plus.pojo.form.repository;
|
||||||
|
|
||||||
|
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||||
|
import cn.estsh.i3plus.pojo.form.bean.EngineScriptPersistenceHistory;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
|
@Repository
|
||||||
|
public interface EngineScriptPersistenceHistoryRepository extends BaseRepository<EngineScriptPersistenceHistory, Long> {
|
||||||
|
}
|
@ -0,0 +1,23 @@
|
|||||||
|
package cn.estsh.i3plus.pojo.form.repository;
|
||||||
|
|
||||||
|
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||||
|
import cn.estsh.i3plus.pojo.form.bean.EngineRulePersistence;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description : 规则引擎持久化类
|
||||||
|
* @Reference :
|
||||||
|
* @Author : Rock.Yu
|
||||||
|
* @CreateDate : 2019-04-16 09:53
|
||||||
|
* @Modify:
|
||||||
|
**/
|
||||||
|
@Repository
|
||||||
|
public interface IEngineRulePersistenceRepository extends BaseRepository<EngineRulePersistence, Long> {
|
||||||
|
/**
|
||||||
|
* 按照规则编号查询规则实体
|
||||||
|
* @param organizeCode 工厂代码
|
||||||
|
* @param ruleNo 规则编号
|
||||||
|
* @return 规则实体
|
||||||
|
*/
|
||||||
|
EngineRulePersistence findByOrganizeCodeAndRuleNo(String organizeCode, String ruleNo);
|
||||||
|
}
|
@ -0,0 +1,40 @@
|
|||||||
|
package cn.estsh.i3plus.pojo.form.repository;
|
||||||
|
|
||||||
|
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||||
|
import cn.estsh.i3plus.pojo.form.bean.EngineScriptPersistence;
|
||||||
|
import org.springframework.data.jpa.repository.Query;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description : 脚本引擎持久化类
|
||||||
|
* @Reference :
|
||||||
|
* @Author : Rock.Yu
|
||||||
|
* @CreateDate : 2019-04-16 09:53
|
||||||
|
* @Modify:
|
||||||
|
**/
|
||||||
|
@Repository
|
||||||
|
public interface IEngineScriptPersistenceRepository extends BaseRepository<EngineScriptPersistence, Long> {
|
||||||
|
/**
|
||||||
|
* 按照工厂代码和脚本编号查询脚本实体对象
|
||||||
|
* @param organizeCode 工厂代码
|
||||||
|
* @param scriptNo 脚本编号
|
||||||
|
* @return 脚本实体对象
|
||||||
|
*/
|
||||||
|
EngineScriptPersistence findByOrganizeCodeAndScriptNo(String organizeCode, String scriptNo);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 按照脚本编号查询脚本实体对象
|
||||||
|
* @param scriptNo 脚本编号
|
||||||
|
* @return 脚本实体对象
|
||||||
|
*/
|
||||||
|
EngineScriptPersistence findByScriptNo(String scriptNo);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查找所有的脚本语言类型
|
||||||
|
* @return 数据库中已经存在的脚本语言类型
|
||||||
|
*/
|
||||||
|
@Query("select t.languageType from EngineScriptPersistence t group by t.organizeCode, t.languageType")
|
||||||
|
List findGroupByLanguageType();
|
||||||
|
}
|
Loading…
Reference in New Issue