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
85101ce1
Commit
85101ce1
authored
Apr 17, 2024
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
藏家个人主页
parent
3a7e2268
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
31 additions
and
2 deletions
+31
-2
ch-dao/src/main/java/com/wwdz/ch/db/dao/distribution/DistributionOrderDao.java
...com/wwdz/ch/db/dao/distribution/DistributionOrderDao.java
+8
-0
ch-dao/src/main/java/com/wwdz/ch/db/impl/distribution/DistributionOrderDaoImpl.java
...wdz/ch/db/impl/distribution/DistributionOrderDaoImpl.java
+5
-0
ch-dao/src/main/java/com/wwdz/ch/db/mapper/distribution/DistributionOrderMapper.java
...dz/ch/db/mapper/distribution/DistributionOrderMapper.java
+6
-1
ch-dao/src/main/resources/com/wwdz/ch/db/mapper/distribution/DistributionOrderMapper.xml
...wdz/ch/db/mapper/distribution/DistributionOrderMapper.xml
+4
-0
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/UserServiceImpl.java
...pi/src/main/java/com/wwdz/ch/wx/impl/UserServiceImpl.java
+7
-0
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/SelfPageServiceImpl.java
...com/wwdz/ch/wx/impl/distribution/SelfPageServiceImpl.java
+1
-1
No files found.
ch-dao/src/main/java/com/wwdz/ch/db/dao/distribution/DistributionOrderDao.java
View file @
85101ce1
...
...
@@ -142,6 +142,14 @@ public interface DistributionOrderDao {
*/
List
<
DistributionOrderNum
>
countGroupByStateForDistributor
(
long
distributorId
);
/**
* 统计藏家各状态的订单数量
* @param userId
* @return
*/
List
<
DistributionOrderNum
>
countGroupByStateForCollector
(
long
userId
);
/**
* 统计用户各状态的订单数量
* @param userId
...
...
ch-dao/src/main/java/com/wwdz/ch/db/impl/distribution/DistributionOrderDaoImpl.java
View file @
85101ce1
...
...
@@ -193,6 +193,11 @@ public class DistributionOrderDaoImpl implements DistributionOrderDao {
return
distributionOrderMapper
.
countGroupByStateForDistributor
(
distributorId
);
}
@Override
public
List
<
DistributionOrderNum
>
countGroupByStateForCollector
(
long
userId
)
{
return
distributionOrderMapper
.
countGroupByStateForCollector
(
userId
);
}
@Override
public
List
<
DistributionOrderNum
>
countGroupByStateForUser
(
long
userId
)
{
return
distributionOrderMapper
.
countGroupByStateForUser
(
userId
);
...
...
ch-dao/src/main/java/com/wwdz/ch/db/mapper/distribution/DistributionOrderMapper.java
View file @
85101ce1
...
...
@@ -75,7 +75,12 @@ public interface DistributionOrderMapper {
*/
List
<
DistributionOrderNum
>
countGroupByStateForDistributor
(
@Param
(
"sellerId"
)
Long
distributorId
);
/**
* 统计分销商各状态的订单数量
* @param distributorId
* @return
*/
List
<
DistributionOrderNum
>
countGroupByStateForCollector
(
@Param
(
"sellerId"
)
Long
userId
);
/**
* 介绍人产生的订单金额总和
...
...
ch-dao/src/main/resources/com/wwdz/ch/db/mapper/distribution/DistributionOrderMapper.xml
View file @
85101ce1
...
...
@@ -634,6 +634,10 @@
select state, count(distribution_order_id) as num from distribution_order where seller_id = #{sellerId} group by state
</select>
<select
id=
"countGroupByStateForCollector"
parameterType=
"java.lang.Long"
resultType=
"com.wwdz.ch.db.bean.DistributionOrderNum"
>
select state, count(distribution_order_id) as num from distribution_order where seller_id = #{sellerId} and type =3 group by state
</select>
<select
id=
"countGroupByStateForUser"
parameterType=
"java.lang.Long"
resultType=
"com.wwdz.ch.db.bean.DistributionOrderNum"
>
select state, count(distribution_order_id) as num from distribution_order where buyer_id = #{buyerId} group by state
</select>
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/UserServiceImpl.java
View file @
85101ce1
...
...
@@ -214,6 +214,13 @@ public class UserServiceImpl implements UserService {
if
(
shopDTO
!=
null
&&
!
ObjectUtils
.
isEmpty
(
shopDTO
.
getShopId
())
&&
shopDTO
.
getPayStatus
()
==
1
&&
shopDTO
.
getCheckStatus
()
==
1
&&
shopDTO
.
getType
()
==
4
)
{
result
.
put
(
"isShop"
,
true
);
result
.
put
(
"shopId"
,
shopDTO
.
getShopId
());
//新商家登录,在表中记录
ShopWhiteList
shopWhiteList
=
new
ShopWhiteList
();
shopWhiteList
.
setUserId
(
dto
.
getUserId
());
shopWhiteList
.
setShopId
(
dto
.
getUserId
());
shopWhiteList
.
setCreateTime
(
new
Date
());
shopWhiteList
.
setIsValid
(
true
);
shopWhiteListDao
.
insert
(
shopWhiteList
);
}
else
{
result
.
put
(
"isShop"
,
false
);
}
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/SelfPageServiceImpl.java
View file @
85101ce1
...
...
@@ -155,7 +155,7 @@ public class SelfPageServiceImpl implements SelfPageService {
selfPageInfoVo
.
setAvatarUrl
(
cacheUtil
.
appletUserInfoCache
.
get
(
dto
.
getUserId
()).
get
().
getAvatar
());
selfPageInfoVo
.
setProfile
(
cacheUtil
.
appletUserInfoCache
.
get
(
dto
.
getUserId
()).
get
().
getProfile
());
selfPageInfoVo
.
setBackground
(
cacheUtil
.
appletUserInfoCache
.
get
(
dto
.
getUserId
()).
get
().
getBackground
());
List
<
DistributionOrderNum
>
distributionOrderNumList
=
distributionOrderDao
.
countGroupByStateFor
Distribu
tor
(
dto
.
getUserId
());
List
<
DistributionOrderNum
>
distributionOrderNumList
=
distributionOrderDao
.
countGroupByStateFor
Collec
tor
(
dto
.
getUserId
());
distributionOrderNumList
.
forEach
(
distributionOrderNum
->
{
distributionOrderNum
.
setStateName
(
DistributionEnum
.
DistributionOrderStateEnum
.
getNameByCode
(
distributionOrderNum
.
getState
()));
});
...
...
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