//字段是空字符串或者null select * from blade_process_should_pay_invoice where is_deleted = 0 and process_instance_id is null or ifnull(process_instance_id,‘‘)=‘‘ and create_user = ‘1273086723649093633‘ order by create_time desc //动态sql <select id="getMyJoinMeetingPage" resultType="org.springblade.desk.meeting.entity.MeetingEntity"> select a.* from blade_meeting a left join blade_meeting_person b on a.meeting_code=b.meeting_code where b.join_person_code=#{joinPersonCode} <if test="meetingName != null"> and (meeting_name like ‘%%${meetingName}%%‘) </if> <if test="meetingDate != null"> and (meeting_date like ‘%%${meetingDate}%%‘) </if> </select>