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
a4ab803f
Commit
a4ab803f
authored
Nov 23, 2023
by
wuwenlong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
front order list bugfix
parent
e0f4be20
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
2 deletions
+17
-2
SOrderController.java
...in/java/share/web/controller/system/SOrderController.java
+1
-1
ISOrderService.java
...em/src/main/java/share/system/service/ISOrderService.java
+8
-0
SOrderServiceImpl.java
...ain/java/share/system/service/impl/SOrderServiceImpl.java
+8
-1
No files found.
share-front/src/main/java/share/web/controller/system/SOrderController.java
View file @
a4ab803f
...
...
@@ -58,7 +58,7 @@ public class SOrderController extends BaseController
startPage
();
SConsumer
user
=
FrontTokenComponent
.
getWxSConsumerEntry
();
sOrder
.
setConsumerId
(
user
.
getId
());
List
<
SOrderVo
>
list
=
sOrderService
.
selectSOrderVoList
(
sOrder
);
List
<
SOrderVo
>
list
=
sOrderService
.
select
Payed
SOrderVoList
(
sOrder
);
return
getDataTable
(
list
);
}
...
...
share-system/src/main/java/share/system/service/ISOrderService.java
View file @
a4ab803f
...
...
@@ -45,6 +45,14 @@ public interface ISOrderService extends IService<SOrder>
public
List
<
SOrderVo
>
selectSOrderVoList
(
SOrder
sOrder
);
/**
* 查询已支付订单列表
*
* @param sOrder 订单
* @return 订单集合
*/
public
List
<
SOrderVo
>
selectPayedSOrderVoList
(
SOrder
sOrder
);
/**
* 新增订单
*
* @param sOrder 订单
...
...
share-system/src/main/java/share/system/service/impl/SOrderServiceImpl.java
View file @
a4ab803f
...
...
@@ -110,7 +110,7 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme
public
List
<
SOrder
>
selectSOrderList
(
SOrder
sOrder
)
{
List
<
SOrder
>
orders
=
new
ArrayList
<>();
LambdaQueryWrapper
<
SOrder
>
queryWrapper
=
new
LambdaQueryWrapper
<>();
queryWrapper
.
eq
(
SOrder:
:
getPayStatus
,
YesNoEnum
.
yes
.
getIndex
());
queryWrapper
.
eq
(
SOrder:
:
getPayStatus
,
sOrder
.
getPayStatus
());
if
(
ObjectUtil
.
isNotEmpty
(
sOrder
.
getStatus
()))
{
OrderStatusEnum
orderStatusEnum
=
OrderStatusEnum
.
getEnumByCode
(
sOrder
.
getStatus
());
switch
(
orderStatusEnum
){
...
...
@@ -149,6 +149,13 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme
}
public
List
<
SOrderVo
>
selectPayedSOrderVoList
(
SOrder
sOrder
){
sOrder
.
setPayStatus
(
YesNoEnum
.
yes
.
getIndex
());
return
convertDosToVos
(
selectSOrderList
(
sOrder
));
}
/**
* 验证是否可以申请退款
* @param orderVo 订单信息
...
...
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