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
14d74ae5
Commit
14d74ae5
authored
Nov 21, 2024
by
吕明尚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改集点活动日志
parent
ce651354
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
26 additions
and
9 deletions
+26
-9
PointActivityLogController.java
...are/web/controller/system/PointActivityLogController.java
+6
-5
PointActivityLogVo.java
.../main/java/share/system/domain/vo/PointActivityLogVo.java
+13
-0
PointActivityLogMapper.java
...main/java/share/system/mapper/PointActivityLogMapper.java
+2
-1
PointActivityLogService.java
...in/java/share/system/service/PointActivityLogService.java
+2
-1
PointActivityLogServiceImpl.java
...hare/system/service/impl/PointActivityLogServiceImpl.java
+2
-1
PointActivityLogMapper.xml
...c/main/resources/mapper/system/PointActivityLogMapper.xml
+1
-1
No files found.
share-admin/src/main/java/share/web/controller/system/PointActivityLogController.java
View file @
14d74ae5
...
@@ -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.PointActivityLog
;
import
share.system.domain.PointActivityLog
;
import
share.system.domain.vo.PointActivityLogVo
;
import
share.system.service.PointActivityLogService
;
import
share.system.service.PointActivityLogService
;
import
javax.servlet.http.HttpServletResponse
;
import
javax.servlet.http.HttpServletResponse
;
...
@@ -32,9 +33,9 @@ public class PointActivityLogController extends BaseController {
...
@@ -32,9 +33,9 @@ public class PointActivityLogController extends BaseController {
*/
*/
@PreAuthorize
(
"@ss.hasPermi('system:pointActivityLog:list')"
)
@PreAuthorize
(
"@ss.hasPermi('system:pointActivityLog:list')"
)
@GetMapping
(
"/list"
)
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
PointActivityLog
pointActivityLog
)
{
public
TableDataInfo
list
(
PointActivityLog
Vo
pointActivityLog
)
{
startPage
();
startPage
();
List
<
PointActivityLog
>
list
=
pointActivityLogService
.
selectPointActivityLogList
(
pointActivityLog
);
List
<
PointActivityLog
Vo
>
list
=
pointActivityLogService
.
selectPointActivityLogList
(
pointActivityLog
);
return
getDataTable
(
list
);
return
getDataTable
(
list
);
}
}
...
@@ -44,9 +45,9 @@ public class PointActivityLogController extends BaseController {
...
@@ -44,9 +45,9 @@ public class PointActivityLogController extends BaseController {
@PreAuthorize
(
"@ss.hasPermi('system:pointActivityLog:export')"
)
@PreAuthorize
(
"@ss.hasPermi('system:pointActivityLog:export')"
)
@Log
(
title
=
"集点活动日志"
,
businessType
=
BusinessType
.
EXPORT
)
@Log
(
title
=
"集点活动日志"
,
businessType
=
BusinessType
.
EXPORT
)
@PostMapping
(
"/export"
)
@PostMapping
(
"/export"
)
public
void
export
(
HttpServletResponse
response
,
PointActivityLog
pointActivityLog
)
{
public
void
export
(
HttpServletResponse
response
,
PointActivityLog
Vo
pointActivityLog
)
{
List
<
PointActivityLog
>
list
=
pointActivityLogService
.
selectPointActivityLogList
(
pointActivityLog
);
List
<
PointActivityLog
Vo
>
list
=
pointActivityLogService
.
selectPointActivityLogList
(
pointActivityLog
);
ExcelUtil
<
PointActivityLog
>
util
=
new
ExcelUtil
<
PointActivityLog
>(
PointActivityLog
.
class
);
ExcelUtil
<
PointActivityLog
Vo
>
util
=
new
ExcelUtil
<
PointActivityLogVo
>(
PointActivityLogVo
.
class
);
util
.
exportExcel
(
response
,
list
,
"集点活动日志数据"
);
util
.
exportExcel
(
response
,
list
,
"集点活动日志数据"
);
}
}
...
...
share-system/src/main/java/share/system/domain/vo/PointActivityLogVo.java
0 → 100644
View file @
14d74ae5
package
share
.
system
.
domain
.
vo
;
import
lombok.Data
;
import
share.system.domain.PointActivityLog
;
@Data
public
class
PointActivityLogVo
extends
PointActivityLog
{
private
String
nickName
;
private
String
avatar
;
private
String
phone
;
}
share-system/src/main/java/share/system/mapper/PointActivityLogMapper.java
View file @
14d74ae5
...
@@ -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.PointActivityLog
;
import
share.system.domain.PointActivityLog
;
import
share.system.domain.vo.PointActivityLogVo
;
import
java.util.List
;
import
java.util.List
;
...
@@ -26,7 +27,7 @@ public interface PointActivityLogMapper extends BaseMapper<PointActivityLog> {
...
@@ -26,7 +27,7 @@ public interface PointActivityLogMapper extends BaseMapper<PointActivityLog> {
* @param pointActivityLog 集点活动日志
* @param pointActivityLog 集点活动日志
* @return 集点活动日志集合
* @return 集点活动日志集合
*/
*/
public
List
<
PointActivityLog
>
selectPointActivityLogList
(
PointActivityLog
pointActivityLog
);
public
List
<
PointActivityLog
Vo
>
selectPointActivityLogList
(
PointActivityLogVo
pointActivityLog
);
/**
/**
* 新增集点活动日志
* 新增集点活动日志
...
...
share-system/src/main/java/share/system/service/PointActivityLogService.java
View file @
14d74ae5
...
@@ -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.PointActivityLog
;
import
share.system.domain.PointActivityLog
;
import
share.system.domain.vo.PointActivityLogVo
;
import
java.util.List
;
import
java.util.List
;
...
@@ -26,7 +27,7 @@ public interface PointActivityLogService extends IService<PointActivityLog> {
...
@@ -26,7 +27,7 @@ public interface PointActivityLogService extends IService<PointActivityLog> {
* @param pointActivityLog 集点活动日志
* @param pointActivityLog 集点活动日志
* @return 集点活动日志集合
* @return 集点活动日志集合
*/
*/
public
List
<
PointActivityLog
>
selectPointActivityLogList
(
PointActivityLog
pointActivityLog
);
public
List
<
PointActivityLog
Vo
>
selectPointActivityLogList
(
PointActivityLogVo
pointActivityLog
);
/**
/**
* 新增集点活动日志
* 新增集点活动日志
...
...
share-system/src/main/java/share/system/service/impl/PointActivityLogServiceImpl.java
View file @
14d74ae5
...
@@ -5,6 +5,7 @@ import org.springframework.beans.factory.annotation.Autowired;
...
@@ -5,6 +5,7 @@ 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.PointActivityLog
;
import
share.system.domain.PointActivityLog
;
import
share.system.domain.vo.PointActivityLogVo
;
import
share.system.mapper.PointActivityLogMapper
;
import
share.system.mapper.PointActivityLogMapper
;
import
share.system.service.PointActivityLogService
;
import
share.system.service.PointActivityLogService
;
...
@@ -39,7 +40,7 @@ public class PointActivityLogServiceImpl extends ServiceImpl<PointActivityLogMap
...
@@ -39,7 +40,7 @@ public class PointActivityLogServiceImpl extends ServiceImpl<PointActivityLogMap
* @return 集点活动日志
* @return 集点活动日志
*/
*/
@Override
@Override
public
List
<
PointActivityLog
>
selectPointActivityLogList
(
PointActivityLog
pointActivityLog
)
{
public
List
<
PointActivityLog
Vo
>
selectPointActivityLogList
(
PointActivityLogVo
pointActivityLog
)
{
return
pointActivityLogMapper
.
selectPointActivityLogList
(
pointActivityLog
);
return
pointActivityLogMapper
.
selectPointActivityLogList
(
pointActivityLog
);
}
}
...
...
share-system/src/main/resources/mapper/system/PointActivityLogMapper.xml
View file @
14d74ae5
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
from s_point_activity_log
from s_point_activity_log
</sql>
</sql>
<select
id=
"selectPointActivityLogList"
parameterType=
"PointActivityLog"
resultMap=
"PointActivityLogResult"
>
<select
id=
"selectPointActivityLogList"
parameterType=
"PointActivityLog
Vo
"
resultMap=
"PointActivityLogResult"
>
<include
refid=
"selectPointActivityLogVo"
/>
<include
refid=
"selectPointActivityLogVo"
/>
<where>
<where>
<if
test=
"consumerId != null "
>
and consumer_id = #{consumerId}
</if>
<if
test=
"consumerId != null "
>
and consumer_id = #{consumerId}
</if>
...
...
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