Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
answer-backend
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
answer
answer-backend
Commits
22560772
Commit
22560772
authored
Sep 02, 2022
by
jcm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2022.9.2
parent
18e92d1b
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
14 deletions
+16
-14
user-server/src/main/java/com/zq/user/controller/PrizeController.java
+1
-1
user-server/src/main/java/com/zq/user/service/LotteryInfoService.java
+0
-0
user-server/src/main/java/com/zq/user/service/PrizeService.java
+0
-1
user-server/src/main/java/com/zq/user/service/QuestionService.java
+15
-12
No files found.
user-server/src/main/java/com/zq/user/controller/PrizeController.java
View file @
22560772
...
...
@@ -134,7 +134,7 @@ public class PrizeController {
return
ResultVo
.
success
();
}
// @ApiOperation("获取抽奖记录")
// @ApiOperation("获取抽奖记录")
// @PostMapping(value = "/getLotteryRecList")
// public ResultVo<PageVo<LotteryRec>> getLotteryRecList(@RequestBody LotteryRecFindVo vo) {
// return ResultVo.success(prizeService.getLotteryRecList(vo));
...
...
user-server/src/main/java/com/zq/user/service/LotteryInfoService.java
View file @
22560772
user-server/src/main/java/com/zq/user/service/PrizeService.java
View file @
22560772
...
...
@@ -126,7 +126,6 @@ PrizeService {
return
prizeDao
.
selectById
(
prizeId
);
}
// todo 抽奖模块尚未修改
public
LotteryRecFindVo
luckDraw
(
String
userId
,
LotteryInfoVo
infoVo
)
{
// List<Prize> prizeList = prizeDao.getLuckDrawPrize();
// 当期活动奖品列表
...
...
user-server/src/main/java/com/zq/user/service/QuestionService.java
View file @
22560772
...
...
@@ -85,18 +85,21 @@ public class QuestionService {
}
public
void
editQuestion
(
Question
vo
)
{
Question
question
=
questionDao
.
selectById
(
vo
.
getId
());
AssertUtils
.
notNull
(
question
,
"题目不存在"
);
question
.
setSubject
(
vo
.
getSubject
());
question
.
setContent
(
vo
.
getContent
());
question
.
setAnalysis
(
vo
.
getAnalysis
());
question
.
setAnswer
(
vo
.
getAnswer
());
question
.
setQuestionTypeId
(
vo
.
getQuestionTypeId
());
question
.
setLotteryInfoName
(
lotteryInfoDao
.
selectById
(
vo
.
getLotteryId
()).
getLotteryInfoName
());
question
.
setLotteryId
(
vo
.
getLotteryId
());
questionDao
.
updateById
(
question
);
AssertUtils
.
notNull
(
questionDao
.
selectById
(
vo
.
getId
())
==
null
,
"题目不存在"
);
// Question question = questionDao.selectById(vo.getId());
//
// question.setSubject(vo.getSubject());
// question.setContent(vo.getContent());
// question.setAnalysis(vo.getAnalysis());
// question.setAnswer(vo.getAnswer());
// question.setQuestionTypeId(vo.getQuestionTypeId());
// question.setLotteryInfoName(lotteryInfoDao.selectById(vo.getLotteryId()).getLotteryInfoName());
// question.setLotteryId(vo.getLotteryId());
if
(
vo
.
getLotteryId
()
!=
null
)
{
vo
.
setLotteryInfoName
(
lotteryInfoDao
.
selectById
(
vo
.
getLotteryId
()).
getLotteryInfoName
());
vo
.
setLotteryId
(
vo
.
getLotteryId
());
}
questionDao
.
updateById
(
vo
);
}
public
void
delQuestion
(
Set
<
String
>
ids
)
{
...
...
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