DefaultButtonMapper.xml
1.95 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.hotent.bpm.persistence.dao.BpmDefaultButtonDao">
<resultMap id="DefaultButton" type="com.hotent.bpm.api.model.process.nodedef.ext.extmodel.DefaultButton">
<id property="id" column="ID_" jdbcType="VARCHAR"/>
<result property="name" column="NAME_" jdbcType="VARCHAR"/>
<result property="alias" column="ALIAS_" jdbcType="VARCHAR"/>
<result property="beforeScript" column="BEFORESCRIPT_" jdbcType="VARCHAR"/>
<result property="afterScript" column="AFTERSCRIPT_" jdbcType="VARCHAR"/>
<result property="groovyscript" column="GROOVYSCRIPT_" jdbcType="VARCHAR"/>
<result property="completeEventGroovyScript" column="COMPLETEEVENTGROOVYSCRIPT_" jdbcType="VARCHAR"/>
<result property="rejectMode" column="REJECTMODE_" jdbcType="VARCHAR"/>
<result property="rejectNode" column="REJECTNODE_" jdbcType="VARCHAR"/>
<result property="isLock" column="ISLOCK_" jdbcType="NUMERIC"/>
<result property="supportScript" column="SUPPORTSCRIPT_" jdbcType="NUMERIC"/>
<result property="msgConfig" column="MSGCONFIG_" jdbcType="VARCHAR"/>
<result property="type" column="TYPE_" jdbcType="VARCHAR"/>
<result property="disabled" column="DISABLED_" jdbcType="NUMERIC"/>
</resultMap>
<select id="getByType" parameterType="java.lang.String" resultType="com.hotent.bpm.api.model.process.nodedef.ext.extmodel.DefaultButton">
SELECT * FROM bpm_flow_default_button where TYPE_ = #{type}
<if test="isInit">
and DISABLED_ = 0
</if>
ORDER BY ID_+0
</select>
<select id="getByType" databaseId="pg" parameterType="java.lang.String" resultType="com.hotent.bpm.api.model.process.nodedef.ext.extmodel.DefaultButton">
SELECT * FROM bpm_flow_default_button where TYPE_ = #{type}
<if test="isInit">
and DISABLED_ = '0'
</if>
order by cast(id_ as integer)
</select>
</mapper>