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
ecad121f
Commit
ecad121f
authored
Aug 18, 2022
by
墨竹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:报错修改
parent
82873826
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
TabQywxErrorLogServiceImpl.java
...nage/service/service/impl/TabQywxErrorLogServiceImpl.java
+8
-0
MessageApiServiceImpl.java
...anage/service/service/out/impl/MessageApiServiceImpl.java
+6
-2
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/impl/TabQywxErrorLogServiceImpl.java
View file @
ecad121f
...
...
@@ -10,6 +10,8 @@ import com.gic.haoban.manage.service.pojo.bo.TabQywxErrorLogBO;
import
com.gic.haoban.manage.service.service.QywxErrorLogService
;
import
com.gic.haoban.manage.service.service.WxApplicationService
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.logging.log4j.LogManager
;
import
org.apache.logging.log4j.Logger
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
...
...
@@ -24,6 +26,7 @@ import java.util.List;
*/
@Service
public
class
TabQywxErrorLogServiceImpl
implements
QywxErrorLogService
{
private
static
final
Logger
logger
=
LogManager
.
getLogger
(
TabQywxErrorLogServiceImpl
.
class
);
@Autowired
private
TabQywxErrorLogMapper
tabQywxErrorLogMapper
;
...
...
@@ -41,6 +44,11 @@ public class TabQywxErrorLogServiceImpl implements QywxErrorLogService {
tabQywxErrorLogBO
.
setWxEnterpriseId
(
tabHaobanWxApplication
.
getWxEnterpriseId
());
}
}
wxEnterpriseId
=
tabQywxErrorLogBO
.
getWxEnterpriseId
();
if
(
StringUtils
.
isBlank
(
wxEnterpriseId
))
{
logger
.
error
(
"企业微信id为空,corpid:{}"
,
corpid
);
return
null
;
}
tabQywxErrorLogBO
.
setId
(
UniqueIdUtils
.
uniqueLong
());
tabQywxErrorLogBO
.
setCreateTime
(
new
Date
());
this
.
tabQywxErrorLogMapper
.
insert
(
EntityUtil
.
changeEntityByOrika
(
TabQywxErrorLog
.
class
,
tabQywxErrorLogBO
));
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/MessageApiServiceImpl.java
View file @
ecad121f
...
...
@@ -264,7 +264,9 @@ public class MessageApiServiceImpl implements MessageApiService {
}
departmentIds
.
append
(
department
.
getDepartmentId
()).
append
(
","
);
}
departmentIds
=
new
StringBuilder
(
departmentIds
.
substring
(
0
,
departmentIds
.
length
()
-
1
));
if
(
departmentIds
.
length
()
>
0
)
{
departmentIds
=
new
StringBuilder
(
departmentIds
.
substring
(
0
,
departmentIds
.
length
()
-
1
));
}
}
else
{
//部门没有修改
List
<
TabHaobanStaffDepartmentRelated
>
list
=
staffDepartmentRelatedService
.
listStaffDepartmentByStaffId
(
staff
.
getStaffId
());
...
...
@@ -272,7 +274,9 @@ public class MessageApiServiceImpl implements MessageApiService {
for
(
TabHaobanStaffDepartmentRelated
tabHaobanStaffDepartmentRelated
:
list
)
{
departmentIds
.
append
(
tabHaobanStaffDepartmentRelated
.
getDepartmentId
()).
append
(
","
);
}
departmentIds
=
new
StringBuilder
(
departmentIds
.
substring
(
0
,
departmentIds
.
length
()
-
1
));
if
(
departmentIds
.
length
()
>
0
)
{
departmentIds
=
new
StringBuilder
(
departmentIds
.
substring
(
0
,
departmentIds
.
length
()
-
1
));
}
}
}
StaffDTO
staffDTO
=
EntityUtil
.
changeEntityByJSON
(
StaffDTO
.
class
,
staff
);
...
...
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