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
104b35ed
Commit
104b35ed
authored
May 31, 2024
by
王祖波
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
核销时间
parent
8b788dd2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
ScanController.java
...gic/haoban/manage/web/controller/scan/ScanController.java
+3
-2
No files found.
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/scan/ScanController.java
View file @
104b35ed
...
...
@@ -102,12 +102,12 @@ public class ScanController {
ServiceResponse
<
List
<
CoupCardDTO
>>
couponRet
=
couponHBOuterService
.
getCardLogByCode
(
writeOffCardQDTO
);
if
(
couponRet
.
isSuccess
()
&&
CollectionUtils
.
isNotEmpty
(
couponRet
.
getResult
()))
{
List
<
CoupCardDTO
>
couponList
=
couponRet
.
getResult
();
CoupCardDTO
coupCardDTO
=
couponList
.
get
(
0
);
ClerkDTO
clerkDTO
=
clerkService
.
getclerkById
(
clerkId
);
if
(
couponList
.
size
()
>
1
)
{
scanDetailVO
.
setCouponError
(
"识别到多张兑换券,为防止核销错误,请协助会员,在会员小程序中进行兑换券核销"
);
scanDetailVO
.
setCouponErrorType
(
1
);
}
else
{
CoupCardDTO
coupCardDTO
=
couponList
.
get
(
0
);
Integer
verificationType
=
coupCardDTO
.
getVerificationType
();
if
(!
Objects
.
equals
(
verificationType
,
0
))
{
scanDetailVO
.
setCouponError
(
"请通过收银台核销此兑换券"
);
...
...
@@ -117,11 +117,12 @@ public class ScanController {
scanDetailVO
.
setCouponError
(
"兑换券在本店不可用"
);
}
}
CoupCardVO
cardVO
=
EntityUtil
.
changeEntityNew
(
CoupCardVO
.
class
,
coup
onList
.
get
(
0
)
);
CoupCardVO
cardVO
=
EntityUtil
.
changeEntityNew
(
CoupCardVO
.
class
,
coup
CardDTO
);
if
(
clerkDTO
!=
null
)
{
cardVO
.
setStoreName
(
clerkDTO
.
getStoreName
());
cardVO
.
setClerkName
(
clerkDTO
.
getClerkName
());
}
cardVO
.
setWriteOffTime
(
coupCardDTO
.
getUseTime
());
scanDetailVO
.
setCardVO
(
cardVO
);
}
return
RestResponse
.
successResult
(
scanDetailVO
);
...
...
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