Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-platform-enterprise
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
base_platform_enterprise
gic-platform-enterprise
Commits
d494c55a
Commit
d494c55a
authored
May 20, 2020
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除卡券错误日志
parent
bb1d33f8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
6 deletions
+37
-6
WmMallStoreController.java
...c/enterprise/web/controller/wm/WmMallStoreController.java
+37
-6
No files found.
gic-platform-enterprise-web/src/main/java/com/gic/enterprise/web/controller/wm/WmMallStoreController.java
View file @
d494c55a
package
com
.
gic
.
enterprise
.
web
.
controller
.
wm
;
import
java.io.IOException
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Set
;
import
java.util.*
;
import
java.util.stream.Collectors
;
import
java.util.stream.Stream
;
...
...
@@ -204,8 +201,26 @@ public class WmMallStoreController {
* @return
*/
@RequestMapping
(
"delete-coupon-error-log"
)
public
RestResponse
deleteCouponErrorLog
(
@RequestBody
List
<
Long
>
couponErLogIds
)
{
return
ResultControllerUtils
.
commonResult
(
weimobMerchantService
.
deleteCouponErrorlog
(
couponErLogIds
));
public
RestResponse
deleteCouponErrorLog
(
String
couponErLogIds
)
{
String
[]
ids
=
couponErLogIds
.
split
(
","
);
List
<
Long
>
result
=
new
ArrayList
<>(
ids
.
length
);
for
(
String
id
:
ids
)
{
result
.
add
(
Long
.
valueOf
(
id
));
}
return
ResultControllerUtils
.
commonResult
(
weimobMerchantService
.
deleteCouponErrorlog
(
result
));
}
/**
* 重新发送卡券
* @param memberId
* @param cardTemplateStr 发送优惠券列表信息List<String> 其中的string元素为 微盟pid_cardTemplateId拼接成
* @param couponCode 非必填 ,不填时,微盟卡券自动生成券号
* @return
*/
@RequestMapping
(
"send-coupon-reset"
)
public
RestResponse
sendCouponReset
(
String
memberId
,
@RequestBody
List
<
String
>
cardTemplateStr
,
String
couponCode
)
{
Integer
enterpriseId
=
UserDetailUtils
.
getUserDetail
().
getEnterpriseId
();
return
null
;
}
/**
...
...
@@ -349,12 +364,23 @@ public class WmMallStoreController {
"微盟商城"
);
}
/**
* 获取店铺配置
* @param wmMallStoreId
* @param wmStoreConfigType
* @return
*/
@RequestMapping
(
"/get-wm-store-config"
)
public
RestResponse
getWmStoreConfig
(
Integer
wmMallStoreId
,
Integer
wmStoreConfigType
)
{
return
ResultControllerUtils
.
commonResult
(
wmStoreApiService
.
getWmStoreConfig
(
wmMallStoreId
,
wmStoreConfigType
));
}
/**
* 绑定gic卡券和微盟卡券
* @param dto
* @return
*/
@RequestMapping
(
"/bind-coupon"
)
public
RestResponse
bindCoupon
(
WmStoreCouponConfigDTO
dto
)
{
dto
.
setEnterpriseId
(
UserDetailUtils
.
getUserDetail
().
getEnterpriseId
());
...
...
@@ -375,6 +401,11 @@ public class WmMallStoreController {
"微盟商城"
);
}
/**
* gic卡券关联微盟卡券列表
* @param params
* @return
*/
@RequestMapping
(
"/page-coupon-config"
)
public
RestResponse
pageCouponConfig
(
CouponConfigQO
params
)
{
return
ResultControllerUtils
...
...
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