Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
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
youjj
cloud-platform
Commits
24f15a9a
Commit
24f15a9a
authored
Nov 14, 2019
by
周健威
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
75fa5d89
19c58c48
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
4 deletions
+18
-4
UserCouponDTO.java
...in/java/com/xxfc/platform/activity/dto/UserCouponDTO.java
+3
-0
UserCouponPageVo.java
.../java/com/xxfc/platform/activity/vo/UserCouponPageVo.java
+3
-1
UserCouponMapper.xml
...ity-server/src/main/resources/mapper/UserCouponMapper.xml
+2
-1
MsgBiz.java
...server/src/main/java/com/xxfc/platform/im/biz/MsgBiz.java
+10
-2
No files found.
xx-activity/xx-activity-api/src/main/java/com/xxfc/platform/activity/dto/UserCouponDTO.java
View file @
24f15a9a
...
@@ -25,6 +25,9 @@ public class UserCouponDTO {
...
@@ -25,6 +25,9 @@ public class UserCouponDTO {
@ApiModelProperty
(
value
=
"抵扣金额"
)
@ApiModelProperty
(
value
=
"抵扣金额"
)
private
BigDecimal
usedAmount
;
private
BigDecimal
usedAmount
;
@ApiModelProperty
(
value
=
"时效"
)
private
Integer
validType
;
@ApiModelProperty
(
value
=
"0-未使用;1-已使用"
)
@ApiModelProperty
(
value
=
"0-未使用;1-已使用"
)
private
Integer
isUse
;
private
Integer
isUse
;
...
...
xx-activity/xx-activity-api/src/main/java/com/xxfc/platform/activity/vo/UserCouponPageVo.java
View file @
24f15a9a
...
@@ -25,7 +25,9 @@ public class UserCouponPageVo {
...
@@ -25,7 +25,9 @@ public class UserCouponPageVo {
@ApiModelProperty
(
value
=
"抵扣金额"
)
@ApiModelProperty
(
value
=
"抵扣金额"
)
private
BigDecimal
usedAmount
;
private
BigDecimal
usedAmount
;
@ApiModelProperty
(
value
=
"时效"
)
private
Integer
validType
;
@ApiModelProperty
(
value
=
"0-未使用;1-已使用"
)
@ApiModelProperty
(
value
=
"0-未使用;1-已使用"
)
private
Integer
isUse
;
private
Integer
isUse
;
...
...
xx-activity/xx-activity-server/src/main/resources/mapper/UserCouponMapper.xml
View file @
24f15a9a
...
@@ -82,6 +82,7 @@
...
@@ -82,6 +82,7 @@
uc.is_use AS `isUse`,
uc.is_use AS `isUse`,
cp.title,
cp.title,
cp.used_amount AS `usedAmount`,
cp.used_amount AS `usedAmount`,
cp.valid_type AS `validType`,
uc.crt_time AS `crtTime`,
uc.crt_time AS `crtTime`,
uc.expire_time AS `expireTime`,
uc.expire_time AS `expireTime`,
uc.use_time AS `useTime`
uc.use_time AS `useTime`
...
@@ -94,7 +95,7 @@
...
@@ -94,7 +95,7 @@
<if
test=
"status != null"
>
<if
test=
"status != null"
>
AND `is_use`=#{status}
AND `is_use`=#{status}
</if>
) AS `uc`
</if>
) AS `uc`
INNER JOIN ( SELECT `id`, `title`, `used_amount` FROM `coupon` WHERE 1=1
INNER JOIN ( SELECT `id`, `title`, `used_amount`
,`valid_type`
FROM `coupon` WHERE 1=1
<if
test=
"couponId != null"
>
<if
test=
"couponId != null"
>
AND `id`=#{couponId}
AND `id`=#{couponId}
</if>
</if>
...
...
xx-im/xx-im-server/src/main/java/com/xxfc/platform/im/biz/MsgBiz.java
View file @
24f15a9a
...
@@ -370,8 +370,16 @@ public class MsgBiz {
...
@@ -370,8 +370,16 @@ public class MsgBiz {
}
}
}
}
//下单时间
//下单时间
if
(
msgQueryDto
.
getStartTime
()
!=
null
)
{
if
(
msgQueryDto
.
getStartTime
()
!=
null
)
{
query
.
addCriteria
(
Criteria
.
where
(
"body.time"
).
gte
(
msgQueryDto
.
getStartTime
())).
addCriteria
((
Criteria
.
where
(
"body.time"
).
lte
(
msgQueryDto
.
getEndTime
())));
if
(
msgQueryDto
.
getEndTime
()
==
null
)
{
query
.
addCriteria
(
Criteria
.
where
(
"body.time"
).
gte
(
msgQueryDto
.
getStartTime
()).
lte
(
System
.
currentTimeMillis
()));
}
else
{
query
.
addCriteria
(
Criteria
.
where
(
"body.time"
).
gte
(
msgQueryDto
.
getStartTime
()).
lte
(
msgQueryDto
.
getEndTime
()));
}
}
else
{
if
(
msgQueryDto
.
getEndTime
()
!=
null
)
{
query
.
addCriteria
(
Criteria
.
where
(
"body.time"
).
gte
(
System
.
currentTimeMillis
()).
lte
(
msgQueryDto
.
getEndTime
()));
}
}
}
//用户名
//用户名
if
(
StringUtils
.
isNotBlank
(
msgQueryDto
.
getUsername
()))
{
if
(
StringUtils
.
isNotBlank
(
msgQueryDto
.
getUsername
()))
{
...
...
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