Commit e31bf5af by yao.xiao

修改-文章标签

parent da1b3904
......@@ -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 Long getMdDropOptionId() {
public String 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(Long mdDropOptionId) {
public void setMdDropOptionId(String 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 + '\'' +
......
......@@ -14,7 +14,7 @@ public class PractitionerFileSharingSaveRequestVO {
/**
* FK ag_md_drop_options_id文章分类
*/
private Long mdDropOptionId;
private String mdDropOptionId;
/**
* 文章内容html
......@@ -72,7 +72,7 @@ public class PractitionerFileSharingSaveRequestVO {
*
* @return the mdDropOptionId FK ag_md_drop_options_id文章分类
*/
public Long getMdDropOptionId() {
public String 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(Long mdDropOptionId) {
public void setMdDropOptionId(String mdDropOptionId) {
this.mdDropOptionId = mdDropOptionId;
}
......
......@@ -16,7 +16,7 @@ public class AclPractitionerFileSharing {
/**
* FK ag_md_drop_options_id文章分类
*/
private Long mdDropOptionId;
private String mdDropOptionId;
/**
* 文章内容html
......
......@@ -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}
......
......@@ -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}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment