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
c50e3f6d
Commit
c50e3f6d
authored
Nov 25, 2024
by
吕明尚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改查询抽奖日志列表
parent
6da8849e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
7 deletions
+18
-7
LotteryRecordsLogController.java
...re/web/controller/system/LotteryRecordsLogController.java
+4
-6
LotteryRecordsLogService.java
...n/java/share/system/service/LotteryRecordsLogService.java
+2
-0
LotteryRecordsLogServiceImpl.java
...are/system/service/impl/LotteryRecordsLogServiceImpl.java
+11
-0
WheelGameServiceImpl.java
.../java/share/system/service/impl/WheelGameServiceImpl.java
+1
-1
No files found.
share-front/src/main/java/share/web/controller/system/LotteryRecordsLogController.java
View file @
c50e3f6d
...
...
@@ -5,7 +5,7 @@ import org.springframework.web.bind.annotation.GetMapping;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
share.common.core.controller.BaseController
;
import
share.common.core.
page.TableDataInfo
;
import
share.common.core.
domain.R
;
import
share.system.domain.LotteryRecordsLog
;
import
share.system.service.LotteryRecordsLogService
;
...
...
@@ -26,11 +26,9 @@ public class LotteryRecordsLogController extends BaseController {
/**
* 查询抽奖记录日志列表
*/
@GetMapping
(
"/list"
)
public
TableDataInfo
list
(
LotteryRecordsLog
lotteryRecordsLog
)
{
startPage
();
List
<
LotteryRecordsLog
>
list
=
lotteryRecordsLogService
.
selectLotteryRecordsLogList
(
lotteryRecordsLog
);
return
getDataTable
(
list
);
@GetMapping
(
"/query"
)
public
R
<
List
<
LotteryRecordsLog
>>
query
()
{
return
R
.
ok
(
lotteryRecordsLogService
.
queryList
());
}
...
...
share-system/src/main/java/share/system/service/LotteryRecordsLogService.java
View file @
c50e3f6d
...
...
@@ -59,4 +59,6 @@ public interface LotteryRecordsLogService extends IService<LotteryRecordsLog> {
* @return 结果
*/
public
int
deleteLotteryRecordsLogById
(
Long
id
);
List
<
LotteryRecordsLog
>
queryList
();
}
share-system/src/main/java/share/system/service/impl/LotteryRecordsLogServiceImpl.java
View file @
c50e3f6d
package
share
.
system
.
service
.
impl
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
share.common.utils.DateUtils
;
import
share.system.domain.LotteryRecordsLog
;
import
share.system.domain.SConsumer
;
import
share.system.mapper.LotteryRecordsLogMapper
;
import
share.system.service.LotteryRecordsLogService
;
import
share.system.service.SConsumerService
;
import
java.util.List
;
...
...
@@ -20,6 +23,8 @@ import java.util.List;
public
class
LotteryRecordsLogServiceImpl
extends
ServiceImpl
<
LotteryRecordsLogMapper
,
LotteryRecordsLog
>
implements
LotteryRecordsLogService
{
@Autowired
private
LotteryRecordsLogMapper
lotteryRecordsLogMapper
;
@Autowired
private
SConsumerService
sConsumerService
;
/**
* 查询抽奖记录日志
...
...
@@ -88,4 +93,10 @@ public class LotteryRecordsLogServiceImpl extends ServiceImpl<LotteryRecordsLogM
public
int
deleteLotteryRecordsLogById
(
Long
id
)
{
return
lotteryRecordsLogMapper
.
deleteLotteryRecordsLogById
(
id
);
}
@Override
public
List
<
LotteryRecordsLog
>
queryList
()
{
SConsumer
user
=
sConsumerService
.
getInfo
();
return
list
(
new
LambdaQueryWrapper
<
LotteryRecordsLog
>().
eq
(
LotteryRecordsLog:
:
getUserId
,
user
.
getId
()));
}
}
share-system/src/main/java/share/system/service/impl/WheelGameServiceImpl.java
View file @
c50e3f6d
...
...
@@ -175,7 +175,7 @@ public class WheelGameServiceImpl extends ServiceImpl<WheelGameMapper, WheelGame
break
;
case
GOODS:
log
.
setIsHit
(
YesNoEnum
.
yes
.
getIndex
());
log
.
setIsSend
(
YesNoEnum
.
yes
.
getIndex
());
log
.
setIsSend
(
YesNoEnum
.
no
.
getIndex
());
log
.
setHitPrize
(
PrizeTypeEnum
.
GOODS
.
getName
());
log
.
setSendMsg
(
PrizeTypeEnum
.
GOODS
.
getName
()
+
":"
+
prize
.
getPrizeName
()
+
"以发放"
);
lotteryRecordsLogService
.
save
(
log
);
...
...
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