Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
zhengyuan-danger-chemistry-manage
Project
Project
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
耿迪迪
zhengyuan-danger-chemistry-manage
Commits
94d08028
Commit
94d08028
authored
Jan 15, 2023
by
吴卿华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
多选
parent
554d875d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
3 deletions
+5
-3
TTrainCourseTopicServiceImpl.java
...ong/system/service/impl/TTrainCourseTopicServiceImpl.java
+1
-0
TTrainCourseTopicMapper.xml
.../main/resources/mapper/system/TTrainCourseTopicMapper.xml
+2
-2
vue.config.js
danger-manage-web/vue.config.js
+2
-1
No files found.
danger-manage-system/src/main/java/com/zehong/system/service/impl/TTrainCourseTopicServiceImpl.java
View file @
94d08028
...
@@ -158,6 +158,7 @@ public class TTrainCourseTopicServiceImpl implements ITTrainCourseTopicService
...
@@ -158,6 +158,7 @@ public class TTrainCourseTopicServiceImpl implements ITTrainCourseTopicService
courseTopic
.
setTopicOption
(
bankSubjects
.
get
(
i
).
getTopicOption
());
courseTopic
.
setTopicOption
(
bankSubjects
.
get
(
i
).
getTopicOption
());
courseTopic
.
setAnswer
(
String
.
valueOf
(
bankSubjects
.
get
(
i
).
getAnswer
()));
courseTopic
.
setAnswer
(
String
.
valueOf
(
bankSubjects
.
get
(
i
).
getAnswer
()));
courseTopic
.
setCreateTime
(
new
Date
());
courseTopic
.
setCreateTime
(
new
Date
());
courseTopic
.
setTopicType
(
bankSubjects
.
get
(
i
).
getTopicType
());
topics
.
add
(
courseTopic
);
topics
.
add
(
courseTopic
);
}
}
count
+=
topic
.
getQuan
();
count
+=
topic
.
getQuan
();
...
...
danger-manage-system/src/main/resources/mapper/system/TTrainCourseTopicMapper.xml
View file @
94d08028
...
@@ -83,9 +83,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -83,9 +83,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</delete>
</delete>
<insert
id=
"batchInsertTTrainCourseTopic"
parameterType=
"java.util.List"
>
<insert
id=
"batchInsertTTrainCourseTopic"
parameterType=
"java.util.List"
>
insert into t_train_course_topic(course_id,topic_title,topic_option,answer,create_time) values
insert into t_train_course_topic(course_id,topic_title,topic_option,answer,create_time
,topic_type
) values
<foreach
collection=
"list"
item=
"topic"
index=
"index"
separator=
","
>
<foreach
collection=
"list"
item=
"topic"
index=
"index"
separator=
","
>
(#{topic.courseId},#{topic.topicTitle},#{topic.topicOption},#{topic.answer},#{topic.createTime})
(#{topic.courseId},#{topic.topicTitle},#{topic.topicOption},#{topic.answer},#{topic.createTime}
,#{topicType}
)
</foreach>
</foreach>
</insert>
</insert>
</mapper>
</mapper>
danger-manage-web/vue.config.js
View file @
94d08028
...
@@ -34,7 +34,8 @@ module.exports = {
...
@@ -34,7 +34,8 @@ module.exports = {
proxy
:
{
proxy
:
{
// detail: https://cli.vuejs.org/config/#devserver-proxy
// detail: https://cli.vuejs.org/config/#devserver-proxy
[
process
.
env
.
VUE_APP_BASE_API
]:
{
[
process
.
env
.
VUE_APP_BASE_API
]:
{
target
:
process
.
env
.
VUE_APP_TARGET
,
// target: process.env.VUE_APP_TARGET,
target
:
`http://192.168.2.21:8908/dangerManage`
,
changeOrigin
:
true
,
changeOrigin
:
true
,
pathRewrite
:
{
pathRewrite
:
{
[
'^'
+
process
.
env
.
VUE_APP_BASE_API
]:
''
[
'^'
+
process
.
env
.
VUE_APP_BASE_API
]:
''
...
...
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