Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cust-api
Project
Project
Details
Activity
Releases
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
李伟
cust-api
Commits
ccd0653f
Commit
ccd0653f
authored
Mar 11, 2025
by
liwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加了web端金币流水
parent
88cff9c8
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
6 deletions
+37
-6
MemGoldCoinFlowController.java
...memGoldCoinFlow/controller/MemGoldCoinFlowController.java
+3
-2
MemGoldCoinFlow.java
...soft/business/memGoldCoinFlow/entity/MemGoldCoinFlow.java
+16
-2
MemGoldCoinFlowMapper.xml
...business/memGoldCoinFlow.mapper/MemGoldCoinFlowMapper.xml
+18
-2
No files found.
src/main/java/org/rcisoft/business/memGoldCoinFlow/controller/MemGoldCoinFlowController.java
View file @
ccd0653f
...
...
@@ -134,12 +134,13 @@ public class MemGoldCoinFlowController extends CyPaginationController<MemGoldCoi
case
"2"
:
excelName
=
"金币流水表信息.csv"
;
break
;
}
List
<
MemGoldCoinFlow
>
memGoldCoinFlowList
=
memGoldCoinFlowServiceImpl
.
export
(
memGoldCoinFlow
);
CyEpExcelUtil
.
exportExcel
(
memGoldCoinFlowList
,
"金币流水表信息"
,
"金币流水表信息"
,
MemGoldCoinFlow
.
class
,
excelName
,
response
);
}
@PreAuthorize
(
"@cyPerm.hasPerm('mem:goldCoinFlow:list')"
)
@CyOpeLogAnno
(
title
=
"system-金币流水表管理-
查询单个会员金币流水表
"
,
businessType
=
CyLogTypeEnum
.
QUERY
)
@Operation
(
summary
=
"分页查询单个会员
金币流水表集合"
,
description
=
"分页查询金币流水表集合
"
)
@CyOpeLogAnno
(
title
=
"system-金币流水表管理-
分页查询单个会员消费记录
"
,
businessType
=
CyLogTypeEnum
.
QUERY
)
@Operation
(
summary
=
"分页查询单个会员
消费记录"
,
description
=
"分页查询单个会员消费记录
"
)
@GetMapping
(
value
=
"/queryMemGoldCoinFollowList"
)
public
CyGridModel
queryMemGoldCoinFlowByPagination
(
MemGoldCoinFlow
memGoldCoinFlow
)
{
IPage
<
MemGoldCoinFlow
>
memGoldCoinFlowIPage
=
memGoldCoinFlowServiceImpl
.
queryMemGoldCoinFlowsByPagination
(
getPaginationUtility
(),
memGoldCoinFlow
);
...
...
src/main/java/org/rcisoft/business/memGoldCoinFlow/entity/MemGoldCoinFlow.java
View file @
ccd0653f
...
...
@@ -75,13 +75,27 @@ public class MemGoldCoinFlow extends CyIdIncreEntity<MemGoldCoinFlow> {
@TableField
(
exist
=
false
)
private
Integer
memberId
;
/**
* 发起人会员号
*/
@Excel
(
name
=
"发起用户会员号"
,
orderNum
=
"5"
,
width
=
20
)
@TableField
(
exist
=
false
)
private
String
userCode
;
//用户昵称
@Excel
(
name
=
"发起用户"
,
orderNum
=
"
5
"
,
width
=
20
)
@Excel
(
name
=
"发起用户"
,
orderNum
=
"
6
"
,
width
=
20
)
@TableField
(
exist
=
false
)
private
String
userNickName
;
/**
* 目标人会员号
*/
@Excel
(
name
=
"目标用户会员号"
,
orderNum
=
"7"
,
width
=
20
)
@TableField
(
exist
=
false
)
private
String
targetCode
;
//目标用户昵称
@Excel
(
name
=
"目标用户"
,
orderNum
=
"
6
"
,
width
=
20
)
@Excel
(
name
=
"目标用户"
,
orderNum
=
"
8
"
,
width
=
20
)
@TableField
(
exist
=
false
)
private
String
targetNickName
;
...
...
src/main/resources/mapper/business/memGoldCoinFlow.mapper/MemGoldCoinFlowMapper.xml
View file @
ccd0653f
...
...
@@ -21,7 +21,9 @@
<select
id=
"queryMemGoldCoinFlows"
resultMap=
"BaseResultMap"
>
select mgcf.*,
mi.mem_nick_name as userNickName,
mi2.mem_nick_name as targetNickName
mi.mem_code as userCode,
mi2.mem_nick_name as targetNickName,
mi2.mem_code as targetCode
from mem_gold_coin_flow mgcf
left join mem_info mi on mi.user_id = mgcf.create_by
left join mem_info mi2 on mi2.user_id = mgcf.target_id
...
...
@@ -51,13 +53,21 @@
<if
test=
"entity.targetNickName !=null and entity.targetNickName != '' "
>
and mi2.mem_nick_name like concat('%',#{entity.targetNickName},'%')
</if>
<if
test=
"entity.userCode !=null and entity.userCode != '' "
>
and mi.mem_code like concat('%',#{entity.userCode},'%')
</if>
<if
test=
"entity.targetCode !=null and entity.targetCode != '' "
>
and mi2.mem_code like concat('%',#{entity.targetCode},'%')
</if>
ORDER BY mgcf.business_id DESC
</select>
<select
id=
"queryGoldCoinFlowsPaged"
resultType=
"org.rcisoft.business.memGoldCoinFlow.entity.MemGoldCoinFlow"
>
select mgcf.*,
mi.mem_nick_name as userNickName,
mi2.mem_nick_name as targetNickName
mi.mem_code as userCode,
mi2.mem_nick_name as targetNickName,
mi2.mem_code as targetCode
from mem_gold_coin_flow mgcf
left join mem_info mi on mi.user_id = mgcf.create_by
left join mem_info mi2 on mi2.user_id = mgcf.target_id
...
...
@@ -87,6 +97,12 @@
<if
test=
"entity.targetNickName !=null and entity.targetNickName != '' "
>
and mi2.mem_nick_name like concat('%',#{entity.targetNickName},'%')
</if>
<if
test=
"entity.userCode !=null and entity.userCode != '' "
>
and mi.mem_code like concat('%',#{entity.userCode},'%')
</if>
<if
test=
"entity.targetCode !=null and entity.targetCode != '' "
>
and mi2.mem_code like concat('%',#{entity.targetCode},'%')
</if>
ORDER BY mgcf.business_id DESC
</select>
<select
id=
"appQueryMemGoldCoinFlowsPaged"
...
...
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