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
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
haoban3.0
haoban-manage3.0
Commits
0090da94
Commit
0090da94
authored
Mar 06, 2020
by
qwmqiuwenmin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
503d804c
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
1 deletions
+21
-1
DepartmentMapper.java
...ic/haoban/manage/service/dao/mapper/DepartmentMapper.java
+4
-0
DepartmentService.java
.../gic/haoban/manage/service/service/DepartmentService.java
+2
-0
DepartmentServiceImpl.java
...an/manage/service/service/impl/DepartmentServiceImpl.java
+5
-0
MessageApiServiceImpl.java
...anage/service/service/out/impl/MessageApiServiceImpl.java
+1
-1
DepartmentMapper.xml
...e3-service/src/main/resources/mapper/DepartmentMapper.xml
+9
-0
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/dao/mapper/DepartmentMapper.java
View file @
0090da94
...
...
@@ -5,6 +5,7 @@ import java.util.List;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.xpath.operations.Bool
;
import
com.gic.haoban.manage.api.dto.DepartmentDTO
;
import
com.gic.haoban.manage.service.entity.TabHaobanDepartment
;
import
com.github.pagehelper.Page
;
...
...
@@ -53,4 +54,6 @@ public interface DepartmentMapper {
int
countSyncDepartmentByEnterpriseId
(
@Param
(
"enterpriseId"
)
String
enterpriseId
);
int
countByDepartment
(
@Param
(
"departmentId"
)
String
departmentId
);
TabHaobanDepartment
getByRelatedIdNotInRecycle
(
@Param
(
"departmentId"
)
String
relatedId
);
}
\ No newline at end of file
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/DepartmentService.java
View file @
0090da94
...
...
@@ -42,4 +42,6 @@ public interface DepartmentService {
int
countByDepartment
(
String
departmentId
);
DepartmentDTO
getByRelatedIdNotInRecycle
(
String
relatedId
);
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/impl/DepartmentServiceImpl.java
View file @
0090da94
...
...
@@ -159,4 +159,9 @@ public class DepartmentServiceImpl implements DepartmentService {
return
mapper
.
countByDepartment
(
departmentId
);
}
@Override
public
DepartmentDTO
getByRelatedIdNotInRecycle
(
String
relatedId
)
{
return
EntityUtil
.
changeEntityByJSON
(
DepartmentDTO
.
class
,
mapper
.
getByRelatedIdNotInRecycle
(
relatedId
));
}
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/MessageApiServiceImpl.java
View file @
0090da94
...
...
@@ -351,7 +351,7 @@ public class MessageApiServiceImpl implements MessageApiService {
startIndex
=
len
-
1
;
}
for
(
int
i
=
startIndex
;
i
>=
0
&&
i
<
len
;
i
--){
DepartmentDTO
department
=
this
.
departmentService
.
getByRelatedId
(
arr
[
i
]);
DepartmentDTO
department
=
this
.
departmentService
.
getByRelatedId
NotInRecycle
(
arr
[
i
]);
log
.
info
(
"当前节点id:{}, {}"
,
arr
[
i
],
JSON
.
toJSONString
(
department
));
if
(
department
!=
null
){
return
department
;
...
...
haoban-manage3-service/src/main/resources/mapper/DepartmentMapper.xml
View file @
0090da94
...
...
@@ -377,6 +377,15 @@
and status_flag = 1
</select>
<select
id=
"getByRelatedIdNotInRecycle"
resultMap=
"BaseResultMap"
parameterType=
"java.lang.String"
>
select
<include
refid=
"Base_Column_List"
/>
from tab_haoban_department
where related_id = #{relatedId}
and status_flag = 1
and recycle_flag != 1
</select>
<select
id=
"pageByParentId"
resultMap=
"BaseResultMap"
parameterType=
"java.lang.String"
>
select
...
...
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