Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
chnmuseum-party
Project
Project
Details
Activity
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
liqin
chnmuseum-party
Commits
80e95535
Commit
80e95535
authored
Apr 09, 2021
by
liqin
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fixed
parent
3ab60608
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
1 deletion
+8
-1
MetaObjectHandlerConfig.java
...nmuseum/party/common/mybatis/MetaObjectHandlerConfig.java
+1
-0
LearningContent.java
...a/cn/wisenergy/chnmuseum/party/model/LearningContent.java
+4
-0
LearningContentMapper.xml
src/main/resources/mapper/LearningContentMapper.xml
+3
-1
No files found.
src/main/java/cn/wisenergy/chnmuseum/party/common/mybatis/MetaObjectHandlerConfig.java
View file @
80e95535
...
...
@@ -33,6 +33,7 @@ public class MetaObjectHandlerConfig implements MetaObjectHandler {
// this.setFieldValByName("userId", currentUser.getId(), metaObject);
// this.setFieldValByName("userName", currentUser.getUserName(), metaObject);
// this.setFieldValByName("orgName", currentUser.getOrgName(), metaObject);
this
.
setFieldValByName
(
"creatorName"
,
currentUser
.
getUserName
(),
metaObject
);
}
}
...
...
src/main/java/cn/wisenergy/chnmuseum/party/model/LearningContent.java
View file @
80e95535
...
...
@@ -63,6 +63,10 @@ public class LearningContent implements Serializable {
@NotBlank
(
message
=
"学习项目ID不能为空"
,
groups
=
{
Add
.
class
,
Update
.
class
})
private
String
learningProjectId
;
@ApiModelProperty
(
"创建者"
)
@TableField
(
"creator_name"
)
private
String
creatorName
;
@ApiModelProperty
(
"审核状态"
)
@TableField
(
"audit_status"
)
private
String
auditStatus
;
...
...
src/main/resources/mapper/LearningContentMapper.xml
View file @
80e95535
...
...
@@ -10,6 +10,7 @@
<result
column=
"applicable_scope"
property=
"applicableScope"
/>
<result
column=
"organ_code"
property=
"organCode"
/>
<result
column=
"learning_project_id"
property=
"learningProjectId"
/>
<result
column=
"creator_name"
property=
"creatorName"
/>
<result
column=
"audit_status"
property=
"auditStatus"
/>
<result
column=
"is_published"
property=
"isPublished"
/>
<result
column=
"is_deleted"
property=
"isDeleted"
/>
...
...
@@ -20,7 +21,8 @@
<!-- 通用查询结果列 -->
<sql
id=
"Base_Column_List"
>
id, name, cover, applicable_scope, organ_code, learning_project_id, audit_status, is_published, is_deleted, sortorder, create_time, update_time
id, name, cover, applicable_scope, organ_code, learning_project_id, creator_name, audit_status, is_published,
is_deleted, sortorder, create_time, update_time
</sql>
</mapper>
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