记得上下班打卡 | 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
b7ff9820
Commit
b7ff9820
authored
Sep 02, 2021
by
张国柄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
后台管理会员价格编辑调整;
parent
550fae85
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
17 deletions
+26
-17
AdamMemberPriceVo.java
.../com/liquidnet/service/adam/dto/vo/AdamMemberPriceVo.java
+17
-14
AdamMemberPriceAdminServiceImpl.java
...ai/adam/service/impl/AdamMemberPriceAdminServiceImpl.java
+9
-3
No files found.
liquidnet-bus-api/liquidnet-service-adam-api/src/main/java/com/liquidnet/service/adam/dto/vo/AdamMemberPriceVo.java
View file @
b7ff9820
...
...
@@ -20,22 +20,24 @@ public class AdamMemberPriceVo implements Serializable {
private
String
memberPriceId
;
@ApiModelProperty
(
position
=
2
,
value
=
"会员类型ID"
)
private
String
memberId
;
@ApiModelProperty
(
position
=
3
,
value
=
"价格状态[0-不可用,1-上线中,2-已下线]"
)
private
Integer
state
;
//
@ApiModelProperty(position = 3, value = "价格状态[0-不可用,1-上线中,2-已下线]")
//
private Integer state;
@ApiModelProperty
(
position
=
4
,
value
=
"价格包名称"
)
private
String
name
;
@ApiModelProperty
(
position
=
5
,
value
=
"原价"
)
private
BigDecimal
price
;
@ApiModelProperty
(
position
=
6
,
value
=
"折扣价"
)
@ApiModelProperty
(
position
=
6
,
value
=
"折扣价
:购买价格
"
)
private
BigDecimal
priceFixed
;
@ApiModelProperty
(
position
=
7
,
value
=
"有效天数"
)
@ApiModelProperty
(
position
=
7
,
value
=
"特价:首次、首年优惠价"
)
private
BigDecimal
priceSpecial
;
@ApiModelProperty
(
position
=
8
,
value
=
"有效天数"
)
private
Integer
days
;
@ApiModelProperty
(
position
=
8
,
value
=
"会员包须知"
)
private
String
detail
;
@JsonFormat
(
shape
=
JsonFormat
.
Shape
.
STRING
,
pattern
=
DateUtil
.
DATE_FULL_STR
)
private
LocalDateTime
createdAt
;
@JsonFormat
(
shape
=
JsonFormat
.
Shape
.
STRING
,
pattern
=
DateUtil
.
DATE_FULL_STR
)
private
LocalDateTime
updatedAt
;
//
@ApiModelProperty(position = 8, value = "会员包须知")
//
private String detail;
//
@JsonFormat(shape=JsonFormat.Shape.STRING, pattern= DateUtil.DATE_FULL_STR)
//
private LocalDateTime createdAt;
//
@JsonFormat(shape=JsonFormat.Shape.STRING, pattern= DateUtil.DATE_FULL_STR)
//
private LocalDateTime updatedAt;
private
static
final
AdamMemberPriceVo
obj
=
new
AdamMemberPriceVo
();
...
...
@@ -51,14 +53,15 @@ public class AdamMemberPriceVo implements Serializable {
if
(
null
==
source
)
return
this
;
this
.
setMemberPriceId
(
source
.
getMemberPriceId
());
this
.
setMemberId
(
source
.
getMemberId
());
this
.
setState
(
source
.
getState
());
//
this.setState(source.getState());
this
.
setName
(
source
.
getName
());
this
.
setPrice
(
source
.
getPrice
());
this
.
setPriceFixed
(
source
.
getPriceFixed
());
this
.
setPriceSpecial
(
source
.
getPriceSpecial
());
this
.
setDays
(
source
.
getDays
());
this
.
setDetail
(
source
.
getDetail
());
this
.
setCreatedAt
(
source
.
getCreatedAt
());
this
.
setUpdatedAt
(
source
.
getUpdatedAt
());
//
this.setDetail(source.getDetail());
//
this.setCreatedAt(source.getCreatedAt());
//
this.setUpdatedAt(source.getUpdatedAt());
return
this
;
}
}
liquidnet-bus-client/liquidnet-client-admin/liquidnet-client-admin-zhengzai/src/main/java/com/liquidnet/client/admin/zhengzai/adam/service/impl/AdamMemberPriceAdminServiceImpl.java
View file @
b7ff9820
...
...
@@ -50,7 +50,7 @@ public class AdamMemberPriceAdminServiceImpl extends ServiceImpl<AdamMemberPrice
@Override
@Transactional
public
boolean
edit
(
AdamMemberPriceBuildParam
param
)
{
String
memberId
=
param
.
getMemberId
()
,
memberPriceId
=
param
.
getMemberPriceId
()
;
String
memberId
=
param
.
getMemberId
();
AdamMember
updateInfo
=
new
AdamMember
();
updateInfo
.
setIntegralRate
(
param
.
getIntegralRate
());
...
...
@@ -93,8 +93,14 @@ public class AdamMemberPriceAdminServiceImpl extends ServiceImpl<AdamMemberPrice
saveOrUpdateInfo
=
adamMemberPriceMapper
.
selectList
(
queryWrapper
).
get
(
0
);
}
if
(
saveOrUpdateRst
)
{
AdamMemberPriceVo
vo
=
AdamMemberPriceVo
.
getNew
().
copy
(
saveOrUpdateInfo
);
redisUtil
.
set
(
AdamRedisConst
.
INFO_MEMBER_PRICE
.
concat
(
vo
.
getMemberPriceId
()),
vo
);
String
memberPriceId
=
saveOrUpdateInfo
.
getMemberPriceId
();
String
mpKey
=
AdamRedisConst
.
INFO_MEMBER_PRICE
.
concat
(
memberId
);
List
<
AdamMemberPriceVo
>
vos
=
(
List
<
AdamMemberPriceVo
>)
redisUtil
.
get
(
mpKey
);
vos
.
removeIf
(
r
->
(
r
.
getMemberId
().
equals
(
memberId
)
&&
r
.
getMemberPriceId
().
equals
(
memberPriceId
)));
vos
.
add
(
AdamMemberPriceVo
.
getNew
().
copy
(
saveOrUpdateInfo
));
redisUtil
.
set
(
mpKey
,
vos
);
return
true
;
}
throw
new
LiquidnetServiceException
(
"-1"
,
"会员价格编辑失败"
);
...
...
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