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
285a39b2
Commit
285a39b2
authored
Jul 05, 2024
by
吕明尚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改后台管理系统
parent
e190b028
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
82 additions
and
37 deletions
+82
-37
RechargeController.java
.../java/share/web/controller/system/RechargeController.java
+6
-5
RechargeController.java
.../java/share/web/controller/system/RechargeController.java
+6
-5
EquityMembersOrder.java
...src/main/java/share/system/domain/EquityMembersOrder.java
+2
-2
Recharge.java
share-system/src/main/java/share/system/domain/Recharge.java
+4
-4
RechargeVo.java
...stem/src/main/java/share/system/domain/vo/RechargeVo.java
+11
-0
RechargeMapper.java
...tem/src/main/java/share/system/mapper/RechargeMapper.java
+2
-1
RechargeService.java
...m/src/main/java/share/system/service/RechargeService.java
+2
-1
RechargeServiceImpl.java
...n/java/share/system/service/impl/RechargeServiceImpl.java
+2
-1
RechargeMapper.xml
...ystem/src/main/resources/mapper/system/RechargeMapper.xml
+47
-18
No files found.
share-admin/src/main/java/share/web/controller/system/RechargeController.java
View file @
285a39b2
...
@@ -10,6 +10,7 @@ import share.common.core.page.TableDataInfo;
...
@@ -10,6 +10,7 @@ import share.common.core.page.TableDataInfo;
import
share.common.enums.BusinessType
;
import
share.common.enums.BusinessType
;
import
share.common.utils.poi.ExcelUtil
;
import
share.common.utils.poi.ExcelUtil
;
import
share.system.domain.Recharge
;
import
share.system.domain.Recharge
;
import
share.system.domain.vo.RechargeVo
;
import
share.system.service.RechargeService
;
import
share.system.service.RechargeService
;
import
javax.servlet.http.HttpServletResponse
;
import
javax.servlet.http.HttpServletResponse
;
...
@@ -32,9 +33,9 @@ public class RechargeController extends BaseController {
...
@@ -32,9 +33,9 @@ public class RechargeController extends BaseController {
*/
*/
@PreAuthorize
(
"@ss.hasPermi('system:recharge:list')"
)
@PreAuthorize
(
"@ss.hasPermi('system:recharge:list')"
)
@GetMapping
(
"/list"
)
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
Recharge
recharge
)
{
public
TableDataInfo
list
(
Recharge
Vo
recharge
)
{
startPage
();
startPage
();
List
<
Recharge
>
list
=
rechargeService
.
selectRechargeList
(
recharge
);
List
<
Recharge
Vo
>
list
=
rechargeService
.
selectRechargeList
(
recharge
);
return
getDataTable
(
list
);
return
getDataTable
(
list
);
}
}
...
@@ -44,9 +45,9 @@ public class RechargeController extends BaseController {
...
@@ -44,9 +45,9 @@ public class RechargeController extends BaseController {
@PreAuthorize
(
"@ss.hasPermi('system:recharge:export')"
)
@PreAuthorize
(
"@ss.hasPermi('system:recharge:export')"
)
@Log
(
title
=
"充值记录"
,
businessType
=
BusinessType
.
EXPORT
)
@Log
(
title
=
"充值记录"
,
businessType
=
BusinessType
.
EXPORT
)
@PostMapping
(
"/export"
)
@PostMapping
(
"/export"
)
public
void
export
(
HttpServletResponse
response
,
Recharge
recharge
)
{
public
void
export
(
HttpServletResponse
response
,
Recharge
Vo
recharge
)
{
List
<
Recharge
>
list
=
rechargeService
.
selectRechargeList
(
recharge
);
List
<
Recharge
Vo
>
list
=
rechargeService
.
selectRechargeList
(
recharge
);
ExcelUtil
<
Recharge
>
util
=
new
ExcelUtil
<
Recharge
>(
Recharge
.
class
);
ExcelUtil
<
Recharge
Vo
>
util
=
new
ExcelUtil
<
RechargeVo
>(
RechargeVo
.
class
);
util
.
exportExcel
(
response
,
list
,
"充值记录数据"
);
util
.
exportExcel
(
response
,
list
,
"充值记录数据"
);
}
}
...
...
share-front/src/main/java/share/web/controller/system/RechargeController.java
View file @
285a39b2
...
@@ -14,6 +14,7 @@ import share.common.enums.BusinessType;
...
@@ -14,6 +14,7 @@ import share.common.enums.BusinessType;
import
share.common.utils.JsonConvertUtil
;
import
share.common.utils.JsonConvertUtil
;
import
share.common.utils.poi.ExcelUtil
;
import
share.common.utils.poi.ExcelUtil
;
import
share.system.domain.Recharge
;
import
share.system.domain.Recharge
;
import
share.system.domain.vo.RechargeVo
;
import
share.system.request.CreateRechargeRequest
;
import
share.system.request.CreateRechargeRequest
;
import
share.system.response.RechargePayResultResponse
;
import
share.system.response.RechargePayResultResponse
;
import
share.system.service.RechargeService
;
import
share.system.service.RechargeService
;
...
@@ -40,9 +41,9 @@ public class RechargeController extends BaseController {
...
@@ -40,9 +41,9 @@ public class RechargeController extends BaseController {
* 查询充值记录列表
* 查询充值记录列表
*/
*/
@GetMapping
(
"/list"
)
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
Recharge
recharge
)
{
public
TableDataInfo
list
(
Recharge
Vo
recharge
)
{
startPage
();
startPage
();
List
<
Recharge
>
list
=
rechargeService
.
selectRechargeList
(
recharge
);
List
<
Recharge
Vo
>
list
=
rechargeService
.
selectRechargeList
(
recharge
);
return
getDataTable
(
list
);
return
getDataTable
(
list
);
}
}
...
@@ -51,9 +52,9 @@ public class RechargeController extends BaseController {
...
@@ -51,9 +52,9 @@ public class RechargeController extends BaseController {
*/
*/
@Log
(
title
=
"充值记录"
,
businessType
=
BusinessType
.
EXPORT
)
@Log
(
title
=
"充值记录"
,
businessType
=
BusinessType
.
EXPORT
)
@PostMapping
(
"/export"
)
@PostMapping
(
"/export"
)
public
void
export
(
HttpServletResponse
response
,
Recharge
recharge
)
{
public
void
export
(
HttpServletResponse
response
,
Recharge
Vo
recharge
)
{
List
<
Recharge
>
list
=
rechargeService
.
selectRechargeList
(
recharge
);
List
<
Recharge
Vo
>
list
=
rechargeService
.
selectRechargeList
(
recharge
);
ExcelUtil
<
Recharge
>
util
=
new
ExcelUtil
<
Recharge
>(
Recharge
.
class
);
ExcelUtil
<
Recharge
Vo
>
util
=
new
ExcelUtil
<
RechargeVo
>(
RechargeVo
.
class
);
util
.
exportExcel
(
response
,
list
,
"充值记录数据"
);
util
.
exportExcel
(
response
,
list
,
"充值记录数据"
);
}
}
...
...
share-system/src/main/java/share/system/domain/EquityMembersOrder.java
View file @
285a39b2
...
@@ -79,8 +79,8 @@ public class EquityMembersOrder extends BaseEntity {
...
@@ -79,8 +79,8 @@ public class EquityMembersOrder extends BaseEntity {
/**
/**
* 支付时间
* 支付时间
*/
*/
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd
HH:mm:ss
"
)
@Excel
(
name
=
"支付时间"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd"
)
@Excel
(
name
=
"支付时间"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd
HH:mm:ss
"
)
private
Date
payTime
;
private
Date
payTime
;
/**
/**
...
...
share-system/src/main/java/share/system/domain/Recharge.java
View file @
285a39b2
...
@@ -91,8 +91,8 @@ public class Recharge extends BaseEntity {
...
@@ -91,8 +91,8 @@ public class Recharge extends BaseEntity {
/**
/**
* 充值时间
* 充值时间
*/
*/
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd
HH:mm:ss
"
)
@Excel
(
name
=
"充值时间"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd"
)
@Excel
(
name
=
"充值时间"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd
HH:mm:ss
"
)
private
Date
rechargeDate
;
private
Date
rechargeDate
;
/**
/**
...
@@ -118,8 +118,8 @@ public class Recharge extends BaseEntity {
...
@@ -118,8 +118,8 @@ public class Recharge extends BaseEntity {
/**
/**
* 支付时间
* 支付时间
*/
*/
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd
HH:mm:ss
"
)
@Excel
(
name
=
"支付时间"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd"
)
@Excel
(
name
=
"支付时间"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd
HH:mm:ss
"
)
private
Date
payTime
;
private
Date
payTime
;
...
...
share-system/src/main/java/share/system/domain/vo/RechargeVo.java
0 → 100644
View file @
285a39b2
package
share
.
system
.
domain
.
vo
;
import
lombok.Data
;
import
share.system.domain.Recharge
;
@Data
public
class
RechargeVo
extends
Recharge
{
private
String
nickName
;
private
String
avatar
;
}
share-system/src/main/java/share/system/mapper/RechargeMapper.java
View file @
285a39b2
...
@@ -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.Recharge
;
import
share.system.domain.Recharge
;
import
share.system.domain.vo.RechargeVo
;
import
java.util.List
;
import
java.util.List
;
...
@@ -26,7 +27,7 @@ public interface RechargeMapper extends BaseMapper<Recharge> {
...
@@ -26,7 +27,7 @@ public interface RechargeMapper extends BaseMapper<Recharge> {
* @param recharge 充值记录
* @param recharge 充值记录
* @return 充值记录集合
* @return 充值记录集合
*/
*/
public
List
<
Recharge
>
selectRechargeList
(
Recharge
recharge
);
public
List
<
Recharge
Vo
>
selectRechargeList
(
RechargeVo
recharge
);
/**
/**
* 新增充值记录
* 新增充值记录
...
...
share-system/src/main/java/share/system/service/RechargeService.java
View file @
285a39b2
...
@@ -2,6 +2,7 @@ package share.system.service;
...
@@ -2,6 +2,7 @@ package share.system.service;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
share.system.domain.Recharge
;
import
share.system.domain.Recharge
;
import
share.system.domain.vo.RechargeVo
;
import
share.system.request.CreateRechargeRequest
;
import
share.system.request.CreateRechargeRequest
;
import
share.system.response.RechargePayResultResponse
;
import
share.system.response.RechargePayResultResponse
;
...
@@ -28,7 +29,7 @@ public interface RechargeService extends IService<Recharge> {
...
@@ -28,7 +29,7 @@ public interface RechargeService extends IService<Recharge> {
* @param recharge 充值记录
* @param recharge 充值记录
* @return 充值记录集合
* @return 充值记录集合
*/
*/
public
List
<
Recharge
>
selectRechargeList
(
Recharge
recharge
);
public
List
<
Recharge
Vo
>
selectRechargeList
(
RechargeVo
recharge
);
/**
/**
* 新增充值记录
* 新增充值记录
...
...
share-system/src/main/java/share/system/service/impl/RechargeServiceImpl.java
View file @
285a39b2
...
@@ -15,6 +15,7 @@ import share.common.utils.DateUtils;
...
@@ -15,6 +15,7 @@ import share.common.utils.DateUtils;
import
share.common.utils.bean.BeanUtils
;
import
share.common.utils.bean.BeanUtils
;
import
share.system.domain.*
;
import
share.system.domain.*
;
import
share.system.domain.vo.FrontTokenComponent
;
import
share.system.domain.vo.FrontTokenComponent
;
import
share.system.domain.vo.RechargeVo
;
import
share.system.mapper.RechargeMapper
;
import
share.system.mapper.RechargeMapper
;
import
share.system.request.CreateRechargeRequest
;
import
share.system.request.CreateRechargeRequest
;
import
share.system.response.RechargePayResultResponse
;
import
share.system.response.RechargePayResultResponse
;
...
@@ -65,7 +66,7 @@ public class RechargeServiceImpl extends ServiceImpl<RechargeMapper, Recharge> i
...
@@ -65,7 +66,7 @@ public class RechargeServiceImpl extends ServiceImpl<RechargeMapper, Recharge> i
* @return 充值记录
* @return 充值记录
*/
*/
@Override
@Override
public
List
<
Recharge
>
selectRechargeList
(
Recharge
recharge
)
{
public
List
<
Recharge
Vo
>
selectRechargeList
(
RechargeVo
recharge
)
{
return
rechargeMapper
.
selectRechargeList
(
recharge
);
return
rechargeMapper
.
selectRechargeList
(
recharge
);
}
}
...
...
share-system/src/main/resources/mapper/system/RechargeMapper.xml
View file @
285a39b2
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"share.system.mapper.RechargeMapper"
>
<mapper
namespace=
"share.system.mapper.RechargeMapper"
>
<resultMap
type=
"Recharge"
id=
"RechargeResult"
>
<resultMap
type=
"Recharge
Vo
"
id=
"RechargeResult"
>
<result
property=
"id"
column=
"id"
/>
<result
property=
"id"
column=
"id"
/>
<result
property=
"rechargeNo"
column=
"recharge_no"
/>
<result
property=
"rechargeNo"
column=
"recharge_no"
/>
<result
property=
"rechargeAmount"
column=
"recharge_amount"
/>
<result
property=
"rechargeAmount"
column=
"recharge_amount"
/>
...
@@ -15,6 +15,8 @@
...
@@ -15,6 +15,8 @@
<result
property=
"consumerCouponIds"
column=
"consumer_coupon_ids"
/>
<result
property=
"consumerCouponIds"
column=
"consumer_coupon_ids"
/>
<result
property=
"rechargeConfId"
column=
"recharge_conf_id"
/>
<result
property=
"rechargeConfId"
column=
"recharge_conf_id"
/>
<result
property=
"consumerId"
column=
"consumer_id"
/>
<result
property=
"consumerId"
column=
"consumer_id"
/>
<result
property=
"nickName"
column=
"nick_name"
/>
<result
property=
"avatar"
column=
"avatar"
/>
<result
property=
"phone"
column=
"phone"
/>
<result
property=
"phone"
column=
"phone"
/>
<result
property=
"rechargeDate"
column=
"recharge_date"
/>
<result
property=
"rechargeDate"
column=
"recharge_date"
/>
<result
property=
"isDelete"
column=
"is_delete"
/>
<result
property=
"isDelete"
column=
"is_delete"
/>
...
@@ -53,26 +55,53 @@
...
@@ -53,26 +55,53 @@
from s_recharge
from s_recharge
</sql>
</sql>
<select
id=
"selectRechargeList"
parameterType=
"Recharge"
resultMap=
"RechargeResult"
>
<select
id=
"selectRechargeList"
parameterType=
"RechargeVo"
resultMap=
"RechargeResult"
>
<include
refid=
"selectRechargeVo"
/>
select r.id,
r.recharge_no,
r.recharge_amount,
r.pay_type,
r.give_amount,
r.give_type,
r. status,
r.consumer_coupon_ids,
r.recharge_conf_id,
r. consumer_id,
c.nick_name,
c.avatar,
r. phone,
r. recharge_date,
r. is_delete,
r. create_by,
r. create_time,
r. update_by,
r.update_time,
r. remark,
r. out_trade_no,
r.terminal_trace,
r.pay_time
from s_recharge r join s_consumer c on r.consumer_id = c.id
<where>
<where>
<if
test=
"rechargeNo != null and rechargeNo != ''"
>
and recharge_no = #{rechargeNo}
</if>
<if
test=
"nickName != null and nickName != ''"
>
and c.nick_name like concat('%', #{nickName},'%')
<if
test=
"rechargeAmount != null "
>
and recharge_amount = #{rechargeAmount}
</if>
</if>
<if
test=
"payType != null "
>
and pay_type = #{payType}
</if>
<if
test=
"phone != null and phone != ''"
>
and r.phone like concat('%', #{phone},'%')
<if
test=
"giveAmount != null "
>
and give_amount = #{giveAmount}
</if>
</if>
<if
test=
"giveType != null and giveType != ''"
>
and give_type = #{giveType}
</if>
<if
test=
"rechargeNo != null and rechargeNo != ''"
>
and r.recharge_no = #{rechargeNo}
</if>
<if
test=
"status != null "
>
and status = #{status}
</if>
<if
test=
"rechargeAmount != null "
>
and r.recharge_amount = #{rechargeAmount}
</if>
<if
test=
"consumerCouponIds != null and consumerCouponIds != ''"
>
and consumer_coupon_ids =
<if
test=
"payType != null "
>
and r.pay_type = #{payType}
</if>
<if
test=
"giveAmount != null "
>
and r.give_amount = #{giveAmount}
</if>
<if
test=
"giveType != null and giveType != ''"
>
and r.give_type = #{giveType}
</if>
<if
test=
"status != null "
>
and r.status = #{status}
</if>
<if
test=
"consumerCouponIds != null and consumerCouponIds != ''"
>
and r.consumer_coupon_ids =
#{consumerCouponIds}
#{consumerCouponIds}
</if>
</if>
<if
test=
"rechargeConfId != null "
>
and recharge_conf_id = #{rechargeConfId}
</if>
<if
test=
"rechargeConfId != null "
>
and r
.r
echarge_conf_id = #{rechargeConfId}
</if>
<if
test=
"consumerId != null "
>
and consumer_id = #{consumerId}
</if>
<if
test=
"consumerId != null "
>
and
r.
consumer_id = #{consumerId}
</if>
<if
test=
"phone != null and phone != ''"
>
and phone = #{phone}
</if>
<if
test=
"phone != null and phone != ''"
>
and
r.
phone = #{phone}
</if>
<if
test=
"rechargeDate != null "
>
and recharge_date = #{rechargeDate}
</if>
<if
test=
"rechargeDate != null "
>
and r
.r
echarge_date = #{rechargeDate}
</if>
<if
test=
"isDelete != null "
>
and is_delete = #{isDelete}
</if>
<if
test=
"isDelete != null "
>
and
r.
is_delete = #{isDelete}
</if>
<if
test=
"outTradeNo != null and outTradeNo != ''"
>
and out_trade_no = #{outTradeNo}
</if>
<if
test=
"outTradeNo != null and outTradeNo != ''"
>
and
r.
out_trade_no = #{outTradeNo}
</if>
<if
test=
"terminalTrace != null and terminalTrace != ''"
>
and terminal_trace = #{terminalTrace}
</if>
<if
test=
"terminalTrace != null and terminalTrace != ''"
>
and
r.
terminal_trace = #{terminalTrace}
</if>
<if
test=
"payTime != null "
>
and pay_time = #{payTime}
</if>
<if
test=
"payTime != null "
>
and
r.
pay_time = #{payTime}
</if>
</where>
</where>
</select>
</select>
...
...
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