日照智慧社区接口服务
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.
 
 
 
 
 

31 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.FuncInfoDao">
<!-- 插入授权列表信息 -->
<insert id="insertFuncInfo" parameterType="com.epmet.dto.form.FuncInfoFormDTO">
<foreach collection="funcInfoList" item="func" separator=",">
INSERT INTO func_info ( ID, FUNCSCOPE_CATEGORY, FUNCSCOPE_ID, CUSTOMER_ID, AUTHORIZATION_INFO_APPID, DEL_FLAG, CREATED_BY, CREATED_TIME, UPDATED_BY, UPDATED_TIME )
VALUES
(
REPLACE ( UUID(), '-', '' ),
#{func.funcscopeCategory},
#{func.funcscopeId},
#{func.customerId}
#{func.authorizationInfoAppid},
#{func.delFlag},
#{func.createdBy},
NOW(),
#{func.updatedBy},
NOW()
)
</foreach>
</insert>
<!-- 逻辑删除 权限列表 -->
<update id="updateOldFuncInfo">
update func_info set del_flag = 0 where customer_id = #{customerId} AND authorization_info_appid = #{authAppId}
</update>
</mapper>