Commit e31bf5af by yao.xiao

修改-文章标签

parent da1b3904
...@@ -14,9 +14,7 @@ public class PractitionerFileSharing { ...@@ -14,9 +14,7 @@ public class PractitionerFileSharing {
/** /**
* FK ag_md_drop_options_id文章分类 * FK ag_md_drop_options_id文章分类
*/ */
private Long mdDropOptionId; private String mdDropOptionId;
private String mdDropOptionName;
/** /**
* 文章内容html * 文章内容html
...@@ -90,7 +88,7 @@ public class PractitionerFileSharing { ...@@ -90,7 +88,7 @@ public class PractitionerFileSharing {
* *
* @return the mdDropOptionId FK ag_md_drop_options_id文章分类 * @return the mdDropOptionId FK ag_md_drop_options_id文章分类
*/ */
public Long getMdDropOptionId() { public String getMdDropOptionId() {
return this.mdDropOptionId; return this.mdDropOptionId;
} }
...@@ -99,29 +97,11 @@ public class PractitionerFileSharing { ...@@ -99,29 +97,11 @@ public class PractitionerFileSharing {
* *
* @param mdDropOptionId the FK ag_md_drop_options_id文章分类 to set * @param mdDropOptionId the FK ag_md_drop_options_id文章分类 to set
*/ */
public void setMdDropOptionId(Long mdDropOptionId) { public void setMdDropOptionId(String mdDropOptionId) {
this.mdDropOptionId = 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 * 获取 文章内容html
* *
* @return the fileContent 文章内容html * @return the fileContent 文章内容html
...@@ -342,7 +322,6 @@ public class PractitionerFileSharing { ...@@ -342,7 +322,6 @@ public class PractitionerFileSharing {
return "PractitionerFileSharing{" + return "PractitionerFileSharing{" +
"id=" + id + "id=" + id +
", mdDropOptionId=" + mdDropOptionId + ", mdDropOptionId=" + mdDropOptionId +
", mdDropOptionName='" + mdDropOptionName + '\'' +
", fileContent='" + fileContent + '\'' + ", fileContent='" + fileContent + '\'' +
", isActive=" + isActive + ", isActive=" + isActive +
", createdAt='" + createdAt + '\'' + ", createdAt='" + createdAt + '\'' +
......
...@@ -14,7 +14,7 @@ public class PractitionerFileSharingSaveRequestVO { ...@@ -14,7 +14,7 @@ public class PractitionerFileSharingSaveRequestVO {
/** /**
* FK ag_md_drop_options_id文章分类 * FK ag_md_drop_options_id文章分类
*/ */
private Long mdDropOptionId; private String mdDropOptionId;
/** /**
* 文章内容html * 文章内容html
...@@ -72,7 +72,7 @@ public class PractitionerFileSharingSaveRequestVO { ...@@ -72,7 +72,7 @@ public class PractitionerFileSharingSaveRequestVO {
* *
* @return the mdDropOptionId FK ag_md_drop_options_id文章分类 * @return the mdDropOptionId FK ag_md_drop_options_id文章分类
*/ */
public Long getMdDropOptionId() { public String getMdDropOptionId() {
return this.mdDropOptionId; return this.mdDropOptionId;
} }
...@@ -81,7 +81,7 @@ public class PractitionerFileSharingSaveRequestVO { ...@@ -81,7 +81,7 @@ public class PractitionerFileSharingSaveRequestVO {
* *
* @param mdDropOptionId the FK ag_md_drop_options_id文章分类 to set * @param mdDropOptionId the FK ag_md_drop_options_id文章分类 to set
*/ */
public void setMdDropOptionId(Long mdDropOptionId) { public void setMdDropOptionId(String mdDropOptionId) {
this.mdDropOptionId = mdDropOptionId; this.mdDropOptionId = mdDropOptionId;
} }
......
...@@ -16,7 +16,7 @@ public class AclPractitionerFileSharing { ...@@ -16,7 +16,7 @@ public class AclPractitionerFileSharing {
/** /**
* FK ag_md_drop_options_id文章分类 * FK ag_md_drop_options_id文章分类
*/ */
private Long mdDropOptionId; private String mdDropOptionId;
/** /**
* 文章内容html * 文章内容html
......
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
<select id="practitionerFileSharingList" resultType="com.yd.api.agms.vo.practitioner.PractitionerFileSharing"> <select id="practitionerFileSharingList" resultType="com.yd.api.agms.vo.practitioner.PractitionerFileSharing">
select s.id id, select s.id id,
s.md_drop_option_id mdDropOptionId, s.md_drop_option_id mdDropOptionId,
o.drop_option_name dropOptionName,
s.file_content fileContent, s.file_content fileContent,
s.is_active isActive, s.is_active isActive,
s.created_at createdAt, s.created_at createdAt,
...@@ -24,7 +23,7 @@ ...@@ -24,7 +23,7 @@
left join ag_acl_user uu on uu.id = s.created_by left join ag_acl_user uu on uu.id = s.created_by
<where> <where>
<if test="mdDropOptionId != null"> <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>
<if test="isActive != null"> <if test="isActive != null">
and s.is_active = #{isActive,jdbcType=INTEGER} and s.is_active = #{isActive,jdbcType=INTEGER}
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<!--@mbg.generated--> <!--@mbg.generated-->
<!--@Table ag_acl_practitioner_file_sharing--> <!--@Table ag_acl_practitioner_file_sharing-->
<id column="id" jdbcType="BIGINT" property="id" /> <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="file_content" jdbcType="LONGVARCHAR" property="fileContent" />
<result column="is_active" jdbcType="INTEGER" property="isActive" /> <result column="is_active" jdbcType="INTEGER" property="isActive" />
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> <result column="created_at" jdbcType="TIMESTAMP" property="createdAt" />
...@@ -36,14 +36,16 @@ ...@@ -36,14 +36,16 @@
</delete> </delete>
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.yd.dal.entity.customer.AclPractitionerFileSharing" useGeneratedKeys="true"> <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.yd.dal.entity.customer.AclPractitionerFileSharing" useGeneratedKeys="true">
<!--@mbg.generated--> <!--@mbg.generated-->
insert into ag_acl_practitioner_file_sharing (md_drop_option_id, file_content, is_active, insert into ag_acl_practitioner_file_sharing (md_drop_option_id, file_content,
created_at, created_by, updated_at, is_active, created_at, created_by,
updated_by, title, digest, updated_at, updated_by, title,
author, cover_url) digest, author, cover_url
values (#{mdDropOptionId,jdbcType=BIGINT}, #{fileContent,jdbcType=LONGVARCHAR}, #{isActive,jdbcType=INTEGER}, )
#{createdAt,jdbcType=TIMESTAMP}, #{createdBy,jdbcType=BIGINT}, #{updatedAt,jdbcType=TIMESTAMP}, values (#{mdDropOptionId,jdbcType=VARCHAR}, #{fileContent,jdbcType=LONGVARCHAR},
#{updatedBy,jdbcType=BIGINT}, #{title,jdbcType=VARCHAR}, #{digest,jdbcType=VARCHAR}, #{isActive,jdbcType=INTEGER}, #{createdAt,jdbcType=TIMESTAMP}, #{createdBy,jdbcType=BIGINT},
#{author,jdbcType=VARCHAR}, #{coverUrl,jdbcType=VARCHAR}) #{updatedAt,jdbcType=TIMESTAMP}, #{updatedBy,jdbcType=BIGINT}, #{title,jdbcType=VARCHAR},
#{digest,jdbcType=VARCHAR}, #{author,jdbcType=VARCHAR}, #{coverUrl,jdbcType=VARCHAR}
)
</insert> </insert>
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.yd.dal.entity.customer.AclPractitionerFileSharing" useGeneratedKeys="true"> <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.yd.dal.entity.customer.AclPractitionerFileSharing" useGeneratedKeys="true">
<!--@mbg.generated--> <!--@mbg.generated-->
...@@ -85,7 +87,7 @@ ...@@ -85,7 +87,7 @@
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="mdDropOptionId != null"> <if test="mdDropOptionId != null">
#{mdDropOptionId,jdbcType=BIGINT}, #{mdDropOptionId,jdbcType=VARCHAR},
</if> </if>
<if test="fileContent != null"> <if test="fileContent != null">
#{fileContent,jdbcType=LONGVARCHAR}, #{fileContent,jdbcType=LONGVARCHAR},
...@@ -124,7 +126,7 @@ ...@@ -124,7 +126,7 @@
update ag_acl_practitioner_file_sharing update ag_acl_practitioner_file_sharing
<set> <set>
<if test="mdDropOptionId != null"> <if test="mdDropOptionId != null">
md_drop_option_id = #{mdDropOptionId,jdbcType=BIGINT}, md_drop_option_id = #{mdDropOptionId,jdbcType=VARCHAR},
</if> </if>
<if test="fileContent != null"> <if test="fileContent != null">
file_content = #{fileContent,jdbcType=LONGVARCHAR}, file_content = #{fileContent,jdbcType=LONGVARCHAR},
...@@ -162,7 +164,7 @@ ...@@ -162,7 +164,7 @@
<update id="updateByPrimaryKey" parameterType="com.yd.dal.entity.customer.AclPractitionerFileSharing"> <update id="updateByPrimaryKey" parameterType="com.yd.dal.entity.customer.AclPractitionerFileSharing">
<!--@mbg.generated--> <!--@mbg.generated-->
update ag_acl_practitioner_file_sharing 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}, file_content = #{fileContent,jdbcType=LONGVARCHAR},
is_active = #{isActive,jdbcType=INTEGER}, is_active = #{isActive,jdbcType=INTEGER},
created_at = #{createdAt,jdbcType=TIMESTAMP}, created_at = #{createdAt,jdbcType=TIMESTAMP},
...@@ -181,7 +183,7 @@ ...@@ -181,7 +183,7 @@
<trim prefix="set" suffixOverrides=","> <trim prefix="set" suffixOverrides=",">
<trim prefix="md_drop_option_id = case" suffix="end,"> <trim prefix="md_drop_option_id = case" suffix="end,">
<foreach collection="list" index="index" item="item"> <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> </foreach>
</trim> </trim>
<trim prefix="file_content = case" suffix="end,"> <trim prefix="file_content = case" suffix="end,">
...@@ -247,7 +249,7 @@ ...@@ -247,7 +249,7 @@
<trim prefix="md_drop_option_id = case" suffix="end,"> <trim prefix="md_drop_option_id = case" suffix="end,">
<foreach collection="list" index="index" item="item"> <foreach collection="list" index="index" item="item">
<if test="item.mdDropOptionId != null"> <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> </if>
</foreach> </foreach>
</trim> </trim>
...@@ -334,7 +336,7 @@ ...@@ -334,7 +336,7 @@
updated_by, title, digest, author, cover_url) updated_by, title, digest, author, cover_url)
values values
<foreach collection="list" item="item" separator=","> <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.isActive,jdbcType=INTEGER}, #{item.createdAt,jdbcType=TIMESTAMP}, #{item.createdBy,jdbcType=BIGINT},
#{item.updatedAt,jdbcType=TIMESTAMP}, #{item.updatedBy,jdbcType=BIGINT}, #{item.title,jdbcType=VARCHAR}, #{item.updatedAt,jdbcType=TIMESTAMP}, #{item.updatedBy,jdbcType=BIGINT}, #{item.title,jdbcType=VARCHAR},
#{item.digest,jdbcType=VARCHAR}, #{item.author,jdbcType=VARCHAR}, #{item.coverUrl,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