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
2d780206
Commit
2d780206
authored
Oct 10, 2024
by
吕明尚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改后台管理系统查询
parent
2bb77946
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
43 additions
and
17 deletions
+43
-17
SOrderController.java
...in/java/share/web/controller/system/SOrderController.java
+2
-2
SOrderVo.java
...system/src/main/java/share/system/domain/vo/SOrderVo.java
+29
-0
SOrderMapper.java
...ystem/src/main/java/share/system/mapper/SOrderMapper.java
+4
-3
ISOrderService.java
...em/src/main/java/share/system/service/ISOrderService.java
+4
-4
SOrderServiceImpl.java
...ain/java/share/system/service/impl/SOrderServiceImpl.java
+4
-4
SecondaryCardLogServiceImpl.java
...hare/system/service/impl/SecondaryCardLogServiceImpl.java
+0
-4
SOrderMapper.xml
...-system/src/main/resources/mapper/system/SOrderMapper.xml
+0
-0
No files found.
share-admin/src/main/java/share/web/controller/system/SOrderController.java
View file @
2d780206
...
@@ -41,7 +41,7 @@ public class SOrderController extends BaseController
...
@@ -41,7 +41,7 @@ public class SOrderController extends BaseController
*/
*/
@PreAuthorize
(
"@ss.hasPermi('system:order:list')"
)
@PreAuthorize
(
"@ss.hasPermi('system:order:list')"
)
@GetMapping
(
"/list"
)
@GetMapping
(
"/list"
)
public
TableDataInfoVo
list
(
SOrder
sOrder
)
public
TableDataInfoVo
list
(
SOrder
Vo
sOrder
)
{
{
startPage
();
startPage
();
List
<
SOrder
>
list
=
sOrderService
.
selectSOrderList
(
sOrder
);
List
<
SOrder
>
list
=
sOrderService
.
selectSOrderList
(
sOrder
);
...
@@ -71,7 +71,7 @@ public class SOrderController extends BaseController
...
@@ -71,7 +71,7 @@ public class SOrderController extends BaseController
@PreAuthorize
(
"@ss.hasPermi('system:order:export')"
)
@PreAuthorize
(
"@ss.hasPermi('system:order:export')"
)
@Log
(
title
=
"订单"
,
businessType
=
BusinessType
.
EXPORT
)
@Log
(
title
=
"订单"
,
businessType
=
BusinessType
.
EXPORT
)
@PostMapping
(
"/export"
)
@PostMapping
(
"/export"
)
public
void
export
(
HttpServletResponse
response
,
SOrder
sOrder
)
public
void
export
(
HttpServletResponse
response
,
SOrder
Vo
sOrder
)
{
{
List
<
SOrderVo
>
list
=
sOrderService
.
exportList
(
sOrder
);
List
<
SOrderVo
>
list
=
sOrderService
.
exportList
(
sOrder
);
ExcelUtil
<
SOrderVo
>
util
=
new
ExcelUtil
<
SOrderVo
>(
SOrderVo
.
class
);
ExcelUtil
<
SOrderVo
>
util
=
new
ExcelUtil
<
SOrderVo
>(
SOrderVo
.
class
);
...
...
share-system/src/main/java/share/system/domain/vo/SOrderVo.java
View file @
2d780206
...
@@ -119,6 +119,12 @@ public class SOrderVo
...
@@ -119,6 +119,12 @@ public class SOrderVo
@Excel
(
name
=
"使用余额"
)
@Excel
(
name
=
"使用余额"
)
private
BigDecimal
balance
;
private
BigDecimal
balance
;
@Excel
(
name
=
"充值金额"
)
private
BigDecimal
rechargeAmount
;
@Excel
(
name
=
"赠送金额"
)
private
BigDecimal
giftAmount
;
@ApiModelProperty
(
value
=
"优惠比例"
)
@ApiModelProperty
(
value
=
"优惠比例"
)
@Excel
(
name
=
"优惠比例"
)
@Excel
(
name
=
"优惠比例"
)
private
BigDecimal
discountRatio
;
private
BigDecimal
discountRatio
;
...
@@ -276,4 +282,27 @@ public class SOrderVo
...
@@ -276,4 +282,27 @@ public class SOrderVo
//是否可以申请退款
//是否可以申请退款
@ApiModelProperty
(
name
=
"是否可以申请退款"
)
@ApiModelProperty
(
name
=
"是否可以申请退款"
)
private
Boolean
isRefund
;
private
Boolean
isRefund
;
@Excel
(
name
=
"次卡ID"
)
private
Long
secondaryCardId
;
@Excel
(
name
=
"月卡ID"
)
private
Long
monthlyCardId
;
@Excel
(
name
=
"历史订单号"
)
private
String
historicalOrderNo
;
/**
* 支付开始时间
*/
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm"
)
@TableField
(
select
=
false
)
private
Date
startPayTime
;
/**
* 支付结束时间
*/
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm"
)
@TableField
(
select
=
false
)
private
Date
endPayTime
;
}
}
share-system/src/main/java/share/system/mapper/SOrderMapper.java
View file @
2d780206
...
@@ -2,6 +2,7 @@ package share.system.mapper;
...
@@ -2,6 +2,7 @@ package share.system.mapper;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
share.system.domain.SOrder
;
import
share.system.domain.SOrder
;
import
share.system.domain.vo.SOrderVo
;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.List
;
...
@@ -28,7 +29,7 @@ public interface SOrderMapper extends BaseMapper<SOrder>
...
@@ -28,7 +29,7 @@ public interface SOrderMapper extends BaseMapper<SOrder>
* @param sOrder 订单
* @param sOrder 订单
* @return 订单集合
* @return 订单集合
*/
*/
public
List
<
SOrder
>
selectSOrderList
(
SOrder
sOrder
);
public
List
<
SOrder
>
selectSOrderList
(
SOrder
Vo
sOrder
);
/**
/**
* 新增订单
* 新增订单
...
@@ -72,7 +73,7 @@ public interface SOrderMapper extends BaseMapper<SOrder>
...
@@ -72,7 +73,7 @@ public interface SOrderMapper extends BaseMapper<SOrder>
List
<
SOrder
>
selectSOrderByStoreIdAndMaxTime
(
SOrder
order
);
List
<
SOrder
>
selectSOrderByStoreIdAndMaxTime
(
SOrder
order
);
HashMap
<
String
,
Object
>
sumPrice
(
SOrder
sOrder
);
HashMap
<
String
,
Object
>
sumPrice
(
SOrder
Vo
sOrder
);
List
<
Long
>
couponIds
(
SOrder
sOrder
);
List
<
Long
>
couponIds
(
SOrder
Vo
sOrder
);
}
}
share-system/src/main/java/share/system/service/ISOrderService.java
View file @
2d780206
...
@@ -39,7 +39,7 @@ public interface ISOrderService extends IService<SOrder>
...
@@ -39,7 +39,7 @@ public interface ISOrderService extends IService<SOrder>
* @param sOrder 订单
* @param sOrder 订单
* @return 订单集合
* @return 订单集合
*/
*/
public
List
<
SOrder
>
selectSOrderList
(
SOrder
sOrder
);
public
List
<
SOrder
>
selectSOrderList
(
SOrder
Vo
sOrder
);
/**
/**
* 查询订单列表
* 查询订单列表
...
@@ -193,7 +193,7 @@ public interface ISOrderService extends IService<SOrder>
...
@@ -193,7 +193,7 @@ public interface ISOrderService extends IService<SOrder>
int
modifyOrder
(
SOrderDto
sOrderDto
);
int
modifyOrder
(
SOrderDto
sOrderDto
);
TableDataInfoVo
pageList
(
TableDataInfo
dataTable
,
SOrder
sOrder
);
TableDataInfoVo
pageList
(
TableDataInfo
dataTable
,
SOrder
Vo
sOrder
);
/**
/**
* 订单退款(人工退款)
* 订单退款(人工退款)
...
@@ -209,7 +209,7 @@ public interface ISOrderService extends IService<SOrder>
...
@@ -209,7 +209,7 @@ public interface ISOrderService extends IService<SOrder>
Boolean
changeRoom
(
SOrderDto
dto
);
Boolean
changeRoom
(
SOrderDto
dto
);
List
<
SOrderVo
>
exportList
(
SOrder
sOrder
);
List
<
SOrderVo
>
exportList
(
SOrder
Vo
sOrder
);
List
<
SOrder
>
selectSOrderByMaxTime
(
SOrder
orderQuery
);
List
<
SOrder
>
selectSOrderByMaxTime
(
SOrder
orderQuery
);
...
@@ -217,7 +217,7 @@ public interface ISOrderService extends IService<SOrder>
...
@@ -217,7 +217,7 @@ public interface ISOrderService extends IService<SOrder>
OrderStatisticsResponse
statistics
(
OrderStatisticsRequest
request
);
OrderStatisticsResponse
statistics
(
OrderStatisticsRequest
request
);
List
<
Long
>
couponIds
(
SOrder
sOrder
);
List
<
Long
>
couponIds
(
SOrder
Vo
sOrder
);
List
<
OrderVo
>
statisticsOrderList
(
OrderStatisticsRequest
request
);
List
<
OrderVo
>
statisticsOrderList
(
OrderStatisticsRequest
request
);
}
}
share-system/src/main/java/share/system/service/impl/SOrderServiceImpl.java
View file @
2d780206
...
@@ -218,7 +218,7 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme
...
@@ -218,7 +218,7 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme
* @return 订单
* @return 订单
*/
*/
@Override
@Override
public
List
<
SOrder
>
selectSOrderList
(
SOrder
sOrder
)
{
public
List
<
SOrder
>
selectSOrderList
(
SOrder
Vo
sOrder
)
{
return
baseMapper
.
selectSOrderList
(
sOrder
);
return
baseMapper
.
selectSOrderList
(
sOrder
);
}
}
...
@@ -380,7 +380,7 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme
...
@@ -380,7 +380,7 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme
}
}
@Override
@Override
public
TableDataInfoVo
pageList
(
TableDataInfo
dataTable
,
SOrder
sOrder
)
{
public
TableDataInfoVo
pageList
(
TableDataInfo
dataTable
,
SOrder
Vo
sOrder
)
{
List
<
SOrder
>
list
=
(
List
<
SOrder
>)
dataTable
.
getRows
();
List
<
SOrder
>
list
=
(
List
<
SOrder
>)
dataTable
.
getRows
();
TableDataInfoVo
tableDataInfo
=
new
TableDataInfoVo
();
TableDataInfoVo
tableDataInfo
=
new
TableDataInfoVo
();
tableDataInfo
.
setCode
(
HttpStatus
.
SUCCESS
);
tableDataInfo
.
setCode
(
HttpStatus
.
SUCCESS
);
...
@@ -785,7 +785,7 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme
...
@@ -785,7 +785,7 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme
}
}
@Override
@Override
public
List
<
SOrderVo
>
exportList
(
SOrder
sOrder
)
{
public
List
<
SOrderVo
>
exportList
(
SOrder
Vo
sOrder
)
{
List
<
SOrder
>
sOrders
=
selectSOrderList
(
sOrder
);
List
<
SOrder
>
sOrders
=
selectSOrderList
(
sOrder
);
List
<
SOrderVo
>
sOrderVos
=
convertDosToVos
(
sOrders
);
List
<
SOrderVo
>
sOrderVos
=
convertDosToVos
(
sOrders
);
List
<
SaobeiApiLog
>
saobeiApiLogs
=
saobeiApiLogService
.
list
();
List
<
SaobeiApiLog
>
saobeiApiLogs
=
saobeiApiLogService
.
list
();
...
@@ -3469,7 +3469,7 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme
...
@@ -3469,7 +3469,7 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme
}
}
@Override
@Override
public
List
<
Long
>
couponIds
(
SOrder
sOrder
)
{
public
List
<
Long
>
couponIds
(
SOrder
Vo
sOrder
)
{
return
baseMapper
.
couponIds
(
sOrder
);
return
baseMapper
.
couponIds
(
sOrder
);
}
}
...
...
share-system/src/main/java/share/system/service/impl/SecondaryCardLogServiceImpl.java
View file @
2d780206
...
@@ -4,9 +4,7 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
...
@@ -4,9 +4,7 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
share.common.utils.DateUtils
;
import
share.common.utils.DateUtils
;
import
share.system.domain.SConsumer
;
import
share.system.domain.SecondaryCardLog
;
import
share.system.domain.SecondaryCardLog
;
import
share.system.domain.vo.FrontTokenComponent
;
import
share.system.domain.vo.SecondaryCardLogVo
;
import
share.system.domain.vo.SecondaryCardLogVo
;
import
share.system.mapper.SecondaryCardLogMapper
;
import
share.system.mapper.SecondaryCardLogMapper
;
import
share.system.service.SecondaryCardLogService
;
import
share.system.service.SecondaryCardLogService
;
...
@@ -43,8 +41,6 @@ public class SecondaryCardLogServiceImpl extends ServiceImpl<SecondaryCardLogMap
...
@@ -43,8 +41,6 @@ public class SecondaryCardLogServiceImpl extends ServiceImpl<SecondaryCardLogMap
*/
*/
@Override
@Override
public
List
<
SecondaryCardLogVo
>
selectSecondaryCardLogList
(
SecondaryCardLogVo
secondaryCardLog
)
{
public
List
<
SecondaryCardLogVo
>
selectSecondaryCardLogList
(
SecondaryCardLogVo
secondaryCardLog
)
{
SConsumer
user
=
FrontTokenComponent
.
getWxSConsumerEntry
();
secondaryCardLog
.
setConsumerId
(
user
.
getId
());
return
secondaryCardLogMapper
.
selectSecondaryCardLogList
(
secondaryCardLog
);
return
secondaryCardLogMapper
.
selectSecondaryCardLogList
(
secondaryCardLog
);
}
}
...
...
share-system/src/main/resources/mapper/system/SOrderMapper.xml
View file @
2d780206
This diff is collapsed.
Click to expand it.
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