喜喜代码框架

This commit is contained in:
2026-04-06 08:49:11 +08:00
parent 22af251ae9
commit 09698ad7d0
4 changed files with 185 additions and 0 deletions

View File

@@ -0,0 +1,45 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.rj.mapper.LoveWhoIMapper">
<resultMap id="BaseResultMap" type="com.rj.entity.LoveWhoI">
<id column="id" property="id"/>
<result column="tenant_id" property="tenantId"/>
<result column="my_phone" property="myPhone"/>
<result column="name" property="name"/>
<result column="salutation" property="salutation"/>
<result column="gender" property="gender"/>
<result column="age" property="age"/>
<result column="industry" property="industry"/>
<result column="income_level" property="incomeLevel"/>
<result column="residential_area" property="residentialArea"/>
<result column="personality" property="personality"/>
<result column="hobbies" property="hobbies"/>
<result column="favorite_food" property="favoriteFood"/>
<result column="favorite_movie_genres" property="favoriteMovieGenres"/>
<result column="recent_relationship_note" property="recentRelationshipNote"/>
<result column="education" property="education"/>
<result column="major" property="major"/>
<result column="height_cm" property="heightCm"/>
<result column="weight_kg" property="weightKg"/>
<result column="health_status" property="healthStatus"/>
<result column="self_evaluation" property="selfEvaluation"/>
<result column="father_occupation" property="fatherOccupation"/>
<result column="mother_occupation" property="motherOccupation"/>
<result column="siblings_desc" property="siblingsDesc"/>
<result column="house_situation" property="houseSituation"/>
<result column="car_situation" property="carSituation"/>
<result column="remark" property="remark"/>
<result column="create_time" property="createTime"/>
<result column="update_time" property="updateTime"/>
</resultMap>
<sql id="Base_Column_List">
id, tenant_id, my_phone, name, salutation, gender, age, industry, income_level, residential_area,
personality, hobbies, favorite_food, favorite_movie_genres, recent_relationship_note,
education, major, height_cm, weight_kg, health_status, self_evaluation,
father_occupation, mother_occupation, siblings_desc, house_situation, car_situation,
remark, create_time, update_time
</sql>
</mapper>

View File

@@ -0,0 +1,52 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.rj.mapper.LoveWhoIPairsHopeMapper">
<resultMap id="BaseResultMap" type="com.rj.entity.LoveWhoIPairsHope">
<id column="id" property="id"/>
<result column="related_id" property="relatedId"/>
<result column="tenant_id" property="tenantId"/>
<result column="my_phone" property="myPhone"/>
<result column="name" property="name"/>
<result column="gender" property="gender"/>
<result column="age" property="age"/>
<result column="industry" property="industry"/>
<result column="income_level" property="incomeLevel"/>
<result column="height_cm" property="heightCm"/>
<result column="weight_kg" property="weightKg"/>
<result column="education" property="education"/>
<result column="major" property="major"/>
<result column="house_situation" property="houseSituation"/>
<result column="car_situation" property="carSituation"/>
<result column="father_occupation" property="fatherOccupation"/>
<result column="father_age" property="fatherAge"/>
<result column="mother_occupation" property="motherOccupation"/>
<result column="mother_age" property="motherAge"/>
<result column="loyalty_view" property="loyaltyView"/>
<result column="boundary_view" property="boundaryView"/>
<result column="opposite_sex_friend_view" property="oppositeSexFriendView"/>
<result column="argument_handling" property="argumentHandling"/>
<result column="money_view" property="moneyView"/>
<result column="weekend_habit" property="weekendHabit"/>
<result column="family_atmosphere" property="familyAtmosphere"/>
<result column="exercise" property="exercise"/>
<result column="cares_about" property="caresAbout"/>
<result column="fears" property="fears"/>
<result column="goal_one_year" property="goalOneYear"/>
<result column="dating_pace_view" property="datingPaceView"/>
<result column="smoking" property="smoking"/>
<result column="drinking" property="drinking"/>
<result column="remark" property="remark"/>
<result column="create_time" property="createTime"/>
<result column="update_time" property="updateTime"/>
</resultMap>
<sql id="Base_Column_List">
id, related_id, tenant_id, my_phone, name, gender, age, industry, income_level, height_cm, weight_kg, education, major,
house_situation, car_situation, father_occupation, father_age, mother_occupation, mother_age,
loyalty_view, boundary_view, opposite_sex_friend_view, argument_handling, money_view, weekend_habit,
family_atmosphere, exercise, cares_about, fears, goal_one_year, dating_pace_view, smoking, drinking,
remark, create_time, update_time
</sql>
</mapper>

View File

@@ -0,0 +1,40 @@
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
DROP TABLE IF EXISTS `love_whoI`;
CREATE TABLE `love_whoI` (
`id` char(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '主键UUID',
`tenant_id` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '租户ID',
`my_phone` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '手机号码',
`name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '名字',
`salutation` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '称呼',
`gender` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '性别',
`age` tinyint unsigned NULL DEFAULT NULL COMMENT '年龄',
`industry` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '行业',
`income_level` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '收入水平',
`residential_area` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '居住区域',
`personality` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '性格',
`hobbies` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '兴趣爱好',
`favorite_food` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '喜欢的美食',
`favorite_movie_genres` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '喜欢的电影类型',
`recent_relationship_note` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '最近关系的小事',
`education` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '学历',
`major` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '专业',
`height_cm` smallint unsigned NULL DEFAULT NULL COMMENT '身高(厘米)',
`weight_kg` decimal(5, 2) NULL DEFAULT NULL COMMENT '体重(千克)',
`health_status` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '健康状况',
`self_evaluation` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '对自己的评价',
`father_occupation` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '父亲职业',
`mother_occupation` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '母亲职业',
`siblings_desc` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '兄妹几个(如:独生、一姐一弟等)',
`house_situation` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '房子(有无、贷款等)',
`car_situation` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '车子(有无等)',
`remark` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '备注',
`create_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_time` datetime NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
PRIMARY KEY (`id`) USING BTREE,
KEY `idx_tenant_id` (`tenant_id`) USING BTREE,
KEY `idx_my_phone` (`my_phone`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='个人恋爱/择偶自我介绍画像表' ROW_FORMAT=DYNAMIC;
SET FOREIGN_KEY_CHECKS = 1;

View File

@@ -0,0 +1,48 @@
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
DROP TABLE IF EXISTS `love_whoI_pairs_hope`;
CREATE TABLE `love_whoI_pairs_hope` (
`id` char(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '主键UUID',
`related_id` char(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '关联IDUUID关联外部业务主键',
`tenant_id` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '租户ID',
`my_phone` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '手机号码',
`name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '名字',
`gender` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '性别',
`age` tinyint unsigned NULL DEFAULT NULL COMMENT '年龄',
`industry` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '行业',
`income_level` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '收入水平',
`height_cm` smallint unsigned NULL DEFAULT NULL COMMENT '身高(厘米)',
`weight_kg` decimal(5, 2) NULL DEFAULT NULL COMMENT '体重(千克)',
`education` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '学历',
`major` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '专业',
`house_situation` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '房子(有无、贷款等)',
`car_situation` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '车子(有无等)',
`father_occupation` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '父亲职业',
`father_age` tinyint unsigned NULL DEFAULT NULL COMMENT '父亲年龄',
`mother_occupation` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '母亲职业',
`mother_age` tinyint unsigned NULL DEFAULT NULL COMMENT '母亲年龄',
`loyalty_view` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '对忠诚的看法',
`boundary_view` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '对边界的看法',
`opposite_sex_friend_view` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '对异性朋友的看法',
`argument_handling` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '吵架怎么处理',
`money_view` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '金钱观AA制、不理财等',
`weekend_habit` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '周末怎么过',
`family_atmosphere` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '家庭氛围',
`exercise` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '运动',
`cares_about` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '在意什么',
`fears` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '害怕什么',
`goal_one_year` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '近1年目标',
`dating_pace_view` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '对恋爱节奏的看法',
`smoking` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '抽烟',
`drinking` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '喝酒',
`remark` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '备注',
`create_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_time` datetime NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
PRIMARY KEY (`id`) USING BTREE,
KEY `idx_related_id` (`related_id`) USING BTREE,
KEY `idx_tenant_id` (`tenant_id`) USING BTREE,
KEY `idx_my_phone` (`my_phone`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='择偶/恋爱期望画像表' ROW_FORMAT=DYNAMIC;
SET FOREIGN_KEY_CHECKS = 1;