健康报告删除

This commit is contained in:
limqhz
2021-03-08 17:30:58 +08:00
parent 8cad890c1b
commit 4247ae6e12
8 changed files with 146 additions and 37 deletions

View File

@@ -7,8 +7,9 @@
<arg column="member_id" jdbcType="INTEGER" javaType="java.lang.Integer" />
<arg column="doc_name" jdbcType="VARCHAR" javaType="java.lang.String" />
<arg column="doc_type" jdbcType="CHAR" javaType="java.lang.String" />
<arg column="file_type" jdbcType="CHAR" javaType="java.lang.String" />
<arg column="file_type" jdbcType="VARCHAR" javaType="java.lang.String" />
<arg column="doc_path" jdbcType="VARCHAR" javaType="java.lang.String" />
<arg column="doc_date" jdbcType="DATE" javaType="java.util.Date" />
<arg column="platform_id" jdbcType="INTEGER" javaType="java.lang.Integer" />
<arg column="created_time" jdbcType="TIMESTAMP" javaType="java.util.Date" />
<arg column="modified_time" jdbcType="TIMESTAMP" javaType="java.util.Date" />
@@ -16,7 +17,7 @@
</constructor>
</resultMap>
<sql id="Base_Column_List" >
id, member_id, doc_name, doc_type, file_type, doc_path, platform_id, created_time,
id, member_id, doc_name, doc_type, file_type, doc_path, doc_date, platform_id, created_time,
modified_time, deleted
</sql>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
@@ -40,12 +41,12 @@
<insert id="insert" parameterType="com.sv.entity.HealthDoc" >
insert into sv_health_docs (id, member_id, doc_name,
doc_type, file_type, doc_path,
platform_id, created_time, modified_time,
deleted)
doc_date, platform_id, created_time,
modified_time, deleted)
values (#{id,jdbcType=INTEGER}, #{memberId,jdbcType=INTEGER}, #{docName,jdbcType=VARCHAR},
#{docType,jdbcType=CHAR}, #{fileType,jdbcType=CHAR}, #{docPath,jdbcType=VARCHAR},
#{platformId,jdbcType=INTEGER}, #{createdTime,jdbcType=TIMESTAMP}, #{modifiedTime,jdbcType=TIMESTAMP},
#{deleted,jdbcType=TINYINT})
#{docType,jdbcType=CHAR}, #{fileType,jdbcType=VARCHAR}, #{docPath,jdbcType=VARCHAR},
#{docDate,jdbcType=DATE}, #{platformId,jdbcType=INTEGER}, #{createdTime,jdbcType=TIMESTAMP},
#{modifiedTime,jdbcType=TIMESTAMP}, #{deleted,jdbcType=TINYINT})
</insert>
<insert id="insertSelective" parameterType="com.sv.entity.HealthDoc" >
insert into sv_health_docs
@@ -68,6 +69,9 @@
<if test="docPath != null" >
doc_path,
</if>
<if test="docDate != null" >
doc_date,
</if>
<if test="platformId != null" >
platform_id,
</if>
@@ -95,11 +99,14 @@
#{docType,jdbcType=CHAR},
</if>
<if test="fileType != null" >
#{fileType,jdbcType=CHAR},
#{fileType,jdbcType=VARCHAR},
</if>
<if test="docPath != null" >
#{docPath,jdbcType=VARCHAR},
</if>
<if test="docDate != null" >
#{docDate,jdbcType=DATE},
</if>
<if test="platformId != null" >
#{platformId,jdbcType=INTEGER},
</if>
@@ -127,11 +134,14 @@
doc_type = #{docType,jdbcType=CHAR},
</if>
<if test="fileType != null" >
file_type = #{fileType,jdbcType=CHAR},
file_type = #{fileType,jdbcType=VARCHAR},
</if>
<if test="docPath != null" >
doc_path = #{docPath,jdbcType=VARCHAR},
</if>
<if test="docDate != null" >
doc_date = #{docDate,jdbcType=DATE},
</if>
<if test="platformId != null" >
platform_id = #{platformId,jdbcType=INTEGER},
</if>
@@ -152,8 +162,9 @@
set member_id = #{memberId,jdbcType=INTEGER},
doc_name = #{docName,jdbcType=VARCHAR},
doc_type = #{docType,jdbcType=CHAR},
file_type = #{fileType,jdbcType=CHAR},
file_type = #{fileType,jdbcType=VARCHAR},
doc_path = #{docPath,jdbcType=VARCHAR},
doc_date = #{docDate,jdbcType=DATE},
platform_id = #{platformId,jdbcType=INTEGER},
created_time = #{createdTime,jdbcType=TIMESTAMP},
modified_time = #{modifiedTime,jdbcType=TIMESTAMP},