新版绩效考核方案

This commit is contained in:
2025-04-22 16:01:17 +08:00
parent 0da52d0a93
commit 607da4dfea
85 changed files with 3415 additions and 433 deletions
@@ -0,0 +1,45 @@
<?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.sa.zentao.mapper.BaseRoleAuthorityMapper">
<resultMap id="BaseResultMap" type="com.sa.zentao.entity.BaseRoleAuthority">
<result column="id" property="id" />
<result column="role_id" property="roleId" />
<result column="menu_id" property="menuId" />
<result column="create_time" property="createTime" />
<result column="update_time" property="updateTime" />
<result column="type" property="type"/>
</resultMap>
<delete id="deleteByRoleId">
DELETE from base_role_authority where role_id =#{roleId}
</delete>
<delete id="deleteRoleAndMenu">
delete from base_role_authority where 1=1
<if test="roleIds.size()>0">
and role_id in
<foreach collection="roleIds" item="item" index="index"
open="(" separator="," close=")">
#{item}
</foreach>
</if>
<if test="menuIds.size()>0">
and menu_id in
<foreach collection="menuIds" item="item" index="index"
open="(" separator="," close=")">
#{item}
</foreach>
</if>
</delete>
<select id="findMenuIdById" resultType="string">
select GROUP_CONCAT(bra.menu_id) from base_role_authority bra
<where>
bra.type = #{pickEnum.code}
<if test="roleId != null">
and bra.role_id = #{roleId}
</if>
</where>
</select>
</mapper>