2026-03-02 14:41:43 +08:00
|
|
|
<?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.klp.mapper.WmsDeptMapper">
|
|
|
|
|
|
|
|
|
|
<resultMap type="com.klp.domain.WmsDept" id="WmsDeptResult">
|
|
|
|
|
<result property="deptId" column="dept_id"/>
|
|
|
|
|
<result property="parentId" column="parent_id"/>
|
|
|
|
|
<result property="deptName" column="dept_name"/>
|
|
|
|
|
<result property="orderNum" column="order_num"/>
|
|
|
|
|
<result property="leader" column="leader"/>
|
|
|
|
|
<result property="status" column="status"/>
|
|
|
|
|
<result property="delFlag" column="del_flag"/>
|
|
|
|
|
<result property="remark" column="remark"/>
|
|
|
|
|
<result property="createTime" column="create_time"/>
|
|
|
|
|
<result property="createBy" column="create_by"/>
|
|
|
|
|
<result property="updateTime" column="update_time"/>
|
|
|
|
|
<result property="updateBy" column="update_by"/>
|
|
|
|
|
</resultMap>
|
2026-03-02 14:53:33 +08:00
|
|
|
<select id="selectVoListPlus" resultType="com.klp.domain.vo.WmsDeptVo">
|
|
|
|
|
SELECT
|
|
|
|
|
d.dept_id,
|
|
|
|
|
d.parent_id,
|
|
|
|
|
d.dept_name,
|
|
|
|
|
d.order_num,
|
|
|
|
|
d.leader,
|
|
|
|
|
u.nick_name AS leaderNickName,
|
|
|
|
|
d.status,
|
|
|
|
|
d.del_flag,
|
|
|
|
|
d.remark,
|
|
|
|
|
d.create_time,
|
|
|
|
|
d.create_by,
|
|
|
|
|
d.update_time,
|
|
|
|
|
d.update_by
|
|
|
|
|
FROM wms_dept d
|
|
|
|
|
LEFT JOIN sys_user u ON d.leader = u.user_id
|
|
|
|
|
${ew.customSqlSegment}
|
|
|
|
|
</select>
|
2026-03-02 14:41:43 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
</mapper>
|