Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gxpt_ht
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
pseer
gxpt_ht
Commits
117891fc
Commit
117891fc
authored
Aug 29, 2024
by
吕明尚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
权益会员配置增加字段,数据统计增加默认值
parent
f2385f3e
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
0 deletions
+20
-0
EquityMembersOrderConfig.java
...in/java/share/system/domain/EquityMembersOrderConfig.java
+6
-0
SOrderServiceImpl.java
...ain/java/share/system/service/impl/SOrderServiceImpl.java
+2
-0
EquityMembersOrderConfigMapper.xml
...esources/mapper/system/EquityMembersOrderConfigMapper.xml
+12
-0
No files found.
share-system/src/main/java/share/system/domain/EquityMembersOrderConfig.java
View file @
117891fc
...
...
@@ -26,6 +26,9 @@ public class EquityMembersOrderConfig extends BaseEntity {
@TableId
(
type
=
IdType
.
AUTO
)
private
Long
id
;
@Excel
(
name
=
"配置名称"
)
private
String
name
;
/**
* 默认会员等级
*/
...
...
@@ -50,6 +53,9 @@ public class EquityMembersOrderConfig extends BaseEntity {
@Excel
(
name
=
"会员有效期"
)
private
Long
validityPeriod
;
@Excel
(
name
=
"赠送积分"
)
private
BigDecimal
giftPoints
;
/**
* 是否删除
*/
...
...
share-system/src/main/java/share/system/service/impl/SOrderServiceImpl.java
View file @
117891fc
...
...
@@ -2968,6 +2968,7 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme
orderVo
.
setStoreName
(
sStoreMap
.
get
(
order
.
getStoreId
()).
getName
());
orderVo
.
setRoomName
(
sRoomMap
.
get
(
order
.
getRoomId
()).
getName
());
orderVo
.
setCreateTime
(
order
.
getCreateTime
());
orderVo
.
setCouponPayPrice
(
BigDecimal
.
ZERO
);
if
(
order
.
getStatus
().
equals
(
OrderStatusEnum
.
CANCEL
.
getCode
())
&&
order
.
getRefundStatus
().
equals
(
RefundStatusEnum
.
REFUNDED
.
getCode
()))
{
if
(!
map
.
isEmpty
())
{
if
(
ObjectUtil
.
isNotEmpty
(
order
.
getCouponId
()))
{
...
...
@@ -3143,6 +3144,7 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme
orderVo
.
setStoreName
(
sStoreMap
.
get
(
order
.
getStoreId
()).
getName
());
orderVo
.
setRoomName
(
sRoomMap
.
get
(
order
.
getRoomId
()).
getName
());
orderVo
.
setCreateTime
(
order
.
getCreateTime
());
orderVo
.
setCouponPayPrice
(
BigDecimal
.
ZERO
);
if
(
order
.
getStatus
().
equals
(
OrderStatusEnum
.
CANCEL
.
getCode
())
&&
order
.
getRefundStatus
().
equals
(
RefundStatusEnum
.
REFUNDED
.
getCode
()))
{
if
(!
map
.
isEmpty
())
{
if
(
ObjectUtil
.
isNotEmpty
(
order
.
getCouponId
()))
{
...
...
share-system/src/main/resources/mapper/system/EquityMembersOrderConfigMapper.xml
View file @
117891fc
...
...
@@ -6,10 +6,12 @@
<resultMap
type=
"EquityMembersOrderConfig"
id=
"EquityMembersOrderConfigResult"
>
<result
property=
"id"
column=
"id"
/>
<result
property=
"name"
column=
"name"
/>
<result
property=
"defaultLevel"
column=
"default_level"
/>
<result
property=
"memberConfigId"
column=
"member_config_id"
/>
<result
property=
"requiredAmount"
column=
"required_amount"
/>
<result
property=
"validityPeriod"
column=
"validity_period"
/>
<result
property=
"giftPoints"
column=
"gift_points"
/>
<result
property=
"isDelete"
column=
"is_delete"
/>
<result
property=
"createBy"
column=
"create_by"
/>
<result
property=
"createTime"
column=
"create_time"
/>
...
...
@@ -20,10 +22,12 @@
<sql
id=
"selectEquityMembersOrderConfigVo"
>
select id,
name,
default_level,
member_config_id,
required_amount,
validity_period,
gift_points,
is_delete,
create_by,
create_time,
...
...
@@ -38,9 +42,11 @@
<include
refid=
"selectEquityMembersOrderConfigVo"
/>
<where>
<if
test=
"defaultLevel != null "
>
and default_level = #{defaultLevel}
</if>
<if
test=
"name != null"
>
and name = #{name}
</if>
<if
test=
"memberConfigId != null "
>
and member_config_id = #{memberConfigId}
</if>
<if
test=
"requiredAmount != null "
>
and required_amount = #{requiredAmount}
</if>
<if
test=
"validityPeriod != null "
>
and validity_period = #{validityPeriod}
</if>
<if
test=
"giftPoints != null "
>
and gift_points = #{giftPoints}
</if>
<if
test=
"isDelete != null "
>
and is_delete = #{isDelete}
</if>
</where>
</select>
...
...
@@ -54,10 +60,12 @@
keyProperty=
"id"
>
insert into s_equity_members_order_config
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"name !=null"
>
name,
</if>
<if
test=
"defaultLevel != null"
>
default_level,
</if>
<if
test=
"memberConfigId != null"
>
member_config_id,
</if>
<if
test=
"requiredAmount != null"
>
required_amount,
</if>
<if
test=
"validityPeriod != null"
>
validity_period,
</if>
<if
test=
"giftPoints != null"
>
gift_points,
</if>
<if
test=
"isDelete != null"
>
is_delete,
</if>
<if
test=
"createBy != null"
>
create_by,
</if>
<if
test=
"createTime != null"
>
create_time,
</if>
...
...
@@ -66,10 +74,12 @@
<if
test=
"remark != null"
>
remark,
</if>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"name !=null"
>
#{name},
</if>
<if
test=
"defaultLevel != null"
>
#{defaultLevel},
</if>
<if
test=
"memberConfigId != null"
>
#{memberConfigId},
</if>
<if
test=
"requiredAmount != null"
>
#{requiredAmount},
</if>
<if
test=
"validityPeriod != null"
>
#{validityPeriod},
</if>
<if
test=
"giftPoints != null"
>
#{giftPoints},
</if>
<if
test=
"isDelete != null"
>
#{isDelete},
</if>
<if
test=
"createBy != null"
>
#{createBy},
</if>
<if
test=
"createTime != null"
>
#{createTime},
</if>
...
...
@@ -82,10 +92,12 @@
<update
id=
"updateEquityMembersOrderConfig"
parameterType=
"EquityMembersOrderConfig"
>
update s_equity_members_order_config
<trim
prefix=
"SET"
suffixOverrides=
","
>
<if
test=
"name !=null"
>
name = #{name},
</if>
<if
test=
"defaultLevel != null"
>
default_level = #{defaultLevel},
</if>
<if
test=
"memberConfigId != null"
>
member_config_id = #{memberConfigId},
</if>
<if
test=
"requiredAmount != null"
>
required_amount = #{requiredAmount},
</if>
<if
test=
"validityPeriod != null"
>
validity_period = #{validityPeriod},
</if>
<if
test=
"giftPoints != null"
>
gift_points = #{giftPoints},
</if>
<if
test=
"isDelete != null"
>
is_delete = #{isDelete},
</if>
<if
test=
"createBy != null"
>
create_by = #{createBy},
</if>
<if
test=
"createTime != null"
>
create_time = #{createTime},
</if>
...
...
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