会议室筛选容纳人数

This commit is contained in:
lujiang 2024-10-04 16:39:08 +08:00
parent c75189fd0e
commit 5bf98bb248
2 changed files with 16 additions and 1 deletions

View File

@ -2,6 +2,7 @@ package com.ics.admin.domain;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.ics.common.core.domain.BaseEntity;
import lombok.Data;
@ -75,6 +76,20 @@ public class MeetingRoom extends BaseEntity<MeetingRoom> {
@TableField(exist = false)
private Integer status;
/**
* 容纳人数 下限
*/
@JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
@TableField(exist = false)
private Integer min;
/**
* 容纳人数 上限
*/
@JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
@TableField(exist = false)
private Integer max;
/**
* 扩展1
*/

View File

@ -42,7 +42,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="name != null and name != ''"> AND name LIKE CONCAT('%', #{name}, '%')</if>
<if test="typeName != null and typeName != ''"> AND type_name = #{typeName}</if>
<if test="device != null and device != ''"> AND device LIKE CONCAT('%', #{device}, '%')</if>
<if test="capacityNum != null"> AND capacity_num = #{capacityNum}</if>
<if test="min != null and max !=null"> and capacity_num &gt;= #{min} AND capacity_num &lt;= #{max}</if>
</where>
order by id
</select>