18782137998 1 рік тому
батько
коміт
871faf5d8c

+ 14 - 0
src/main/java/com/sckw/freight/config/DataSourceNames.java

@@ -0,0 +1,14 @@
+package com.sckw.freight.config;
+
+/**
+ * @BelongsProject: Freight-Settlement-Backend
+ * @BelongsPackage: com.sckw.freight.config
+ * @Author: xj
+ * @CreateTime: 2025-01-14  08:41
+ * @Description: TODO
+ * @Version: 1.0
+ */
+public   class DataSourceNames {
+    public static final String KLL = "kll";
+    public static final String FREIGHT = "freight";
+}

+ 63 - 0
src/main/java/com/sckw/freight/entity/freight/KwpWalletRelation.java

@@ -0,0 +1,63 @@
+package com.sckw.freight.entity.freight;
+
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.baomidou.mybatisplus.annotation.IdType;
+import java.time.LocalDateTime;
+import com.baomidou.mybatisplus.annotation.TableId;
+import java.io.Serializable;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.experimental.Accessors;
+
+/**
+ * <p>
+ * 企业与中台用户关系表
+ * </p>
+ *
+ * @author xj
+ * @since 2025-01-14
+ */
+@Data
+@EqualsAndHashCode(callSuper = false)
+@Accessors(chain = true)
+@TableName("kwp_wallet_relation")
+public class KwpWalletRelation implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    @TableId(value = "id", type = IdType.AUTO)
+    private Long id;
+
+    /**
+     * 企业id(顶级企业才有线上支付功能)
+     */
+    private Long entId;
+
+    /**
+     * 中台用户id
+     */
+    private String uid;
+
+    /**
+     * 用户状态(0正常、1已锁)
+     */
+    private Integer status;
+
+    private Long createBy;
+
+    private LocalDateTime createTime;
+
+    private Long updateBy;
+
+    /**
+     * 更新时间
+     */
+    private LocalDateTime updateTime;
+
+    /**
+     * 是否删除(0未删除,1删除)
+     */
+    private Integer delFlag;
+
+
+}

+ 18 - 0
src/main/java/com/sckw/freight/mapper/freight/KwpWalletRelationMapper.java

@@ -0,0 +1,18 @@
+package com.sckw.freight.mapper.freight;
+
+import com.baomidou.dynamic.datasource.annotation.DS;
+import com.sckw.freight.entity.freight.KwpWalletRelation;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+ * <p>
+ * 企业与中台用户关系表 Mapper 接口
+ * </p>
+ *
+ * @author xj
+ * @since 2025-01-14
+ */
+@DS("freight")
+public interface KwpWalletRelationMapper extends BaseMapper<KwpWalletRelation> {
+
+}

+ 16 - 0
src/main/java/com/sckw/freight/service/freight/IKwpWalletRelationService.java

@@ -0,0 +1,16 @@
+package com.sckw.freight.service.freight;
+
+import com.sckw.freight.entity.freight.KwpWalletRelation;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ * <p>
+ * 企业与中台用户关系表 服务类
+ * </p>
+ *
+ * @author xj
+ * @since 2025-01-14
+ */
+public interface IKwpWalletRelationService extends IService<KwpWalletRelation> {
+
+}

+ 20 - 0
src/main/java/com/sckw/freight/service/freight/impl/KwpWalletRelationServiceImpl.java

@@ -0,0 +1,20 @@
+package com.sckw.freight.service.freight.impl;
+
+import com.sckw.freight.entity.freight.KwpWalletRelation;
+import com.sckw.freight.mapper.freight.KwpWalletRelationMapper;
+import com.sckw.freight.service.freight.IKwpWalletRelationService;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+
+/**
+ * <p>
+ * 企业与中台用户关系表 服务实现类
+ * </p>
+ *
+ * @author xj
+ * @since 2025-01-14
+ */
+@Service
+public class KwpWalletRelationServiceImpl extends ServiceImpl<KwpWalletRelationMapper, KwpWalletRelation> implements IKwpWalletRelationService {
+
+}

+ 5 - 0
src/main/resources/com/sckw/freight/mapper/freight/KwpWalletRelationMapper.xml

@@ -0,0 +1,5 @@
+<?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.sckw.freight.mapper.freight.KwpWalletRelationMapper">
+
+</mapper>