Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kaoshi-java
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
单欣鑫
kaoshi-java
Commits
293e867a
Commit
293e867a
authored
Aug 18, 2025
by
刘帅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.bug修复
parent
8448298a
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
8 deletions
+22
-8
TbMajorClassServiceImpl.java
...com/ruoyi/hezhi/service/impl/TbMajorClassServiceImpl.java
+3
-2
TbMajorClassMapper.xml
...em/src/main/resources/mapper/hezhi/TbMajorClassMapper.xml
+1
-0
index.vue
ruoyi-ui/src/views/hezhi/notice/index.vue
+18
-6
No files found.
ruoyi-system/src/main/java/com/ruoyi/hezhi/service/impl/TbMajorClassServiceImpl.java
View file @
293e867a
...
...
@@ -231,8 +231,9 @@ public class TbMajorClassServiceImpl implements ITbMajorClassService
Map
<
String
,
Object
>
majorCourseInfo
=
tbMajorClassMapper
.
getMajorCourseInfo
(
params
);
if
(!
majorCourseInfo
.
isEmpty
())
{
long
courseId
=
MapUtils
.
getLong
(
majorCourseInfo
,
"courseId"
);
if
(
majorCourseInfo
.
get
(
"courseSyllabus"
)
==
null
)
{
majorCourseInfo
.
put
(
"courseSyllabus"
,
courseChapterService
.
getCourseChapterTreeList
(
courseId
));
}
HashMap
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"courseId"
,
courseId
);
majorCourseInfo
.
put
(
"teacherList"
,
tbTeacherCourseService
.
getTeacherList
(
map
));
...
...
ruoyi-system/src/main/resources/mapper/hezhi/TbMajorClassMapper.xml
View file @
293e867a
...
...
@@ -279,6 +279,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
CONVERT(IFNULL(tc.course_details, ''), CHAR) AS courseDetails,
CONVERT(IFNULL(tc.course_overview, ''), CHAR) AS courseOverview,
CONVERT(IFNULL(tc.course_syllabus, ''), CHAR) AS courseSyllabus,
CONVERT(IFNULL(tc.course_knowledge, ''), CHAR) AS courseKnowledge,
CONVERT(IFNULL(tc.course_certificate, ''), CHAR) AS courseCertificate,
CONVERT(IFNULL(tc.course_information, ''), CHAR) AS courseInformation
...
...
ruoyi-ui/src/views/hezhi/notice/index.vue
View file @
293e867a
...
...
@@ -303,7 +303,19 @@ export default {
publicationTime
:
[
{
required
:
true
,
message
:
"
发布时间不能为空
"
,
trigger
:
"
blur
"
},
],
content
:
[{
required
:
true
,
message
:
"
内容不能为空
"
,
trigger
:
"
blur
"
}],
content
:
[
{
required
:
true
,
message
:
"
内容不能为空
"
,
trigger
:
"
blur
"
},
{
validator
:
(
rule
,
value
,
callback
)
=>
{
if
(
!
value
||
value
.
replace
(
/<
[^
>
]
+>/g
,
''
).
trim
()
===
''
)
{
callback
(
new
Error
(
'
请输入有效内容
'
));
}
else
{
callback
();
}
},
trigger
:
'
blur
'
}
],
updateTime
:
[
{
required
:
true
,
message
:
"
更新时间不能为空
"
,
trigger
:
"
blur
"
},
],
...
...
@@ -361,7 +373,7 @@ export default {
showImg
:
null
,
publisher
:
this
.
$store
.
getters
.
name
,
publicationTime
:
null
,
content
:
null
,
content
:
undefined
,
createTime
:
null
,
createBy
:
null
,
updateTime
:
null
,
...
...
@@ -414,10 +426,10 @@ export default {
if
(
this
.
form
.
type
!==
1
)
{
this
.
form
.
typeTwo
=
0
;
}
if
(
this
.
form
.
content
.
length
<=
11
)
{
this
.
$modal
.
msgError
(
'
内容不能为空
'
)
return
}
//
if (this.form.content.length
<=
11
)
{
//
this.$modal.msgError('内容不能为空')
//
return
//
}
if
(
this
.
form
.
noticeId
!=
null
)
{
updateNotice
(
this
.
form
).
then
((
response
)
=>
{
...
...
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