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
2230072a
Commit
2230072a
authored
Oct 17, 2019
by
zhangqingle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改接口、添加新接口
parent
73cb6993
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
6 deletions
+11
-6
BLessonPersonRepository.java
...rcisoft/business/blesson/dao/BLessonPersonRepository.java
+6
-1
BLessonPersonServiceImpl.java
...siness/blesson/service/impl/BLessonPersonServiceImpl.java
+1
-1
BLessonServiceImpl.java
...oft/business/blesson/service/impl/BLessonServiceImpl.java
+4
-4
No files found.
src/main/java/org/rcisoft/business/blesson/dao/BLessonPersonRepository.java
View file @
2230072a
...
...
@@ -39,7 +39,7 @@ public interface BLessonPersonRepository extends BaseMapper<BLessonPerson> {
// 退出课程
@Update
(
"update b_lesson_person set
flag = 0
where business_id = #{id}"
)
@Update
(
"update b_lesson_person set
del_flag = 1
where business_id = #{id}"
)
int
quit
(
String
id
);
//查询线上课程学员追踪图表
...
...
@@ -232,4 +232,9 @@ public interface BLessonPersonRepository extends BaseMapper<BLessonPerson> {
" #{param.isAppoint}) "
+
"</script>"
)
int
insertBLessonPerson
(
@Param
(
"param"
)
BLessonPerson
param
);
@Select
(
"<script>select * from b_lesson_person where 1=1 "
+
"and business_id = #{businessId}</script>"
)
@ResultMap
(
value
=
"BaseResultMap"
)
BLessonPerson
selectById
(
String
businessId
);
}
src/main/java/org/rcisoft/business/blesson/service/impl/BLessonPersonServiceImpl.java
View file @
2230072a
...
...
@@ -45,7 +45,7 @@ public class BLessonPersonServiceImpl implements BLessonPersonService {
@Transactional
(
propagation
=
Propagation
.
REQUIRED
,
readOnly
=
false
)
@Override
public
PersistModel
quit
(
QuitLessonDTO
quitLessonDTO
)
{
BLessonPerson
bLessonPerson
=
bLessonPersonRepository
.
selectBy
PrimaryKey
(
quitLessonDTO
.
getBusinessId
());
BLessonPerson
bLessonPerson
=
bLessonPersonRepository
.
selectBy
Id
(
quitLessonDTO
.
getBusinessId
());
if
(
"1"
.
equals
(
bLessonPerson
.
getIsAppoint
())){
throw
new
ServiceException
(
ResultExceptionEnum
.
APPOINT_NOT_CLOSE
);
}
...
...
src/main/java/org/rcisoft/business/blesson/service/impl/BLessonServiceImpl.java
View file @
2230072a
...
...
@@ -358,15 +358,15 @@ public class BLessonServiceImpl implements BLessonService {
@Transactional
(
propagation
=
Propagation
.
REQUIRED
,
readOnly
=
false
)
public
List
<
FindLessonRecommendRspDTO
>
queryRecommendByLessonId
(
FindLessonRecommendDTO
param
)
{
//按部门名模糊查询部门id(list)------
if
(
StringUtils
.
isEmpty
(
param
.
getViewParam
())){
param
.
setViewParam
(
""
);
}
//
if (StringUtils.isEmpty(param.getViewParam())){
//
param.setViewParam("");
//
}
List
<
DeptGetRspDTO
>
departs
=
cotactApiRequestClient
.
deptListDeptInfoByName
(
param
.
getCorpId
(),
param
.
getViewParam
());
//查询结果放入DTO中
param
.
setDeparts
(
departs
);
//查询该课程推荐的所有人
List
<
FindLessonRecommendRspDTO
>
findLessonPersonRecommend
=
bRecommendRepository
.
queryRecommendPersonByLessonId
(
param
);
//查询该课程推荐的所有部门
List
<
FindLessonRecommendRspDTO
>
findLessonDepartRecommend
=
bRecommendRepository
.
queryRecommendDepartByLessonId
(
param
);
if
(
departs
!=
null
&&
departs
.
size
()
>
0
&&
findLessonDepartRecommend
!=
null
&&
findLessonDepartRecommend
.
size
()
>
0
){
...
...
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