Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
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
haoban3.0
haoban-manage3.0
Commits
ddf91a7f
Commit
ddf91a7f
authored
Feb 25, 2020
by
qwmqiuwenmin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
71626b43
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
41 additions
and
0 deletions
+41
-0
DepartmentApiService.java
...m/gic/haoban/manage/api/service/DepartmentApiService.java
+6
-0
DepartmentMapper.java
...ic/haoban/manage/service/dao/mapper/DepartmentMapper.java
+3
-0
DepartmentService.java
.../gic/haoban/manage/service/service/DepartmentService.java
+2
-0
DepartmentServiceImpl.java
...an/manage/service/service/impl/DepartmentServiceImpl.java
+5
-0
DepartmentApiServiceImpl.java
...ge/service/service/out/impl/DepartmentApiServiceImpl.java
+5
-0
DepartmentMapper.xml
...e3-service/src/main/resources/mapper/DepartmentMapper.xml
+10
-0
DepartmentContoller.java
...gic/haoban/manage/web/controller/DepartmentContoller.java
+10
-0
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/service/DepartmentApiService.java
View file @
ddf91a7f
...
...
@@ -115,4 +115,10 @@ public interface DepartmentApiService {
void
initwxDepartment
(
String
corpid
,
String
suiteid
,
String
wxEnterpriseId
);
/**
* 回收站的数量
* @param wxEnterpriseId
* @return
*/
Integer
departmentRecycleCount
(
String
wxEnterpriseId
);
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/dao/mapper/DepartmentMapper.java
View file @
ddf91a7f
...
...
@@ -45,4 +45,6 @@ public interface DepartmentMapper {
Page
<
TabHaobanDepartment
>
pageByParentId
(
@Param
(
"parentId"
)
String
parentId
,
@Param
(
"keyword"
)
String
keyword
);
List
<
TabHaobanDepartment
>
listByChainId
(
@Param
(
"chainId"
)
String
chainId
,
@Param
(
"wxEnterpriseId"
)
String
wxEnterpriseId
);
Integer
departmentRecycleCount
(
@Param
(
"wxEnterpriseId"
)
String
wxEnterpriseId
);
}
\ No newline at end of file
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/DepartmentService.java
View file @
ddf91a7f
...
...
@@ -36,4 +36,6 @@ public interface DepartmentService {
List
<
TabHaobanDepartment
>
listByChainId
(
String
chainId
,
String
wxEnterpriseId
);
Integer
departmentRecycleCount
(
String
wxEnterpriseId
);
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/impl/DepartmentServiceImpl.java
View file @
ddf91a7f
...
...
@@ -136,4 +136,9 @@ public class DepartmentServiceImpl implements DepartmentService {
return
mapper
.
listByChainId
(
chainId
,
wxEnterpriseId
);
}
@Override
public
Integer
departmentRecycleCount
(
String
wxEnterpriseId
)
{
return
mapper
.
departmentRecycleCount
(
wxEnterpriseId
);
}
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/DepartmentApiServiceImpl.java
View file @
ddf91a7f
...
...
@@ -360,4 +360,9 @@ public class DepartmentApiServiceImpl implements DepartmentApiService {
}
}
}
@Override
public
Integer
departmentRecycleCount
(
String
wxEnterpriseId
)
{
return
departmentService
.
departmentRecycleCount
(
wxEnterpriseId
);
}
}
haoban-manage3-service/src/main/resources/mapper/DepartmentMapper.xml
View file @
ddf91a7f
...
...
@@ -341,4 +341,13 @@
and status_flag = 1
</select>
<select
id=
"departmentRecycleCount"
resultType=
"java.lang.Integer"
parameterType=
"java.lang.String"
>
select
<include
refid=
"Base_Column_List"
/>
from tab_haoban_department
where wx_enterprise_id = #{wxEnterpriseId}
and status_flag = 1
and recycle_flag = 1
</select>
</mapper>
\ No newline at end of file
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/DepartmentContoller.java
View file @
ddf91a7f
...
...
@@ -148,6 +148,16 @@ public class DepartmentContoller extends WebBaseController{
}
@RequestMapping
(
"department-recycle-count"
)
public
HaobanResponse
departmentRecycleCount
()
{
LoginVO
login
=
(
LoginVO
)
AuthRequestUtil
.
getSessionUser
();
String
wxEnterpriseId
=
login
.
getWxEnterpriseId
();
Integer
count
=
departmentApiService
.
departmentRecycleCount
(
wxEnterpriseId
);
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
count
);
}
@RequestMapping
(
"department-del"
)
public
HaobanResponse
departmentDel
(
String
departmentId
)
{
DepartmentDTO
dto
=
departmentApiService
.
selectById
(
departmentId
);
...
...
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