mirror of
https://gitee.com/elegant_wings/dbd-meeting.git
synced 2025-08-08 12:42:44 +08:00
会议室筛选容纳人数
This commit is contained in:
parent
c75189fd0e
commit
5bf98bb248
@ -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
|
||||
*/
|
||||
|
@ -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 >= #{min} AND capacity_num <= #{max}</if>
|
||||
</where>
|
||||
order by id
|
||||
</select>
|
||||
|
Loading…
x
Reference in New Issue
Block a user