yaowanxin
3 天以前 5e55cbc7cf95b0f892ae4066a7699a5f76a0f2f3
src/main/resources/mapper/staff/StaffJoinLeaveRecordMapper.xml
@@ -8,7 +8,7 @@
        FROM staff_join_leave_record t1
        left join dept_position  t2 on t1.dept_position_id = t2.id and t2.type = 2
        where
        staff_state = #{staffJoinLeaveRecord.staffState}
        t1.staff_state = #{staffJoinLeaveRecord.staffState}
        <if test="staffJoinLeaveRecord.staffName != null and staffJoinLeaveRecord.staffName != '' ">
            AND t1.staff_name LIKE CONCAT('%',#{staffJoinLeaveRecord.staffName},'%')
        </if>