Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
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
15a3642a
You need to sign in or sign up before continuing.
Commit
15a3642a
authored
Jan 10, 2023
by
吴卿华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge branch 'master' of D:\项目\正元安全生产\zhengyuan-danger-chemistry-manage with conflicts.
parent
1decead9
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
172 additions
and
88 deletions
+172
-88
TTrainCourseController.java
...m/zehong/web/controller/train/TTrainCourseController.java
+1
-2
application-dev.yml
danger-manage-admin/src/main/resources/application-dev.yml
+3
-3
application-prd.yml
danger-manage-admin/src/main/resources/application-prd.yml
+1
-1
application-test.yml
danger-manage-admin/src/main/resources/application-test.yml
+3
-3
TTrainCourse.java
.../src/main/java/com/zehong/system/domain/TTrainCourse.java
+62
-25
TTrainCourseTopic.java
...main/java/com/zehong/system/domain/TTrainCourseTopic.java
+47
-16
TTrainCourseServiceImpl.java
...m/zehong/system/service/impl/TTrainCourseServiceImpl.java
+15
-13
TTrainCourseTopicServiceImpl.java
...ong/system/service/impl/TTrainCourseTopicServiceImpl.java
+9
-9
TTrainCourseMapper.xml
...m/src/main/resources/mapper/system/TTrainCourseMapper.xml
+18
-8
TTrainCourseTopicMapper.xml
.../main/resources/mapper/system/TTrainCourseTopicMapper.xml
+11
-7
package.json
danger-manage-web/package.json
+2
-0
vue.config.js
danger-manage-web/vue.config.js
+0
-1
No files found.
danger-manage-admin/src/main/java/com/zehong/web/controller/train/TTrainCourseController.java
View file @
15a3642a
...
@@ -65,7 +65,6 @@ public class TTrainCourseController extends BaseController
...
@@ -65,7 +65,6 @@ public class TTrainCourseController extends BaseController
@ApiOperation
(
"用户课程考试"
)
@ApiOperation
(
"用户课程考试"
)
@GetMapping
(
"/examination"
)
@GetMapping
(
"/examination"
)
public
AjaxResult
examination
(
Long
userCourseId
,
String
answers
){
public
AjaxResult
examination
(
Long
userCourseId
,
String
answers
){
Map
<
String
,
Object
>
map
=
tTrainCourseService
.
examination
(
userCourseId
,
answers
.
split
(
","
));
Map
<
String
,
Object
>
map
=
tTrainCourseService
.
examination
(
userCourseId
,
answers
.
split
(
","
));
return
AjaxResult
.
success
(
map
);
return
AjaxResult
.
success
(
map
);
}
}
...
...
danger-manage-admin/src/main/resources/application-dev.yml
View file @
15a3642a
...
@@ -21,7 +21,7 @@ spring:
...
@@ -21,7 +21,7 @@ spring:
druid
:
druid
:
# 主库数据源
# 主库数据源
master
:
master
:
url
:
jdbc:mysql://36.138.181.113:33060/danger_manage_area_
a
?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
url
:
jdbc:mysql://36.138.181.113:33060/danger_manage_area_
test
?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
username
:
root
username
:
root
password
:
zehong_/sjz!D
password
:
zehong_/sjz!D
# 从库数据源
# 从库数据源
...
@@ -75,11 +75,11 @@ spring:
...
@@ -75,11 +75,11 @@ spring:
# 地址
# 地址
host
:
127.0.0.1
host
:
127.0.0.1
# 端口,默认为6379
# 端口,默认为6379
port
:
637
8
port
:
637
9
# 数据库索引
# 数据库索引
database
:
1
database
:
1
# 密码
# 密码
password
:
Redis@2021
password
:
# 连接超时时间
# 连接超时时间
timeout
:
10s
timeout
:
10s
lettuce
:
lettuce
:
...
...
danger-manage-admin/src/main/resources/application-prd.yml
View file @
15a3642a
...
@@ -73,7 +73,7 @@ spring:
...
@@ -73,7 +73,7 @@ spring:
# redis 配置
# redis 配置
redis
:
redis
:
# 地址
# 地址
host
:
localhost
host
:
127.0.0.1
# 端口,默认为6379
# 端口,默认为6379
port
:
6379
port
:
6379
# 数据库索引
# 数据库索引
...
...
danger-manage-admin/src/main/resources/application-test.yml
View file @
15a3642a
...
@@ -21,7 +21,7 @@ spring:
...
@@ -21,7 +21,7 @@ spring:
druid
:
druid
:
# 主库数据源
# 主库数据源
master
:
master
:
url
:
jdbc:mysql://36.138.181.113:3306/danger_manage_area_
b
?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
url
:
jdbc:mysql://36.138.181.113:3306/danger_manage_area_
test
?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
username
:
root
username
:
root
password
:
root@123
password
:
root@123
# 从库数据源
# 从库数据源
...
@@ -75,11 +75,11 @@ spring:
...
@@ -75,11 +75,11 @@ spring:
# 地址
# 地址
host
:
127.0.0.1
host
:
127.0.0.1
# 端口,默认为6379
# 端口,默认为6379
port
:
637
8
port
:
637
9
# 数据库索引
# 数据库索引
database
:
0
database
:
0
# 密码
# 密码
password
:
Redis@2021
password
:
# 连接超时时间
# 连接超时时间
timeout
:
10s
timeout
:
10s
lettuce
:
lettuce
:
...
...
danger-manage-system/src/main/java/com/zehong/system/domain/TTrainCourse.java
View file @
15a3642a
...
@@ -54,7 +54,7 @@ public class TTrainCourse extends BaseEntity
...
@@ -54,7 +54,7 @@ public class TTrainCourse extends BaseEntity
private
String
video
;
private
String
video
;
/** 答题合格数 */
/** 答题合格数 */
@Excel
(
name
=
"答题合格数"
)
@Excel
(
name
=
"答题合格
分
数"
)
private
Integer
qualifiedNum
;
private
Integer
qualifiedNum
;
/** 录入题数量 */
/** 录入题数量 */
...
@@ -91,6 +91,43 @@ public class TTrainCourse extends BaseEntity
...
@@ -91,6 +91,43 @@ public class TTrainCourse extends BaseEntity
private
Integer
duration
;
private
Integer
duration
;
/** 多选题分数*/
private
Integer
multipleChoiceScore
;
/**单选题分数*/
private
Integer
singleChoiceScore
;
/**判断题分数*/
private
Integer
judgmentScore
;
public
static
long
getSerialVersionUID
()
{
return
serialVersionUID
;
}
public
Integer
getMultipleChoiceScore
()
{
return
multipleChoiceScore
;
}
public
void
setMultipleChoiceScore
(
Integer
multipleChoiceScore
)
{
this
.
multipleChoiceScore
=
multipleChoiceScore
;
}
public
Integer
getSingleChoiceScore
()
{
return
singleChoiceScore
;
}
public
void
setSingleChoiceScore
(
Integer
singleChoiceScore
)
{
this
.
singleChoiceScore
=
singleChoiceScore
;
}
public
Integer
getJudgmentScore
()
{
return
judgmentScore
;
}
public
void
setJudgmentScore
(
Integer
judgmentScore
)
{
this
.
judgmentScore
=
judgmentScore
;
}
public
Integer
getDuration
()
{
public
Integer
getDuration
()
{
return
duration
;
return
duration
;
}
}
...
...
danger-manage-system/src/main/java/com/zehong/system/domain/TTrainCourseTopic.java
View file @
15a3642a
...
@@ -5,6 +5,8 @@ import com.zehong.common.core.domain.BaseEntity;
...
@@ -5,6 +5,8 @@ import com.zehong.common.core.domain.BaseEntity;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
import
org.apache.commons.lang3.builder.ToStringBuilder
;
import
org.apache.commons.lang3.builder.ToStringStyle
;
import
org.apache.commons.lang3.builder.ToStringStyle
;
import
java.util.List
;
/**
/**
* 培训课程题库对象 t_train_course_topic
* 培训课程题库对象 t_train_course_topic
*
*
...
@@ -31,8 +33,37 @@ public class TTrainCourseTopic extends BaseEntity
...
@@ -31,8 +33,37 @@ public class TTrainCourseTopic extends BaseEntity
private
String
topicOption
;
private
String
topicOption
;
/** 答案 */
/** 答案 */
// @Excel(name = "答案")
// private Integer answer;
/** 答案 */
@Excel
(
name
=
"答案"
)
@Excel
(
name
=
"答案"
)
private
Integer
answer
;
private
String
answer
;
/** 题目类型 1单选 2多选 3判断 */
private
Integer
topicType
;
/** 答题合格分数*/
private
Integer
qualifiedNum
;
public
Integer
getQualifiedNum
()
{
return
qualifiedNum
;
}
public
void
setQualifiedNum
(
Integer
qualifiedNum
)
{
this
.
qualifiedNum
=
qualifiedNum
;
}
public
static
long
getSerialVersionUID
()
{
return
serialVersionUID
;
}
public
Integer
getTopicType
()
{
return
topicType
;
}
public
void
setTopicType
(
Integer
topicType
)
{
this
.
topicType
=
topicType
;
}
public
void
setTopicId
(
Long
topicId
)
public
void
setTopicId
(
Long
topicId
)
{
{
...
@@ -70,16 +101,16 @@ public class TTrainCourseTopic extends BaseEntity
...
@@ -70,16 +101,16 @@ public class TTrainCourseTopic extends BaseEntity
{
{
return
topicOption
;
return
topicOption
;
}
}
public
void
setAnswer
(
Integer
answer
)
{
this
.
answer
=
answer
;
}
public
Integer
getAnswer
()
{
public
String
getAnswer
()
{
return
answer
;
return
answer
;
}
}
public
void
setAnswer
(
String
answer
)
{
this
.
answer
=
answer
;
}
@Override
@Override
public
String
toString
()
{
public
String
toString
()
{
return
new
ToStringBuilder
(
this
,
ToStringStyle
.
MULTI_LINE_STYLE
)
return
new
ToStringBuilder
(
this
,
ToStringStyle
.
MULTI_LINE_STYLE
)
...
...
danger-manage-system/src/main/java/com/zehong/system/service/impl/TTrainCourseServiceImpl.java
View file @
15a3642a
...
@@ -184,16 +184,18 @@ public class TTrainCourseServiceImpl implements ITTrainCourseService
...
@@ -184,16 +184,18 @@ public class TTrainCourseServiceImpl implements ITTrainCourseService
@Override
@Override
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
Map
<
String
,
Object
>
examination
(
Long
userCourseId
,
String
[]
answers
){
public
Map
<
String
,
Object
>
examination
(
Long
userCourseId
,
String
[]
answers
){
System
.
out
.
println
(
answers
[
0
]);
TTrainUserCourse
userCourse
=
tTrainUserCourseMapper
.
selectTTrainUserCourseById
(
userCourseId
);
TTrainUserCourse
userCourse
=
tTrainUserCourseMapper
.
selectTTrainUserCourseById
(
userCourseId
);
TTrainCourseTopic
topic
=
new
TTrainCourseTopic
();
TTrainCourseTopic
topic
=
new
TTrainCourseTopic
();
topic
.
setCourseId
(
userCourse
.
getCourseId
());
topic
.
setCourseId
(
userCourse
.
getCourseId
());
List
<
TTrainCourseTopic
>
list
=
tTrainCourseTopicMapper
.
selectTTrainCourseTopicList
(
topic
);
List
<
TTrainCourseTopic
>
list
=
tTrainCourseTopicMapper
.
selectTTrainCourseTopicList
(
topic
);
int
num
=
0
;
int
num
=
0
;
for
(
Integer
i
=
0
;
i
<
answers
.
length
;
i
++){
// for(Integer i=0;i<answers.length;i++){
if
(
Integer
.
parseInt
(
answers
[
i
])==
list
.
get
(
i
).
getAnswer
()){
// String demosub = list.get(i).getAnswer().substring(1,list.get(i).getAnswer().length()-1);
num
++;
// if(Integer.parseInt(answers[i])==demosub){
}
// num++;
}
// }
// }
userCourse
.
setExaminationResult
(
num
);
userCourse
.
setExaminationResult
(
num
);
userCourse
.
setExaminationTime
(
new
Date
());
userCourse
.
setExaminationTime
(
new
Date
());
TTrainCourse
c
=
tTrainCourseMapper
.
selectTTrainCourseById
(
userCourse
.
getCourseId
());
TTrainCourse
c
=
tTrainCourseMapper
.
selectTTrainCourseById
(
userCourse
.
getCourseId
());
...
...
danger-manage-system/src/main/java/com/zehong/system/service/impl/TTrainCourseTopicServiceImpl.java
View file @
15a3642a
...
@@ -156,7 +156,7 @@ public class TTrainCourseTopicServiceImpl implements ITTrainCourseTopicService
...
@@ -156,7 +156,7 @@ public class TTrainCourseTopicServiceImpl implements ITTrainCourseTopicService
courseTopic
.
setCourseId
(
batchTopicVo
.
getCourseId
());
courseTopic
.
setCourseId
(
batchTopicVo
.
getCourseId
());
courseTopic
.
setTopicTitle
(
bankSubjects
.
get
(
i
).
getTopicTitle
());
courseTopic
.
setTopicTitle
(
bankSubjects
.
get
(
i
).
getTopicTitle
());
courseTopic
.
setTopicOption
(
bankSubjects
.
get
(
i
).
getTopicOption
());
courseTopic
.
setTopicOption
(
bankSubjects
.
get
(
i
).
getTopicOption
());
courseTopic
.
setAnswer
(
bankSubjects
.
get
(
i
).
getAnswer
(
));
courseTopic
.
setAnswer
(
String
.
valueOf
(
bankSubjects
.
get
(
i
).
getAnswer
()
));
courseTopic
.
setCreateTime
(
new
Date
());
courseTopic
.
setCreateTime
(
new
Date
());
topics
.
add
(
courseTopic
);
topics
.
add
(
courseTopic
);
}
}
...
...
danger-manage-system/src/main/resources/mapper/system/TTrainCourseMapper.xml
View file @
15a3642a
...
@@ -25,6 +25,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -25,6 +25,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result
property=
"testEndTime"
column=
"test_end_time"
/>
<result
property=
"testEndTime"
column=
"test_end_time"
/>
<result
property=
"testPersons"
column=
"test_persons"
/>
<result
property=
"testPersons"
column=
"test_persons"
/>
<result
property=
"duration"
column=
"duration"
/>
<result
property=
"duration"
column=
"duration"
/>
<result
property=
"multipleChoiceScore"
column=
"multiple_choice_score"
/>
<result
property=
"singleChoiceScore"
column=
"single_choice_score"
/>
<result
property=
"judgmentScore"
column=
"judgment_score"
/>
</resultMap>
</resultMap>
<resultMap
id=
"StatisticsTrainCourseResult"
type=
"StatisticsTrainCourse"
>
<resultMap
id=
"StatisticsTrainCourseResult"
type=
"StatisticsTrainCourse"
>
...
@@ -39,7 +42,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -39,7 +42,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</resultMap>
</resultMap>
<sql
id=
"selectTTrainCourseVo"
>
<sql
id=
"selectTTrainCourseVo"
>
select course_id, course_name, course_type, course_conent, status,personnel_type, release_time, enclosure, video, qualified_num, topic_num, create_time, create_user, is_del, data_kind, test_start_time, test_end_time, test_persons,duration from t_train_course
select
multiple_choice_score,single_choice_score,judgment_score,
course_id, course_name, course_type, course_conent, status,personnel_type, release_time, enclosure, video, qualified_num, topic_num, create_time, create_user, is_del, data_kind, test_start_time, test_end_time, test_persons,duration from t_train_course
</sql>
</sql>
<select
id=
"selectTTrainCourseList"
parameterType=
"TTrainCourse"
resultMap=
"TTrainCourseResult"
>
<select
id=
"selectTTrainCourseList"
parameterType=
"TTrainCourse"
resultMap=
"TTrainCourseResult"
>
...
@@ -90,7 +93,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -90,7 +93,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"testEndTime != null"
>
test_end_time,
</if>
<if
test=
"testEndTime != null"
>
test_end_time,
</if>
<if
test=
"testPersons != null"
>
test_persons,
</if>
<if
test=
"testPersons != null"
>
test_persons,
</if>
<if
test=
"duration != null"
>
duration,
</if>
<if
test=
"duration != null"
>
duration,
</if>
<if
test=
"multipleChoiceScore != null"
>
multiple_choice_score,
</if>
<if
test=
"singleChoiceScore != null"
>
single_choice_score,
</if>
<if
test=
"judgmentScore != null"
>
judgment_score,
</if>
</trim>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"courseName != null"
>
#{courseName},
</if>
<if
test=
"courseName != null"
>
#{courseName},
</if>
...
@@ -111,7 +116,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -111,7 +116,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"testEndTime != null"
>
#{testEndTime},
</if>
<if
test=
"testEndTime != null"
>
#{testEndTime},
</if>
<if
test=
"testPersons != null"
>
#{testPersons},
</if>
<if
test=
"testPersons != null"
>
#{testPersons},
</if>
<if
test=
"duration != null"
>
#{duration},
</if>
<if
test=
"duration != null"
>
#{duration},
</if>
<if
test=
"multipleChoiceScore != null"
>
#{multipleChoiceScore},
</if>
<if
test=
"singleChoiceScore != null"
>
#{singleChoiceScore},
</if>
<if
test=
"judgmentScore != null"
>
#{judgmentScore},
</if>
</trim>
</trim>
</insert>
</insert>
...
@@ -136,6 +143,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -136,6 +143,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"testEndTime != null"
>
test_end_time = #{testEndTime},
</if>
<if
test=
"testEndTime != null"
>
test_end_time = #{testEndTime},
</if>
<if
test=
"testPersons != null"
>
test_persons = #{testPersons},
</if>
<if
test=
"testPersons != null"
>
test_persons = #{testPersons},
</if>
<if
test=
"duration != null"
>
duration = #{duration},
</if>
<if
test=
"duration != null"
>
duration = #{duration},
</if>
<if
test=
"multipleChoiceScore != null"
>
multiple_choice_score = #{multipleChoiceScore},
</if>
<if
test=
"singleChoiceScore != null"
>
single_choice_score = #{singleChoiceScore},
</if>
<if
test=
"judgmentScore != null"
>
judgment_score = #{judgmentScore},
</if>
</trim>
</trim>
where course_id = #{courseId}
where course_id = #{courseId}
</update>
</update>
...
...
danger-manage-system/src/main/resources/mapper/system/TTrainCourseTopicMapper.xml
View file @
15a3642a
...
@@ -11,10 +11,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -11,10 +11,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result
property=
"topicOption"
column=
"topic_option"
/>
<result
property=
"topicOption"
column=
"topic_option"
/>
<result
property=
"answer"
column=
"answer"
/>
<result
property=
"answer"
column=
"answer"
/>
<result
property=
"createTime"
column=
"create_time"
/>
<result
property=
"createTime"
column=
"create_time"
/>
<result
property=
"topicType"
column=
"topic_type"
/>
</resultMap>
</resultMap>
<sql
id=
"selectTTrainCourseTopicVo"
>
<sql
id=
"selectTTrainCourseTopicVo"
>
select topic_id, course_id, topic_title, topic_option, answer, create_time from t_train_course_topic
select topic_id, course_id, topic_title, topic_option, answer, create_time
,topic_type
from t_train_course_topic
</sql>
</sql>
<select
id=
"selectTTrainCourseTopicList"
parameterType=
"TTrainCourseTopic"
resultMap=
"TTrainCourseTopicResult"
>
<select
id=
"selectTTrainCourseTopicList"
parameterType=
"TTrainCourseTopic"
resultMap=
"TTrainCourseTopicResult"
>
...
@@ -27,7 +28,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -27,7 +28,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</where>
</where>
</select>
</select>
<select
id=
"selectCourseTopicList"
resultMap=
"TTrainCourseTopicResult"
>
<select
id=
"selectCourseTopicList"
resultMap=
"TTrainCourseTopicResult"
>
select topic_id, course_id, topic_title, topic_option, answer, create_time from t_train_course_topic
select topic_id, course_id, topic_title, topic_option, answer, create_time
,topic_type
from t_train_course_topic
WHERE course_id = #{courseId}
WHERE course_id = #{courseId}
</select>
</select>
<select
id=
"selectTTrainCourseTopicById"
parameterType=
"Long"
resultMap=
"TTrainCourseTopicResult"
>
<select
id=
"selectTTrainCourseTopicById"
parameterType=
"Long"
resultMap=
"TTrainCourseTopicResult"
>
...
@@ -44,6 +45,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -44,6 +45,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"topicOption != null"
>
topic_option,
</if>
<if
test=
"topicOption != null"
>
topic_option,
</if>
<if
test=
"answer != null"
>
answer,
</if>
<if
test=
"answer != null"
>
answer,
</if>
<if
test=
"createTime != null"
>
create_time,
</if>
<if
test=
"createTime != null"
>
create_time,
</if>
<if
test=
"topicType != null"
>
topic_type
</if>
</trim>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"topicId != null"
>
#{topicId},
</if>
<if
test=
"topicId != null"
>
#{topicId},
</if>
...
@@ -52,6 +54,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -52,6 +54,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"topicOption != null"
>
#{topicOption},
</if>
<if
test=
"topicOption != null"
>
#{topicOption},
</if>
<if
test=
"answer != null"
>
#{answer},
</if>
<if
test=
"answer != null"
>
#{answer},
</if>
<if
test=
"createTime != null"
>
#{createTime},
</if>
<if
test=
"createTime != null"
>
#{createTime},
</if>
<if
test=
"topicType != null"
>
#{topicType},
</if>
</trim>
</trim>
</insert>
</insert>
...
@@ -63,6 +66,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -63,6 +66,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"topicOption != null"
>
topic_option = #{topicOption},
</if>
<if
test=
"topicOption != null"
>
topic_option = #{topicOption},
</if>
<if
test=
"answer != null"
>
answer = #{answer},
</if>
<if
test=
"answer != null"
>
answer = #{answer},
</if>
<if
test=
"createTime != null"
>
create_time = #{createTime},
</if>
<if
test=
"createTime != null"
>
create_time = #{createTime},
</if>
<if
test=
"topicType != null"
>
topic_type= #{topicType}
</if>
</trim>
</trim>
where topic_id = #{topicId}
where topic_id = #{topicId}
</update>
</update>
...
...
danger-manage-web/package.json
View file @
15a3642a
...
@@ -46,6 +46,7 @@
...
@@ -46,6 +46,7 @@
"js-cookie"
:
"2.2.1"
,
"js-cookie"
:
"2.2.1"
,
"jsencrypt"
:
"3.0.0-rc.1"
,
"jsencrypt"
:
"3.0.0-rc.1"
,
"nprogress"
:
"0.2.0"
,
"nprogress"
:
"0.2.0"
,
"qrcodejs2"
:
"^0.0.2"
,
"quill"
:
"1.3.7"
,
"quill"
:
"1.3.7"
,
"screenfull"
:
"5.0.2"
,
"screenfull"
:
"5.0.2"
,
"sortablejs"
:
"1.10.2"
,
"sortablejs"
:
"1.10.2"
,
...
@@ -54,6 +55,7 @@
...
@@ -54,6 +55,7 @@
"vue-cropper"
:
"0.5.5"
,
"vue-cropper"
:
"0.5.5"
,
"vue-esign"
:
"^1.1.4"
,
"vue-esign"
:
"^1.1.4"
,
"vue-print-nb"
:
"^1.7.5"
,
"vue-print-nb"
:
"^1.7.5"
,
"vue-qr"
:
"^4.0.9"
,
"vue-router"
:
"3.4.9"
,
"vue-router"
:
"3.4.9"
,
"vue-video-player"
:
"5.0.2"
,
"vue-video-player"
:
"5.0.2"
,
"vuedraggable"
:
"2.24.3"
,
"vuedraggable"
:
"2.24.3"
,
...
...
danger-manage-web/vue.config.js
View file @
15a3642a
...
@@ -35,7 +35,6 @@ module.exports = {
...
@@ -35,7 +35,6 @@ module.exports = {
// 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