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
e772a9ba
Commit
e772a9ba
authored
Apr 01, 2025
by
徐高华
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/xgh/202503' into 'developer'
更新排序 See merge request
!2732
parents
20718330
06c84461
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletions
+12
-1
MaterialCategoryServiceImpl.java
...age/service/service/impl/MaterialCategoryServiceImpl.java
+8
-1
QwMomentPlanServiceImpl.java
.../service/service/moment/impl/QwMomentPlanServiceImpl.java
+4
-0
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/impl/MaterialCategoryServiceImpl.java
View file @
e772a9ba
...
@@ -32,8 +32,15 @@ public class MaterialCategoryServiceImpl implements MaterialCategoryService{
...
@@ -32,8 +32,15 @@ public class MaterialCategoryServiceImpl implements MaterialCategoryService{
materialCategoryDTO
.
setCreateTime
(
new
Date
());
materialCategoryDTO
.
setCreateTime
(
new
Date
());
materialCategoryDTO
.
setUpdateTime
(
materialCategoryDTO
.
getCreateTime
());
materialCategoryDTO
.
setUpdateTime
(
materialCategoryDTO
.
getCreateTime
());
materialCategoryDTO
.
setStatusFlag
(
1
);
materialCategoryDTO
.
setStatusFlag
(
1
);
materialCategoryDTO
.
setSortNum
(
this
.
mapper
.
getMaxSortNum
(
materialCategoryDTO
.
getWxEnterpriseId
(),
materialCategoryDTO
.
getCategoryParentId
())
+
1
);
materialCategoryDTO
.
setSortNum
(
-
1
);
mapper
.
insert
(
EntityUtil
.
changeEntityByJSON
(
TabHaobanMaterialCategory
.
class
,
materialCategoryDTO
));
mapper
.
insert
(
EntityUtil
.
changeEntityByJSON
(
TabHaobanMaterialCategory
.
class
,
materialCategoryDTO
));
// 修改排序
List
<
MaterialCategoryDTO
>
list
=
this
.
listByParentCategory
(
materialCategoryDTO
.
getCategoryParentId
())
;
for
(
int
i
=
0
;
i
<
list
.
size
();
i
++)
{
MaterialCategoryDTO
item
=
list
.
get
(
i
)
;
item
.
setSortNum
(
i
+
1
);
}
this
.
mapper
.
updateSortNum
(
list
);
}
}
@Override
@Override
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/moment/impl/QwMomentPlanServiceImpl.java
View file @
e772a9ba
...
@@ -557,6 +557,10 @@ public class QwMomentPlanServiceImpl implements QwMomentPlanService {
...
@@ -557,6 +557,10 @@ public class QwMomentPlanServiceImpl implements QwMomentPlanService {
private
MomentResultDTO
getData
(
String
staffId
,
String
momentId
,
WxEnterpriseQwDTO
qwDTO
)
{
private
MomentResultDTO
getData
(
String
staffId
,
String
momentId
,
WxEnterpriseQwDTO
qwDTO
)
{
TabHaobanStaff
staff
=
this
.
staffMapper
.
selectByPrimaryKey
(
staffId
)
;
TabHaobanStaff
staff
=
this
.
staffMapper
.
selectByPrimaryKey
(
staffId
)
;
if
(
null
==
staff
)
{
logger
.
info
(
"无员工={}"
,
staffId
);
return
null
;
}
String
wxUserId
=
staff
.
getWxUserId
()
;
String
wxUserId
=
staff
.
getWxUserId
()
;
if
(
qwDTO
.
needOpenUserId3th
())
{
if
(
qwDTO
.
needOpenUserId3th
())
{
wxUserId
=
staff
.
getWxOpenUseId
()
;
wxUserId
=
staff
.
getWxOpenUseId
()
;
...
...
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