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
4c6e9f72
Commit
4c6e9f72
authored
Mar 09, 2025
by
liwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了金币流水查询,增加了管理端删除留言功能
parent
7db707d8
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
176 additions
and
27 deletions
+176
-27
MemGoldCoinFlowController.java
...memGoldCoinFlow/controller/MemGoldCoinFlowController.java
+17
-7
MemGoldCoinFlowRepository.java
...siness/memGoldCoinFlow/dao/MemGoldCoinFlowRepository.java
+9
-1
MemGoldCoinFlow.java
...soft/business/memGoldCoinFlow/entity/MemGoldCoinFlow.java
+5
-1
MemGoldCoinFlowService.java
...iness/memGoldCoinFlow/service/MemGoldCoinFlowService.java
+5
-0
MemGoldCoinFlowServiceImpl.java
...GoldCoinFlow/service/impl/MemGoldCoinFlowServiceImpl.java
+22
-6
MemLeaveMessageController.java
...memLeaveMessage/controller/MemLeaveMessageController.java
+21
-4
MemLeaveMessageService.java
...iness/memLeaveMessage/service/MemLeaveMessageService.java
+5
-0
MemLeaveMessageServiceImpl.java
...LeaveMessage/service/impl/MemLeaveMessageServiceImpl.java
+14
-0
MemGoldCoinFlowMapper.xml
...business/memGoldCoinFlow.mapper/MemGoldCoinFlowMapper.xml
+76
-6
MemTrafficMapper.xml
...es/mapper/business/memTraffic/mapper/MemTrafficMapper.xml
+2
-2
No files found.
src/main/java/org/rcisoft/business/memGoldCoinFlow/controller/MemGoldCoinFlowController.java
View file @
4c6e9f72
...
@@ -2,6 +2,7 @@ package org.rcisoft.business.memGoldCoinFlow.controller;
...
@@ -2,6 +2,7 @@ package org.rcisoft.business.memGoldCoinFlow.controller;
/*固定导入*/
/*固定导入*/
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
io.swagger.v3.oas.annotations.Parameter
;
import
io.swagger.v3.oas.annotations.Parameter
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
io.swagger.v3.oas.annotations.media.Schema
;
import
io.swagger.v3.oas.annotations.Parameters
;
import
io.swagger.v3.oas.annotations.Parameters
;
...
@@ -37,7 +38,7 @@ public class MemGoldCoinFlowController extends CyPaginationController<MemGoldCoi
...
@@ -37,7 +38,7 @@ public class MemGoldCoinFlowController extends CyPaginationController<MemGoldCoi
@Autowired
@Autowired
private
MemGoldCoinFlowService
memGoldCoinFlowServiceImpl
;
private
MemGoldCoinFlowService
memGoldCoinFlowServiceImpl
;
@PreAuthorize
(
"@cyPerm.hasPerm('
sys
:goldCoinFlow:add')"
)
@PreAuthorize
(
"@cyPerm.hasPerm('
mem
:goldCoinFlow:add')"
)
@CyOpeLogAnno
(
title
=
"system-金币流水表管理-新增金币流水表"
,
businessType
=
CyLogTypeEnum
.
INSERT
)
@CyOpeLogAnno
(
title
=
"system-金币流水表管理-新增金币流水表"
,
businessType
=
CyLogTypeEnum
.
INSERT
)
@Operation
(
summary
=
"添加金币流水表"
,
description
=
"添加金币流水表"
)
@Operation
(
summary
=
"添加金币流水表"
,
description
=
"添加金币流水表"
)
@PostMapping
(
value
=
"/add"
)
@PostMapping
(
value
=
"/add"
)
...
@@ -49,7 +50,7 @@ public class MemGoldCoinFlowController extends CyPaginationController<MemGoldCoi
...
@@ -49,7 +50,7 @@ public class MemGoldCoinFlowController extends CyPaginationController<MemGoldCoi
memGoldCoinFlow
);
memGoldCoinFlow
);
}
}
@PreAuthorize
(
"@cyPerm.hasPerm('
sys
:goldCoinFlow:delete')"
)
@PreAuthorize
(
"@cyPerm.hasPerm('
mem
:goldCoinFlow:delete')"
)
@CyOpeLogAnno
(
title
=
"system-金币流水表管理-删除金币流水表"
,
businessType
=
CyLogTypeEnum
.
DELETE
)
@CyOpeLogAnno
(
title
=
"system-金币流水表管理-删除金币流水表"
,
businessType
=
CyLogTypeEnum
.
DELETE
)
@Operation
(
summary
=
"逻辑删除金币流水表"
,
description
=
"逻辑删除金币流水表"
)
@Operation
(
summary
=
"逻辑删除金币流水表"
,
description
=
"逻辑删除金币流水表"
)
@Parameters
({
@Parameter
(
name
=
"businessId"
,
description
=
"businessId"
,
required
=
true
,
schema
=
@Schema
(
type
=
"string"
))})
@Parameters
({
@Parameter
(
name
=
"businessId"
,
description
=
"businessId"
,
required
=
true
,
schema
=
@Schema
(
type
=
"string"
))})
...
@@ -62,7 +63,7 @@ public class MemGoldCoinFlowController extends CyPaginationController<MemGoldCoi
...
@@ -62,7 +63,7 @@ public class MemGoldCoinFlowController extends CyPaginationController<MemGoldCoi
CyMessCons
.
MESSAGE_ALERT_ERROR
,
CyMessCons
.
MESSAGE_ALERT_ERROR
,
businessId
);
businessId
);
}
}
@PreAuthorize
(
"@cyPerm.hasPerm('
sys
:goldCoinFlow:delete')"
)
@PreAuthorize
(
"@cyPerm.hasPerm('
mem
:goldCoinFlow:delete')"
)
@CyOpeLogAnno
(
title
=
"system-金币流水表管理-删除金币流水表"
,
businessType
=
CyLogTypeEnum
.
DELETE
)
@CyOpeLogAnno
(
title
=
"system-金币流水表管理-删除金币流水表"
,
businessType
=
CyLogTypeEnum
.
DELETE
)
@Operation
(
summary
=
"删除金币流水表"
,
description
=
"删除金币流水表"
)
@Operation
(
summary
=
"删除金币流水表"
,
description
=
"删除金币流水表"
)
@Parameters
({
@Parameter
(
name
=
"businessId"
,
description
=
"businessId"
,
required
=
true
,
schema
=
@Schema
(
type
=
"string"
))})
@Parameters
({
@Parameter
(
name
=
"businessId"
,
description
=
"businessId"
,
required
=
true
,
schema
=
@Schema
(
type
=
"string"
))})
...
@@ -76,7 +77,7 @@ public class MemGoldCoinFlowController extends CyPaginationController<MemGoldCoi
...
@@ -76,7 +77,7 @@ public class MemGoldCoinFlowController extends CyPaginationController<MemGoldCoi
businessId
);
businessId
);
}
}
@PreAuthorize
(
"@cyPerm.hasPerm('
sys
:goldCoinFlow:update')"
)
@PreAuthorize
(
"@cyPerm.hasPerm('
mem
:goldCoinFlow:update')"
)
@CyOpeLogAnno
(
title
=
"system-金币流水表管理-修改金币流水表"
,
businessType
=
CyLogTypeEnum
.
UPDATE
)
@CyOpeLogAnno
(
title
=
"system-金币流水表管理-修改金币流水表"
,
businessType
=
CyLogTypeEnum
.
UPDATE
)
@Operation
(
summary
=
"修改金币流水表"
,
description
=
"修改金币流水表"
)
@Operation
(
summary
=
"修改金币流水表"
,
description
=
"修改金币流水表"
)
@Parameters
({
@Parameter
(
name
=
"businessId"
,
description
=
"businessId"
,
required
=
false
,
schema
=
@Schema
(
type
=
"string"
))})
@Parameters
({
@Parameter
(
name
=
"businessId"
,
description
=
"businessId"
,
required
=
false
,
schema
=
@Schema
(
type
=
"string"
))})
...
@@ -90,7 +91,7 @@ public class MemGoldCoinFlowController extends CyPaginationController<MemGoldCoi
...
@@ -90,7 +91,7 @@ public class MemGoldCoinFlowController extends CyPaginationController<MemGoldCoi
memGoldCoinFlow
);
memGoldCoinFlow
);
}
}
@PreAuthorize
(
"@cyPerm.hasPerm('
sys
:goldCoinFlow:query')"
)
@PreAuthorize
(
"@cyPerm.hasPerm('
mem
:goldCoinFlow:query')"
)
@CyOpeLogAnno
(
title
=
"system-金币流水表管理-查询金币流水表"
,
businessType
=
CyLogTypeEnum
.
QUERY
)
@CyOpeLogAnno
(
title
=
"system-金币流水表管理-查询金币流水表"
,
businessType
=
CyLogTypeEnum
.
QUERY
)
@Operation
(
summary
=
"查询单一金币流水表"
,
description
=
"查询单一金币流水表"
)
@Operation
(
summary
=
"查询单一金币流水表"
,
description
=
"查询单一金币流水表"
)
@Parameters
({
@Parameter
(
name
=
"businessId"
,
description
=
"businessId"
,
required
=
true
,
schema
=
@Schema
(
type
=
"string"
))})
@Parameters
({
@Parameter
(
name
=
"businessId"
,
description
=
"businessId"
,
required
=
true
,
schema
=
@Schema
(
type
=
"string"
))})
...
@@ -102,7 +103,7 @@ public class MemGoldCoinFlowController extends CyPaginationController<MemGoldCoi
...
@@ -102,7 +103,7 @@ public class MemGoldCoinFlowController extends CyPaginationController<MemGoldCoi
memGoldCoinFlowServiceImpl
.
findById
(
businessId
));
memGoldCoinFlowServiceImpl
.
findById
(
businessId
));
}
}
@PreAuthorize
(
"@cyPerm.hasPerm('
sys
:goldCoinFlow:list')"
)
@PreAuthorize
(
"@cyPerm.hasPerm('
mem
:goldCoinFlow:list')"
)
@CyOpeLogAnno
(
title
=
"system-金币流水表管理-查询金币流水表"
,
businessType
=
CyLogTypeEnum
.
QUERY
)
@CyOpeLogAnno
(
title
=
"system-金币流水表管理-查询金币流水表"
,
businessType
=
CyLogTypeEnum
.
QUERY
)
@Operation
(
summary
=
"查询金币流水表集合"
,
description
=
"查询金币流水表集合"
)
@Operation
(
summary
=
"查询金币流水表集合"
,
description
=
"查询金币流水表集合"
)
@GetMapping
(
value
=
"/listAll"
)
@GetMapping
(
value
=
"/listAll"
)
...
@@ -113,7 +114,7 @@ public class MemGoldCoinFlowController extends CyPaginationController<MemGoldCoi
...
@@ -113,7 +114,7 @@ public class MemGoldCoinFlowController extends CyPaginationController<MemGoldCoi
memGoldCoinFlowServiceImpl
.
findAll
(
memGoldCoinFlow
));
memGoldCoinFlowServiceImpl
.
findAll
(
memGoldCoinFlow
));
}
}
@PreAuthorize
(
"@cyPerm.hasPerm('
sys
:goldCoinFlow:list')"
)
@PreAuthorize
(
"@cyPerm.hasPerm('
mem
:goldCoinFlow:list')"
)
@CyOpeLogAnno
(
title
=
"system-金币流水表管理-查询金币流水表"
,
businessType
=
CyLogTypeEnum
.
QUERY
)
@CyOpeLogAnno
(
title
=
"system-金币流水表管理-查询金币流水表"
,
businessType
=
CyLogTypeEnum
.
QUERY
)
@Operation
(
summary
=
"分页查询金币流水表集合"
,
description
=
"分页查询金币流水表集合"
)
@Operation
(
summary
=
"分页查询金币流水表集合"
,
description
=
"分页查询金币流水表集合"
)
@GetMapping
(
value
=
"/list"
)
@GetMapping
(
value
=
"/list"
)
...
@@ -135,4 +136,13 @@ public class MemGoldCoinFlowController extends CyPaginationController<MemGoldCoi
...
@@ -135,4 +136,13 @@ public class MemGoldCoinFlowController extends CyPaginationController<MemGoldCoi
List
<
MemGoldCoinFlow
>
memGoldCoinFlowList
=
memGoldCoinFlowServiceImpl
.
export
(
memGoldCoinFlow
);
List
<
MemGoldCoinFlow
>
memGoldCoinFlowList
=
memGoldCoinFlowServiceImpl
.
export
(
memGoldCoinFlow
);
CyEpExcelUtil
.
exportExcel
(
memGoldCoinFlowList
,
"金币流水表信息"
,
"金币流水表信息"
,
MemGoldCoinFlow
.
class
,
excelName
,
response
);
CyEpExcelUtil
.
exportExcel
(
memGoldCoinFlowList
,
"金币流水表信息"
,
"金币流水表信息"
,
MemGoldCoinFlow
.
class
,
excelName
,
response
);
}
}
@PreAuthorize
(
"@cyPerm.hasPerm('mem:goldCoinFlow:list')"
)
@CyOpeLogAnno
(
title
=
"system-金币流水表管理-查询单个会员金币流水表"
,
businessType
=
CyLogTypeEnum
.
QUERY
)
@Operation
(
summary
=
"分页查询单个会员金币流水表集合"
,
description
=
"分页查询金币流水表集合"
)
@GetMapping
(
value
=
"/queryMemGoldCoinFollowList"
)
public
CyGridModel
queryMemGoldCoinFlowByPagination
(
MemGoldCoinFlow
memGoldCoinFlow
)
{
IPage
<
MemGoldCoinFlow
>
memGoldCoinFlowIPage
=
memGoldCoinFlowServiceImpl
.
queryMemGoldCoinFlowsByPagination
(
getPaginationUtility
(),
memGoldCoinFlow
);
return
getGridModelResponse
();
}
}
}
src/main/java/org/rcisoft/business/memGoldCoinFlow/dao/MemGoldCoinFlowRepository.java
View file @
4c6e9f72
...
@@ -22,7 +22,7 @@ public interface MemGoldCoinFlowRepository extends CyBaseMapper<MemGoldCoinFlow>
...
@@ -22,7 +22,7 @@ public interface MemGoldCoinFlowRepository extends CyBaseMapper<MemGoldCoinFlow>
* 管理端分页查询金币流水
* 管理端分页查询金币流水
*
*
*/
*/
IPage
<
MemGoldCoinFlow
>
query
Mem
GoldCoinFlowsPaged
(
CyPageInfo
cyPageInfo
,
@Param
(
"entity"
)
MemGoldCoinFlow
memGoldCoinFlow
);
IPage
<
MemGoldCoinFlow
>
queryGoldCoinFlowsPaged
(
CyPageInfo
cyPageInfo
,
@Param
(
"entity"
)
MemGoldCoinFlow
memGoldCoinFlow
);
/**
/**
* app分页查询金币流水
* app分页查询金币流水
...
@@ -35,6 +35,14 @@ public interface MemGoldCoinFlowRepository extends CyBaseMapper<MemGoldCoinFlow>
...
@@ -35,6 +35,14 @@ public interface MemGoldCoinFlowRepository extends CyBaseMapper<MemGoldCoinFlow>
*/
*/
Integer
balance
(
Integer
userId
);
Integer
balance
(
Integer
userId
);
/**
* 新增金币流水记录
*/
int
insertMemGoldCoinFlow
(
@Param
(
"entity"
)
MemGoldCoinFlow
memGoldCoinFlow
);
int
insertMemGoldCoinFlow
(
@Param
(
"entity"
)
MemGoldCoinFlow
memGoldCoinFlow
);
/**
* 查询单个用户的消费记录
*/
IPage
<
MemGoldCoinFlow
>
queryMemGoldCoinFlowsPaged
(
CyPageInfo
<
MemGoldCoinFlow
>
paginationUtility
,
@Param
(
"entity"
)
MemGoldCoinFlow
memGoldCoinFlow
);
}
}
src/main/java/org/rcisoft/business/memGoldCoinFlow/entity/MemGoldCoinFlow.java
View file @
4c6e9f72
...
@@ -76,10 +76,14 @@ public class MemGoldCoinFlow extends CyIdIncreEntity<MemGoldCoinFlow> {
...
@@ -76,10 +76,14 @@ public class MemGoldCoinFlow extends CyIdIncreEntity<MemGoldCoinFlow> {
@TableField
(
exist
=
false
)
@TableField
(
exist
=
false
)
private
Integer
memberId
;
private
Integer
memberId
;
//用户
//用户
昵称
@TableField
(
exist
=
false
)
@TableField
(
exist
=
false
)
private
String
userNickName
;
private
String
userNickName
;
//目标用户昵称
@TableField
(
exist
=
false
)
private
String
targetNickName
;
/**
/**
* 开始时间
* 开始时间
*/
*/
...
...
src/main/java/org/rcisoft/business/memGoldCoinFlow/service/MemGoldCoinFlowService.java
View file @
4c6e9f72
...
@@ -74,4 +74,9 @@ public interface MemGoldCoinFlowService {
...
@@ -74,4 +74,9 @@ public interface MemGoldCoinFlowService {
* 查询当前用户金币余额
* 查询当前用户金币余额
*/
*/
Integer
balance
();
Integer
balance
();
/**
* 分页查询单个会员消费记录
*/
IPage
<
MemGoldCoinFlow
>
queryMemGoldCoinFlowsByPagination
(
CyPageInfo
<
MemGoldCoinFlow
>
paginationUtility
,
MemGoldCoinFlow
memGoldCoinFlow
);
}
}
src/main/java/org/rcisoft/business/memGoldCoinFlow/service/impl/MemGoldCoinFlowServiceImpl.java
View file @
4c6e9f72
...
@@ -45,14 +45,19 @@ public class MemGoldCoinFlowServiceImpl extends ServiceImpl<MemGoldCoinFlowRepos
...
@@ -45,14 +45,19 @@ public class MemGoldCoinFlowServiceImpl extends ServiceImpl<MemGoldCoinFlowRepos
@Transactional
(
propagation
=
Propagation
.
REQUIRED
,
isolation
=
Isolation
.
DEFAULT
)
@Transactional
(
propagation
=
Propagation
.
REQUIRED
,
isolation
=
Isolation
.
DEFAULT
)
@Override
@Override
public
CyPersistModel
persist
(
MemGoldCoinFlow
memGoldCoinFlow
){
public
CyPersistModel
persist
(
MemGoldCoinFlow
memGoldCoinFlow
){
//查询用户信息
MemInfo
memInfo
=
memInfoRepository
.
selectByUserId
(
String
.
valueOf
(
memGoldCoinFlow
.
getTargetId
()));
//增加到金币流水表
//增加到金币流水表
memGoldCoinFlow
.
setEndCount
(
memGoldCoinFlow
.
getCount
()
+
memGoldCoinFlow
.
getBalance
());
String
userId
=
CyUserUtil
.
getAuthenBusinessId
();
memGoldCoinFlow
.
setCreateBy
(
userId
);
memGoldCoinFlow
.
setType
(
"1"
);
memGoldCoinFlow
.
setActionType
(
"11"
);
memGoldCoinFlow
.
setCreateDate
(
new
Date
());
memGoldCoinFlow
.
setUpdateDate
(
new
Date
());
memGoldCoinFlow
.
setEndCount
(
memGoldCoinFlow
.
getCount
()
+
memInfo
.
getGoldCoinsCount
());
int
line
=
baseMapper
.
insertMemGoldCoinFlow
(
memGoldCoinFlow
);
int
line
=
baseMapper
.
insertMemGoldCoinFlow
(
memGoldCoinFlow
);
//修改会员表的金币余额
//修改会员表的金币余额
MemInfo
memInfo
=
new
MemInfo
();
memInfo
.
setGoldCoinsCount
(
memGoldCoinFlow
.
getCount
()
+
memInfo
.
getGoldCoinsCount
());
memInfo
.
setBusinessId
(
memGoldCoinFlow
.
getMemberId
());
memInfo
.
setGoldCoinsCount
(
memGoldCoinFlow
.
getCount
()
+
memGoldCoinFlow
.
getBalance
());
memInfoRepository
.
updateById
(
memInfo
);
memInfoRepository
.
updateById
(
memInfo
);
//增加订单信息
//增加订单信息
return
new
CyPersistModel
(
line
);
return
new
CyPersistModel
(
line
);
...
@@ -128,7 +133,7 @@ public class MemGoldCoinFlowServiceImpl extends ServiceImpl<MemGoldCoinFlowRepos
...
@@ -128,7 +133,7 @@ public class MemGoldCoinFlowServiceImpl extends ServiceImpl<MemGoldCoinFlowRepos
return
baseMapper
.
appQueryMemGoldCoinFlowsPaged
(
paginationUtility
,
memGoldCoinFlow
);
return
baseMapper
.
appQueryMemGoldCoinFlowsPaged
(
paginationUtility
,
memGoldCoinFlow
);
}
else
{
}
else
{
//管理端
//管理端
return
baseMapper
.
query
Mem
GoldCoinFlowsPaged
(
paginationUtility
,
memGoldCoinFlow
);
return
baseMapper
.
queryGoldCoinFlowsPaged
(
paginationUtility
,
memGoldCoinFlow
);
}
}
}
}
...
@@ -163,4 +168,15 @@ public class MemGoldCoinFlowServiceImpl extends ServiceImpl<MemGoldCoinFlowRepos
...
@@ -163,4 +168,15 @@ public class MemGoldCoinFlowServiceImpl extends ServiceImpl<MemGoldCoinFlowRepos
Integer
balance
=
baseMapper
.
balance
(
userId
);
Integer
balance
=
baseMapper
.
balance
(
userId
);
return
balance
;
return
balance
;
}
}
/**
* 分页查询单个会员消费记录
* @param paginationUtility
* @param memGoldCoinFlow
*/
@Override
public
IPage
<
MemGoldCoinFlow
>
queryMemGoldCoinFlowsByPagination
(
CyPageInfo
<
MemGoldCoinFlow
>
paginationUtility
,
MemGoldCoinFlow
memGoldCoinFlow
)
{
memGoldCoinFlow
.
setCreateBy
(
String
.
valueOf
(
memGoldCoinFlow
.
getTargetId
()));
return
baseMapper
.
queryMemGoldCoinFlowsPaged
(
paginationUtility
,
memGoldCoinFlow
);
}
}
}
src/main/java/org/rcisoft/business/memLeaveMessage/controller/MemLeaveMessageController.java
View file @
4c6e9f72
...
@@ -5,6 +5,9 @@ package org.rcisoft.business.memLeaveMessage.controller;
...
@@ -5,6 +5,9 @@ package org.rcisoft.business.memLeaveMessage.controller;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
io.swagger.v3.oas.annotations.Operation
;
import
io.swagger.v3.oas.annotations.Operation
;
import
io.swagger.v3.oas.annotations.Parameter
;
import
io.swagger.v3.oas.annotations.Parameters
;
import
org.rcisoft.business.cmsActivity.entity.CmsActivity
;
import
org.rcisoft.business.memLeaveMessage.entity.MemLeaveMessage
;
import
org.rcisoft.business.memLeaveMessage.entity.MemLeaveMessage
;
import
org.rcisoft.business.memLeaveMessage.service.MemLeaveMessageService
;
import
org.rcisoft.business.memLeaveMessage.service.MemLeaveMessageService
;
import
org.rcisoft.core.anno.CyOpeLogAnno
;
import
org.rcisoft.core.anno.CyOpeLogAnno
;
...
@@ -36,7 +39,7 @@ public class MemLeaveMessageController extends CyPaginationController<MemLeaveMe
...
@@ -36,7 +39,7 @@ public class MemLeaveMessageController extends CyPaginationController<MemLeaveMe
/**
/**
* 用户详情/我的-留言
* 用户详情/我的-留言
*/
*/
@PreAuthorize
(
"@cyPerm.hasPerm('
app:mem:leaveMessage
')"
)
@PreAuthorize
(
"@cyPerm.hasPerm('
sys:leaveMessage:add
')"
)
@CyOpeLogAnno
(
title
=
"system-会员表管理-留言"
,
businessType
=
CyLogTypeEnum
.
INSERT
)
@CyOpeLogAnno
(
title
=
"system-会员表管理-留言"
,
businessType
=
CyLogTypeEnum
.
INSERT
)
@Operation
(
summary
=
"留言"
,
description
=
"留言"
)
@Operation
(
summary
=
"留言"
,
description
=
"留言"
)
@PostMapping
(
value
=
"/leaveMessage"
)
@PostMapping
(
value
=
"/leaveMessage"
)
...
@@ -51,7 +54,7 @@ public class MemLeaveMessageController extends CyPaginationController<MemLeaveMe
...
@@ -51,7 +54,7 @@ public class MemLeaveMessageController extends CyPaginationController<MemLeaveMe
/**
/**
* 分页查询对话列表
* 分页查询对话列表
*/
*/
@PreAuthorize
(
"@cyPerm.hasPerm('
app:mem
:query')"
)
@PreAuthorize
(
"@cyPerm.hasPerm('
sys:leaveMessage
:query')"
)
@CyOpeLogAnno
(
title
=
"system-会员表管理-查询对话表"
,
businessType
=
CyLogTypeEnum
.
QUERY
)
@CyOpeLogAnno
(
title
=
"system-会员表管理-查询对话表"
,
businessType
=
CyLogTypeEnum
.
QUERY
)
@Operation
(
summary
=
"分页查询对话列表"
,
description
=
"分页查询对话列表"
)
@Operation
(
summary
=
"分页查询对话列表"
,
description
=
"分页查询对话列表"
)
@GetMapping
(
value
=
"/talkList"
)
@GetMapping
(
value
=
"/talkList"
)
...
@@ -63,7 +66,7 @@ public class MemLeaveMessageController extends CyPaginationController<MemLeaveMe
...
@@ -63,7 +66,7 @@ public class MemLeaveMessageController extends CyPaginationController<MemLeaveMe
/**
/**
* 查询留言列表详情 1对1的
* 查询留言列表详情 1对1的
*/
*/
@PreAuthorize
(
"@cyPerm.hasPerm('
app:mem
:query')"
)
@PreAuthorize
(
"@cyPerm.hasPerm('
mem:leaveMessage
:query')"
)
@CyOpeLogAnno
(
title
=
"system-会员表管理-查询留言详情列表"
,
businessType
=
CyLogTypeEnum
.
QUERY
)
@CyOpeLogAnno
(
title
=
"system-会员表管理-查询留言详情列表"
,
businessType
=
CyLogTypeEnum
.
QUERY
)
@Operation
(
summary
=
"分页查询留言详情列表"
,
description
=
"分页查询留言详情列表"
)
@Operation
(
summary
=
"分页查询留言详情列表"
,
description
=
"分页查询留言详情列表"
)
@GetMapping
(
value
=
"/leaveMessageDetailList"
)
@GetMapping
(
value
=
"/leaveMessageDetailList"
)
...
@@ -75,7 +78,7 @@ public class MemLeaveMessageController extends CyPaginationController<MemLeaveMe
...
@@ -75,7 +78,7 @@ public class MemLeaveMessageController extends CyPaginationController<MemLeaveMe
/**
/**
* 分页查询留言列表
* 分页查询留言列表
*/
*/
@PreAuthorize
(
"@cyPerm.hasPerm('
app:mem
:query')"
)
@PreAuthorize
(
"@cyPerm.hasPerm('
mem:leaveMessage
:query')"
)
@CyOpeLogAnno
(
title
=
"system-会员表管理-查询对话表"
,
businessType
=
CyLogTypeEnum
.
QUERY
)
@CyOpeLogAnno
(
title
=
"system-会员表管理-查询对话表"
,
businessType
=
CyLogTypeEnum
.
QUERY
)
@Operation
(
summary
=
"分页查询对话列表"
,
description
=
"分页查询对话列表"
)
@Operation
(
summary
=
"分页查询对话列表"
,
description
=
"分页查询对话列表"
)
@GetMapping
(
value
=
"/messageList"
)
@GetMapping
(
value
=
"/messageList"
)
...
@@ -83,4 +86,18 @@ public class MemLeaveMessageController extends CyPaginationController<MemLeaveMe
...
@@ -83,4 +86,18 @@ public class MemLeaveMessageController extends CyPaginationController<MemLeaveMe
IPage
<
MemLeaveMessage
>
memUserTalkIPage
=
memLeaveMessageServiceImpl
.
queryMessageByPagination
(
getPaginationUtility
(),
memLeaveMessage
);
IPage
<
MemLeaveMessage
>
memUserTalkIPage
=
memLeaveMessageServiceImpl
.
queryMessageByPagination
(
getPaginationUtility
(),
memLeaveMessage
);
return
getGridModelResponse
();
return
getGridModelResponse
();
}
}
@PreAuthorize
(
"@cyPerm.hasPerm('mem:leaveMessage:delete')"
)
@CyOpeLogAnno
(
title
=
"system-活动管理-删除留言"
,
businessType
=
CyLogTypeEnum
.
DELETE
)
@Operation
(
summary
=
"删除留言"
,
description
=
"删除留言"
)
@Parameters
({
@Parameter
(
name
=
"businessId"
,
description
=
"businessId"
,
required
=
true
)})
@DeleteMapping
(
"/delete/{businessId:\\w+}"
)
public
CyResult
delete
(
@PathVariable
Integer
businessId
,
MemLeaveMessage
memLeaveMessage
)
{
memLeaveMessage
.
setBusinessId
(
businessId
);
CyPersistModel
data
=
memLeaveMessageServiceImpl
.
remove
(
memLeaveMessage
);
return
CyResultGenUtil
.
builder
(
data
,
CyMessCons
.
MESSAGE_ALERT_SUCCESS
,
CyMessCons
.
MESSAGE_ALERT_ERROR
,
businessId
);
}
}
}
src/main/java/org/rcisoft/business/memLeaveMessage/service/MemLeaveMessageService.java
View file @
4c6e9f72
...
@@ -39,4 +39,9 @@ public interface MemLeaveMessageService {
...
@@ -39,4 +39,9 @@ public interface MemLeaveMessageService {
* 查询未读消息总数
* 查询未读消息总数
*/
*/
int
noReadMessageAllCount
();
int
noReadMessageAllCount
();
/**
* 逻辑删除留言
*/
CyPersistModel
remove
(
MemLeaveMessage
memLeaveMessage
);
}
}
src/main/java/org/rcisoft/business/memLeaveMessage/service/impl/MemLeaveMessageServiceImpl.java
View file @
4c6e9f72
...
@@ -350,4 +350,18 @@ public class MemLeaveMessageServiceImpl extends ServiceImpl<MemLeaveMessageRepos
...
@@ -350,4 +350,18 @@ public class MemLeaveMessageServiceImpl extends ServiceImpl<MemLeaveMessageRepos
//查询未读的要微信请求数
//查询未读的要微信请求数
return
count1
+
count2
;
return
count1
+
count2
;
}
}
/**
* 逻辑删除留言
*
* @param memLeaveMessage
*/
@Override
public
CyPersistModel
remove
(
MemLeaveMessage
memLeaveMessage
)
{
int
line
=
baseMapper
.
realDelete
(
memLeaveMessage
);
log
.
debug
(
CyUserUtil
.
getAuthenUsername
()
+
"删除了ID为"
+
memLeaveMessage
.
getBusinessId
()
+
"的活动信息"
);
return
new
CyPersistModel
(
line
);
}
}
}
src/main/resources/mapper/business/memGoldCoinFlow.mapper/MemGoldCoinFlowMapper.xml
View file @
4c6e9f72
...
@@ -46,11 +46,13 @@
...
@@ -46,11 +46,13 @@
ORDER BY business_id DESC
ORDER BY business_id DESC
</select>
</select>
<select
id=
"query
MemGoldCoinFlowsPaged"
resultMap=
"BaseResultMap
"
>
<select
id=
"query
GoldCoinFlowsPaged"
resultType=
"org.rcisoft.business.memGoldCoinFlow.entity.MemGoldCoinFlow
"
>
select mgcf.*,
select mgcf.*,
su.nick_name as userNickName
mi.mem_nick_name as userNickName,
mi2.mem_nick_name as targetNickName
from mem_gold_coin_flow mgcf
from mem_gold_coin_flow mgcf
left join sys_user su on su.business_id = mgcf.target_id
left join mem_info mi on mi.user_id = mgcf.create_by
left join mem_info mi2 on mi2.user_id = mgcf.target_id
where 1=1
where 1=1
and mgcf.del_flag = '0'
and mgcf.del_flag = '0'
<if
test=
"entity.beginTime !=null and entity.beginTime != '' "
>
<if
test=
"entity.beginTime !=null and entity.beginTime != '' "
>
...
@@ -81,8 +83,9 @@
...
@@ -81,8 +83,9 @@
select mgcf.*
select mgcf.*
from mem_gold_coin_flow mgcf
from mem_gold_coin_flow mgcf
where 1=1
where 1=1
and mgcf.del_flag = '0'
and mgcf.flag = '1'
and mgcf.flag = '1'
and mgcf.del_flag = '0'
and mgcf.action_type != '11'
and mgcf.create_by = #{entity.createBy}
and mgcf.create_by = #{entity.createBy}
<if
test=
"entity.beginTime !=null and entity.beginTime != '' "
>
<if
test=
"entity.beginTime !=null and entity.beginTime != '' "
>
and mgcf.create_date
>
= #{entity.beginTime}
and mgcf.create_date
>
= #{entity.beginTime}
...
@@ -93,17 +96,84 @@
...
@@ -93,17 +96,84 @@
<if
test=
"entity.type !=null and entity.type != '' "
>
<if
test=
"entity.type !=null and entity.type != '' "
>
and mgcf.type = #{entity.type}
and mgcf.type = #{entity.type}
</if>
</if>
ORDER BY mgcf.business_id DESC
UNION ALL
(
SELECT
mgcf.*
FROM
mem_gold_coin_flow mgcf
WHERE
1 = 1
and mgcf.flag = '1'
AND mgcf.del_flag = '0'
AND mgcf.action_type = '11'
AND mgcf.target_id = #{entity.createBy}
<if
test=
"entity.beginTime !=null and entity.beginTime != '' "
>
and mgcf.create_date
>
= #{entity.beginTime}
</if>
<if
test=
"entity.endTime !=null and entity.endTime != '' "
>
and mgcf.create_date
<
= #{entity.endTime}
</if>
<if
test=
"entity.type !=null and entity.type != '' "
>
and mgcf.type = #{entity.type}
</if>
)
ORDER BY create_date DESC
</select>
</select>
<select
id=
"balance"
resultType=
"java.lang.Integer"
>
<select
id=
"balance"
resultType=
"java.lang.Integer"
>
select mi.gold_coins_count
select mi.gold_coins_count
from mem_info mi
from mem_info mi
where user_id = #{userId}
where user_id = #{userId}
</select>
</select>
<select
id=
"queryMemGoldCoinFlowsPaged"
resultType=
"org.rcisoft.business.memGoldCoinFlow.entity.MemGoldCoinFlow"
>
SELECT
mgcf.*,
mi.mem_nick_name AS userNickName,
mi2.mem_nick_name AS targetNickName
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
WHERE
1 = 1
AND mgcf.del_flag = '0'
AND (mgcf.action_type != '11')
AND mgcf.create_by = #{entity.createBy}
<if
test=
"entity.beginTime !=null and entity.beginTime != '' "
>
and mgcf.create_date
>
= #{entity.beginTime}
</if>
<if
test=
"entity.endTime !=null and entity.endTime != '' "
>
and mgcf.create_date
<
= #{entity.endTime}
</if>
UNION ALL
(
SELECT
mgcf.*,
mi.mem_nick_name AS userNickName,
mi2.mem_nick_name AS targetNickName
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
WHERE
1 = 1
AND mgcf.del_flag = '0'
AND (mgcf.action_type = '11')
AND mgcf.target_id = #{entity.createBy}
<if
test=
"entity.beginTime !=null and entity.beginTime != '' "
>
and mgcf.create_date
>
= #{entity.beginTime}
</if>
<if
test=
"entity.endTime !=null and entity.endTime != '' "
>
and mgcf.create_date
<
= #{entity.endTime}
</if>
)
ORDER BY create_date DESC
</select>
<insert
id=
"insertMemGoldCoinFlow"
>
<insert
id=
"insertMemGoldCoinFlow"
>
insert into mem_gold_coin_flow
insert into mem_gold_coin_flow
(create_by, create_date, update_by, update_date, flag,del_flag, type, action_type, count, end_count, target_id)
(create_by, create_date, update_by, update_date, flag,del_flag, type, action_type, count, end_count, target_id)
values
values
(#{entity.
targetId}, now(), #{entity.targetId}, now()
, #{entity.flag},#{entity.delFlag} , #{entity.type}, #{entity.actionType}, #{entity.count}, #{entity.endCount}, #{entity.targetId})
(#{entity.
createBy}, #{entity.createDate}, #{entity.createBy}, #{entity.updateDate}
, #{entity.flag},#{entity.delFlag} , #{entity.type}, #{entity.actionType}, #{entity.count}, #{entity.endCount}, #{entity.targetId})
</insert>
</insert>
</mapper>
</mapper>
src/main/resources/mapper/business/memTraffic/mapper/MemTrafficMapper.xml
View file @
4c6e9f72
...
@@ -52,7 +52,7 @@
...
@@ -52,7 +52,7 @@
GROUP BY
GROUP BY
mt.user_id, su.nick_name
mt.user_id, su.nick_name
ORDER BY
ORDER BY
mt.user_id
DESC
totalMemTraffic
DESC
</select>
</select>
<update
id=
"updateMemTraffic"
>
<update
id=
"updateMemTraffic"
>
...
@@ -74,4 +74,4 @@
...
@@ -74,4 +74,4 @@
FROM mem_info mi
FROM mem_info mi
WHERE mi.business_id = #{entity.memberId}
WHERE mi.business_id = #{entity.memberId}
</insert>
</insert>
</mapper>
</mapper>
\ No newline at end of file
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