针对智慧工地对公司框架进行优化

This commit is contained in:
15856 2025-01-02 10:27:31 +08:00
parent 7f7d333fb5
commit d19533a19b
1 changed files with 1 additions and 2 deletions

View File

@ -27,7 +27,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="deptAbbreviation" column="dept_abbreviation" /> <result property="deptAbbreviation" column="dept_abbreviation" />
<result property="remark" column="remark" /> <result property="remark" column="remark" />
<result property="logo" column="logo" /> <result property="logo" column="logo" />
</resultMap>logo </resultMap>
<sql id="selectDeptVo"> <sql id="selectDeptVo">
select d.dept_id, select d.dept_id,
@ -149,7 +149,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
select * from sys_dept where parent_id='0' select * from sys_dept where parent_id='0'
</select> </select>
<select id="selectDeptAndUserById" resultType="com.bonus.system.api.domain.SysDept"> <select id="selectDeptAndUserById" resultType="com.bonus.system.api.domain.SysDept">
select sd.*,su.nick_name as nickName,su.user_name as userName,su.password as password, select sd.*,su.nick_name as nickName,su.user_name as userName,su.password as password,
sr.role_name as roleName,su.user_id as userId,sr.role_id as roleId from sys_dept sd sr.role_name as roleName,su.user_id as userId,sr.role_id as roleId from sys_dept sd
left join sys_role_dept srd on sd.dept_id = srd.dept_id left join sys_role_dept srd on sd.dept_id = srd.dept_id