|
@@ -7,28 +7,20 @@
|
|
<result column="code" property="code" jdbcType="CHAR" />
|
|
<result column="code" property="code" jdbcType="CHAR" />
|
|
<result column="issuance_agency" property="issuanceAgency" jdbcType="VARCHAR" />
|
|
<result column="issuance_agency" property="issuanceAgency" jdbcType="VARCHAR" />
|
|
<result column="expiration_date" property="expirationDate" jdbcType="TIMESTAMP" />
|
|
<result column="expiration_date" property="expirationDate" jdbcType="TIMESTAMP" />
|
|
- <result column="type" property="type" jdbcType="VARCHAR" />
|
|
|
|
|
|
+ <result column="certificate_type" property="certificateType" jdbcType="VARCHAR" />
|
|
<result column="status" property="status" jdbcType="TINYINT" />
|
|
<result column="status" property="status" jdbcType="TINYINT" />
|
|
- </resultMap>
|
|
|
|
-
|
|
|
|
- <resultMap id="ResultMapWithBLOBs" type="cn.com.ty.lift.enterprise.oa.entity.LiftCertificate" extends="BaseResultMap" >
|
|
|
|
<result column="first_img_url" property="firstImgUrl" jdbcType="LONGVARCHAR" />
|
|
<result column="first_img_url" property="firstImgUrl" jdbcType="LONGVARCHAR" />
|
|
<result column="second_img_url" property="secondImgUrl" jdbcType="LONGVARCHAR" />
|
|
<result column="second_img_url" property="secondImgUrl" jdbcType="LONGVARCHAR" />
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
- <sql id="Base_Column_List" >
|
|
|
|
- id, owner_id, code, issuance_agency, expiration_date, type, status
|
|
|
|
- </sql>
|
|
|
|
|
|
|
|
- <sql id="Blob_Column_List" >
|
|
|
|
- first_img_url, second_img_url
|
|
|
|
|
|
+ <sql id="Base_Column_List" >
|
|
|
|
+ id, owner_id, code, issuance_agency, expiration_date, certificate_type, status,first_img_url, second_img_url
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
- <select id="selectByPrimaryKey" resultMap="ResultMapWithBLOBs" parameterType="java.lang.Long" >
|
|
|
|
|
|
+ <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" >
|
|
select
|
|
select
|
|
<include refid="Base_Column_List" />
|
|
<include refid="Base_Column_List" />
|
|
- ,
|
|
|
|
- <include refid="Blob_Column_List" />
|
|
|
|
from lift_certificate
|
|
from lift_certificate
|
|
where id = #{id,jdbcType=BIGINT}
|
|
where id = #{id,jdbcType=BIGINT}
|
|
</select>
|
|
</select>
|
|
@@ -40,11 +32,11 @@
|
|
|
|
|
|
<insert id="insert" parameterType="cn.com.ty.lift.enterprise.oa.entity.LiftCertificate" >
|
|
<insert id="insert" parameterType="cn.com.ty.lift.enterprise.oa.entity.LiftCertificate" >
|
|
insert into lift_certificate (id, owner_id, code,
|
|
insert into lift_certificate (id, owner_id, code,
|
|
- issuance_agency, expiration_date, type,
|
|
|
|
|
|
+ issuance_agency, expiration_date, certificate_type,
|
|
status, first_img_url, second_img_url
|
|
status, first_img_url, second_img_url
|
|
)
|
|
)
|
|
values (#{id,jdbcType=BIGINT}, #{ownerId,jdbcType=BIGINT}, #{code,jdbcType=CHAR},
|
|
values (#{id,jdbcType=BIGINT}, #{ownerId,jdbcType=BIGINT}, #{code,jdbcType=CHAR},
|
|
- #{issuanceAgency,jdbcType=VARCHAR}, #{expirationDate,jdbcType=TIMESTAMP}, #{type,jdbcType=VARCHAR},
|
|
|
|
|
|
+ #{issuanceAgency,jdbcType=VARCHAR}, #{expirationDate,jdbcType=TIMESTAMP}, #{certificate_type,jdbcType=VARCHAR},
|
|
#{status,jdbcType=TINYINT}, #{firstImgUrl,jdbcType=LONGVARCHAR}, #{secondImgUrl,jdbcType=LONGVARCHAR}
|
|
#{status,jdbcType=TINYINT}, #{firstImgUrl,jdbcType=LONGVARCHAR}, #{secondImgUrl,jdbcType=LONGVARCHAR}
|
|
)
|
|
)
|
|
</insert>
|
|
</insert>
|
|
@@ -67,8 +59,8 @@
|
|
<if test="expirationDate != null" >
|
|
<if test="expirationDate != null" >
|
|
expiration_date,
|
|
expiration_date,
|
|
</if>
|
|
</if>
|
|
- <if test="type != null" >
|
|
|
|
- type,
|
|
|
|
|
|
+ <if test="certificateType != null" >
|
|
|
|
+ certificate_type,
|
|
</if>
|
|
</if>
|
|
<if test="status != null" >
|
|
<if test="status != null" >
|
|
status,
|
|
status,
|
|
@@ -96,8 +88,8 @@
|
|
<if test="expirationDate != null" >
|
|
<if test="expirationDate != null" >
|
|
#{expirationDate,jdbcType=TIMESTAMP},
|
|
#{expirationDate,jdbcType=TIMESTAMP},
|
|
</if>
|
|
</if>
|
|
- <if test="type != null" >
|
|
|
|
- #{type,jdbcType=VARCHAR},
|
|
|
|
|
|
+ <if test="certificateType != null" >
|
|
|
|
+ #{certificate_type,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
<if test="status != null" >
|
|
<if test="status != null" >
|
|
#{status,jdbcType=TINYINT},
|
|
#{status,jdbcType=TINYINT},
|
|
@@ -126,8 +118,8 @@
|
|
<if test="expirationDate != null" >
|
|
<if test="expirationDate != null" >
|
|
expiration_date = #{expirationDate,jdbcType=TIMESTAMP},
|
|
expiration_date = #{expirationDate,jdbcType=TIMESTAMP},
|
|
</if>
|
|
</if>
|
|
- <if test="type != null" >
|
|
|
|
- type = #{type,jdbcType=VARCHAR},
|
|
|
|
|
|
+ <if test="certificateType != null" >
|
|
|
|
+ certificate_type = #{certificateType,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
<if test="status != null" >
|
|
<if test="status != null" >
|
|
status = #{status,jdbcType=TINYINT},
|
|
status = #{status,jdbcType=TINYINT},
|
|
@@ -148,7 +140,7 @@
|
|
code = #{code,jdbcType=CHAR},
|
|
code = #{code,jdbcType=CHAR},
|
|
issuance_agency = #{issuanceAgency,jdbcType=VARCHAR},
|
|
issuance_agency = #{issuanceAgency,jdbcType=VARCHAR},
|
|
expiration_date = #{expirationDate,jdbcType=TIMESTAMP},
|
|
expiration_date = #{expirationDate,jdbcType=TIMESTAMP},
|
|
- type = #{type,jdbcType=VARCHAR},
|
|
|
|
|
|
+ certificate_type = #{certificateType,jdbcType=VARCHAR},
|
|
status = #{status,jdbcType=TINYINT},
|
|
status = #{status,jdbcType=TINYINT},
|
|
first_img_url = #{firstImgUrl,jdbcType=LONGVARCHAR},
|
|
first_img_url = #{firstImgUrl,jdbcType=LONGVARCHAR},
|
|
second_img_url = #{secondImgUrl,jdbcType=LONGVARCHAR}
|
|
second_img_url = #{secondImgUrl,jdbcType=LONGVARCHAR}
|