Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
education
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
李丛阳
education
Commits
78e69e5f
Commit
78e69e5f
authored
Jun 06, 2018
by
李博今
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增删除班级的条件判断
parent
02756908
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
BLessonServiceImpl.java
...oft/business/blesson/service/impl/BLessonServiceImpl.java
+3
-0
BSlRepository.java
...main/java/org/rcisoft/business/bsl/dao/BSlRepository.java
+2
-0
No files found.
src/main/java/org/rcisoft/business/blesson/service/impl/BLessonServiceImpl.java
View file @
78e69e5f
...
@@ -224,6 +224,9 @@ public class BLessonServiceImpl implements BLessonService {
...
@@ -224,6 +224,9 @@ public class BLessonServiceImpl implements BLessonService {
if
(
bSlRepository
.
selectslNumByLesson
(
id
)>
0
)
{
if
(
bSlRepository
.
selectslNumByLesson
(
id
)>
0
)
{
throw
new
ServiceException
(
ResultServiceEnums
.
LESSON_HAS_SL
);
throw
new
ServiceException
(
ResultServiceEnums
.
LESSON_HAS_SL
);
}
}
if
(
bSlRepository
.
isUse
(
id
)
>
0
){
throw
new
ServiceException
(
ResultServiceEnums
.
LESSON_HAS_SL
);
}
BLesson
bLesson
=
new
BLesson
();
BLesson
bLesson
=
new
BLesson
();
bLesson
.
setBusinessId
(
id
);
bLesson
.
setBusinessId
(
id
);
bLesson
.
setDeleted
();
bLesson
.
setDeleted
();
...
...
src/main/java/org/rcisoft/business/bsl/dao/BSlRepository.java
View file @
78e69e5f
...
@@ -265,5 +265,7 @@ public interface BSlRepository extends BaseMapper<BSl> {
...
@@ -265,5 +265,7 @@ public interface BSlRepository extends BaseMapper<BSl> {
int
updateTeacher
(
@Param
(
"businessId"
)
String
businessId
,
@Param
(
"teacherCode"
)
String
teacherCode
);
int
updateTeacher
(
@Param
(
"businessId"
)
String
businessId
,
@Param
(
"teacherCode"
)
String
teacherCode
);
//List<BStudent> querySlStudentByPagination(String slId);
//List<BStudent> querySlStudentByPagination(String slId);
@Select
(
"SELECT count(*) from b_schedule_dto where lesson_code = (select lesson_code from b_lesson where business_id = #{lessonId}) and del_flag = 0"
)
int
isUse
(
String
lessonId
);
}
}
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