修复bug

This commit is contained in:
wulin 2020-11-26 18:10:18 +08:00
parent 90fd42b7f6
commit 11eed02309

View File

@ -265,6 +265,7 @@
<if test="name != null and name != ''"> <if test="name != null and name != ''">
and staff.name like concat('%',#{name},'%') and staff.name like concat('%',#{name},'%')
</if> </if>
group by staff.id
) as staffinfo join lz_staff_occupation as occ on occ.staff_id = staffinfo.id ) as staffinfo join lz_staff_occupation as occ on occ.staff_id = staffinfo.id
where occ.is_delete=0 and occ.staff_status=#{staffStatus} order by department_leader desc where occ.is_delete=0 and occ.staff_status=#{staffStatus} order by department_leader desc
limit #{startIndex}, #{pageLimit} limit #{startIndex}, #{pageLimit}
@ -283,8 +284,9 @@
<if test="name != null and name != ''"> <if test="name != null and name != ''">
and staff.name like concat('%',#{name},'%') and staff.name like concat('%',#{name},'%')
</if> </if>
group by staff.id
) as staffinfo join lz_staff_occupation as occ on occ.staff_id = staffinfo.id ) as staffinfo join lz_staff_occupation as occ on occ.staff_id = staffinfo.id
where occ.is_delete=0 and occ.staff_status=#{staffStatus} order by department_leader desc where occ.is_delete=0 and occ.staff_status=#{staffStatus}
</select> </select>
<select id="getBaseInfo" resultType="com.lz.modules.app.dto.StaffBaseInfoDto"> <select id="getBaseInfo" resultType="com.lz.modules.app.dto.StaffBaseInfoDto">