Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Q
qk_backend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
quanku
qk_backend
Commits
d01bfcc8
Commit
d01bfcc8
authored
Jul 16, 2024
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
账单列表金额单位转换
parent
323ca721
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
12 deletions
+27
-12
ch-admin-api/src/main/java/com/wwdz/ch/admin/entity/vo/UserBillVo.java
...src/main/java/com/wwdz/ch/admin/entity/vo/UserBillVo.java
+6
-6
ch-admin-api/src/main/java/com/wwdz/ch/admin/impl/SysFinanceServiceImpl.java
...in/java/com/wwdz/ch/admin/impl/SysFinanceServiceImpl.java
+6
-0
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/SupplierItemServiceImpl.java
...wwdz/ch/wx/impl/distribution/SupplierItemServiceImpl.java
+15
-6
No files found.
ch-admin-api/src/main/java/com/wwdz/ch/admin/entity/vo/UserBillVo.java
View file @
d01bfcc8
...
@@ -43,34 +43,34 @@ public class UserBillVo implements Entity {
...
@@ -43,34 +43,34 @@ public class UserBillVo implements Entity {
* 总入账金额
* 总入账金额
*/
*/
@ExcelProperty
(
value
=
"转账金额"
,
index
=
6
)
@ExcelProperty
(
value
=
"转账金额"
,
index
=
6
)
private
Lo
ng
totalEntryAmount
;
private
Stri
ng
totalEntryAmount
;
/**
/**
* 总待入账金额
* 总待入账金额
*/
*/
private
Lo
ng
totalWaitEntryAmount
;
private
Stri
ng
totalWaitEntryAmount
;
/**
/**
* 订单入账金额
* 订单入账金额
*/
*/
@ExcelProperty
(
value
=
"订单收入"
,
index
=
7
)
@ExcelProperty
(
value
=
"订单收入"
,
index
=
7
)
private
Lo
ng
orderEntryAmount
;
private
Stri
ng
orderEntryAmount
;
/**
/**
* 订单待入账金额
* 订单待入账金额
*/
*/
private
Lo
ng
orderWaitEntryAmount
;
private
Stri
ng
orderWaitEntryAmount
;
/**
/**
* 介绍佣金入账金额
* 介绍佣金入账金额
*/
*/
@ExcelProperty
(
value
=
"介绍佣金"
,
index
=
8
)
@ExcelProperty
(
value
=
"介绍佣金"
,
index
=
8
)
private
Lo
ng
introduceEntryAmount
;
private
Stri
ng
introduceEntryAmount
;
/**
/**
* 介绍佣金待入账金额
* 介绍佣金待入账金额
*/
*/
private
Lo
ng
introduceWaitEntryAmount
;
private
Stri
ng
introduceWaitEntryAmount
;
/**
/**
* 创建时间
* 创建时间
...
...
ch-admin-api/src/main/java/com/wwdz/ch/admin/impl/SysFinanceServiceImpl.java
View file @
d01bfcc8
...
@@ -155,6 +155,12 @@ public class SysFinanceServiceImpl implements SysFinanceService {
...
@@ -155,6 +155,12 @@ public class SysFinanceServiceImpl implements SysFinanceService {
EntityMapper
.
copyAttribute
(
userBill
,
userBillVo
);
EntityMapper
.
copyAttribute
(
userBill
,
userBillVo
);
userBillVo
.
setAccountPeriod
(
userBill
.
getAccountPeriod
());
userBillVo
.
setAccountPeriod
(
userBill
.
getAccountPeriod
());
userBillVo
.
setUserName
(
cacheUtil
.
appletUserInfoCache
.
get
(
userBill
.
getUserId
()).
get
().
getNickname
());
userBillVo
.
setUserName
(
cacheUtil
.
appletUserInfoCache
.
get
(
userBill
.
getUserId
()).
get
().
getNickname
());
userBillVo
.
setTotalEntryAmount
(
PriceUtil
.
convertPriceFenToYuan
(
userBill
.
getTotalEntryAmount
()));
userBillVo
.
setTotalWaitEntryAmount
(
PriceUtil
.
convertPriceFenToYuan
(
userBill
.
getTotalWaitEntryAmount
()));
userBillVo
.
setOrderEntryAmount
(
PriceUtil
.
convertPriceFenToYuan
(
userBill
.
getOrderEntryAmount
()));
userBillVo
.
setOrderWaitEntryAmount
(
PriceUtil
.
convertPriceFenToYuan
(
userBill
.
getOrderWaitEntryAmount
()));
userBillVo
.
setIntroduceEntryAmount
(
PriceUtil
.
convertPriceFenToYuan
(
userBill
.
getIntroduceEntryAmount
()));
userBillVo
.
setIntroduceWaitEntryAmount
(
PriceUtil
.
convertPriceFenToYuan
(
userBill
.
getIntroduceWaitEntryAmount
()));
//查询银行卡信息
//查询银行卡信息
UserBankCard
userBankCard
=
userBankCardDao
.
findById
(
userBill
.
getUserId
());
UserBankCard
userBankCard
=
userBankCardDao
.
findById
(
userBill
.
getUserId
());
if
(
userBankCard
!=
null
)
{
if
(
userBankCard
!=
null
)
{
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/SupplierItemServiceImpl.java
View file @
d01bfcc8
...
@@ -546,8 +546,8 @@ public class SupplierItemServiceImpl implements SupplierItemService {
...
@@ -546,8 +546,8 @@ public class SupplierItemServiceImpl implements SupplierItemService {
if
(
itemId
==
null
)
{
if
(
itemId
==
null
)
{
return
Result
.
failed
(
"没有对应的商品id"
);
return
Result
.
failed
(
"没有对应的商品id"
);
}
}
// collectionShareRecord.getItemUserId()
if
(
collectionShareRecord
.
getItemUserId
().
longValue
()
!=
dto
.
getUserId
().
longValue
())
{
if
(
collectionShareRecord
!=
null
&&
collectionShareRecord
.
getItemUserId
().
longValue
()
!=
dto
.
getUserId
().
longValue
())
{
//客态进入别人的藏馆,自动关注
//客态进入别人的藏馆,自动关注
FollowFansRecordRequestDto
followFansRecordRequestDto
=
new
FollowFansRecordRequestDto
();
FollowFansRecordRequestDto
followFansRecordRequestDto
=
new
FollowFansRecordRequestDto
();
followFansRecordRequestDto
.
setFollowerId
(
collectionShareRecord
.
getItemUserId
());
followFansRecordRequestDto
.
setFollowerId
(
collectionShareRecord
.
getItemUserId
());
...
@@ -838,7 +838,7 @@ public class SupplierItemServiceImpl implements SupplierItemService {
...
@@ -838,7 +838,7 @@ public class SupplierItemServiceImpl implements SupplierItemService {
}
else
{
}
else
{
collectionShareRecord
=
collectionShareRecordDao
.
findById
(
dto
.
getShareRecordId
());
collectionShareRecord
=
collectionShareRecordDao
.
findById
(
dto
.
getShareRecordId
());
itemId
=
collectionShareRecord
.
getShareTargetId
();
itemId
=
collectionShareRecord
.
getShareTargetId
();
if
(
collectionShareRecord
.
getItemUserId
().
longValue
()
!=
dto
.
getUserId
().
longValue
())
{
if
(
collectionShareRecord
!=
null
&&
collectionShareRecord
.
getItemUserId
().
longValue
()
!=
dto
.
getUserId
().
longValue
())
{
//客态进入别人的藏馆,自动关注
//客态进入别人的藏馆,自动关注
FollowFansRecordRequestDto
followFansRecordRequestDto
=
new
FollowFansRecordRequestDto
();
FollowFansRecordRequestDto
followFansRecordRequestDto
=
new
FollowFansRecordRequestDto
();
followFansRecordRequestDto
.
setFollowerId
(
collectionShareRecord
.
getItemUserId
());
followFansRecordRequestDto
.
setFollowerId
(
collectionShareRecord
.
getItemUserId
());
...
@@ -876,9 +876,9 @@ public class SupplierItemServiceImpl implements SupplierItemService {
...
@@ -876,9 +876,9 @@ public class SupplierItemServiceImpl implements SupplierItemService {
}
}
return
Result
.
failed
(
"该藏品已删除"
);
return
Result
.
failed
(
"该藏品已删除"
);
}
}
//如果是客态,则自动关注该用户
/*
//如果是客态,则自动关注该用户
if (StringUtils.hasLength(dto.getShareRecordId())) {
if (StringUtils.hasLength(dto.getShareRecordId())) {
if
(
collectionShareRecord
.
getItemUserId
().
longValue
()
!=
dto
.
getUserId
().
longValue
())
{
if (collectionShareRecord
!= null && collectionShareRecord
.getItemUserId().longValue() != dto.getUserId().longValue()) {
FollowFansRecordRequestDto followFansRecordRequestDto = new FollowFansRecordRequestDto();
FollowFansRecordRequestDto followFansRecordRequestDto = new FollowFansRecordRequestDto();
followFansRecordRequestDto.setFollowerId(collectionShareRecord.getItemUserId());
followFansRecordRequestDto.setFollowerId(collectionShareRecord.getItemUserId());
followFansRecordRequestDto.setFansId(dto.getUserId());
followFansRecordRequestDto.setFansId(dto.getUserId());
...
@@ -886,7 +886,16 @@ public class SupplierItemServiceImpl implements SupplierItemService {
...
@@ -886,7 +886,16 @@ public class SupplierItemServiceImpl implements SupplierItemService {
followFansRecordService.follow(followFansRecordRequestDto);
followFansRecordService.follow(followFansRecordRequestDto);
logger.info("用户id:{} 关注了 用户id为 {}, 介绍人为", dto.getUserId(), collectionShareRecord.getItemUserId(), collectionShareRecord.getSharerId());
logger.info("用户id:{} 关注了 用户id为 {}, 介绍人为", dto.getUserId(), collectionShareRecord.getItemUserId(), collectionShareRecord.getSharerId());
}
}
} else {
if (supplierItem.getCreatorId().longValue() != dto.getUserId().longValue()) {
FollowFansRecordRequestDto followFansRecordRequestDto = new FollowFansRecordRequestDto();
followFansRecordRequestDto.setFollowerId(collectionShareRecord.getItemUserId());
followFansRecordRequestDto.setFansId(dto.getUserId());
followFansRecordRequestDto.setIntroducerId(CommConsts.SYSTEM_ACCOUNT);
followFansRecordService.follow(followFansRecordRequestDto);
logger.info("用户id:{} 关注了 用户id为 {}, 介绍人为", dto.getUserId(), collectionShareRecord.getItemUserId(), collectionShareRecord.getSharerId());
}
}
}*/
//返回用户二维码
//返回用户二维码
User
user
=
cacheUtil
.
appletUserInfoCache
.
get
(
supplierItem
.
getCreatorId
()).
get
();
User
user
=
cacheUtil
.
appletUserInfoCache
.
get
(
supplierItem
.
getCreatorId
()).
get
();
if
(
user
!=
null
)
{
if
(
user
!=
null
)
{
...
...
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