Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yd-backend
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
AutogeneralShanghai
yd-backend
Commits
e31bf5af
Commit
e31bf5af
authored
Apr 08, 2021
by
yao.xiao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改-文章标签
parent
da1b3904
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
25 additions
and
45 deletions
+25
-45
yd-api/src/main/java/com/yd/api/agms/vo/practitioner/PractitionerFileSharing.java
+3
-24
yd-api/src/main/java/com/yd/api/agms/vo/practitioner/PractitionerFileSharingSaveRequestVO.java
+3
-3
yd-api/src/main/java/com/yd/dal/entity/customer/AclPractitionerFileSharing.java
+1
-1
yd-api/src/main/resources/mapper/agms/AgmsPractitionerMapper.xml
+1
-2
yd-api/src/main/resources/mapper/customer/AclPractitionerFileSharingMapper.xml
+17
-15
No files found.
yd-api/src/main/java/com/yd/api/agms/vo/practitioner/PractitionerFileSharing.java
View file @
e31bf5af
...
...
@@ -14,9 +14,7 @@ public class PractitionerFileSharing {
/**
* FK ag_md_drop_options_id文章分类
*/
private
Long
mdDropOptionId
;
private
String
mdDropOptionName
;
private
String
mdDropOptionId
;
/**
* 文章内容html
...
...
@@ -90,7 +88,7 @@ public class PractitionerFileSharing {
*
* @return the mdDropOptionId FK ag_md_drop_options_id文章分类
*/
public
Lo
ng
getMdDropOptionId
()
{
public
Stri
ng
getMdDropOptionId
()
{
return
this
.
mdDropOptionId
;
}
...
...
@@ -99,29 +97,11 @@ public class PractitionerFileSharing {
*
* @param mdDropOptionId the FK ag_md_drop_options_id文章分类 to set
*/
public
void
setMdDropOptionId
(
Lo
ng
mdDropOptionId
)
{
public
void
setMdDropOptionId
(
Stri
ng
mdDropOptionId
)
{
this
.
mdDropOptionId
=
mdDropOptionId
;
}
/**
* 获取
*
* @return the mdDropOptionName
*/
public
String
getMdDropOptionName
()
{
return
this
.
mdDropOptionName
;
}
/**
* 设置
*
* @param mdDropOptionName the to set
*/
public
void
setMdDropOptionName
(
String
mdDropOptionName
)
{
this
.
mdDropOptionName
=
mdDropOptionName
;
}
/**
* 获取 文章内容html
*
* @return the fileContent 文章内容html
...
...
@@ -342,7 +322,6 @@ public class PractitionerFileSharing {
return
"PractitionerFileSharing{"
+
"id="
+
id
+
", mdDropOptionId="
+
mdDropOptionId
+
", mdDropOptionName='"
+
mdDropOptionName
+
'\''
+
", fileContent='"
+
fileContent
+
'\''
+
", isActive="
+
isActive
+
", createdAt='"
+
createdAt
+
'\''
+
...
...
yd-api/src/main/java/com/yd/api/agms/vo/practitioner/PractitionerFileSharingSaveRequestVO.java
View file @
e31bf5af
...
...
@@ -14,7 +14,7 @@ public class PractitionerFileSharingSaveRequestVO {
/**
* FK ag_md_drop_options_id文章分类
*/
private
Lo
ng
mdDropOptionId
;
private
Stri
ng
mdDropOptionId
;
/**
* 文章内容html
...
...
@@ -72,7 +72,7 @@ public class PractitionerFileSharingSaveRequestVO {
*
* @return the mdDropOptionId FK ag_md_drop_options_id文章分类
*/
public
Lo
ng
getMdDropOptionId
()
{
public
Stri
ng
getMdDropOptionId
()
{
return
this
.
mdDropOptionId
;
}
...
...
@@ -81,7 +81,7 @@ public class PractitionerFileSharingSaveRequestVO {
*
* @param mdDropOptionId the FK ag_md_drop_options_id文章分类 to set
*/
public
void
setMdDropOptionId
(
Lo
ng
mdDropOptionId
)
{
public
void
setMdDropOptionId
(
Stri
ng
mdDropOptionId
)
{
this
.
mdDropOptionId
=
mdDropOptionId
;
}
...
...
yd-api/src/main/java/com/yd/dal/entity/customer/AclPractitionerFileSharing.java
View file @
e31bf5af
...
...
@@ -16,7 +16,7 @@ public class AclPractitionerFileSharing {
/**
* FK ag_md_drop_options_id文章分类
*/
private
Lo
ng
mdDropOptionId
;
private
Stri
ng
mdDropOptionId
;
/**
* 文章内容html
...
...
yd-api/src/main/resources/mapper/agms/AgmsPractitionerMapper.xml
View file @
e31bf5af
...
...
@@ -5,7 +5,6 @@
<select
id=
"practitionerFileSharingList"
resultType=
"com.yd.api.agms.vo.practitioner.PractitionerFileSharing"
>
select s.id id,
s.md_drop_option_id mdDropOptionId,
o.drop_option_name dropOptionName,
s.file_content fileContent,
s.is_active isActive,
s.created_at createdAt,
...
...
@@ -24,7 +23,7 @@
left join ag_acl_user uu on uu.id = s.created_by
<where>
<if
test=
"mdDropOptionId != null"
>
s.md_drop_option_id = #{mdDropOptionId,jdbcType=BIGINT}
find_in_set (#{mdDropOptionId,jdbcType=BIGINT},s.md_drop_option_id)
</if>
<if
test=
"isActive != null"
>
and s.is_active = #{isActive,jdbcType=INTEGER}
...
...
yd-api/src/main/resources/mapper/customer/AclPractitionerFileSharingMapper.xml
View file @
e31bf5af
...
...
@@ -5,7 +5,7 @@
<!--@mbg.generated-->
<!--@Table ag_acl_practitioner_file_sharing-->
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
<result
column=
"md_drop_option_id"
jdbcType=
"
BIGINT
"
property=
"mdDropOptionId"
/>
<result
column=
"md_drop_option_id"
jdbcType=
"
VARCHAR
"
property=
"mdDropOptionId"
/>
<result
column=
"file_content"
jdbcType=
"LONGVARCHAR"
property=
"fileContent"
/>
<result
column=
"is_active"
jdbcType=
"INTEGER"
property=
"isActive"
/>
<result
column=
"created_at"
jdbcType=
"TIMESTAMP"
property=
"createdAt"
/>
...
...
@@ -36,14 +36,16 @@
</delete>
<insert
id=
"insert"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"com.yd.dal.entity.customer.AclPractitionerFileSharing"
useGeneratedKeys=
"true"
>
<!--@mbg.generated-->
insert into ag_acl_practitioner_file_sharing (md_drop_option_id, file_content, is_active,
created_at, created_by, updated_at,
updated_by, title, digest,
author, cover_url)
values (#{mdDropOptionId,jdbcType=BIGINT}, #{fileContent,jdbcType=LONGVARCHAR}, #{isActive,jdbcType=INTEGER},
#{createdAt,jdbcType=TIMESTAMP}, #{createdBy,jdbcType=BIGINT}, #{updatedAt,jdbcType=TIMESTAMP},
#{updatedBy,jdbcType=BIGINT}, #{title,jdbcType=VARCHAR}, #{digest,jdbcType=VARCHAR},
#{author,jdbcType=VARCHAR}, #{coverUrl,jdbcType=VARCHAR})
insert into ag_acl_practitioner_file_sharing (md_drop_option_id, file_content,
is_active, created_at, created_by,
updated_at, updated_by, title,
digest, author, cover_url
)
values (#{mdDropOptionId,jdbcType=VARCHAR}, #{fileContent,jdbcType=LONGVARCHAR},
#{isActive,jdbcType=INTEGER}, #{createdAt,jdbcType=TIMESTAMP}, #{createdBy,jdbcType=BIGINT},
#{updatedAt,jdbcType=TIMESTAMP}, #{updatedBy,jdbcType=BIGINT}, #{title,jdbcType=VARCHAR},
#{digest,jdbcType=VARCHAR}, #{author,jdbcType=VARCHAR}, #{coverUrl,jdbcType=VARCHAR}
)
</insert>
<insert
id=
"insertSelective"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"com.yd.dal.entity.customer.AclPractitionerFileSharing"
useGeneratedKeys=
"true"
>
<!--@mbg.generated-->
...
...
@@ -85,7 +87,7 @@
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"mdDropOptionId != null"
>
#{mdDropOptionId,jdbcType=
BIGINT
},
#{mdDropOptionId,jdbcType=
VARCHAR
},
</if>
<if
test=
"fileContent != null"
>
#{fileContent,jdbcType=LONGVARCHAR},
...
...
@@ -124,7 +126,7 @@
update ag_acl_practitioner_file_sharing
<set>
<if
test=
"mdDropOptionId != null"
>
md_drop_option_id = #{mdDropOptionId,jdbcType=
BIGINT
},
md_drop_option_id = #{mdDropOptionId,jdbcType=
VARCHAR
},
</if>
<if
test=
"fileContent != null"
>
file_content = #{fileContent,jdbcType=LONGVARCHAR},
...
...
@@ -162,7 +164,7 @@
<update
id=
"updateByPrimaryKey"
parameterType=
"com.yd.dal.entity.customer.AclPractitionerFileSharing"
>
<!--@mbg.generated-->
update ag_acl_practitioner_file_sharing
set md_drop_option_id = #{mdDropOptionId,jdbcType=
BIGINT
},
set md_drop_option_id = #{mdDropOptionId,jdbcType=
VARCHAR
},
file_content = #{fileContent,jdbcType=LONGVARCHAR},
is_active = #{isActive,jdbcType=INTEGER},
created_at = #{createdAt,jdbcType=TIMESTAMP},
...
...
@@ -181,7 +183,7 @@
<trim
prefix=
"set"
suffixOverrides=
","
>
<trim
prefix=
"md_drop_option_id = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.mdDropOptionId,jdbcType=
BIGINT
}
when id = #{item.id,jdbcType=BIGINT} then #{item.mdDropOptionId,jdbcType=
VARCHAR
}
</foreach>
</trim>
<trim
prefix=
"file_content = case"
suffix=
"end,"
>
...
...
@@ -247,7 +249,7 @@
<trim
prefix=
"md_drop_option_id = case"
suffix=
"end,"
>
<foreach
collection=
"list"
index=
"index"
item=
"item"
>
<if
test=
"item.mdDropOptionId != null"
>
when id = #{item.id,jdbcType=BIGINT} then #{item.mdDropOptionId,jdbcType=
BIGINT
}
when id = #{item.id,jdbcType=BIGINT} then #{item.mdDropOptionId,jdbcType=
VARCHAR
}
</if>
</foreach>
</trim>
...
...
@@ -334,7 +336,7 @@
updated_by, title, digest, author, cover_url)
values
<foreach
collection=
"list"
item=
"item"
separator=
","
>
(#{item.mdDropOptionId,jdbcType=
BIGINT
}, #{item.fileContent,jdbcType=LONGVARCHAR},
(#{item.mdDropOptionId,jdbcType=
VARCHAR
}, #{item.fileContent,jdbcType=LONGVARCHAR},
#{item.isActive,jdbcType=INTEGER}, #{item.createdAt,jdbcType=TIMESTAMP}, #{item.createdBy,jdbcType=BIGINT},
#{item.updatedAt,jdbcType=TIMESTAMP}, #{item.updatedBy,jdbcType=BIGINT}, #{item.title,jdbcType=VARCHAR},
#{item.digest,jdbcType=VARCHAR}, #{item.author,jdbcType=VARCHAR}, #{item.coverUrl,jdbcType=VARCHAR}
...
...
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