|
@@ -74,38 +74,37 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="degree" column="degree"/>
|
|
<result property="degree" column="degree"/>
|
|
|
<result property="major" column="major"/>
|
|
<result property="major" column="major"/>
|
|
|
<result property="updateTime" column="update_time"/>
|
|
<result property="updateTime" column="update_time"/>
|
|
|
-
|
|
|
|
|
</resultMap>
|
|
</resultMap>
|
|
|
- <select id="selectAllStaffList" parameterType="org.zhongzheng.info.bo.staff.StaffQueryBo" resultMap="StaffVoResult">
|
|
|
|
|
|
|
+ <select id="selectAllStaffList" resultMap="StaffVoResult">
|
|
|
select * from staff s where (select count(seb.staff_id) from staff_edu_bg seb where seb.staff_id=s.staff_id
|
|
select * from staff s where (select count(seb.staff_id) from staff_edu_bg seb where seb.staff_id=s.staff_id
|
|
|
- <if test="degree != null and degree != ''">
|
|
|
|
|
- AND seb.degree = #{degree}
|
|
|
|
|
|
|
+ <if test="bo.degree != null and bo.degree != ''">
|
|
|
|
|
+ AND seb.degree = #{bo.degree}
|
|
|
</if>)>0
|
|
</if>)>0
|
|
|
- <if test="entryDate != null and entryDate != ''">
|
|
|
|
|
- <if test="leaveDate != null and leaveDate != ''">
|
|
|
|
|
- And s.entry_date between s.entry_date=#{entryDate} And s.leave_date=#{leaveDate}
|
|
|
|
|
|
|
+ <if test="bo.entryDate != null and bo.entryDate != ''">
|
|
|
|
|
+ <if test="bo.leaveDate != null and bo.leaveDate != ''">
|
|
|
|
|
+ And s.entry_date between s.entry_date=#{bo.entryDate} And s.leave_date=#{bo.leaveDate}
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="entryDate != null and entryDate != ''">
|
|
|
|
|
- AND s.entry_date = #{entryDate}
|
|
|
|
|
|
|
+ <if test="bo.entryDate != null and bo.entryDate != ''">
|
|
|
|
|
+ AND s.entry_date = #{bo.entryDate}
|
|
|
</if>
|
|
</if>
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="leaveDate != null and leaveDate != ''">
|
|
|
|
|
- AND s.leave_date = #{leaveDate}
|
|
|
|
|
|
|
+ <if test="bo.leaveDate != null and bo.leaveDate != ''">
|
|
|
|
|
+ AND s.leave_date = #{bo.leaveDate}
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="companyName != null and companyName != ''">
|
|
|
|
|
- AND s.company_name = #{companyName}
|
|
|
|
|
|
|
+ <if test="bo.companyName != null and bo.companyName != ''">
|
|
|
|
|
+ AND s.company_name = #{bo.companyName}
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="staffName != null and staffName != ''">
|
|
|
|
|
- AND s.staff_name = #{staffName}
|
|
|
|
|
|
|
+ <if test="bo.staffName != null and bo.staffName != ''">
|
|
|
|
|
+ AND s.staff_name = #{bo.staffName}
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="idCard != null and idCard != ''">
|
|
|
|
|
- AND s.id_card = #{idCard}
|
|
|
|
|
|
|
+ <if test="bo.idCard != null and bo.idCard != ''">
|
|
|
|
|
+ AND s.id_card = #{bo.idCard}
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="staffId != null and staffId != ''">
|
|
|
|
|
- AND s.staff_id = #{staffId}
|
|
|
|
|
|
|
+ <if test="bo.staffId != null and bo.staffId != ''">
|
|
|
|
|
+ AND s.staff_id = #{bo.staffId}
|
|
|
</if>
|
|
</if>
|
|
|
- <if test="telephone != null">
|
|
|
|
|
- AND s.telephone = #{telephone}
|
|
|
|
|
|
|
+ <if test="bo.telephone != null">
|
|
|
|
|
+ AND s.telephone = #{bo.telephone}
|
|
|
</if>
|
|
</if>
|
|
|
ORDER BY s.create_time DESC
|
|
ORDER BY s.create_time DESC
|
|
|
</select>
|
|
</select>
|