forked from rongchao/epmet-cloud-rizhao
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.
39 lines
1.2 KiB
39 lines
1.2 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.epmet.dao.CustomerFunctionRoleDao">
|
|
|
|
<select id="selectCustomerFunctionRoleList" resultType="com.epmet.dto.result.CustomerFunctionRoleListResultDTO">
|
|
SELECT
|
|
role_key AS "roleKey",
|
|
role_name AS "roleName"
|
|
FROM
|
|
customer_function_role
|
|
WHERE
|
|
del_flag = '0'
|
|
AND customer_id = #{customerId}
|
|
AND function_id = #{functionId}
|
|
</select>
|
|
|
|
<select id="selectFunctionList" resultType="java.lang.String">
|
|
SELECT
|
|
DISTINCT
|
|
FUNCTION_ID
|
|
FROM customer_function_role
|
|
WHERE del_flag = '0'
|
|
AND customer_id = #{customerId}
|
|
AND from_app = #{clientType}
|
|
<foreach collection="roleKeyList" item="roleKey" index="index" open="AND ( " separator=" OR " close=")">
|
|
role_key = #{roleKey}
|
|
</foreach>
|
|
|
|
</select>
|
|
|
|
<delete id="delByCustomerId">
|
|
DELETE
|
|
FROM customer_function_role
|
|
WHERE customer_id = #{customerId}
|
|
AND function_id = #{functionId}
|
|
</delete>
|
|
|
|
</mapper>
|