| 文件名从 inspect-server/src/main/resources/mapper/StaffCompetencyInspectItemConfigMapper.xml 修改 |
| | |
| | | <!DOCTYPE mapper |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.inspect.mapper.StaffCompetencyInspectItemConfigMapper"> |
| | | <mapper namespace="com.ruoyi.performance.mapper.StaffCompetencyInspectItemConfigMapper"> |
| | | |
| | | <resultMap id="BaseResultMap" type="com.ruoyi.inspect.pojo.StaffCompetencyInspectItemConfig"> |
| | | <resultMap id="BaseResultMap" type="com.ruoyi.performance.pojo.StaffCompetencyInspectItemConfig"> |
| | | <id property="id" column="id" jdbcType="BIGINT"/> |
| | | <result property="parentId" column="parent_id" jdbcType="BIGINT"/> |
| | | <result property="ancestors" column="ancestors" jdbcType="VARCHAR"/> |
| | |
| | | #{item.id} |
| | | </foreach> |
| | | </update> |
| | | <select id="selectConfigList" resultType="com.ruoyi.inspect.pojo.StaffCompetencyInspectItemConfig"> |
| | | <select id="selectConfigList" resultType="com.ruoyi.performance.pojo.StaffCompetencyInspectItemConfig"> |
| | | <include refid="selectConfigVo"/> |
| | | where 1 = 1 |
| | | <if test="config.id != null and config.id != 0"> |
| | |
| | | </if> |
| | | order by sort |
| | | </select> |
| | | <select id="selectConfigById" resultType="com.ruoyi.inspect.vo.StaffCompetencyInspectItemConfigVO"> |
| | | <select id="selectConfigById" resultType="com.ruoyi.performance.vo.StaffCompetencyInspectItemConfigVO"> |
| | | select <include refid="Base_Column_List"/>, |
| | | (select item_name from staff_competency_inspect_item_config where id = parent_id) parent_name |
| | | from staff_competency_inspect_item_config |
| | | where id = #{configId} |
| | | </select> |
| | | <select id="checkDeptNameUnique" resultType="com.ruoyi.inspect.pojo.StaffCompetencyInspectItemConfig"> |
| | | <select id="checkDeptNameUnique" resultType="com.ruoyi.performance.pojo.StaffCompetencyInspectItemConfig"> |
| | | <include refid="selectConfigVo"/> |
| | | where item_name=#{itemName} |
| | | <choose> |
| | |
| | | </choose> |
| | | limit 1 |
| | | </select> |
| | | <select id="selectChildrenConfigById" resultType="com.ruoyi.inspect.pojo.StaffCompetencyInspectItemConfig"> |
| | | <select id="selectChildrenConfigById" resultType="com.ruoyi.performance.pojo.StaffCompetencyInspectItemConfig"> |
| | | select * from staff_competency_inspect_item_config where find_in_set(#{configId}, ancestors) |
| | | </select> |
| | | <select id="hasChildByConfigId" resultType="java.lang.Integer"> |
| | |
| | | <select id="selectNormalChildrenConfigById" resultType="java.lang.Integer"> |
| | | select count(*) from staff_competency_inspect_item_config where is_enable = 1 and find_in_set(#{configId}, ancestors) |
| | | </select> |
| | | <select id="selectConfigHeader" resultType="com.ruoyi.inspect.vo.StaffConfigHeaderVO"> |
| | | <select id="selectConfigHeader" resultType="com.ruoyi.performance.vo.StaffConfigHeaderVO"> |
| | | select |
| | | c2.item_name AS item_name, |
| | | c1.item_name AS children_item_name, |