xuhy
2025-04-27 5fa6e6f8410ef9d057174bcff2a3c5038c54a551
ruoyi-system/src/main/java/com/ruoyi/system/model/THouse.java
@@ -1,15 +1,18 @@
package com.ruoyi.system.model;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.math.BigDecimal;
import java.time.LocalDateTime;
/**
 * <p>
@@ -17,87 +20,99 @@
 * </p>
 *
 * @author xiaochen
 * @since 2025-01-17
 * @since 2025-01-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_house")
@ApiModel(value="THouse对象", description="房屋管理")
public class THouse implements Serializable {
public class THouse extends BaseModel {
    private static final long serialVersionUID = 1L;
    @TableId("id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;
    @ApiModelProperty(value = "房屋图片")
    @TableField("housePicture")
    @TableField("house_picture")
    private String housePicture;
    @ApiModelProperty(value = "房屋名称")
    @TableField("houseName")
    @TableField("house_name")
    private String houseName;
    @ApiModelProperty(value = "地址")
    @TableField("houseAddress")
    @TableField("house_address")
    private String houseAddress;
    @ApiModelProperty(value = "建筑面积")
    @TableField("houseArea")
    private Integer houseArea;
    @TableField("house_area")
    private String houseArea;
    @ApiModelProperty(value = "户型")
    @TableField("houseType")
    @TableField("house_type")
    private String houseType;
    @ApiModelProperty(value = "业务属性")
    @TableField("businessAttributes")
    @TableField("business_attributes")
    private String businessAttributes;
    @ApiModelProperty(value = "产品类型")
    @TableField("productType")
    @TableField("product_type")
    private String productType;
    @ApiModelProperty(value = "产权人")
    @TableField("propertyRightPerson")
    @TableField("property_right_person")
    private String propertyRightPerson;
    @ApiModelProperty(value = "产证编号")
    @TableField("propertyRightNumber")
    @TableField("property_right_number")
    private String propertyRightNumber;
    @ApiModelProperty(value = "产权开始日期")
    @TableField("propertyRightStartTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField("property_right_start_time")
    private LocalDateTime propertyRightStartTime;
    @ApiModelProperty(value = "产权年限")
    @TableField("propertyRightDuration")
    @TableField("property_right_duration")
    private String propertyRightDuration;
    @ApiModelProperty(value = "租赁状态 1=待出租 2=已出租 3=维修中")
    @TableField("leaseStatus")
    private Integer leaseStatus;
    @TableField("lease_status")
    private String leaseStatus;
    @ApiModelProperty(value = "创建时间")
    @TableField("createTime")
    private LocalDateTime createTime;
    @ApiModelProperty(value = "退租状态 1=未退租 2=退租申请中 3=已退租")
    @TableField("rental_return_status")
    private String rentalReturnStatus;
    @ApiModelProperty(value = "修改时间")
    @TableField("updateTime")
    private LocalDateTime updateTime;
    @ApiModelProperty(value = "楼栋")
    @TableField("building")
    private String building;
    @ApiModelProperty(value = "房号")
    @TableField("room_number")
    private String roomNumber;
    @ApiModelProperty(value = "产权人联系方式")
    @TableField("phone")
    private String phone;
    @ApiModelProperty(value = "创建人")
    @TableField("createBy")
    private String createBy;
    @ApiModelProperty(value = "住户类型 1月租 2季租 3年租")
    @TableField(exist = false)
    private String tenantType;
    @ApiModelProperty(value = "修改人")
    @TableField("updateBy")
    private String updateBy;
    @ApiModelProperty(value = "所属街道id")
    @TableField("street_id")
    private String streetId;
    @ApiModelProperty(value = "是否删除 0=否 1=是")
    @TableField("isDelete")
    @TableLogic
    private Integer isDelete;
    @ApiModelProperty(value = "经度")
    @TableField("longitude")
    private BigDecimal longitude;
    @ApiModelProperty(value = "纬度")
    @TableField("latitude")
    private BigDecimal latitude;
    @ApiModelProperty(value = "营业部id")
    @TableField("business_dept_id")
    private String businessDeptId;
}