diff --git a/epmet-user/epmet-user-server/src/main/java/com/epmet/dao/IcResiContractInfoDao.java b/epmet-user/epmet-user-server/src/main/java/com/epmet/dao/IcResiContractInfoDao.java new file mode 100644 index 0000000000..d3ba7a1a5f --- /dev/null +++ b/epmet-user/epmet-user-server/src/main/java/com/epmet/dao/IcResiContractInfoDao.java @@ -0,0 +1,16 @@ +package com.epmet.dao; + +import com.epmet.commons.mybatis.dao.BaseDao; +import com.epmet.entity.IcResiContractInfoEntity; +import org.apache.ibatis.annotations.Mapper; + +/** + * 居民租房信息 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-11-25 + */ +@Mapper +public interface IcResiContractInfoDao extends BaseDao { + +} \ No newline at end of file diff --git a/epmet-user/epmet-user-server/src/main/java/com/epmet/entity/IcResiContractInfoEntity.java b/epmet-user/epmet-user-server/src/main/java/com/epmet/entity/IcResiContractInfoEntity.java new file mode 100644 index 0000000000..23ba9b4086 --- /dev/null +++ b/epmet-user/epmet-user-server/src/main/java/com/epmet/entity/IcResiContractInfoEntity.java @@ -0,0 +1,44 @@ +package com.epmet.entity; + +import com.baomidou.mybatisplus.annotation.TableName; + +import com.epmet.commons.mybatis.entity.BaseEpmetEntity; +import lombok.Data; +import lombok.EqualsAndHashCode; + +import java.util.Date; + +/** + * 居民租房信息 + * + * @author generator generator@elink-cn.com + * @since v1.0.0 2022-11-25 + */ +@Data +@EqualsAndHashCode(callSuper=false) +@TableName("ic_resi_contract_info") +public class IcResiContractInfoEntity extends BaseEpmetEntity { + + private static final long serialVersionUID = 1L; + + /** + * 客户Id customer.id + */ + private String customerId; + + /** + * 主表Id + */ + private String icResiUser; + + /** + * 合同开始日期 + */ + private String contractStartDate; + + /** + * 合同结束日期 + */ + private String contractEndDate; + +} diff --git a/epmet-user/epmet-user-server/src/main/resources/db/migration/V0.0.93__ic_resi_contract_info.sql b/epmet-user/epmet-user-server/src/main/resources/db/migration/V0.0.93__ic_resi_contract_info.sql new file mode 100644 index 0000000000..a021fc908c --- /dev/null +++ b/epmet-user/epmet-user-server/src/main/resources/db/migration/V0.0.93__ic_resi_contract_info.sql @@ -0,0 +1,14 @@ +CREATE TABLE `ic_resi_contract_info` ( + `ID` varchar(64) NOT NULL COMMENT '唯一标识', + `CUSTOMER_ID` varchar(64) NOT NULL COMMENT '客户Id customer.id', + `IC_RESI_USER` varchar(64) NOT NULL COMMENT '主表Id', + `CONTRACT_START_DATE` varchar(32) DEFAULT NULL COMMENT '合同开始日期', + `CONTRACT_END_DATE` varchar(32) DEFAULT NULL COMMENT '合同结束日期', + `DEL_FLAG` int(11) NOT NULL DEFAULT '0' COMMENT '删除标识 0.未删除 1.已删除', + `REVISION` int(11) NOT NULL COMMENT '乐观锁', + `CREATED_BY` varchar(64) NOT NULL COMMENT '创建人', + `CREATED_TIME` datetime NOT NULL COMMENT '创建时间', + `UPDATED_BY` varchar(64) NOT NULL COMMENT '更新人', + `UPDATED_TIME` datetime NOT NULL COMMENT '更新时间', + PRIMARY KEY (`ID`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='居民租房信息'; \ No newline at end of file diff --git a/epmet-user/epmet-user-server/src/main/resources/mapper/IcResiContractInfoDao.xml b/epmet-user/epmet-user-server/src/main/resources/mapper/IcResiContractInfoDao.xml new file mode 100644 index 0000000000..4c3335c445 --- /dev/null +++ b/epmet-user/epmet-user-server/src/main/resources/mapper/IcResiContractInfoDao.xml @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file