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
b578951f
Commit
b578951f
authored
Nov 28, 2019
by
zhangqingle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改BUG
parent
bdc7095e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
3 deletions
+15
-3
BDiscussRepository.java
...org/rcisoft/business/bdiscuss/dao/BDiscussRepository.java
+10
-0
BDiscussServiceImpl.java
...t/business/bdiscuss/service/impl/BDiscussServiceImpl.java
+5
-3
No files found.
src/main/java/org/rcisoft/business/bdiscuss/dao/BDiscussRepository.java
View file @
b578951f
package
org
.
rcisoft
.
business
.
bdiscuss
.
dao
;
package
org
.
rcisoft
.
business
.
bdiscuss
.
dao
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Update
;
import
org.rcisoft.business.bdiscuss.dto.BDiscussDto
;
import
org.rcisoft.business.bdiscuss.dto.BDiscussDto
;
import
org.rcisoft.core.base.BaseMapper
;
import
org.rcisoft.core.base.BaseMapper
;
import
org.rcisoft.business.bdiscuss.entity.BDiscuss
;
import
org.rcisoft.business.bdiscuss.entity.BDiscuss
;
...
@@ -53,5 +54,14 @@ public interface BDiscussRepository extends BaseMapper<BDiscuss> {
...
@@ -53,5 +54,14 @@ public interface BDiscussRepository extends BaseMapper<BDiscuss> {
+
"</script>"
)
+
"</script>"
)
@ResultMap
(
value
=
"BaseResultMapDto"
)
@ResultMap
(
value
=
"BaseResultMapDto"
)
List
<
BDiscussDto
>
getDiscussByLessonId
(
@Param
(
"lessonId"
)
String
lessonId
,
@Param
(
"pid"
)
String
pid
,
@Param
(
"corpId"
)
String
corpId
);
List
<
BDiscussDto
>
getDiscussByLessonId
(
@Param
(
"lessonId"
)
String
lessonId
,
@Param
(
"pid"
)
String
pid
,
@Param
(
"corpId"
)
String
corpId
);
@Update
(
"<script>update b_discuss "
+
" <set>"
+
" <if test='updateBy != null'>update_by=#{updateBy},</if>"
+
" <if test='updateDate != null'>update_date=#{updateDate},</if>"
+
" del_flag = 1 "
+
" </set>"
+
" where pid = #{businessId}</script>"
)
int
logicalDeleteSon
(
BDiscuss
bDiscuss
);
}
}
src/main/java/org/rcisoft/business/bdiscuss/service/impl/BDiscussServiceImpl.java
View file @
b578951f
...
@@ -110,8 +110,8 @@ public class BDiscussServiceImpl implements BDiscussService {
...
@@ -110,8 +110,8 @@ public class BDiscussServiceImpl implements BDiscussService {
bDiscuss
.
setDeleted
();
bDiscuss
.
setDeleted
();
BDiscuss
bDiscuss1
=
bDiscussRepository
.
selectByPrimaryKey
(
bDiscuss
);
BDiscuss
bDiscuss1
=
bDiscussRepository
.
selectByPrimaryKey
(
bDiscuss
);
int
line
=
bDiscussRepository
.
logicalDelete
(
bDiscuss
);
int
line
=
bDiscussRepository
.
logicalDelete
(
bDiscuss
);
// log.info(UserUtil.getUserInfoProp(bDiscuss.getToken(),UserUtil.USER_USERNAME)+"逻辑删除了ID为"+
//删除二级子评论
// bDiscuss.getBusinessId()+"的信息"
);
bDiscussRepository
.
logicalDeleteSon
(
bDiscuss
);
if
(
bDiscuss1
!=
null
&&
StringUtils
.
isNotEmpty
(
bDiscuss1
.
getLessonId
())){
if
(
bDiscuss1
!=
null
&&
StringUtils
.
isNotEmpty
(
bDiscuss1
.
getLessonId
())){
bLessonRepository
.
discussNumberReCount
(
bDiscuss1
.
getLessonId
());
bLessonRepository
.
discussNumberReCount
(
bDiscuss1
.
getLessonId
());
}
}
...
@@ -184,7 +184,9 @@ public class BDiscussServiceImpl implements BDiscussService {
...
@@ -184,7 +184,9 @@ public class BDiscussServiceImpl implements BDiscussService {
Map
<
String
,
Object
>
result
=
new
HashMap
<>();
Map
<
String
,
Object
>
result
=
new
HashMap
<>();
result
.
put
(
"discuss"
,
bDiscussList
);
result
.
put
(
"discuss"
,
bDiscussList
);
BLesson
bLesson
=
bLessonRepository
.
selectByPrimaryKey
(
lessonId
);
BLesson
bLesson
=
bLessonRepository
.
selectByPrimaryKey
(
lessonId
);
result
.
put
(
"number"
,
bLesson
.
getDiscussNumber
());
if
(
bLesson
!=
null
){
result
.
put
(
"number"
,
bLesson
.
getDiscussNumber
());
}
return
result
;
return
result
;
}
}
...
...
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