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
14488d02
Commit
14488d02
authored
Dec 03, 2019
by
zhangqingle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加评论头像,增加返回培训数量,修改BUG
parent
6f0fda92
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
53 additions
and
4 deletions
+53
-4
BDiscussServiceImpl.java
...t/business/bdiscuss/service/impl/BDiscussServiceImpl.java
+14
-1
BLessonPersonRepository.java
...rcisoft/business/blesson/dao/BLessonPersonRepository.java
+1
-1
BLessonPerson.java
...va/org/rcisoft/business/blesson/entity/BLessonPerson.java
+5
-0
MTNotificationApiRequestClient.java
...common/util/outClient/MTNotificationApiRequestClient.java
+1
-1
SysUserServiceImpl.java
...org/rcisoft/sys/user/service/impl/SysUserServiceImpl.java
+1
-1
BLessonPersonMapper.xml
...es/mapper/business/blesson/mapper/BLessonPersonMapper.xml
+31
-0
No files found.
src/main/java/org/rcisoft/business/bdiscuss/service/impl/BDiscussServiceImpl.java
View file @
14488d02
...
...
@@ -201,7 +201,13 @@ public class BDiscussServiceImpl implements BDiscussService {
List
<
BDiscussDto
>
bDiscussList
=
bDiscussRepository
.
getDiscussByLessonId
(
lessonId
,
""
,
corpId
);
bDiscussList
.
stream
().
forEach
(
bDiscuss
->
{
bDiscuss
.
setBDiscussChildList
(
bDiscussRepository
.
getDiscussByLessonId
(
lessonId
,
bDiscuss
.
getBusinessId
(),
corpId
));
List
<
BDiscussDto
>
bDiscussChildList
=
bDiscussRepository
.
getDiscussByLessonId
(
lessonId
,
bDiscuss
.
getBusinessId
(),
corpId
);
bDiscuss
.
setBDiscussChildList
(
bDiscussChildList
);
bDiscussChildList
.
forEach
(
bDiscussChild
->
{
if
(
StringUtils
.
isNotEmpty
(
bDiscussChild
.
getStudentId
())){
ids
.
add
(
bDiscussChild
.
getStudentId
());
}
});
if
(
StringUtils
.
isNotEmpty
(
bDiscuss
.
getStudentId
())){
ids
.
add
(
bDiscuss
.
getStudentId
());
}
...
...
@@ -219,6 +225,13 @@ public class BDiscussServiceImpl implements BDiscussService {
// myInfoDTO.setName(mtUserInfoRspDTO.getName());
bDiscussDto
.
setHeadPic
(
mtUserInfoRspDTO
.
getAvatar
());
}
bDiscussDto
.
getBDiscussChildList
().
forEach
(
bDiscussChild
->
{
if
(
mtUserInfoRspDTO
.
getId
().
equals
(
bDiscussChild
.
getStudentId
()))
{
//设置二级评论头像
// myInfoDTO.setName(mtUserInfoRspDTO.getName());
bDiscussChild
.
setHeadPic
(
mtUserInfoRspDTO
.
getAvatar
());
}
});
});
});
}
...
...
src/main/java/org/rcisoft/business/blesson/dao/BLessonPersonRepository.java
View file @
14488d02
...
...
@@ -39,7 +39,7 @@ public interface BLessonPersonRepository extends BaseMapper<BLessonPerson> {
" order by blp.update_date desc"
+
""
+
"</script>"
)
@ResultMap
(
value
=
"
Base
ResultMap"
)
@ResultMap
(
value
=
"
ILearn
ResultMap"
)
List
<
BLessonPerson
>
queryLearnBLessons
(
@Param
(
"param"
)
ILearnLessonDTO
param
);
...
...
src/main/java/org/rcisoft/business/blesson/entity/BLessonPerson.java
View file @
14488d02
...
...
@@ -8,6 +8,7 @@ import lombok.Data;
import
lombok.NoArgsConstructor
;
import
org.hibernate.validator.constraints.Length
;
import
org.rcisoft.business.blesson.dto.ILessonCountDTO
;
import
org.rcisoft.core.entity.IdEntity
;
import
org.rcisoft.core.util.UserUtil
;
...
...
@@ -167,6 +168,10 @@ public class BLessonPerson extends IdEntity<BLessonPerson> {
@Transient
private
Date
trainOverDate
;
@Transient
@ApiModelProperty
(
value
=
"学员id集合"
)
ILessonCountDTO
iLessonCount
;
//初始化
public
void
initModel
(){
UserUtil
.
setCurrentPersistOperation
(
this
);
...
...
src/main/java/org/rcisoft/common/util/outClient/MTNotificationApiRequestClient.java
View file @
14488d02
...
...
@@ -121,7 +121,7 @@ public class MTNotificationApiRequestClient {
if
(
"LESSON"
.
equals
(
urlType
)){
noticePropertiesUrl
=
this
.
noticeUrlCourse
+
"id="
+
message
.
getLessonId
();
}
else
if
(
"TRAIN"
.
equals
(
urlType
)){
noticePropertiesUrl
=
this
.
noticeUrlTrain
+
"id="
+
message
.
getLessonId
();
noticePropertiesUrl
=
this
.
noticeUrlTrain
+
"id="
+
message
.
getLessonId
()
+
"&fromName=Home&role=people"
;
}
else
if
(
"EXAM"
.
equals
(
urlType
)){
noticePropertiesUrl
=
this
.
noticeUrlExam
;
}
...
...
src/main/java/org/rcisoft/sys/user/service/impl/SysUserServiceImpl.java
View file @
14488d02
...
...
@@ -400,7 +400,7 @@ public class SysUserServiceImpl implements SysUserService {
int
line
=
0
;
if
(
null
!=
sysUserList
&&
sysUserList
.
size
()
>
0
)
{
for
(
SysUser
sysUser
:
sysUserList
)
{
SysUser
user
=
sysUserMapper
.
select
One
(
sysUser
);
SysUser
user
=
sysUserMapper
.
select
ByPrimaryKey
(
sysUser
);
if
(
null
!=
user
&&
StringUtils
.
isNotEmpty
(
sysUser
.
getBusinessId
()))
{
sysUser
.
setUpdateDate
(
new
Date
());
sysUserMapper
.
updateByPrimaryKeySelective
(
sysUser
);
...
...
src/main/resources/mapper/business/blesson/mapper/BLessonPersonMapper.xml
View file @
14488d02
...
...
@@ -46,4 +46,35 @@
<result
column=
"ever_finished"
jdbcType=
"VARCHAR"
property=
"everFinished"
/>
</resultMap>
<resultMap
id=
"ILearnResultMap"
type=
"org.rcisoft.business.blesson.entity.BLessonPerson"
>
<id
column=
"business_id"
jdbcType=
"VARCHAR"
property=
"businessId"
/>
<result
column=
"create_by"
jdbcType=
"VARCHAR"
property=
"createBy"
/>
<result
column=
"create_date"
jdbcType=
"TIMESTAMP"
property=
"createDate"
/>
<result
column=
"update_by"
jdbcType=
"VARCHAR"
property=
"updateBy"
/>
<result
column=
"update_date"
jdbcType=
"TIMESTAMP"
property=
"updateDate"
/>
<result
column=
"del_flag"
jdbcType=
"VARCHAR"
property=
"delFlag"
/>
<result
column=
"flag"
jdbcType=
"VARCHAR"
property=
"flag"
/>
<result
column=
"remarks"
jdbcType=
"VARCHAR"
property=
"remarks"
/>
<result
column=
"person_id"
jdbcType=
"VARCHAR"
property=
"personId"
/>
<result
column=
"lesson_id"
jdbcType=
"VARCHAR"
property=
"lessonId"
/>
<result
column=
"learn_progress"
jdbcType=
"VARCHAR"
property=
"learnProgress"
/>
<result
column=
"is_finish"
jdbcType=
"VARCHAR"
property=
"isFinish"
/>
<result
column=
"is_collect"
jdbcType=
"VARCHAR"
property=
"isCollect"
/>
<result
column=
"appoint_id"
jdbcType=
"VARCHAR"
property=
"appointId"
/>
<result
column=
"chapter_id"
jdbcType=
"VARCHAR"
property=
"chapterId"
/>
<!--<result column="start_flag" jdbcType="VARCHAR" property="startFlag"/>-->
<result
column=
"is_appoint"
jdbcType=
"VARCHAR"
property=
"isAppoint"
/>
<result
column=
"is_apply"
jdbcType=
"VARCHAR"
property=
"isApply"
/>
<result
column=
"train_is_sign"
jdbcType=
"VARCHAR"
property=
"trainIsSign"
/>
<result
column=
"apply_date"
jdbcType=
"TIMESTAMP"
property=
"applyDate"
/>
<result
column=
"finish_date"
jdbcType=
"TIMESTAMP"
property=
"finishDate"
/>
<result
column=
"sign_date"
jdbcType=
"TIMESTAMP"
property=
"signDate"
/>
<result
column=
"ever_finished"
jdbcType=
"VARCHAR"
property=
"everFinished"
/>
<collection
property=
"iLessonCount"
ofType=
"org.rcisoft.business.blesson.dto.ILessonCountDTO"
javaType=
"org.rcisoft.business.blesson.dto.ILessonCountDTO"
select=
"org.rcisoft.business.blesson.dao.BLessonRepository.trainPersonCount"
column=
"lesson_id"
>
</collection>
</resultMap>
</mapper>
\ No newline at end of file
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