|
@@ -9,10 +9,11 @@
|
|
<result column="start_date" property="start_date" jdbcType="VARCHAR" />
|
|
<result column="start_date" property="start_date" jdbcType="VARCHAR" />
|
|
<result column="end_date" property="end_date" jdbcType="VARCHAR" />
|
|
<result column="end_date" property="end_date" jdbcType="VARCHAR" />
|
|
<result column="certificate_name" property="certificate_name" jdbcType="VARCHAR" />
|
|
<result column="certificate_name" property="certificate_name" jdbcType="VARCHAR" />
|
|
|
|
+ <result column="organization" property="organization" jdbcType="VARCHAR" />
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<sql id="Base_Column_List" >
|
|
<sql id="Base_Column_List" >
|
|
- id, servant_code, certificate_code,start_date,end_date,certificate_name
|
|
|
|
|
|
+ id, servant_code, certificate_code,start_date,end_date,certificate_name,organization
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
<!-- 得到月嫂证书信息 -->
|
|
<!-- 得到月嫂证书信息 -->
|
|
@@ -34,6 +35,7 @@
|
|
id,
|
|
id,
|
|
fgetcertificatename(certificate_code) certificate_name,
|
|
fgetcertificatename(certificate_code) certificate_name,
|
|
certificate_code,
|
|
certificate_code,
|
|
|
|
+ organization,
|
|
DATE_FORMAT(start_date,'%Y-%m-%d') start_date,
|
|
DATE_FORMAT(start_date,'%Y-%m-%d') start_date,
|
|
DATE_FORMAT(end_date,'%Y-%m-%d') end_date
|
|
DATE_FORMAT(end_date,'%Y-%m-%d') end_date
|
|
from mm_info_certificate
|
|
from mm_info_certificate
|
|
@@ -55,6 +57,9 @@
|
|
<if test="certificate_code != null" >
|
|
<if test="certificate_code != null" >
|
|
certificate_code,
|
|
certificate_code,
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="organization != null" >
|
|
|
|
+ organization,
|
|
|
|
+ </if>
|
|
<if test="start_date != null" >
|
|
<if test="start_date != null" >
|
|
start_date,
|
|
start_date,
|
|
</if>
|
|
</if>
|
|
@@ -69,6 +74,9 @@
|
|
<if test="certificate_code != null" >
|
|
<if test="certificate_code != null" >
|
|
#{certificate_code,jdbcType=INTEGER},
|
|
#{certificate_code,jdbcType=INTEGER},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="organization != null" >
|
|
|
|
+ #{organization,jdbcType=INTEGER},
|
|
|
|
+ </if>
|
|
<if test="start_date != null" >
|
|
<if test="start_date != null" >
|
|
#{start_date,jdbcType=DATE},
|
|
#{start_date,jdbcType=DATE},
|
|
</if>
|
|
</if>
|
|
@@ -88,6 +96,9 @@
|
|
<if test="certificate_code != null" >
|
|
<if test="certificate_code != null" >
|
|
certificate_code = #{certificate_code,jdbcType=VARCHAR},
|
|
certificate_code = #{certificate_code,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="organization != null" >
|
|
|
|
+ organization = #{organization,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
<if test="start_date != null" >
|
|
<if test="start_date != null" >
|
|
start_date = #{start_date,jdbcType=DATE},
|
|
start_date = #{start_date,jdbcType=DATE},
|
|
</if>
|
|
</if>
|