|
|
@ -6,46 +6,92 @@ |
|
|
|
from sys_pro_url |
|
|
|
</select> |
|
|
|
<select id="getSysProUrlVoTotal" resultType="int"> |
|
|
|
select count(*) as total from sys_pro_url |
|
|
|
select count(*) as total |
|
|
|
from sys_pro_url |
|
|
|
</select> |
|
|
|
<insert id="insertSysProUrl" parameterType="com.yxt.anrui.flowable.api.sysprourl.SysProUrl" useGeneratedKeys="true" keyProperty="sid"> |
|
|
|
<insert id="insertSysProUrl" parameterType="com.yxt.anrui.flowable.api.sysprourl.SysProUrl" useGeneratedKeys="true" |
|
|
|
keyProperty="sid"> |
|
|
|
insert into sys_pro_url |
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=","> |
|
|
|
<if test="url != null">url,</if> |
|
|
|
<if test="type != null">type,</if> |
|
|
|
<if test="terminal != null">terminal,</if> |
|
|
|
<if test="formId != null">formId,</if> |
|
|
|
<if test="title != null">title</if> |
|
|
|
<if test="url != null"> |
|
|
|
url, |
|
|
|
</if> |
|
|
|
<if test="type != null"> |
|
|
|
type, |
|
|
|
</if> |
|
|
|
<if test="terminal != null"> |
|
|
|
terminal, |
|
|
|
</if> |
|
|
|
<if test="formId != null"> |
|
|
|
formId, |
|
|
|
</if> |
|
|
|
<if test="title != null"> |
|
|
|
title |
|
|
|
</if> |
|
|
|
</trim> |
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
|
<if test="url != null">#{url},</if> |
|
|
|
<if test="type != null">#{type},</if> |
|
|
|
<if test="terminal != null">#{terminal},</if> |
|
|
|
<if test="formId != null">#{formId},</if> |
|
|
|
<if test="title != null">#{title},</if> |
|
|
|
<if test="url != null"> |
|
|
|
#{url}, |
|
|
|
</if> |
|
|
|
<if test="type != null"> |
|
|
|
#{type}, |
|
|
|
</if> |
|
|
|
<if test="terminal != null"> |
|
|
|
#{terminal}, |
|
|
|
</if> |
|
|
|
<if test="formId != null"> |
|
|
|
#{formId}, |
|
|
|
</if> |
|
|
|
<if test="title != null"> |
|
|
|
#{title}, |
|
|
|
</if> |
|
|
|
</trim> |
|
|
|
</insert> |
|
|
|
<delete id="deleteSysProUrlByIds" parameterType="String"> |
|
|
|
delete from sys_pro_url where sid in |
|
|
|
delete |
|
|
|
from sys_pro_url where sid in |
|
|
|
<foreach item="formId" collection="array" open="(" separator="," close=")"> |
|
|
|
#{sid} |
|
|
|
</foreach> |
|
|
|
</delete> |
|
|
|
<select id="selectSysProUrlById" parameterType="Integer" resultType="com.yxt.anrui.flowable.api.sysprourl.SysProUrl"> |
|
|
|
select id as id, url as url, type as type, terminal as terminal, formId as formId, title as title from sys_pro_url |
|
|
|
<select id="selectSysProUrlById" parameterType="Integer" |
|
|
|
resultType="com.yxt.anrui.flowable.api.sysprourl.SysProUrl"> |
|
|
|
select id as id, url as url, type as type, terminal as terminal, formId as formId, title as title |
|
|
|
from sys_pro_url |
|
|
|
where formId = #{formId} |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="selectListByProcDefId" resultType="com.yxt.anrui.flowable.api.sysprourl.SysProUrlVo"> |
|
|
|
SELECT url, type, terminal,formId,title,proc_def_id, taskDefKey,modulePluginName |
|
|
|
SELECT url, |
|
|
|
type, |
|
|
|
terminal, |
|
|
|
formId, |
|
|
|
title, |
|
|
|
proc_def_id, |
|
|
|
taskDefKey, |
|
|
|
modulePluginName |
|
|
|
FROM sys_pro_url |
|
|
|
WHERE proc_def_id=#{proc_def_id} AND (taskDefKey=#{taskDefKey} OR taskDefKey IS NULL OR taskDefKey = '') |
|
|
|
ORDER BY terminal DESC,id ASC |
|
|
|
WHERE proc_def_id = #{proc_def_id} |
|
|
|
AND (taskDefKey = #{taskDefKey} OR taskDefKey IS NULL OR taskDefKey = '') |
|
|
|
ORDER BY terminal DESC, id ASC |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="selectUniByTaskDefKey" parameterType="com.yxt.anrui.flowable.api.sysprourl.SysProUrlQuery" resultType="com.yxt.anrui.flowable.api.sysprourl.SysProUrlVo"> |
|
|
|
SELECT url,modulePluginName |
|
|
|
<select id="selectUniByTaskDefKey" parameterType="com.yxt.anrui.flowable.api.sysprourl.SysProUrlQuery" |
|
|
|
resultType="com.yxt.anrui.flowable.api.sysprourl.SysProUrlVo"> |
|
|
|
SELECT url, modulePluginName |
|
|
|
FROM sys_pro_url |
|
|
|
WHERE proc_def_id=#{proc_def_id} AND type=#{type} AND terminal=#{terminal} AND taskDefKey=#{taskDefKey} |
|
|
|
WHERE proc_def_id = #{proc_def_id} |
|
|
|
AND type = #{type} |
|
|
|
AND terminal = #{terminal} |
|
|
|
AND taskDefKey = #{taskDefKey} |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="selectUrlByKey" resultType="java.lang.String"> |
|
|
|
select url |
|
|
|
from sys_pro_url |
|
|
|
where proc_def_id = #{procDefId} |
|
|
|
and type = #{type} |
|
|
|
and taskDefKey = #{taskDefKey} |
|
|
|
and terminal = 1 |
|
|
|
</select> |
|
|
|
</mapper> |