src/main/resources/mapper/BelongMapper.xml @@ -12,6 +12,9 @@ <if test="record.name!=null"> and a.name like concat ('%',#{record.name},'%') </if> <if test="record.id!=null"> and a.id = #{record.id} </if> </if> </where> </select>