Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yifu-mvp
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fangxinjiang
yifu-mvp
Commits
56df3788
Commit
56df3788
authored
Mar 04, 2025
by
chenyuxi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 获取删除的部门
parent
ab0cc9fe
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
53 additions
and
0 deletions
+53
-0
DeptController.java
...u/cloud/plus/v1/yifu/admin/controller/DeptController.java
+14
-0
SysDeptMapper.java
...m/yifu/cloud/plus/v1/yifu/admin/mapper/SysDeptMapper.java
+4
-0
SysDeptService.java
...yifu/cloud/plus/v1/yifu/admin/service/SysDeptService.java
+8
-0
SysDeptServiceImpl.java
...d/plus/v1/yifu/admin/service/impl/SysDeptServiceImpl.java
+23
-0
SysDeptMapper.xml
...yifu-upms-biz/src/main/resources/mapper/SysDeptMapper.xml
+4
-0
No files found.
yifu-upms/yifu-upms-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/admin/controller/DeptController.java
View file @
56df3788
...
...
@@ -311,4 +311,18 @@ public class DeptController {
return
sysDeptService
.
cspUpdateDept
(
dept
);
}
/**
* 客户服务平台——获取项目下已删除的部门
* @return R<String> 删除部门的ID集合
* @author chenyuxi
* @since 1.9.7
*/
@GetMapping
(
value
=
"/csp/getDelDeptIds"
)
public
R
<
String
>
cspDelDeptIds
(
SysDeptVo
dept
)
{
if
(
Common
.
isEmpty
(
dept
.
getProjectNo
())){
return
R
.
failed
(
"项目编码不能为空"
);
}
return
R
.
ok
(
sysDeptService
.
cspDelDeptIds
(
dept
.
getProjectNo
()));
}
}
yifu-upms/yifu-upms-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/admin/mapper/SysDeptMapper.java
View file @
56df3788
...
...
@@ -97,4 +97,8 @@ public interface SysDeptMapper extends BaseMapper<SysDept> {
void
batchUpdateSort
(
@Param
(
"moveVos"
)
List
<
DeptSortVo
>
moveVos
);
List
<
SysDept
>
cspDelDeptIds
(
@Param
(
"projectNo"
)
String
projectNo
);
}
yifu-upms/yifu-upms-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/admin/service/SysDeptService.java
View file @
56df3788
...
...
@@ -144,4 +144,12 @@ public interface SysDeptService extends IService<SysDept> {
R
<
Boolean
>
cspUpdateDept
(
SysDeptMoveVo
dept
);
/**
* 客户服务平台——获取项目下已删除的部门
* @return R<String> 删除部门的ID集合
* @author chenyuxi
* @since 1.9.7
*/
String
cspDelDeptIds
(
String
projectNo
);
}
yifu-upms/yifu-upms-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/admin/service/impl/SysDeptServiceImpl.java
View file @
56df3788
...
...
@@ -631,4 +631,27 @@ public class SysDeptServiceImpl extends ServiceImpl<SysDeptMapper, SysDept> impl
}
return
R
.
ok
();
}
/**
* 客户服务平台——获取项目下已删除的部门
*
* @param projectNo
* @return R<String> 删除部门的ID集合
* @author chenyuxi
* @since 1.9.7
*/
@Override
public
String
cspDelDeptIds
(
String
projectNo
)
{
String
delDeptIds
=
""
;
List
<
SysDept
>
deptList
=
baseMapper
.
cspDelDeptIds
(
projectNo
);
if
(
Common
.
isNotNull
(
deptList
)){
for
(
SysDept
dept
:
deptList
){
delDeptIds
=
delDeptIds
.
concat
(
","
).
concat
(
dept
.
getDeptId
().
toString
());
}
}
if
(
delDeptIds
.
length
()>
0
){
delDeptIds
=
delDeptIds
.
substring
(
1
);
}
return
delDeptIds
;
}
}
yifu-upms/yifu-upms-biz/src/main/resources/mapper/SysDeptMapper.xml
View file @
56df3788
...
...
@@ -155,4 +155,8 @@
</foreach>
</update>
<select
id=
"cspDelDeptIds"
resultType=
"com.yifu.cloud.plus.v1.yifu.admin.api.entity.SysDept"
>
select dept_id from sys_dept where del_flag = '1' AND project_no = #{projectNo}
</select>
</mapper>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment