Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
engine-class-work
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
liuchengjiu
engine-class-work
Commits
19b4f820
Commit
19b4f820
authored
Jul 24, 2023
by
Ryan Loong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix 点名次数限定不正确 && fix 点名不增加次数的bug && update 修改开发环境日志级别
parent
538214f1
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
4 deletions
+6
-4
StudentVo.java
...va/cn/exploring/engine/server/db/domain/vo/StudentVo.java
+2
-1
StudentInfoService.java
...xploring/engine/server/db/service/StudentInfoService.java
+0
-1
StudentPointService.java
...ploring/engine/server/db/service/StudentPointService.java
+2
-0
application-dbDev.yml
server-db/src/main/resources/application-dbDev.yml
+1
-1
StudentController.java
.../cn/exploring/engine/server/wx/web/StudentController.java
+1
-1
No files found.
server-db/src/main/java/cn/exploring/engine/server/db/domain/vo/StudentVo.java
View file @
19b4f820
...
@@ -7,7 +7,8 @@ import cn.zhxu.bs.bean.SearchBean;
...
@@ -7,7 +7,8 @@ import cn.zhxu.bs.bean.SearchBean;
@SearchBean
(
@SearchBean
(
tables
=
"(select * from student_info where deleted = false) st left join (select * from class_info where deleted = false) cl on cl.id = st.class_id"
,
tables
=
"(select * from student_info where deleted = false) st left join (select * from class_info where deleted = false) cl on cl.id = st.class_id"
,
autoMapTo
=
"st"
,
autoMapTo
=
"st"
,
ignoreFields
=
{
"incrementColumnsInfoMap"
}
ignoreFields
=
{
"incrementColumnsInfoMap"
},
orderBy
=
"rand()"
)
)
public
class
StudentVo
extends
StudentInfo
{
public
class
StudentVo
extends
StudentInfo
{
...
...
server-db/src/main/java/cn/exploring/engine/server/db/service/StudentInfoService.java
View file @
19b4f820
...
@@ -104,7 +104,6 @@ public class StudentInfoService {
...
@@ -104,7 +104,6 @@ public class StudentInfoService {
.
field
(
StudentVo:
:
getDeleted
,
StudentInfo
.
NOT_DELETED
).
op
(
Equal
.
class
)
.
field
(
StudentVo:
:
getDeleted
,
StudentInfo
.
NOT_DELETED
).
op
(
Equal
.
class
)
.
field
(
StudentVo:
:
getClassId
,
classId
).
op
(
Equal
.
class
)
.
field
(
StudentVo:
:
getClassId
,
classId
).
op
(
Equal
.
class
)
.
field
(
StudentVo:
:
getCallTimes
,
maxCall
).
op
(
LessThan
.
class
)
.
field
(
StudentVo:
:
getCallTimes
,
maxCall
).
op
(
LessThan
.
class
)
.
orderBy
(
"random()"
)
.
build
());
.
build
());
}
}
...
...
server-db/src/main/java/cn/exploring/engine/server/db/service/StudentPointService.java
View file @
19b4f820
...
@@ -104,6 +104,8 @@ public class StudentPointService {
...
@@ -104,6 +104,8 @@ public class StudentPointService {
studentPoint
.
setAddTime
(
now
);
studentPoint
.
setAddTime
(
now
);
studentPoint
.
setDeleted
(
false
);
studentPoint
.
setDeleted
(
false
);
studentPointInfoMapper
.
insert
(
studentPoint
);
studentPointInfoMapper
.
insert
(
studentPoint
);
studentInfoService
.
increaseCallTimeByPrimaryKey
(
studentPoint
.
getStudentId
());
return
"add OK"
;
return
"add OK"
;
}
}
...
...
server-db/src/main/resources/application-dbDev.yml
View file @
19b4f820
logging
:
logging
:
level
:
level
:
cn.zhxu.bs
:
info
cn.zhxu.bs
:
debug
pagehelper
:
pagehelper
:
helperDialect
:
mysql
helperDialect
:
mysql
...
...
server-wx-api/src/main/java/cn/exploring/engine/server/wx/web/StudentController.java
View file @
19b4f820
...
@@ -39,7 +39,7 @@ public class StudentController {
...
@@ -39,7 +39,7 @@ public class StudentController {
}
}
@GetMapping
(
"randomSelect"
)
@GetMapping
(
"randomSelect"
)
public
Object
randomSelect
(
@RequestParam
Integer
classId
,
@RequestParam
Integer
maxCall
)
{
public
Object
randomSelect
(
@RequestParam
Integer
classId
,
@
Nullable
@
RequestParam
Integer
maxCall
)
{
return
ResponseUtil
.
ok
(
studentInfoService
.
selectStudentInfo
(
classId
,
maxCall
));
return
ResponseUtil
.
ok
(
studentInfoService
.
selectStudentInfo
(
classId
,
maxCall
));
}
}
...
...
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