Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
platform-server
概览
Overview
Details
Activity
Cycle Analytics
版本库
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
问题
0
Issues
0
列表
Board
标记
里程碑
合并请求
0
Merge Requests
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
Snippets
成员
Members
Collapse sidebar
Close sidebar
活动
图像
聊天
创建新问题
作业
提交
Issue Boards
Open sidebar
吴超
platform-server
Commits
725c3f9d
Commit
725c3f9d
authored
Oct 30, 2025
by
bajianlin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
加分公司名称,中心相关字段
parent
1f5f6de8
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
15 行增加
和
5 行删除
+15
-5
src/main/java/com/platform/springboot/domain/dto/PersonnelPageDTO.java
+5
-0
src/main/java/com/platform/springboot/mapper/PersonnelMapper.xml
+10
-5
没有找到文件。
src/main/java/com/platform/springboot/domain/dto/PersonnelPageDTO.java
View file @
725c3f9d
...
...
@@ -17,6 +17,8 @@ public class PersonnelPageDTO {
private
String
username
;
@ApiModelProperty
(
value
=
"部门id"
)
private
String
department
;
@ApiModelProperty
(
value
=
"部门名称"
)
private
String
departmentname
;
@ApiModelProperty
(
value
=
"派驻标识"
)
private
String
paizhu
;
@ApiModelProperty
(
value
=
"职位"
)
...
...
@@ -84,6 +86,9 @@ public class PersonnelPageDTO {
@ApiModelProperty
(
value
=
"分公司ID"
)
private
String
branchCompanyId
;
@ApiModelProperty
(
value
=
"分公司名称"
)
private
String
branchCompanyName
;
}
src/main/java/com/platform/springboot/mapper/PersonnelMapper.xml
View file @
725c3f9d
...
...
@@ -55,6 +55,7 @@
<id
column=
"id"
jdbcType=
"INTEGER"
property=
"id"
/>
<result
column=
"username"
jdbcType=
"VARCHAR"
property=
"username"
/>
<result
column=
"department"
jdbcType=
"VARCHAR"
property=
"department"
/>
<result
column=
"departmentname"
jdbcType=
"VARCHAR"
property=
"departmentname"
/>
<result
column=
"paizhu"
jdbcType=
"VARCHAR"
property=
"paizhu"
/>
<result
column=
"position"
jdbcType=
"VARCHAR"
property=
"position"
/>
<result
column=
"account"
jdbcType=
"VARCHAR"
property=
"number"
/>
...
...
@@ -63,6 +64,7 @@
<result
column=
"metrocenterid"
jdbcType=
"VARCHAR"
property=
"metrocenterid"
/>
<result
column=
"metrocentername"
jdbcType=
"VARCHAR"
property=
"metrocentername"
/>
<result
column=
"branch_company_id"
jdbcType=
"VARCHAR"
property=
"branchCompanyId"
/>
<result
column=
"branch_company_name"
jdbcType=
"VARCHAR"
property=
"branchCompanyName"
/>
</resultMap>
<resultMap
id=
"PageResultMap2"
type=
"com.platform.springboot.domain.dto.PersonnelPageDTO"
>
<id
column=
"id"
jdbcType=
"INTEGER"
property=
"id"
/>
...
...
@@ -157,7 +159,7 @@
</sql>
<sql
id=
"Base_Column_List"
>
id, username, sex, birthday, account, password, phone_number, tel_number, email,
nickname, address, mobile, telecom, office, department, position, identity, role,
nickname, address, mobile, telecom, office, department,
departmentname,
position, identity, role,
addtime, credit, political, paizhu, fuze,avatar,metrocenterid,metrocentername,status, branch_company_id as branchCompanyId,
</sql>
<sql
id=
"Blob_Column_List"
>
...
...
@@ -196,7 +198,8 @@
<!--查询所有员工关联部门-->
<select
id=
"selectByExample2"
parameterType=
"com.platform.springboot.domain.entity.PersonnelExample"
resultMap=
"PageResultMap"
>
select
a.id,a.username,a.department,a.paizhu,a.position,a.account,a.avatar,a.metrocenterid,a.metrocentername,b.name as bmmc
a.id,a.username,a.department, a.departmentname, a.branch_company_id, a.paizhu,a.position,a.account,a.avatar,a.metrocenterid,a.metrocentername,b.name as bmmc,
(SELECT p.NAME FROM platform_department p WHERE p.id = a.branch_company_id LIMIT 1) AS branch_company_name
from platform_personnel a left join platform_department b on a.department=b.id
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
...
...
@@ -241,16 +244,18 @@
<select
id=
"selectByPrimaryKey2"
parameterType=
"java.lang.Integer"
resultMap=
"PageResultMap"
>
select
a.id,a.username,a.department,a.paizhu,a.position,a.account,a.avatar,b.name as bmmc, a.branch_company_id
a.id,a.username,a.department, a.departmentname, a.metrocenterid, a.metrocentername, a.paizhu,a.position,a.account,a.avatar,b.name as bmmc, a.branch_company_id,
(SELECT p.NAME FROM platform_department p WHERE p.id = a.branch_company_id LIMIT 1) AS branch_company_name
from platform_personnel a left join platform_department b on a.department=b.id
where a.id = #{id,jdbcType=INTEGER}
</select>
<select
id=
"selectByPrimaryKey3"
parameterType=
"java.lang.Integer"
resultMap=
"PageResultMap2"
>
select
a.id, a.username, a.sex, a.birthday, a.account, a.password, a.phone_number, a.tel_number, a.email,
a.nickname, a.address, a.mobile, a.telecom, a.office, a.department, a.position, a.identity, a.role,
a.nickname, a.address, a.mobile, a.telecom, a.office, a.department, a.
departmentname, a.metrocenterid, a.metrocentername, a.
position, a.identity, a.role,
a.addtime, a.credit, a.political, a.paizhu, a.fuze,a.auth, a.app_id,a.avatar
,b.name as bmmc, a.branch_company_id
,b.name as bmmc, a.branch_company_id,
(SELECT p.NAME FROM platform_department p WHERE p.id = a.branch_company_id LIMIT 1) AS branch_company_name
from platform_personnel a left join platform_department b on a.department=b.id
where a.id = #{id,jdbcType=INTEGER}
</select>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论