记得上下班打卡 | 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
c2fc05c1
Commit
c2fc05c1
authored
Mar 11, 2022
by
Administrator
🎨
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'pre' into 'master'
Pre See merge request
!184
parents
3164744c
7557b567
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
8 deletions
+20
-8
carefullyGoods.html
...rces/templates/zhengzai/store/homeSet/carefullyGoods.html
+2
-2
GoblinCouponImpl.java
...quidnet/service/goblin/service/impl/GoblinCouponImpl.java
+16
-5
GoblinOrderUtils.java
...a/com/liquidnet/service/order/utils/GoblinOrderUtils.java
+2
-1
No files found.
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-web/src/main/resources/templates/zhengzai/store/homeSet/carefullyGoods.html
View file @
c2fc05c1
...
@@ -215,8 +215,8 @@
...
@@ -215,8 +215,8 @@
creatDom
(
1
);
creatDom
(
1
);
return
;
return
;
}
}
$
(
"input[name=
"
+
data
[
0
].
orderType
+
"]"
).
attr
(
'checked'
,
true
).
parent
().
siblings
().
children
().
removeAttr
(
'checked'
);
$
(
"input[name=
'optionsRadios'][value="
+
data
[
0
].
orderType
+
"]"
).
attr
(
'checked'
,
'checked'
).
parent
().
siblings
().
children
().
removeAttr
(
'checked'
);
// $("input[name='selectType'][value='1']").attr("checked", "checked").siblings().removeAttr('checked');
createTime
=
data
[
0
].
createTime
;
createTime
=
data
[
0
].
createTime
;
mid
=
data
[
0
].
mid
;
mid
=
data
[
0
].
mid
;
selectGoodsId
=
data
[
0
].
selectGoodsId
;
selectGoodsId
=
data
[
0
].
selectGoodsId
;
...
...
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/service/impl/GoblinCouponImpl.java
View file @
c2fc05c1
...
@@ -110,17 +110,22 @@ public class GoblinCouponImpl implements GoblinCouponService {
...
@@ -110,17 +110,22 @@ public class GoblinCouponImpl implements GoblinCouponService {
List
<
GoblinUserCouponVo
>
returnList
=
ObjectUtil
.
getGoblinUserCouponVo
();
List
<
GoblinUserCouponVo
>
returnList
=
ObjectUtil
.
getGoblinUserCouponVo
();
// HashMap<String, String> storeIdNameMap = CollectionUtil.mapStringString();
// HashMap<String, String> storeIdNameMap = CollectionUtil.mapStringString();
// GoblinStoreInfoVo storeInfoVoTmp;
// GoblinStoreInfoVo storeInfoVoTmp;
LocalDateTime
now
=
LocalDateTime
.
now
();
for
(
GoblinUserCouponVo
vo
:
voList
)
{
for
(
GoblinUserCouponVo
vo
:
voList
)
{
// if (StringUtils.isNotEmpty(vo.getStoreId())) {
// if (StringUtils.isNotEmpty(vo.getStoreId())) {
// storeInfoVoTmp = goblinRedisUtils.getStoreInfoVo(vo.getStoreId());
// storeInfoVoTmp = goblinRedisUtils.getStoreInfoVo(vo.getStoreId());
// vo.setStoreName(storeIdNameMap.getOrDefault(vo.getStoreId(), null == storeInfoVoTmp ? null : storeInfoVoTmp.getStoreName()));
// vo.setStoreName(storeIdNameMap.getOrDefault(vo.getStoreId(), null == storeInfoVoTmp ? null : storeInfoVoTmp.getStoreName()));
// }
// }
if
(
"1"
.
equals
(
type
))
{
if
(
"1"
.
equals
(
type
))
{
if
(
vo
.
getState
().
equals
(
1
))
{
if
(
vo
.
get
DuedAt
().
isAfter
(
now
)
&&
vo
.
get
State
().
equals
(
1
))
{
returnList
.
add
(
vo
);
returnList
.
add
(
vo
);
}
}
}
else
{
}
else
{
if
(
vo
.
getState
().
equals
(
3
)
||
vo
.
getState
().
equals
(
5
))
{
if
(
vo
.
getDuedAt
().
isBefore
(
now
)
||
vo
.
getState
().
equals
(
3
))
{
vo
.
setState
(
3
);
returnList
.
add
(
vo
);
}
if
(
vo
.
getState
().
equals
(
5
))
{
returnList
.
add
(
vo
);
returnList
.
add
(
vo
);
}
}
}
}
...
@@ -134,9 +139,11 @@ public class GoblinCouponImpl implements GoblinCouponService {
...
@@ -134,9 +139,11 @@ public class GoblinCouponImpl implements GoblinCouponService {
BigDecimal
maxPrice
=
BigDecimal
.
ZERO
;
BigDecimal
maxPrice
=
BigDecimal
.
ZERO
;
GoblinUserCouponVo
returnVo
=
GoblinUserCouponVo
.
getNew
();
GoblinUserCouponVo
returnVo
=
GoblinUserCouponVo
.
getNew
();
List
<
GoblinUserCouponVo
>
voList
=
goblinRedisUtils
.
getUserCouponVos
(
uid
);
List
<
GoblinUserCouponVo
>
voList
=
goblinRedisUtils
.
getUserCouponVos
(
uid
);
LocalDateTime
now
=
LocalDateTime
.
now
();
for
(
GoblinUserCouponVo
vo
:
voList
)
{
for
(
GoblinUserCouponVo
vo
:
voList
)
{
//判断券状态 和 触发金额
//判断券状态 和 触发金额
if
(
vo
.
getState
().
equals
(
1
)
&&
vo
.
getTriggers
().
compareTo
(
totalPrice
)
<=
0
&&
vo
.
getStoreId
().
equals
(
storeId
))
{
if
(
vo
.
get
DuedAt
().
isAfter
(
now
)
&&
vo
.
get
State
().
equals
(
1
)
&&
vo
.
getTriggers
().
compareTo
(
totalPrice
)
<=
0
&&
vo
.
getStoreId
().
equals
(
storeId
))
{
if
(
vo
.
getUseScope
().
equals
(
"0"
))
{
if
(
vo
.
getUseScope
().
equals
(
"0"
))
{
BigDecimal
tempPrice
=
BigDecimal
.
ZERO
;
BigDecimal
tempPrice
=
BigDecimal
.
ZERO
;
if
(
vo
.
getType
().
equals
(
"1"
))
{
//代金券
if
(
vo
.
getType
().
equals
(
"1"
))
{
//代金券
...
@@ -189,9 +196,11 @@ public class GoblinCouponImpl implements GoblinCouponService {
...
@@ -189,9 +196,11 @@ public class GoblinCouponImpl implements GoblinCouponService {
public
List
<
GoblinUserCouponVo
>
useList
(
BigDecimal
totalPrice
,
String
spuId
,
String
uid
)
{
public
List
<
GoblinUserCouponVo
>
useList
(
BigDecimal
totalPrice
,
String
spuId
,
String
uid
)
{
List
<
GoblinUserCouponVo
>
voList
=
goblinRedisUtils
.
getUserCouponVos
(
uid
);
List
<
GoblinUserCouponVo
>
voList
=
goblinRedisUtils
.
getUserCouponVos
(
uid
);
List
<
GoblinUserCouponVo
>
returnList
=
ObjectUtil
.
getGoblinUserCouponVo
();
List
<
GoblinUserCouponVo
>
returnList
=
ObjectUtil
.
getGoblinUserCouponVo
();
LocalDateTime
now
=
LocalDateTime
.
now
();
for
(
GoblinUserCouponVo
vo
:
voList
)
{
for
(
GoblinUserCouponVo
vo
:
voList
)
{
//判断券状态 和 触发金额
//判断券状态 和 触发金额
if
(
vo
.
getState
().
equals
(
1
)
&&
vo
.
getTriggers
().
compareTo
(
totalPrice
)
<=
0
)
{
if
(
vo
.
get
DuedAt
().
isAfter
(
now
)
&&
vo
.
get
State
().
equals
(
1
)
&&
vo
.
getTriggers
().
compareTo
(
totalPrice
)
<=
0
)
{
if
(
vo
.
getUseScope
().
equals
(
"0"
))
{
if
(
vo
.
getUseScope
().
equals
(
"0"
))
{
returnList
.
add
(
vo
);
returnList
.
add
(
vo
);
}
else
{
}
else
{
...
@@ -220,10 +229,12 @@ public class GoblinCouponImpl implements GoblinCouponService {
...
@@ -220,10 +229,12 @@ public class GoblinCouponImpl implements GoblinCouponService {
GoblinUseResultVo
returnVo
=
GoblinUseResultVo
.
getNew
();
GoblinUseResultVo
returnVo
=
GoblinUseResultVo
.
getNew
();
returnVo
.
setValue
(
BigDecimal
.
ZERO
);
returnVo
.
setValue
(
BigDecimal
.
ZERO
);
returnVo
.
setCouType
(
"-1"
);
returnVo
.
setCouType
(
"-1"
);
LocalDateTime
now
=
LocalDateTime
.
now
();
for
(
GoblinUserCouponVo
vo
:
voList
)
{
for
(
GoblinUserCouponVo
vo
:
voList
)
{
if
(
vo
.
getUcouponId
().
equals
(
ucouponId
))
{
if
(
vo
.
getUcouponId
().
equals
(
ucouponId
))
{
//判断券状态 和 触发金额
//判断券状态 和 触发金额
if
(
(
vo
.
getState
().
equals
(
1
)
)
&&
vo
.
getTriggers
().
compareTo
(
totalPrice
)
<=
0
)
{
if
(
vo
.
getDuedAt
().
isAfter
(
now
)
&&
vo
.
getState
().
equals
(
1
)
&&
vo
.
getTriggers
().
compareTo
(
totalPrice
)
<=
0
)
{
if
(
vo
.
getUseScope
().
equals
(
"0"
))
{
if
(
vo
.
getUseScope
().
equals
(
"0"
))
{
if
(
vo
.
getType
().
equals
(
"1"
))
{
//代金券
if
(
vo
.
getType
().
equals
(
"1"
))
{
//代金券
returnVo
.
setValue
(
vo
.
getValFace
());
returnVo
.
setValue
(
vo
.
getValFace
());
...
...
liquidnet-bus-service/liquidnet-service-order/liquidnet-service-order-impl/src/main/java/com/liquidnet/service/order/utils/GoblinOrderUtils.java
View file @
c2fc05c1
...
@@ -194,8 +194,9 @@ public class GoblinOrderUtils {
...
@@ -194,8 +194,9 @@ public class GoblinOrderUtils {
GoblinUseResultVo
returnVo
=
GoblinUseResultVo
.
getNew
();
GoblinUseResultVo
returnVo
=
GoblinUseResultVo
.
getNew
();
returnVo
.
setValue
(
BigDecimal
.
ZERO
);
returnVo
.
setValue
(
BigDecimal
.
ZERO
);
returnVo
.
setCouType
(
"-1"
);
returnVo
.
setCouType
(
"-1"
);
LocalDateTime
now
=
LocalDateTime
.
now
();
for
(
GoblinUserCouponVo
vo
:
voList
)
{
for
(
GoblinUserCouponVo
vo
:
voList
)
{
if
(
vo
.
getUcouponId
().
equals
(
ucouponId
))
{
if
(
vo
.
getUcouponId
().
equals
(
ucouponId
)
&&
vo
.
getDuedAt
().
isAfter
(
now
)
)
{
//判断券状态 和 触发金额
//判断券状态 和 触发金额
if
((
vo
.
getState
().
equals
(
1
))
&&
vo
.
getTriggers
().
compareTo
(
totalPrice
)
<=
0
)
{
if
((
vo
.
getState
().
equals
(
1
))
&&
vo
.
getTriggers
().
compareTo
(
totalPrice
)
<=
0
)
{
if
(
vo
.
getUseScope
().
equals
(
"0"
))
{
if
(
vo
.
getUseScope
().
equals
(
"0"
))
{
...
...
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