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
b7d4c57d
Commit
b7d4c57d
authored
Jun 03, 2024
by
王祖波
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
核销导购门店
parent
32601b3a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
ScanController.java
...gic/haoban/manage/web/controller/scan/ScanController.java
+10
-4
No files found.
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/scan/ScanController.java
View file @
b7d4c57d
...
...
@@ -8,6 +8,7 @@ import com.gic.business.order.service.ordermanage.WebOrderManageApiService;
import
com.gic.clerk.api.dto.ClerkDTO
;
import
com.gic.clerk.api.service.ClerkService
;
import
com.gic.commons.util.EntityUtil
;
import
com.gic.commons.util.GlobalInfo
;
import
com.gic.commons.webapi.reponse.RestResponse
;
import
com.gic.haoban.manage.web.controller.order.GicOrderController
;
import
com.gic.haoban.manage.web.vo.coupon.CoupCardVO
;
...
...
@@ -102,7 +103,6 @@ public class ScanController {
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
);
...
...
@@ -117,9 +117,15 @@ public class ScanController {
}
}
CoupCardVO
cardVO
=
EntityUtil
.
changeEntityNew
(
CoupCardVO
.
class
,
coupCardDTO
);
if
(
clerkDTO
!=
null
)
{
cardVO
.
setStoreName
(
clerkDTO
.
getStoreName
());
cardVO
.
setClerkName
(
clerkDTO
.
getClerkName
());
if
(
Objects
.
equals
(
GlobalInfo
.
COUPON_STATUS_USED
,
coupCardDTO
.
getStatus
()))
{
cardVO
.
setStoreName
(
coupCardDTO
.
getOrderStoreName
());
cardVO
.
setClerkName
(
coupCardDTO
.
getOrderClerkName
());
}
else
{
ClerkDTO
clerkDTO
=
clerkService
.
getclerkById
(
clerkId
);
if
(
clerkDTO
!=
null
)
{
cardVO
.
setStoreName
(
clerkDTO
.
getStoreName
());
cardVO
.
setClerkName
(
clerkDTO
.
getClerkName
());
}
}
cardVO
.
setUseTime
(
coupCardDTO
.
getUseTime
());
scanDetailVO
.
setCardVO
(
cardVO
);
...
...
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