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
e5e733d4
Commit
e5e733d4
authored
Mar 05, 2024
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
分销商个人主页订单22
parent
e981b51f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
ch-wx-api/src/main/java/com/wwdz/ch/wx/entity/vo/distribution/SelfPageInfoVo.java
...com/wwdz/ch/wx/entity/vo/distribution/SelfPageInfoVo.java
+1
-1
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/SelfPageServiceImpl.java
...com/wwdz/ch/wx/impl/distribution/SelfPageServiceImpl.java
+3
-2
No files found.
ch-wx-api/src/main/java/com/wwdz/ch/wx/entity/vo/distribution/SelfPageInfoVo.java
View file @
e5e733d4
...
@@ -41,7 +41,7 @@ public class SelfPageInfoVo implements Entity {
...
@@ -41,7 +41,7 @@ public class SelfPageInfoVo implements Entity {
private
List
<
DistributionOrderNum
>
orderNum
;
private
List
<
DistributionOrderNum
>
orderNum
;
/**
/**
* 商家
自己购买的订单各状态数量
* 商家
卖出去的商品订单
*/
*/
private
List
<
DistributionOrderNum
>
orderNumForDistributor
;
private
List
<
DistributionOrderNum
>
orderNumForDistributor
;
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/SelfPageServiceImpl.java
View file @
e5e733d4
...
@@ -61,13 +61,14 @@ public class SelfPageServiceImpl implements SelfPageService {
...
@@ -61,13 +61,14 @@ public class SelfPageServiceImpl implements SelfPageService {
distributionOrderNumList
.
forEach
(
distributionOrderNum
->
{
distributionOrderNumList
.
forEach
(
distributionOrderNum
->
{
distributionOrderNum
.
setStateName
(
DistributionEnum
.
DistributionOrderStateEnum
.
getNameByCode
(
distributionOrderNum
.
getState
()));
distributionOrderNum
.
setStateName
(
DistributionEnum
.
DistributionOrderStateEnum
.
getNameByCode
(
distributionOrderNum
.
getState
()));
});
});
selfPageInfoVo
.
setOrderNum
(
distributionOrderNumList
);
//分销商卖出去的商品订单
selfPageInfoVo
.
setOrderNumForDistributor
(
distributionOrderNumList
);
//分销商自己购买的订单
//分销商自己购买的订单
List
<
DistributionOrderNum
>
selfBuyNumList
=
distributionOrderDao
.
countGroupByStateForUser
(
dto
.
getUserId
());
List
<
DistributionOrderNum
>
selfBuyNumList
=
distributionOrderDao
.
countGroupByStateForUser
(
dto
.
getUserId
());
selfBuyNumList
.
forEach
(
s
->
{
selfBuyNumList
.
forEach
(
s
->
{
s
.
setStateName
(
DistributionEnum
.
DistributionOrderStateEnum
.
getNameByCode
(
s
.
getState
()));
s
.
setStateName
(
DistributionEnum
.
DistributionOrderStateEnum
.
getNameByCode
(
s
.
getState
()));
});
});
selfPageInfoVo
.
setOrderNum
ForDistributor
(
selfBuyNumList
);
selfPageInfoVo
.
setOrderNum
(
selfBuyNumList
);
return
Result
.
success
(
selfPageInfoVo
);
return
Result
.
success
(
selfPageInfoVo
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
logger
.
error
(
"查询分销商个人主页失败 error : {}"
,
e
);
logger
.
error
(
"查询分销商个人主页失败 error : {}"
,
e
);
...
...
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