feat(biz): 新增楼宇点位信息实体及服务接口
- 添加楼宇点位信息实体类 LcBuildingEntity - 创建楼宇点位信息 Mapper 接口 LcBuildingMapper - 实现楼宇点位信息服务接口 ILcBuildingService - 提供基础的楼宇点位数据结构定义 - 集成 MyBatis-Plus 注解支持主键策略 - 使用 Lombok 简化实体类代码编写 - 继承 BaseTenantEntity 支持租户隔离功能
This commit is contained in:
@@ -0,0 +1,49 @@
|
|||||||
|
package com.jeelowcode.module.biz.entity;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.IdType;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||||
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||||
|
import com.jeelowcode.framework.utils.model.global.BaseTenantEntity;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 楼宇点位信息表
|
||||||
|
*
|
||||||
|
* @author yangchenjj
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@EqualsAndHashCode
|
||||||
|
@TableName("lc_building")
|
||||||
|
public class LcBuildingEntity extends BaseTenantEntity {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 主键
|
||||||
|
*/
|
||||||
|
@JsonSerialize(using = ToStringSerializer.class)
|
||||||
|
@TableId(value = "id", type = IdType.ASSIGN_ID)
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 楼宇编号
|
||||||
|
*/
|
||||||
|
private String buildingId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 楼宇名称
|
||||||
|
*/
|
||||||
|
private String buildingName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 园区编号
|
||||||
|
*/
|
||||||
|
private String campusId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 园区名称
|
||||||
|
*/
|
||||||
|
private String campusName;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
package com.jeelowcode.module.biz.mapper;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.jeelowcode.module.biz.entity.LcBuildingEntity;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 楼宇点位信息 Mapper
|
||||||
|
*
|
||||||
|
* @author yangchenjj
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface LcBuildingMapper extends BaseMapper<LcBuildingEntity> {
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
package com.jeelowcode.module.biz.service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 楼宇点位信息服务接口
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
*/
|
||||||
|
public interface ILcBuildingService {
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
package com.jeelowcode.module.biz.service.impl;
|
||||||
|
|
||||||
|
import com.jeelowcode.module.biz.service.ILcBuildingService;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 楼宇点位信息服务实现类
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
*/
|
||||||
|
@Slf4j
|
||||||
|
@Service
|
||||||
|
public class LcBuildingServiceImpl implements ILcBuildingService {
|
||||||
|
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user