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
9bf678ca
Commit
9bf678ca
authored
Nov 18, 2019
by
zhangqingle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改接口
parent
9030fff8
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
7 deletions
+12
-7
BDiscussRepository.java
...org/rcisoft/business/bdiscuss/dao/BDiscussRepository.java
+2
-2
BDiscuss.java
...n/java/org/rcisoft/business/bdiscuss/entity/BDiscuss.java
+1
-1
SysUserMapper.java
src/main/java/org/rcisoft/sys/user/dao/SysUserMapper.java
+2
-2
MyInfoDTO.java
src/main/java/org/rcisoft/sys/user/dto/MyInfoDTO.java
+3
-0
BDiscussMapper.xml
...ources/mapper/business/bdiscuss/mapper/BDiscussMapper.xml
+4
-2
No files found.
src/main/java/org/rcisoft/business/bdiscuss/dao/BDiscussRepository.java
View file @
9bf678ca
...
...
@@ -45,9 +45,9 @@ public interface BDiscussRepository extends BaseMapper<BDiscuss> {
" AND bd.del_flag = '0' "
+
" AND bd.flag = '1' "
+
"<if test=\"lessonId !=null and lessonId != '' \">and bd.lesson_id = #{lessonId} </if> "
+
"
<if test=\"pid !=null and pid != '' \">and bd.pid = #{pid} </if>
"
+
+
"
and bd.pid = #{pid}
"
+
// "and corp_id = #{corpId} " +
// "and
bd.
corp_id = #{corpId} " +
" order by bd.update_date desc "
+
"</script>"
)
...
...
src/main/java/org/rcisoft/business/bdiscuss/entity/BDiscuss.java
View file @
9bf678ca
...
...
@@ -31,7 +31,7 @@ public class BDiscuss extends IdEntity<BDiscuss> {
private
String
studentId
;
private
String
isReply
;
private
String
replyId
;
}
...
...
src/main/java/org/rcisoft/sys/user/dao/SysUserMapper.java
View file @
9bf678ca
...
...
@@ -221,11 +221,11 @@ public interface SysUserMapper extends BaseMapper<SysUser> {
@ResultMap
(
value
=
"BaseResultMap"
)
SysUser
queryUserState
(
@Param
(
"userId"
)
String
userId
);
@Select
(
"<script>select
`name` name ,head_pic headPic, `value` value
from s_user where business_id = #{userId}"
+
@Select
(
"<script>select
business_id id, `name` name
from s_user where business_id = #{userId}"
+
"</script>"
)
MyInfoDTO
queryMyInfo
(
CurUser
curUser
);
@Select
(
"<script>select `name` name ,head_pic headPic, `value` value from s_user where business_id = #{id}"
+
@Select
(
"<script>select
business_id id,
`name` name ,head_pic headPic, `value` value from s_user where business_id = #{id}"
+
"</script>"
)
MyInfoDTO
getNameById
(
String
id
);
...
...
src/main/java/org/rcisoft/sys/user/dto/MyInfoDTO.java
View file @
9bf678ca
...
...
@@ -6,6 +6,9 @@ import lombok.Data;
@Data
public
class
MyInfoDTO
{
@ApiModelProperty
(
value
=
"用户Id"
)
private
String
id
;
@ApiModelProperty
(
value
=
"名称"
)
private
String
name
;
...
...
src/main/resources/mapper/business/bdiscuss/mapper/BDiscussMapper.xml
View file @
9bf678ca
...
...
@@ -14,8 +14,9 @@
<result
column=
"pid"
jdbcType=
"VARCHAR"
property=
"pid"
/>
<result
column=
"content"
jdbcType=
"LONGVARCHAR"
property=
"content"
/>
<result
column=
"level"
jdbcType=
"VARCHAR"
property=
"level"
/>
<result
column=
"corp_id"
jdbcType=
"VARCHAR"
property=
"corpId"
/>
<result
column=
"student_id"
jdbcType=
"VARCHAR"
property=
"studentId"
/>
<result
column=
"
is_reply"
jdbcType=
"VARCHAR"
property=
"isReply
"
/>
<result
column=
"
reply_id"
jdbcType=
"VARCHAR"
property=
"replyId
"
/>
</resultMap>
<resultMap
id=
"BaseResultMapDto"
type=
"org.rcisoft.business.bdiscuss.dto.BDiscussDto"
>
...
...
@@ -31,8 +32,9 @@
<result
column=
"pid"
jdbcType=
"VARCHAR"
property=
"pid"
/>
<result
column=
"content"
jdbcType=
"LONGVARCHAR"
property=
"content"
/>
<result
column=
"level"
jdbcType=
"VARCHAR"
property=
"level"
/>
<result
column=
"corp_id"
jdbcType=
"VARCHAR"
property=
"corpId"
/>
<result
column=
"student_id"
jdbcType=
"VARCHAR"
property=
"studentId"
/>
<result
column=
"
is_reply"
jdbcType=
"VARCHAR"
property=
"isReply
"
/>
<result
column=
"
reply_id"
jdbcType=
"VARCHAR"
property=
"replyId
"
/>
</resultMap>
<!--<cache type="${corePackag!}.util.RedisCache"/>-->
...
...
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