Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gxpt_ht
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
pseer
gxpt_ht
Commits
d981eb90
Commit
d981eb90
authored
Apr 16, 2024
by
吕明尚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
结束保洁不修改保洁负责人员
parent
0d848ecd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
SCleanRecordsServiceImpl.java
...a/share/system/service/impl/SCleanRecordsServiceImpl.java
+7
-5
No files found.
share-system/src/main/java/share/system/service/impl/SCleanRecordsServiceImpl.java
View file @
d981eb90
...
@@ -389,7 +389,9 @@ public class SCleanRecordsServiceImpl extends ServiceImpl<SCleanRecordsMapper,SC
...
@@ -389,7 +389,9 @@ public class SCleanRecordsServiceImpl extends ServiceImpl<SCleanRecordsMapper,SC
@Override
@Override
public
int
startCleanRecords
(
SCleanRecords
sCleanRecords
)
{
public
int
startCleanRecords
(
SCleanRecords
sCleanRecords
)
{
isCleaner
(
sCleanRecords
);
SConsumer
user
=
FrontTokenComponent
.
getWxSConsumerEntry
();
isCleaner
(
sCleanRecords
,
user
);
sCleanRecords
.
setConsumerId
(
user
.
getId
());
sCleanRecords
.
setStartDate
(
DateUtil
.
date
());
sCleanRecords
.
setStartDate
(
DateUtil
.
date
());
sCleanRecords
.
setStatus
(
CleaningStatusEnum
.
CLEANING
.
getCode
());
sCleanRecords
.
setStatus
(
CleaningStatusEnum
.
CLEANING
.
getCode
());
LambdaQueryWrapper
<
SCleanRecords
>
queryWrapper
=
new
LambdaQueryWrapper
<>();
LambdaQueryWrapper
<
SCleanRecords
>
queryWrapper
=
new
LambdaQueryWrapper
<>();
...
@@ -453,7 +455,8 @@ public class SCleanRecordsServiceImpl extends ServiceImpl<SCleanRecordsMapper,SC
...
@@ -453,7 +455,8 @@ public class SCleanRecordsServiceImpl extends ServiceImpl<SCleanRecordsMapper,SC
@Override
@Override
public
int
endCleanRecords
(
SCleanRecords
sCleanRecords
)
{
public
int
endCleanRecords
(
SCleanRecords
sCleanRecords
)
{
isCleaner
(
sCleanRecords
);
SConsumer
user
=
FrontTokenComponent
.
getWxSConsumerEntry
();
isCleaner
(
sCleanRecords
,
user
);
sCleanRecords
.
setEndDate
(
DateUtil
.
date
());
sCleanRecords
.
setEndDate
(
DateUtil
.
date
());
sCleanRecords
.
setStatus
(
CleaningStatusEnum
.
CLEANED
.
getCode
());
sCleanRecords
.
setStatus
(
CleaningStatusEnum
.
CLEANED
.
getCode
());
SCleanRecords
records
=
baseMapper
.
selectSCleanRecordsById
(
sCleanRecords
.
getId
());
SCleanRecords
records
=
baseMapper
.
selectSCleanRecordsById
(
sCleanRecords
.
getId
());
...
@@ -504,8 +507,7 @@ public class SCleanRecordsServiceImpl extends ServiceImpl<SCleanRecordsMapper,SC
...
@@ -504,8 +507,7 @@ public class SCleanRecordsServiceImpl extends ServiceImpl<SCleanRecordsMapper,SC
return
baseMapper
.
update
(
cleanRecords
,
updateWrapper
);
return
baseMapper
.
update
(
cleanRecords
,
updateWrapper
);
}
}
private
void
isCleaner
(
SCleanRecords
sCleanRecords
)
{
private
void
isCleaner
(
SCleanRecords
sCleanRecords
,
SConsumer
user
)
{
SConsumer
user
=
FrontTokenComponent
.
getWxSConsumerEntry
();
if
(!
user
.
getRoleType
().
equals
(
RoleTypeEnum
.
CLEANER
.
getCode
()))
{
if
(!
user
.
getRoleType
().
equals
(
RoleTypeEnum
.
CLEANER
.
getCode
()))
{
throw
new
RuntimeException
(
"当前用户不是店员"
);
throw
new
RuntimeException
(
"当前用户不是店员"
);
}
}
...
@@ -517,7 +519,7 @@ public class SCleanRecordsServiceImpl extends ServiceImpl<SCleanRecordsMapper,SC
...
@@ -517,7 +519,7 @@ public class SCleanRecordsServiceImpl extends ServiceImpl<SCleanRecordsMapper,SC
if
(
CollectionUtils
.
isEmpty
(
storeConsumer
))
{
if
(
CollectionUtils
.
isEmpty
(
storeConsumer
))
{
throw
new
RuntimeException
(
"当前用户不是保洁人员"
);
throw
new
RuntimeException
(
"当前用户不是保洁人员"
);
}
}
sCleanRecords
.
setConsumerId
(
user
.
getId
());
}
}
private
void
sendSms
(
Long
storeId
,
SStore
store
,
SRoom
room
)
{
private
void
sendSms
(
Long
storeId
,
SStore
store
,
SRoom
room
)
{
...
...
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