|
@@ -17,6 +17,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="updateTime" column="update_time" />
|
|
<result property="updateTime" column="update_time" />
|
|
|
<result property="updateBy" column="update_by" />
|
|
<result property="updateBy" column="update_by" />
|
|
|
<result property="delFlag" column="del_flag" />
|
|
<result property="delFlag" column="del_flag" />
|
|
|
|
|
+ <result property="healthCertNo" column="health_cert_no" />
|
|
|
<collection property="posts" javaType="java.util.List" resultMap="PostResult" />
|
|
<collection property="posts" javaType="java.util.List" resultMap="PostResult" />
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
<resultMap id="PostResult" type="SysPost">
|
|
<resultMap id="PostResult" type="SysPost">
|
|
@@ -24,11 +25,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="postName" column="post_name" />
|
|
<result property="postName" column="post_name" />
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
<sql id="selectStaffVo">
|
|
<sql id="selectStaffVo">
|
|
|
- select id, realname, post_id, phone, technical_title, technical_cert, health_cert, create_time, create_by, update_time, update_by, del_flag from staff
|
|
|
|
|
|
|
+ select id, realname, post_id, phone, technical_title, technical_cert, health_cert,health_cert_no, create_time, create_by, update_time, update_by, del_flag from staff
|
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
|
|
<select id="selectStaffList" parameterType="Staff" resultMap="StaffResult">
|
|
<select id="selectStaffList" parameterType="Staff" resultMap="StaffResult">
|
|
|
- select s.id, s.realname, s.post_id, s.phone, s.technical_title, s.technical_cert, s.health_cert,
|
|
|
|
|
|
|
+ select s.id, s.realname, s.post_id, s.phone, s.technical_title, s.technical_cert, s.health_cert,s.health_cert_no,
|
|
|
s.create_time, s.create_by, s.update_time, s.update_by,p.post_id as sys_post_id,p.post_name from staff as s
|
|
s.create_time, s.create_by, s.update_time, s.update_by,p.post_id as sys_post_id,p.post_name from staff as s
|
|
|
left join staff_post sp on sp.staff_id = s.id
|
|
left join staff_post sp on sp.staff_id = s.id
|
|
|
left join sys_post p on p.post_id = sp.post_id
|
|
left join sys_post p on p.post_id = sp.post_id
|
|
@@ -49,7 +50,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
<select id="selectStaffById" parameterType="Long" resultMap="StaffResult">
|
|
<select id="selectStaffById" parameterType="Long" resultMap="StaffResult">
|
|
|
- select s.id, s.realname, s.post_id, s.phone, s.technical_title, s.technical_cert, s.health_cert,
|
|
|
|
|
|
|
+ select s.id, s.realname, s.post_id, s.phone, s.technical_title, s.technical_cert, s.health_cert,s.health_cert_no,
|
|
|
s.create_time, s.create_by, s.update_time, s.update_by,p.post_id as sys_post_id,p.post_name from staff as s
|
|
s.create_time, s.create_by, s.update_time, s.update_by,p.post_id as sys_post_id,p.post_name from staff as s
|
|
|
left join staff_post sp on sp.staff_id = s.id
|
|
left join staff_post sp on sp.staff_id = s.id
|
|
|
left join sys_post p on p.post_id = sp.post_id
|
|
left join sys_post p on p.post_id = sp.post_id
|
|
@@ -65,6 +66,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="technicalTitle != null">technical_title,</if>
|
|
<if test="technicalTitle != null">technical_title,</if>
|
|
|
<if test="technicalCert != null">technical_cert,</if>
|
|
<if test="technicalCert != null">technical_cert,</if>
|
|
|
<if test="healthCert != null">health_cert,</if>
|
|
<if test="healthCert != null">health_cert,</if>
|
|
|
|
|
+ <if test="healthCertNo != null">health_cert_no,</if>
|
|
|
<if test="createTime != null">create_time,</if>
|
|
<if test="createTime != null">create_time,</if>
|
|
|
<if test="createBy != null">create_by,</if>
|
|
<if test="createBy != null">create_by,</if>
|
|
|
del_flag
|
|
del_flag
|
|
@@ -76,6 +78,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="technicalTitle != null">#{technicalTitle},</if>
|
|
<if test="technicalTitle != null">#{technicalTitle},</if>
|
|
|
<if test="technicalCert != null">#{technicalCert},</if>
|
|
<if test="technicalCert != null">#{technicalCert},</if>
|
|
|
<if test="healthCert != null">#{healthCert},</if>
|
|
<if test="healthCert != null">#{healthCert},</if>
|
|
|
|
|
+ <if test="healthCertNo != null">#{healthCertNo},</if>
|
|
|
<if test="createTime != null">#{createTime},</if>
|
|
<if test="createTime != null">#{createTime},</if>
|
|
|
<if test="createBy != null">#{createBy},</if>
|
|
<if test="createBy != null">#{createBy},</if>
|
|
|
'0'
|
|
'0'
|
|
@@ -98,6 +101,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="technicalTitle != null">technical_title = #{technicalTitle},</if>
|
|
<if test="technicalTitle != null">technical_title = #{technicalTitle},</if>
|
|
|
<if test="technicalCert != null">technical_cert = #{technicalCert},</if>
|
|
<if test="technicalCert != null">technical_cert = #{technicalCert},</if>
|
|
|
<if test="healthCert != null">health_cert = #{healthCert},</if>
|
|
<if test="healthCert != null">health_cert = #{healthCert},</if>
|
|
|
|
|
+ <if test="healthCertNo != null">health_cert_no = #{healthCertNo},</if>
|
|
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
|
|
</trim>
|
|
</trim>
|