新版绩效考核方案

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

View File

@ -0,0 +1,49 @@
<?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.BaseMenuMapper">
<resultMap id="BaseResultMap" type="com.sa.zentao.entity.BaseMenu">
<result column="id" property="id"/>
<result column="parent_id" property="parentId"/>
<result column="name" property="name"/>
<result column="action" property="action"/>
<result column="sort" property="sort"/>
<result column="is_sys" property="isSys"/>
<result column="icon" property="icon"/>
<result column="create_time" property="createTime"/>
<result column="update_time" property="updateTime"/>
<result column="level" property="level"/>
</resultMap>
<select id="findAll" resultType="com.sa.zentao.entity.BaseMenu">
select * from base_menu
</select>
<delete id="deleteWithChild">
delete from base_menu where id=#{id} or parent_id=#{id}
</delete>
<select id="findMenuIds" resultType="Integer">
select id from base_menu where id=#{id} or parent_id=#{id}
</select>
<select id="selectMenuByParentId" resultMap="BaseResultMap">
select * from base_menu
<where>
<if test="parentId != null">
and parent_id = #{parentId}
</if>
<if test="parentId == null">
and parent_id is null
</if>
</where>
</select>
<select id="queryListByLoginUser" resultMap="BaseResultMap">
SELECT m.* from base_menu m,base_role_authority ra,base_role r,base_user_role ur
WHERE m.id=ra.menu_id and ra.role_id=r.id and r.id=ur.role_id
and ur.user_id=#{riskUserId}
</select>
<select id="queryAllList" resultMap="BaseResultMap">
SELECT m.* from base_menu m
</select>
</mapper>

View File

@ -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>

View File

@ -0,0 +1,26 @@
<?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.BaseRoleMapper">
<resultMap id="BaseResultMap" type="com.sa.zentao.entity.BaseRole">
<result column="id" property="id" />
<result column="name" property="name" />
<result column="role_type" property="roleType" />
<result column="create_time" property="createTime" />
<result column="update_time" property="updateTime" />
<result column="remark" property="remark" />
<result column="delete_flag" property="deleteFlag" />
<result column="create_user" property="createUser" />
<result column="update_user" property="updateUser" />
</resultMap>
<select id="selectRoleByVo" resultType="com.sa.zentao.dao.BaseRoleDTO">
select * from base_role
<where>
<if test="vo.name != null and vo.name != ''">
and name like '%${vo.name}%'
</if>
</where>
</select>
<select id="findRoleById" resultType="com.sa.zentao.dao.BaseRoleDTO">
select * from base_role where id = #{id}
</select>
</mapper>

View File

@ -0,0 +1,12 @@
<?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.BaseUserRoleMapper">
<resultMap id="BaseResultMap" type="com.sa.zentao.entity.BaseUserRole">
<result column="id" property="id" />
<result column="role_id" property="roleId" />
<result column="user_id" property="userId" />
<result column="create_time" property="createTime" />
<result column="update_time" property="updateTime" />
</resultMap>
</mapper>

View File

@ -17,8 +17,8 @@
<select id="pageList" resultType="com.sa.zentao.dao.ZtMeetingDTO">
SELECT m.*,us.title userStoryName from zt_meeting m left join zt_product p on p.id = m.product_id
left join zt_story_user us on m.user_story = us.id
SELECT m.* from zt_meeting m left join zt_product p on p.id = m.product_id
WHERE 1=1
<if test="qo.productId != null ">

View File

@ -24,7 +24,17 @@
and s.spec like concat('%', #{qo.spec}, '%')
</if>
<if test="qo.status != null and qo.status != ''">
and s.status = #{qo.status}
<choose>
<when test="qo.status == 'noVerified'">
AND ys_flag=2
</when>
<when test="qo.status == 'wait'">
AND and s.status = #{qo.status} and ys_flag in (null,0)
</when>
<otherwise>
and s.status = #{qo.status}
</otherwise>
</choose>
</if>
<if test="qo.openedby != null and qo.openedby != ''">
and s.opened_by = #{qo.openedby}

View File

@ -0,0 +1,13 @@
<?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.ZtStoryUserspecMapper">
<resultMap id="BaseResultMap" type="com.sa.zentao.entity.ZtStoryUserspec">
<result column="story" property="story" />
<result column="version" property="version" />
<result column="title" property="title" />
<result column="spec" property="spec" />
<result column="verify" property="verify" />
<result column="files" property="files" />
</resultMap>
</mapper>