删除注释的不再使用代码
This commit is contained in:
parent
5285591fc5
commit
107c67f10e
@ -4,7 +4,6 @@ import java.util.List;
|
||||
|
||||
import com.mybatisflex.core.BaseMapper;
|
||||
import com.ruoyi.system.domain.SysDept;
|
||||
import com.ruoyi.system.domain.vo.SysDeptVo;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
@ -16,14 +15,6 @@ import org.apache.ibatis.annotations.Param;
|
||||
@Mapper
|
||||
public interface SysDeptMapper extends BaseMapper<SysDept>
|
||||
{
|
||||
// /**
|
||||
// * 查询部门管理数据
|
||||
// *
|
||||
// * @param dept 部门信息
|
||||
// * @return 部门信息集合
|
||||
// */
|
||||
// List<SysDept> selectDeptList(SysDept dept);
|
||||
|
||||
/**
|
||||
* 根据角色ID查询部门树信息
|
||||
*
|
||||
@ -33,91 +24,4 @@ public interface SysDeptMapper extends BaseMapper<SysDept>
|
||||
*/
|
||||
List<Long> selectDeptListByRoleId(@Param("roleId") Long roleId, @Param("deptCheckStrictly") boolean deptCheckStrictly);
|
||||
|
||||
// /**
|
||||
// * 根据部门ID查询信息
|
||||
// *
|
||||
// * @param deptId 部门ID
|
||||
// * @return 部门信息
|
||||
// */
|
||||
// SysDeptVo selectDeptById(Long deptId);
|
||||
|
||||
// /**
|
||||
// * 根据ID查询所有子部门
|
||||
// *
|
||||
// * @param deptId 部门ID
|
||||
// * @return 部门列表
|
||||
// */
|
||||
// List<SysDept> selectChildrenDeptById(Long deptId);
|
||||
|
||||
// /**
|
||||
// * 根据ID查询所有子部门(正常状态)
|
||||
// *
|
||||
// * @param deptId 部门ID
|
||||
// * @return 子部门数
|
||||
// */
|
||||
// int selectNormalChildrenDeptById(Long deptId);
|
||||
|
||||
// /**
|
||||
// * 是否存在子节点
|
||||
// *
|
||||
// * @param deptId 部门ID
|
||||
// * @return 结果
|
||||
// */
|
||||
// int hasChildByDeptId(Long deptId);
|
||||
|
||||
// /**
|
||||
// * 查询部门是否存在用户
|
||||
// *
|
||||
// * @param deptId 部门ID
|
||||
// * @return 结果
|
||||
// */
|
||||
// int checkDeptExistUser(Long deptId);
|
||||
|
||||
// /**
|
||||
// * 校验部门名称是否唯一
|
||||
// *
|
||||
// * @param deptName 部门名称
|
||||
// * @param parentId 父部门ID
|
||||
// * @return 结果
|
||||
// */
|
||||
// SysDept checkDeptNameUnique(@Param("deptName") String deptName, @Param("parentId") Long parentId);
|
||||
//
|
||||
// /**
|
||||
// * 新增部门信息
|
||||
// *
|
||||
// * @param dept 部门信息
|
||||
// * @return 结果
|
||||
// */
|
||||
// int insertDept(SysDept dept);
|
||||
|
||||
// /**
|
||||
// * 修改部门信息
|
||||
// *
|
||||
// * @param dept 部门信息
|
||||
// * @return 结果
|
||||
// */
|
||||
// int updateDept(SysDept dept);
|
||||
|
||||
// /**
|
||||
// * 修改所在部门正常状态
|
||||
// *
|
||||
// * @param deptIds 部门ID组
|
||||
// */
|
||||
// void updateDeptStatusNormal(Long[] deptIds);
|
||||
|
||||
// /**
|
||||
// * 修改子元素关系
|
||||
// *
|
||||
// * @param depts 子元素
|
||||
// * @return 结果
|
||||
// */
|
||||
// int updateDeptChildren(@Param("depts") List<SysDept> depts);
|
||||
|
||||
// /**
|
||||
// * 删除部门管理信息
|
||||
// *
|
||||
// * @param deptId 部门ID
|
||||
// * @return 结果
|
||||
// */
|
||||
// int deleteDeptById(Long deptId);
|
||||
}
|
||||
|
@ -27,26 +27,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
from sys_dept d
|
||||
</sql>
|
||||
|
||||
<!-- <select id="selectDeptList" parameterType="SysDept" resultMap="SysDeptResult">-->
|
||||
<!-- <include refid="selectDeptVo"/>-->
|
||||
<!-- where d.del_flag = '0'-->
|
||||
<!-- <if test="deptId != null and deptId != 0">-->
|
||||
<!-- AND dept_id = #{deptId}-->
|
||||
<!-- </if>-->
|
||||
<!-- <if test="parentId != null and parentId != 0">-->
|
||||
<!-- AND parent_id = #{parentId}-->
|
||||
<!-- </if>-->
|
||||
<!-- <if test="deptName != null and deptName != ''">-->
|
||||
<!-- AND dept_name like concat('%', #{deptName}, '%')-->
|
||||
<!-- </if>-->
|
||||
<!-- <if test="status != null and status != ''">-->
|
||||
<!-- AND status = #{status}-->
|
||||
<!-- </if>-->
|
||||
<!-- <!– 数据范围过滤 –>-->
|
||||
<!-- ${params.dataScope}-->
|
||||
<!-- order by d.parent_id, d.order_num-->
|
||||
<!-- </select>-->
|
||||
|
||||
<select id="selectDeptListByRoleId" resultType="Long">
|
||||
select d.dept_id
|
||||
from sys_dept d
|
||||
@ -58,102 +38,4 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
order by d.parent_id, d.order_num
|
||||
</select>
|
||||
|
||||
<!-- <select id="selectDeptById" parameterType="Long" resultMap="SysDeptResult">-->
|
||||
<!-- select d.dept_id, d.parent_id, d.ancestors, d.dept_name, d.order_num, d.leader, d.phone, d.email, d.status,-->
|
||||
<!-- (select dept_name from sys_dept where dept_id = d.parent_id) parent_name-->
|
||||
<!-- from sys_dept d-->
|
||||
<!-- where d.dept_id = #{deptId}-->
|
||||
<!-- </select>-->
|
||||
|
||||
<!-- <select id="checkDeptExistUser" parameterType="Long" resultType="int">-->
|
||||
<!-- select count(1) from sys_user where dept_id = #{deptId} and del_flag = '0'-->
|
||||
<!-- </select>-->
|
||||
|
||||
<!-- <select id="hasChildByDeptId" parameterType="Long" resultType="int">-->
|
||||
<!-- select count(1) from sys_dept-->
|
||||
<!-- where del_flag = '0' and parent_id = #{deptId} limit 1-->
|
||||
<!-- </select>-->
|
||||
|
||||
<!-- <select id="selectChildrenDeptById" parameterType="Long" resultMap="SysDeptResult">-->
|
||||
<!-- select * from sys_dept where find_in_set(#{deptId}, ancestors)-->
|
||||
<!-- </select>-->
|
||||
|
||||
<!-- <select id="selectNormalChildrenDeptById" parameterType="Long" resultType="int">-->
|
||||
<!-- select count(*) from sys_dept where status = 0 and del_flag = '0' and find_in_set(#{deptId}, ancestors)-->
|
||||
<!-- </select>-->
|
||||
|
||||
<!-- <select id="checkDeptNameUnique" resultMap="SysDeptResult">-->
|
||||
<!-- <include refid="selectDeptVo"/>-->
|
||||
<!-- where dept_name=#{deptName} and parent_id = #{parentId} and del_flag = '0' limit 1-->
|
||||
<!-- </select>-->
|
||||
|
||||
<!-- <insert id="insertDept" parameterType="SysDept">-->
|
||||
<!-- insert into sys_dept(-->
|
||||
<!-- <if test="deptId != null and deptId != 0">dept_id,</if>-->
|
||||
<!-- <if test="parentId != null and parentId != 0">parent_id,</if>-->
|
||||
<!-- <if test="deptName != null and deptName != ''">dept_name,</if>-->
|
||||
<!-- <if test="ancestors != null and ancestors != ''">ancestors,</if>-->
|
||||
<!-- <if test="orderNum != null">order_num,</if>-->
|
||||
<!-- <if test="leader != null and leader != ''">leader,</if>-->
|
||||
<!-- <if test="phone != null and phone != ''">phone,</if>-->
|
||||
<!-- <if test="email != null and email != ''">email,</if>-->
|
||||
<!-- <if test="status != null">status,</if>-->
|
||||
<!-- <if test="createBy != null and createBy != ''">create_by,</if>-->
|
||||
<!-- create_time-->
|
||||
<!-- )values(-->
|
||||
<!-- <if test="deptId != null and deptId != 0">#{deptId},</if>-->
|
||||
<!-- <if test="parentId != null and parentId != 0">#{parentId},</if>-->
|
||||
<!-- <if test="deptName != null and deptName != ''">#{deptName},</if>-->
|
||||
<!-- <if test="ancestors != null and ancestors != ''">#{ancestors},</if>-->
|
||||
<!-- <if test="orderNum != null">#{orderNum},</if>-->
|
||||
<!-- <if test="leader != null and leader != ''">#{leader},</if>-->
|
||||
<!-- <if test="phone != null and phone != ''">#{phone},</if>-->
|
||||
<!-- <if test="email != null and email != ''">#{email},</if>-->
|
||||
<!-- <if test="status != null">#{status},</if>-->
|
||||
<!-- <if test="createBy != null and createBy != ''">#{createBy},</if>-->
|
||||
<!-- sysdate()-->
|
||||
<!-- )-->
|
||||
<!-- </insert>-->
|
||||
|
||||
<!-- <update id="updateDept" parameterType="SysDept">-->
|
||||
<!-- update sys_dept-->
|
||||
<!-- <set>-->
|
||||
<!-- <if test="parentId != null and parentId != 0">parent_id = #{parentId},</if>-->
|
||||
<!-- <if test="deptName != null and deptName != ''">dept_name = #{deptName},</if>-->
|
||||
<!-- <if test="ancestors != null and ancestors != ''">ancestors = #{ancestors},</if>-->
|
||||
<!-- <if test="orderNum != null">order_num = #{orderNum},</if>-->
|
||||
<!-- <if test="leader != null">leader = #{leader},</if>-->
|
||||
<!-- <if test="phone != null">phone = #{phone},</if>-->
|
||||
<!-- <if test="email != null">email = #{email},</if>-->
|
||||
<!-- <if test="status != null and status != ''">status = #{status},</if>-->
|
||||
<!-- <if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>-->
|
||||
<!-- update_time = sysdate()-->
|
||||
<!-- </set>-->
|
||||
<!-- where dept_id = #{deptId}-->
|
||||
<!-- </update>-->
|
||||
|
||||
<!-- <update id="updateDeptChildren" parameterType="java.util.List">-->
|
||||
<!-- update sys_dept set ancestors =-->
|
||||
<!-- <foreach collection="depts" item="item" index="index"-->
|
||||
<!-- separator=" " open="case dept_id" close="end">-->
|
||||
<!-- when #{item.deptId} then #{item.ancestors}-->
|
||||
<!-- </foreach>-->
|
||||
<!-- where dept_id in-->
|
||||
<!-- <foreach collection="depts" item="item" index="index"-->
|
||||
<!-- separator="," open="(" close=")">-->
|
||||
<!-- #{item.deptId}-->
|
||||
<!-- </foreach>-->
|
||||
<!-- </update>-->
|
||||
|
||||
<!-- <update id="updateDeptStatusNormal" parameterType="Long">-->
|
||||
<!-- update sys_dept set status = '0' where dept_id in-->
|
||||
<!-- <foreach collection="array" item="deptId" open="(" separator="," close=")">-->
|
||||
<!-- #{deptId}-->
|
||||
<!-- </foreach>-->
|
||||
<!-- </update>-->
|
||||
|
||||
<!-- <delete id="deleteDeptById" parameterType="Long">-->
|
||||
<!-- update sys_dept set del_flag = '1' where dept_id = #{deptId}-->
|
||||
<!-- </delete>-->
|
||||
|
||||
</mapper>
|
||||
|
Loading…
Reference in New Issue
Block a user