记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
Project
Project
Details
Activity
Releases
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
董敬伟
liquidnet-bus-v1
Commits
e895aeb5
Commit
e895aeb5
authored
Feb 24, 2022
by
张国柄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
~API:优惠券列表:筛选状态字段类型更正;
~API:优惠券编辑:关联商品为空处理;
parent
eff576fc
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
10 deletions
+6
-10
GoblinStoreMgtCouponFilterParam.java
...ce/goblin/dto/manage/GoblinStoreMgtCouponFilterParam.java
+1
-1
IGoblinstoreMgtCouponService.java
...e/goblin/service/manage/IGoblinstoreMgtCouponService.java
+1
-2
GoblinStoreMgtCouponController.java
...lin/controller/manage/GoblinStoreMgtCouponController.java
+2
-6
GoblinStoreMgtCouponServiceImpl.java
.../service/impl/manage/GoblinStoreMgtCouponServiceImpl.java
+2
-1
No files found.
liquidnet-bus-api/liquidnet-service-goblin-api/src/main/java/com/liquidnet/service/goblin/dto/manage/GoblinStoreMgtCouponFilterParam.java
View file @
e895aeb5
...
@@ -29,7 +29,7 @@ public class GoblinStoreMgtCouponFilterParam implements Serializable {
...
@@ -29,7 +29,7 @@ public class GoblinStoreMgtCouponFilterParam implements Serializable {
@ApiModelProperty
(
position
=
14
,
required
=
false
,
value
=
"卡券编码[64]"
)
@ApiModelProperty
(
position
=
14
,
required
=
false
,
value
=
"卡券编码[64]"
)
private
String
storeCouponNo
;
private
String
storeCouponNo
;
@ApiModelProperty
(
position
=
15
,
required
=
false
,
value
=
"卡券状态[0-等待开始|1-活动中|2-活动结束|3-停用]"
,
allowableValues
=
"0,1,2,3"
)
@ApiModelProperty
(
position
=
15
,
required
=
false
,
value
=
"卡券状态[0-等待开始|1-活动中|2-活动结束|3-停用]"
,
allowableValues
=
"0,1,2,3"
)
private
Integer
state
;
private
String
state
;
@ApiModelProperty
(
position
=
16
,
required
=
false
,
value
=
"开始日期[yyyy-MM-dd HH:mm:ss]"
)
@ApiModelProperty
(
position
=
16
,
required
=
false
,
value
=
"开始日期[yyyy-MM-dd HH:mm:ss]"
)
@Pattern
(
regexp
=
LnsRegex
.
Valid
.
DATETIME_FULL
,
message
=
"开始日期格式有误"
)
@Pattern
(
regexp
=
LnsRegex
.
Valid
.
DATETIME_FULL
,
message
=
"开始日期格式有误"
)
private
String
startTime
;
private
String
startTime
;
...
...
liquidnet-bus-api/liquidnet-service-goblin-api/src/main/java/com/liquidnet/service/goblin/service/manage/IGoblinstoreMgtCouponService.java
View file @
e895aeb5
...
@@ -57,10 +57,9 @@ public interface IGoblinstoreMgtCouponService {
...
@@ -57,10 +57,9 @@ public interface IGoblinstoreMgtCouponService {
*
*
* @param uid UID
* @param uid UID
* @param storeCouponBasicVo GoblinStoreCouponBasicVo
* @param storeCouponBasicVo GoblinStoreCouponBasicVo
* @param beforeSpuIdList List<String>
* @return boolean
* @return boolean
*/
*/
boolean
couponEdit
(
String
uid
,
GoblinStoreCouponBasicVo
storeCouponBasicVo
,
List
<
String
>
beforeSpuIdList
);
boolean
couponEdit
(
String
uid
,
GoblinStoreCouponBasicVo
storeCouponBasicVo
);
/**
/**
* 商铺活动:优惠券库存编辑
* 商铺活动:优惠券库存编辑
...
...
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/controller/manage/GoblinStoreMgtCouponController.java
View file @
e895aeb5
...
@@ -271,16 +271,12 @@ public class GoblinStoreMgtCouponController {
...
@@ -271,16 +271,12 @@ public class GoblinStoreMgtCouponController {
storeCouponBasicVo
.
setStoreCouponNo
(
storeCouponVo
.
getStoreCouponNo
());
storeCouponBasicVo
.
setStoreCouponNo
(
storeCouponVo
.
getStoreCouponNo
());
List
<
String
>
spuIdList
=
storeCouponBasicVo
.
getSpuIdList
();
List
<
String
>
spuIdList
=
storeCouponBasicVo
.
getSpuIdList
();
if
(
storeCouponBasicVo
.
getUseScope
().
equals
(
"1"
)
&&
!
CollectionUtils
.
isEmpty
(
spuIdList
)
)
{
if
(
storeCouponBasicVo
.
getUseScope
().
equals
(
"1"
)
&&
null
!=
spuIdList
)
{
spuIdList
.
removeIf
(
spuId
->
null
==
goblinRedisUtils
.
getGoodsInfoVo
(
spuId
));
spuIdList
.
removeIf
(
spuId
->
null
==
goblinRedisUtils
.
getGoodsInfoVo
(
spuId
));
storeCouponBasicVo
.
setSpuIdList
(
spuIdList
);
storeCouponBasicVo
.
setSpuIdList
(
spuIdList
);
}
}
List
<
String
>
beforeSpuIdList
=
null
;
boolean
resultFlg
=
goblinstoreMgtCouponService
.
couponEdit
(
currentUid
,
storeCouponBasicVo
);
if
(
storeCouponVo
.
getUseScope
().
equals
(
"1"
))
{
beforeSpuIdList
=
goblinRedisUtils
.
getStoreCouponSpuIds
(
storeCouponId
);
}
boolean
resultFlg
=
goblinstoreMgtCouponService
.
couponEdit
(
currentUid
,
storeCouponBasicVo
,
beforeSpuIdList
);
return
resultFlg
?
ResponseDto
.
success
()
:
ResponseDto
.
failure
();
return
resultFlg
?
ResponseDto
.
success
()
:
ResponseDto
.
failure
();
}
}
...
...
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/service/impl/manage/GoblinStoreMgtCouponServiceImpl.java
View file @
e895aeb5
...
@@ -205,7 +205,7 @@ public class GoblinStoreMgtCouponServiceImpl implements IGoblinstoreMgtCouponSer
...
@@ -205,7 +205,7 @@ public class GoblinStoreMgtCouponServiceImpl implements IGoblinstoreMgtCouponSer
}
}
@Override
@Override
public
boolean
couponEdit
(
String
uid
,
GoblinStoreCouponBasicVo
storeCouponBasicVo
,
List
<
String
>
beforeSpuIdList
)
{
public
boolean
couponEdit
(
String
uid
,
GoblinStoreCouponBasicVo
storeCouponBasicVo
)
{
String
storeCouponId
=
storeCouponBasicVo
.
getStoreCouponId
();
String
storeCouponId
=
storeCouponBasicVo
.
getStoreCouponId
();
LocalDateTime
now
=
LocalDateTime
.
now
();
LocalDateTime
now
=
LocalDateTime
.
now
();
...
@@ -214,6 +214,7 @@ public class GoblinStoreMgtCouponServiceImpl implements IGoblinstoreMgtCouponSer
...
@@ -214,6 +214,7 @@ public class GoblinStoreMgtCouponServiceImpl implements IGoblinstoreMgtCouponSer
if
(
goblinMongoUtils
.
updateMgtStoreCouponBasicVo
(
storeCouponBasicVo
))
{
if
(
goblinMongoUtils
.
updateMgtStoreCouponBasicVo
(
storeCouponBasicVo
))
{
goblinRedisUtils
.
del
(
GoblinRedisConst
.
STORE_COUPON
.
concat
(
storeCouponId
));
// 删除REDIS缓存
goblinRedisUtils
.
del
(
GoblinRedisConst
.
STORE_COUPON
.
concat
(
storeCouponId
));
// 删除REDIS缓存
goblinRedisUtils
.
del
(
GoblinRedisConst
.
STORE_COUPON_RULE
.
concat
(
storeCouponId
));
// 删除REDIS缓存
LinkedList
<
String
>
toMqSqls
=
CollectionUtil
.
linkedListString
();
LinkedList
<
String
>
toMqSqls
=
CollectionUtil
.
linkedListString
();
toMqSqls
.
add
(
SqlMapping
.
get
(
"goblin_store_coupon.update"
));
toMqSqls
.
add
(
SqlMapping
.
get
(
"goblin_store_coupon.update"
));
...
...
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