From 51e97eb6a50528d3972a160d74d547719c3d2dfe Mon Sep 17 00:00:00 2001 From: wen <1455474577@qq.com> Date: Tue, 25 Jan 2022 10:17:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0xhpc=5Fic=5Fcard=5Finfo?= =?UTF-8?q?=E5=AF=B9=E5=BA=94=E7=9A=84mapper=E3=80=81domain?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../xhpc/common/domain/XhpcIcCardInfo.java | 98 ++++++++ .../iccard/mapper/XhpcIcCardInfoMapper.java | 26 +++ .../resources/mapper/XhpcIcCardInfoMapper.xml | 221 ++++++++++++++++++ 3 files changed, 345 insertions(+) create mode 100644 xhpc-modules/xhpc-common/src/main/java/com/xhpc/common/domain/XhpcIcCardInfo.java create mode 100644 xhpc-modules/xhpc-common/src/main/java/com/xhpc/common/iccard/mapper/XhpcIcCardInfoMapper.java create mode 100644 xhpc-modules/xhpc-common/src/resources/mapper/XhpcIcCardInfoMapper.xml diff --git a/xhpc-modules/xhpc-common/src/main/java/com/xhpc/common/domain/XhpcIcCardInfo.java b/xhpc-modules/xhpc-common/src/main/java/com/xhpc/common/domain/XhpcIcCardInfo.java new file mode 100644 index 00000000..6a7df7f0 --- /dev/null +++ b/xhpc-modules/xhpc-common/src/main/java/com/xhpc/common/domain/XhpcIcCardInfo.java @@ -0,0 +1,98 @@ +package com.xhpc.common.domain; + +import lombok.Data; + +import java.io.Serializable; +import java.util.Date; + +/** + * xhpc_ic_card_info + * + * @author WH + */ +@Data +public class XhpcIcCardInfo implements Serializable { + + /** + * 记录id + */ + private Integer id; + + /** + * t_iccard_info表中的卡记录的id + */ + private String tIccardInfoId; + + /** + * 卡使用状态(0未使用,1已绑定) + */ + private Long useStatus; + + /** + * 创建日期 + */ + private Date createTime; + + /** + * 租户id + */ + private String tenantId; + + /** + * 授权运营商id + */ + private String grantOperatorId; + + /** + * 用户id + */ + private Integer userId; + + /** + * 用户账户 + */ + private String userAccount; + + /** + * 用户类型(0 C端用户 1 流量方用户 2社区用户 3B端用户) + */ + private Long userType; + + /** + * 用户姓名 + */ + private String userName; + + /** + * 用户身份证 + */ + private String userIdCard; + + /** + * 用户年龄 + */ + private Long userAge; + + /** + * 用户性别(0女,1男) + */ + private Long userSex; + + /** + * 用户手机号码 + */ + private String userPhone; + + /** + * 用户车牌号码 + */ + private String userVehicle; + + /** + * 逻辑删除字段(默认为0,1为删除) + */ + private Long delFlag; + + private static final long serialVersionUID = 1L; + +} \ No newline at end of file diff --git a/xhpc-modules/xhpc-common/src/main/java/com/xhpc/common/iccard/mapper/XhpcIcCardInfoMapper.java b/xhpc-modules/xhpc-common/src/main/java/com/xhpc/common/iccard/mapper/XhpcIcCardInfoMapper.java new file mode 100644 index 00000000..bb40d739 --- /dev/null +++ b/xhpc-modules/xhpc-common/src/main/java/com/xhpc/common/iccard/mapper/XhpcIcCardInfoMapper.java @@ -0,0 +1,26 @@ +package com.xhpc.common.iccard.mapper; + +import com.xhpc.common.domain.XhpcIcCardInfo; + +/** + * XhpcIcCardInfoMapper + * + * @author WH + * @date 2022/1/25 10:15 + * @since version-1.0 + */ +public interface XhpcIcCardInfoMapper { + + int deleteByPrimaryKey(Integer id); + + int insert(XhpcIcCardInfo record); + + int insertSelective(XhpcIcCardInfo record); + + XhpcIcCardInfo selectByPrimaryKey(Integer id); + + int updateByPrimaryKeySelective(XhpcIcCardInfo record); + + int updateByPrimaryKey(XhpcIcCardInfo record); + +} \ No newline at end of file diff --git a/xhpc-modules/xhpc-common/src/resources/mapper/XhpcIcCardInfoMapper.xml b/xhpc-modules/xhpc-common/src/resources/mapper/XhpcIcCardInfoMapper.xml new file mode 100644 index 00000000..017dd961 --- /dev/null +++ b/xhpc-modules/xhpc-common/src/resources/mapper/XhpcIcCardInfoMapper.xml @@ -0,0 +1,221 @@ + + + + + + + + + + + + + + + + + + + + + + + + id + , t_iccard_info_id, use_status, create_time, tenant_id, grant_operator_id, user_id, + user_account, user_type, user_name, user_id_card, user_age, user_sex, user_phone, + user_vehicle, del_flag + + + + delete + from xhpc_ic_card_info + where id = #{id,jdbcType=INTEGER} + + + insert into xhpc_ic_card_info (t_iccard_info_id, use_status, create_time, + tenant_id, grant_operator_id, user_id, + user_account, user_type, user_name, + user_id_card, user_age, user_sex, + user_phone, user_vehicle, del_flag) + values (#{tIccardInfoId,jdbcType=VARCHAR}, #{useStatus,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP}, + #{tenantId,jdbcType=VARCHAR}, #{grantOperatorId,jdbcType=VARCHAR}, #{userId,jdbcType=INTEGER}, + #{userAccount,jdbcType=VARCHAR}, #{userType,jdbcType=BIGINT}, #{userName,jdbcType=VARCHAR}, + #{userIdCard,jdbcType=VARCHAR}, #{userAge,jdbcType=BIGINT}, #{userSex,jdbcType=BIGINT}, + #{userPhone,jdbcType=VARCHAR}, #{userVehicle,jdbcType=VARCHAR}, #{delFlag,jdbcType=BIGINT}) + + + insert into xhpc_ic_card_info + + + t_iccard_info_id, + + + use_status, + + + create_time, + + + tenant_id, + + + grant_operator_id, + + + user_id, + + + user_account, + + + user_type, + + + user_name, + + + user_id_card, + + + user_age, + + + user_sex, + + + user_phone, + + + user_vehicle, + + + del_flag, + + + + + #{tIccardInfoId,jdbcType=VARCHAR}, + + + #{useStatus,jdbcType=BIGINT}, + + + #{createTime,jdbcType=TIMESTAMP}, + + + #{tenantId,jdbcType=VARCHAR}, + + + #{grantOperatorId,jdbcType=VARCHAR}, + + + #{userId,jdbcType=INTEGER}, + + + #{userAccount,jdbcType=VARCHAR}, + + + #{userType,jdbcType=BIGINT}, + + + #{userName,jdbcType=VARCHAR}, + + + #{userIdCard,jdbcType=VARCHAR}, + + + #{userAge,jdbcType=BIGINT}, + + + #{userSex,jdbcType=BIGINT}, + + + #{userPhone,jdbcType=VARCHAR}, + + + #{userVehicle,jdbcType=VARCHAR}, + + + #{delFlag,jdbcType=BIGINT}, + + + + + update xhpc_ic_card_info + + + t_iccard_info_id = #{tIccardInfoId,jdbcType=VARCHAR}, + + + use_status = #{useStatus,jdbcType=BIGINT}, + + + create_time = #{createTime,jdbcType=TIMESTAMP}, + + + tenant_id = #{tenantId,jdbcType=VARCHAR}, + + + grant_operator_id = #{grantOperatorId,jdbcType=VARCHAR}, + + + user_id = #{userId,jdbcType=INTEGER}, + + + user_account = #{userAccount,jdbcType=VARCHAR}, + + + user_type = #{userType,jdbcType=BIGINT}, + + + user_name = #{userName,jdbcType=VARCHAR}, + + + user_id_card = #{userIdCard,jdbcType=VARCHAR}, + + + user_age = #{userAge,jdbcType=BIGINT}, + + + user_sex = #{userSex,jdbcType=BIGINT}, + + + user_phone = #{userPhone,jdbcType=VARCHAR}, + + + user_vehicle = #{userVehicle,jdbcType=VARCHAR}, + + + del_flag = #{delFlag,jdbcType=BIGINT}, + + + where id = #{id,jdbcType=INTEGER} + + + update xhpc_ic_card_info + set t_iccard_info_id = #{tIccardInfoId,jdbcType=VARCHAR}, + use_status = #{useStatus,jdbcType=BIGINT}, + create_time = #{createTime,jdbcType=TIMESTAMP}, + tenant_id = #{tenantId,jdbcType=VARCHAR}, + grant_operator_id = #{grantOperatorId,jdbcType=VARCHAR}, + user_id = #{userId,jdbcType=INTEGER}, + user_account = #{userAccount,jdbcType=VARCHAR}, + user_type = #{userType,jdbcType=BIGINT}, + user_name = #{userName,jdbcType=VARCHAR}, + user_id_card = #{userIdCard,jdbcType=VARCHAR}, + user_age = #{userAge,jdbcType=BIGINT}, + user_sex = #{userSex,jdbcType=BIGINT}, + user_phone = #{userPhone,jdbcType=VARCHAR}, + user_vehicle = #{userVehicle,jdbcType=VARCHAR}, + del_flag = #{delFlag,jdbcType=BIGINT} + where id = #{id,jdbcType=INTEGER} + + \ No newline at end of file