提交 bd486b0b 编写于 作者: ibizdev's avatar ibizdev

ibiz4j 发布系统代码

上级 dda7419b
...@@ -21,14 +21,19 @@ public interface WFProcessDefinitionMapper extends BaseMapper<WFProcessDefinitio ...@@ -21,14 +21,19 @@ public interface WFProcessDefinitionMapper extends BaseMapper<WFProcessDefinitio
Page<WFProcessDefinition> searchDefault(IPage page, @Param("srf") WFProcessDefinitionSearchContext context, @Param("ew") Wrapper<WFProcessDefinition> wrapper) ; Page<WFProcessDefinition> searchDefault(IPage page, @Param("srf") WFProcessDefinitionSearchContext context, @Param("ew") Wrapper<WFProcessDefinition> wrapper) ;
@Override @Override
@Cacheable( value="wfprocessdefinition",key = "'row:'+#p0")
WFProcessDefinition selectById(Serializable id); WFProcessDefinition selectById(Serializable id);
@Override @Override
@CacheEvict( value="wfprocessdefinition",key = "'row:'+#p0.definitionkey")
int insert(WFProcessDefinition entity); int insert(WFProcessDefinition entity);
@Override @Override
@CacheEvict( value="wfprocessdefinition",key = "'row:'+#p0.definitionkey")
int updateById(@Param(Constants.ENTITY) WFProcessDefinition entity); int updateById(@Param(Constants.ENTITY) WFProcessDefinition entity);
@Override @Override
@CacheEvict(value="wfprocessdefinition",key = "'row:'+#p0.definitionkey")
int update(@Param(Constants.ENTITY) WFProcessDefinition entity, @Param("ew") Wrapper<WFProcessDefinition> updateWrapper); int update(@Param(Constants.ENTITY) WFProcessDefinition entity, @Param("ew") Wrapper<WFProcessDefinition> updateWrapper);
@Override @Override
@CacheEvict( value="wfprocessdefinition",key = "'row:'+#p0")
int deleteById(Serializable id); int deleteById(Serializable id);
/** /**
* 自定义查询SQL * 自定义查询SQL
......
...@@ -26,15 +26,19 @@ import com.baomidou.mybatisplus.extension.service.IService; ...@@ -26,15 +26,19 @@ import com.baomidou.mybatisplus.extension.service.IService;
public interface IWFProcessDefinitionService extends IService<WFProcessDefinition>{ public interface IWFProcessDefinitionService extends IService<WFProcessDefinition>{
boolean create(WFProcessDefinition et) ; boolean create(WFProcessDefinition et) ;
@CacheEvict(value="wfprocessdefinition",allEntries=true)
void createBatch(List<WFProcessDefinition> list) ; void createBatch(List<WFProcessDefinition> list) ;
boolean update(WFProcessDefinition et) ; boolean update(WFProcessDefinition et) ;
@CacheEvict(value="wfprocessdefinition",allEntries=true)
void updateBatch(List<WFProcessDefinition> list) ; void updateBatch(List<WFProcessDefinition> list) ;
boolean remove(String key) ; boolean remove(String key) ;
@CacheEvict(value="wfprocessdefinition",allEntries=true)
void removeBatch(Collection<String> idList) ; void removeBatch(Collection<String> idList) ;
WFProcessDefinition get(String key) ; WFProcessDefinition get(String key) ;
WFProcessDefinition getDraft(WFProcessDefinition et) ; WFProcessDefinition getDraft(WFProcessDefinition et) ;
boolean checkKey(WFProcessDefinition et) ; boolean checkKey(WFProcessDefinition et) ;
boolean save(WFProcessDefinition et) ; boolean save(WFProcessDefinition et) ;
@CacheEvict(value="wfprocessdefinition",allEntries=true)
void saveBatch(List<WFProcessDefinition> list) ; void saveBatch(List<WFProcessDefinition> list) ;
Page<WFProcessDefinition> searchDefault(WFProcessDefinitionSearchContext context) ; Page<WFProcessDefinition> searchDefault(WFProcessDefinitionSearchContext context) ;
/** /**
......
<?xml version="1.1" encoding="UTF-8" standalone="no"?> !!!!模版产生代码错误:----
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.6.xsd"> Tip: If the failing expression is known to be legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??
----
----
<!--输出实体[WF_GROUP]数据结构 --> FTL stack trace ("~" means nesting-related):
<changeSet author="a_A_5d9d78509" id="tab-wf_group-26-1"> - Failed at: ${dbinst.getUserName()} [in template "CODETEMPL_zh_CN" at line 28, column 24]
<createTable tableName="IBZWFGROUP"> ----
<column name="GROUPID" remarks="" type="VARCHAR(100)"> \ No newline at end of file
<constraints primaryKey="true" primaryKeyName="PK_WF_GROUP_GROUPID"/>
</column>
<column name="GROUPNAME" remarks="" type="VARCHAR(100)">
</column>
<column name="GROUPSCOPE" remarks="" type="VARCHAR(100)">
</column>
</createTable>
</changeSet>
<!--输出实体[WF_GROUP_MEMBER]数据结构 -->
<changeSet author="a_A_5d9d78509" id="tab-wf_group_member-50-2">
<createTable tableName="IBZWFMEMBER">
<column name="MEMBERID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_WF_GROUP_MEMBER_MEMBERID"/>
</column>
<column name="MEMBERNAME" remarks="" type="VARCHAR(100)">
</column>
<column name="GROUPID" remarks="" type="VARCHAR(100)">
</column>
<column name="USERID" remarks="" type="VARCHAR(100)">
</column>
</createTable>
</changeSet>
<!--输出实体[WF_DEFINITION]数据结构 -->
<changeSet author="a_A_5d9d78509" id="tab-wf_definition-60-3">
<createTable tableName="IBZWFDEFINITION">
<column name="DEFINITIONKEY" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_WF_DEFINITION_DEFINITIONKEY"/>
</column>
<column name="DEFINITIONNAME" remarks="" type="VARCHAR(100)">
</column>
<column name="MODELVERSION" remarks="" type="INT">
</column>
<column name="MODELENABLE" remarks="" type="INT">
</column>
<column name="PSSYSTEMID" remarks="" type="VARCHAR(100)">
</column>
<column name="MD5CHECK" remarks="" type="VARCHAR(100)">
</column>
<column name="BPMNFILE" remarks="" type="VARCHAR(1000)">
</column>
<column name="DEPLOYKEY" remarks="" type="VARCHAR(100)">
</column>
<column name="WEBSERVICEIDS" remarks="" type="VARCHAR(200)">
</column>
<column name="MOBILESERVICEIDS" remarks="" type="VARCHAR(200)">
</column>
</createTable>
</changeSet>
<!--输出实体[WF_PSSYSTEM]数据结构 -->
<!--输出实体[WF_GROUP]外键关系 -->
<!--输出实体[WF_GROUP_MEMBER]外键关系 -->
<changeSet author="a_A_5d9d78509" id="fk-wf_group_member-50-5">
<addForeignKeyConstraint baseColumnNames="GROUPID" baseTableName="IBZWFMEMBER" constraintName="DER1N_WF_GROUP_MEMBER_WF_GROUP" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="GROUPID" referencedTableName="IBZWFGROUP" validate="true"/>
</changeSet>
<!--输出实体[WF_DEFINITION]外键关系 -->
<!--输出实体[WF_PSSYSTEM]外键关系 -->
</databaseChangeLog>
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<![CDATA[select t1.* from (SELECT t1.`BPMNFILE`, t1.`DEFINITIONKEY`, t1.`DEFINITIONNAME`, t1.`DEPLOYKEY`, t1.`MD5CHECK`, t1.`MOBILESERVICEIDS`, t1.`MODELENABLE`, t1.`MODELVERSION`, t1.`PSSYSTEMID`, t1.`WEBSERVICEIDS` FROM `IBZWFDEFINITION` t1 ) t1 where definitionkey=#{id}]]> <![CDATA[select t1.* from (SELECT t1.`BPMNFILE`, t1.`DEFINITIONKEY`, t1.`DEFINITIONNAME`, t1.`DEPLOYKEY`, t1.`MD5CHECK`, t1.`MOBILESERVICEIDS`, t1.`MODELENABLE`, t1.`MODELVERSION`, t1.`PSSYSTEMID`, t1.`WEBSERVICEIDS` FROM `IBZWFDEFINITION` t1 ) t1 where definitionkey=#{id}]]>
</select> </select>
<select id="selectById" resultMap="WFProcessDefinitionResultMap" databaseId="oracle"> <select id="selectById" resultMap="WFProcessDefinitionResultMap" databaseId="oracle">
<![CDATA[select t1.* from (SELECT t1.BPMNFILE, t1.DEFINITIONKEY, t1.DEFINITIONNAME, t1.DEPLOYKEY, t1.MD5CHECK, t1.MODELENABLE, t1.MODELVERSION, t1.PSSYSTEMID FROM IBZWFDEFINITION t1 ) t1 where definitionkey=#{id}]]> <![CDATA[select t1.* from (SELECT t1.BPMNFILE, t1.DEFINITIONKEY, t1.DEFINITIONNAME, t1.DEPLOYKEY, t1.MD5CHECK, t1.MOBILESERVICEIDS, t1.MODELENABLE, t1.MODELVERSION, t1.PSSYSTEMID, t1.WEBSERVICEIDS FROM IBZWFDEFINITION t1 ) t1 where definitionkey=#{id}]]>
</select> </select>
<select id="selectById" resultMap="WFProcessDefinitionResultMap" databaseId="postgresql"> <select id="selectById" resultMap="WFProcessDefinitionResultMap" databaseId="postgresql">
<![CDATA[select t1.* from (SELECT t1.BPMNFILE, t1.DEFINITIONKEY, t1.DEFINITIONNAME, t1.DEPLOYKEY, t1.MD5CHECK, t1.MODELENABLE, t1.MODELVERSION, t1.PSSYSTEMID, t1.TASKDEFINITIONKEY FROM IBZWFDEFINITION t1 ) t1 where definitionkey=#{id}]]> <![CDATA[select t1.* from (SELECT t1.BPMNFILE, t1.DEFINITIONKEY, t1.DEFINITIONNAME, t1.DEPLOYKEY, t1.MD5CHECK, t1.MODELENABLE, t1.MODELVERSION, t1.PSSYSTEMID, t1.TASKDEFINITIONKEY FROM IBZWFDEFINITION t1 ) t1 where definitionkey=#{id}]]>
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
</sql> </sql>
<!--数据查询[Default]--> <!--数据查询[Default]-->
<sql id="Default" databaseId="oracle"> <sql id="Default" databaseId="oracle">
<![CDATA[ SELECT t1.BPMNFILE, t1.DEFINITIONKEY, t1.DEFINITIONNAME, t1.DEPLOYKEY, t1.MD5CHECK, t1.MODELENABLE, t1.MODELVERSION, t1.PSSYSTEMID FROM IBZWFDEFINITION t1 <![CDATA[ SELECT t1.BPMNFILE, t1.DEFINITIONKEY, t1.DEFINITIONNAME, t1.DEPLOYKEY, t1.MD5CHECK, t1.MOBILESERVICEIDS, t1.MODELENABLE, t1.MODELVERSION, t1.PSSYSTEMID, t1.WEBSERVICEIDS FROM IBZWFDEFINITION t1
]]> ]]>
</sql> </sql>
<!--数据查询[Default]--> <!--数据查询[Default]-->
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
</sql> </sql>
<!--数据查询[View]--> <!--数据查询[View]-->
<sql id="View" databaseId="oracle"> <sql id="View" databaseId="oracle">
<![CDATA[ SELECT t1.BPMNFILE, t1.DEFINITIONKEY, t1.DEFINITIONNAME, t1.DEPLOYKEY, t1.MD5CHECK, t1.MODELENABLE, t1.MODELVERSION, t1.PSSYSTEMID FROM IBZWFDEFINITION t1 <![CDATA[ SELECT t1.BPMNFILE, t1.DEFINITIONKEY, t1.DEFINITIONNAME, t1.DEPLOYKEY, t1.MD5CHECK, t1.MOBILESERVICEIDS, t1.MODELENABLE, t1.MODELVERSION, t1.PSSYSTEMID, t1.WEBSERVICEIDS FROM IBZWFDEFINITION t1
]]> ]]>
</sql> </sql>
<!--数据查询[View]--> <!--数据查询[View]-->
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册