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
8b788dd2
Commit
8b788dd2
authored
May 31, 2024
by
王祖波
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
核销返回
parent
3bf146ca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
5 deletions
+13
-5
CouponController.java
...haoban/manage/web/controller/coupon/CouponController.java
+13
-5
No files found.
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/coupon/CouponController.java
View file @
8b788dd2
...
...
@@ -44,18 +44,19 @@ public class CouponController {
* @return
*/
@RequestMapping
(
"/clerk-write-off"
)
public
RestResponse
<
Void
>
writeOff
(
String
cardLogId
,
public
RestResponse
<
CoupCardVO
>
writeOff
(
String
cardLogId
,
String
enterpriseId
,
String
clerkId
)
{
HaobanWriteOffCardQDTO
writeOffCardQDTO
=
new
HaobanWriteOffCardQDTO
();
writeOffCardQDTO
.
setEnterpriseId
(
enterpriseId
);
writeOffCardQDTO
.
setCardLogId
(
cardLogId
);
writeOffCardQDTO
.
setClerkId
(
clerkId
);
writeOffCardQDTO
.
setCardType
(
2
);
ServiceResponse
<
Void
>
response
=
couponHBOuterService
.
scanWriteOff
(
writeOffCardQDTO
);
ServiceResponse
<
CoupCardClerkLogDTO
>
response
=
couponHBOuterService
.
scanWriteOff
(
writeOffCardQDTO
);
if
(!
response
.
isSuccess
())
{
return
RestResponse
.
failure
(
response
.
getCode
(),
response
.
getMessage
());
}
return
RestResponse
.
successResult
();
CoupCardVO
cardVO
=
getCardVO
(
response
.
getResult
());
return
RestResponse
.
successResult
(
cardVO
);
}
/**
...
...
@@ -98,7 +99,14 @@ public class CouponController {
if
(
response
.
getResult
()
==
null
)
{
return
RestResponse
.
successResult
();
}
CoupCardClerkLogDTO
result
=
response
.
getResult
();
CoupCardVO
coupCardVO
=
getCardVO
(
response
.
getResult
());
return
RestResponse
.
successResult
(
coupCardVO
);
}
private
static
CoupCardVO
getCardVO
(
CoupCardClerkLogDTO
result
)
{
if
(
result
==
null
)
{
return
null
;
}
CoupCardVO
coupCardVO
=
EntityUtil
.
changeEntityNew
(
CoupCardVO
.
class
,
result
);
CoupCardDTO
coupCardDTO
=
result
.
getCoupCardDTO
();
if
(
coupCardDTO
!=
null
)
{
...
...
@@ -112,7 +120,7 @@ public class CouponController {
coupCardVO
.
setCardNum
(
coupCardDTO
.
getCardNum
());
}
coupCardVO
.
setWriteOffTime
(
result
.
getCreateTime
());
return
RestResponse
.
successResult
(
coupCardVO
)
;
return
coupCardVO
;
}
/**
...
...
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