You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1.3 KiB
34 lines
1.3 KiB
<?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.ccsens.tall.persist.dao.SysPluginDao">
|
|
<resultMap id="resultMap_PluginInfo" type="com.ccsens.tall.bean.vo.PluginVo$PluginInfo">
|
|
<id column="pId" property="id"/>
|
|
<result column="pName" property="name"/>
|
|
<result column="pDescription" property="description"/>
|
|
</resultMap>
|
|
|
|
<resultMap id="resultMap_PluginVo" type="com.ccsens.tall.bean.vo.TaskVo$PluginVo">
|
|
<id column="pId" property="id"/>
|
|
<result column="pName" property="name"/>
|
|
<result column="pRoleId" property="roleId"/>
|
|
</resultMap>
|
|
|
|
<select id="selectPluginAll" resultMap="resultMap_PluginInfo">
|
|
SELECT
|
|
*
|
|
FROM
|
|
`t_sys_plugin`
|
|
</select>
|
|
|
|
<select id="getPluginByTask" parameterType="java.util.Map" resultMap="resultMap_PluginVo">
|
|
SELECT
|
|
p.id as pId,
|
|
sp.name as pName,
|
|
p.member_role_Id as pRoleId
|
|
FROM
|
|
t_pro_task_detail t JOIN t_pro_task_plugin p on p.task_detail_id = t.id
|
|
JOIN t_sys_plugin sp ON sp.id = p.plugin_id
|
|
WHERE
|
|
t.id = #{taskId}
|
|
</select>
|
|
</mapper>
|