刘立冬 2 месяцев назад
Родитель
Сommit
b71b97b169

+ 96 - 0
risk-control-core/src/main/java/com/tzld/piaoquan/risk/control/dao/mapper/UserBaseMapper.java

@@ -0,0 +1,96 @@
+package com.tzld.piaoquan.risk.control.dao.mapper;
+
+import com.tzld.piaoquan.risk.control.model.po.UserBase;
+import com.tzld.piaoquan.risk.control.model.po.UserBaseExample;
+import java.util.List;
+import org.apache.ibatis.annotations.Param;
+
+public interface UserBaseMapper {
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table qywx_user_base
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    long countByExample(UserBaseExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table qywx_user_base
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    int deleteByExample(UserBaseExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table qywx_user_base
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    int deleteByPrimaryKey(Long id);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table qywx_user_base
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    int insert(UserBase record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table qywx_user_base
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    int insertSelective(UserBase record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table qywx_user_base
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    List<UserBase> selectByExample(UserBaseExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table qywx_user_base
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    UserBase selectByPrimaryKey(Long id);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table qywx_user_base
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    int updateByExampleSelective(@Param("record") UserBase record, @Param("example") UserBaseExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table qywx_user_base
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    int updateByExample(@Param("record") UserBase record, @Param("example") UserBaseExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table qywx_user_base
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    int updateByPrimaryKeySelective(UserBase record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table qywx_user_base
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    int updateByPrimaryKey(UserBase record);
+}

+ 96 - 0
risk-control-core/src/main/java/com/tzld/piaoquan/risk/control/dao/mapper/UserCorpMapper.java

@@ -0,0 +1,96 @@
+package com.tzld.piaoquan.risk.control.dao.mapper;
+
+import com.tzld.piaoquan.risk.control.model.po.UserCorp;
+import com.tzld.piaoquan.risk.control.model.po.UserCorpExample;
+import java.util.List;
+import org.apache.ibatis.annotations.Param;
+
+public interface UserCorpMapper {
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table qywx_user_corp
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    long countByExample(UserCorpExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table qywx_user_corp
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    int deleteByExample(UserCorpExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table qywx_user_corp
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    int deleteByPrimaryKey(Long id);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table qywx_user_corp
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    int insert(UserCorp record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table qywx_user_corp
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    int insertSelective(UserCorp record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table qywx_user_corp
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    List<UserCorp> selectByExample(UserCorpExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table qywx_user_corp
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    UserCorp selectByPrimaryKey(Long id);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table qywx_user_corp
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    int updateByExampleSelective(@Param("record") UserCorp record, @Param("example") UserCorpExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table qywx_user_corp
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    int updateByExample(@Param("record") UserCorp record, @Param("example") UserCorpExample example);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table qywx_user_corp
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    int updateByPrimaryKeySelective(UserCorp record);
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table qywx_user_corp
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    int updateByPrimaryKey(UserCorp record);
+}

+ 232 - 0
risk-control-core/src/main/java/com/tzld/piaoquan/risk/control/model/po/UserBase.java

@@ -0,0 +1,232 @@
+package com.tzld.piaoquan.risk.control.model.po;
+
+import java.util.Date;
+
+/**
+ *
+ * This class was generated by MyBatis Generator.
+ * This class corresponds to the database table qywx_user_base
+ */
+public class UserBase {
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column qywx_user_base.id
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    private Long id;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column qywx_user_base.uuid
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    private String uuid;
+
+    /**
+     * Database Column Remarks:
+     *   微信绑定手机号
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column qywx_user_base.mobile
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    private String mobile;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column qywx_user_base.realname
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    private String realname;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column qywx_user_base.avatar
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    private String avatar;
+
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column qywx_user_base.create_time
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    private Date createTime;
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column qywx_user_base.id
+     *
+     * @return the value of qywx_user_base.id
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    public Long getId() {
+        return id;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column qywx_user_base.id
+     *
+     * @param id the value for qywx_user_base.id
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    public void setId(Long id) {
+        this.id = id;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column qywx_user_base.uuid
+     *
+     * @return the value of qywx_user_base.uuid
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    public String getUuid() {
+        return uuid;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column qywx_user_base.uuid
+     *
+     * @param uuid the value for qywx_user_base.uuid
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    public void setUuid(String uuid) {
+        this.uuid = uuid;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column qywx_user_base.mobile
+     *
+     * @return the value of qywx_user_base.mobile
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    public String getMobile() {
+        return mobile;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column qywx_user_base.mobile
+     *
+     * @param mobile the value for qywx_user_base.mobile
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    public void setMobile(String mobile) {
+        this.mobile = mobile;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column qywx_user_base.realname
+     *
+     * @return the value of qywx_user_base.realname
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    public String getRealname() {
+        return realname;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column qywx_user_base.realname
+     *
+     * @param realname the value for qywx_user_base.realname
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    public void setRealname(String realname) {
+        this.realname = realname;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column qywx_user_base.avatar
+     *
+     * @return the value of qywx_user_base.avatar
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    public String getAvatar() {
+        return avatar;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column qywx_user_base.avatar
+     *
+     * @param avatar the value for qywx_user_base.avatar
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    public void setAvatar(String avatar) {
+        this.avatar = avatar;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column qywx_user_base.create_time
+     *
+     * @return the value of qywx_user_base.create_time
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    public Date getCreateTime() {
+        return createTime;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column qywx_user_base.create_time
+     *
+     * @param createTime the value for qywx_user_base.create_time
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    public void setCreateTime(Date createTime) {
+        this.createTime = createTime;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table qywx_user_base
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    @Override
+    public String toString() {
+        StringBuilder sb = new StringBuilder();
+        sb.append(getClass().getSimpleName());
+        sb.append(" [");
+        sb.append("Hash = ").append(hashCode());
+        sb.append(", id=").append(id);
+        sb.append(", uuid=").append(uuid);
+        sb.append(", mobile=").append(mobile);
+        sb.append(", realname=").append(realname);
+        sb.append(", avatar=").append(avatar);
+        sb.append(", createTime=").append(createTime);
+        sb.append("]");
+        return sb.toString();
+    }
+}

+ 703 - 0
risk-control-core/src/main/java/com/tzld/piaoquan/risk/control/model/po/UserBaseExample.java

@@ -0,0 +1,703 @@
+package com.tzld.piaoquan.risk.control.model.po;
+
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+
+public class UserBaseExample {
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table qywx_user_base
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    protected String orderByClause;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table qywx_user_base
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    protected boolean distinct;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table qywx_user_base
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    protected List<Criteria> oredCriteria;
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table qywx_user_base
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    public UserBaseExample() {
+        oredCriteria = new ArrayList<Criteria>();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table qywx_user_base
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    public void setOrderByClause(String orderByClause) {
+        this.orderByClause = orderByClause;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table qywx_user_base
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    public String getOrderByClause() {
+        return orderByClause;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table qywx_user_base
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    public void setDistinct(boolean distinct) {
+        this.distinct = distinct;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table qywx_user_base
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    public boolean isDistinct() {
+        return distinct;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table qywx_user_base
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    public List<Criteria> getOredCriteria() {
+        return oredCriteria;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table qywx_user_base
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    public void or(Criteria criteria) {
+        oredCriteria.add(criteria);
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table qywx_user_base
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    public Criteria or() {
+        Criteria criteria = createCriteriaInternal();
+        oredCriteria.add(criteria);
+        return criteria;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table qywx_user_base
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    public Criteria createCriteria() {
+        Criteria criteria = createCriteriaInternal();
+        if (oredCriteria.size() == 0) {
+            oredCriteria.add(criteria);
+        }
+        return criteria;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table qywx_user_base
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    protected Criteria createCriteriaInternal() {
+        Criteria criteria = new Criteria();
+        return criteria;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table qywx_user_base
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    public void clear() {
+        oredCriteria.clear();
+        orderByClause = null;
+        distinct = false;
+    }
+
+    /**
+     * This class was generated by MyBatis Generator.
+     * This class corresponds to the database table qywx_user_base
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    protected abstract static class GeneratedCriteria {
+        protected List<Criterion> criteria;
+
+        protected GeneratedCriteria() {
+            super();
+            criteria = new ArrayList<Criterion>();
+        }
+
+        public boolean isValid() {
+            return criteria.size() > 0;
+        }
+
+        public List<Criterion> getAllCriteria() {
+            return criteria;
+        }
+
+        public List<Criterion> getCriteria() {
+            return criteria;
+        }
+
+        protected void addCriterion(String condition) {
+            if (condition == null) {
+                throw new RuntimeException("Value for condition cannot be null");
+            }
+            criteria.add(new Criterion(condition));
+        }
+
+        protected void addCriterion(String condition, Object value, String property) {
+            if (value == null) {
+                throw new RuntimeException("Value for " + property + " cannot be null");
+            }
+            criteria.add(new Criterion(condition, value));
+        }
+
+        protected void addCriterion(String condition, Object value1, Object value2, String property) {
+            if (value1 == null || value2 == null) {
+                throw new RuntimeException("Between values for " + property + " cannot be null");
+            }
+            criteria.add(new Criterion(condition, value1, value2));
+        }
+
+        public Criteria andIdIsNull() {
+            addCriterion("id is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdIsNotNull() {
+            addCriterion("id is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdEqualTo(Long value) {
+            addCriterion("id =", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdNotEqualTo(Long value) {
+            addCriterion("id <>", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdGreaterThan(Long value) {
+            addCriterion("id >", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdGreaterThanOrEqualTo(Long value) {
+            addCriterion("id >=", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdLessThan(Long value) {
+            addCriterion("id <", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdLessThanOrEqualTo(Long value) {
+            addCriterion("id <=", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdIn(List<Long> values) {
+            addCriterion("id in", values, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdNotIn(List<Long> values) {
+            addCriterion("id not in", values, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdBetween(Long value1, Long value2) {
+            addCriterion("id between", value1, value2, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdNotBetween(Long value1, Long value2) {
+            addCriterion("id not between", value1, value2, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andUuidIsNull() {
+            addCriterion("uuid is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andUuidIsNotNull() {
+            addCriterion("uuid is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andUuidEqualTo(String value) {
+            addCriterion("uuid =", value, "uuid");
+            return (Criteria) this;
+        }
+
+        public Criteria andUuidNotEqualTo(String value) {
+            addCriterion("uuid <>", value, "uuid");
+            return (Criteria) this;
+        }
+
+        public Criteria andUuidGreaterThan(String value) {
+            addCriterion("uuid >", value, "uuid");
+            return (Criteria) this;
+        }
+
+        public Criteria andUuidGreaterThanOrEqualTo(String value) {
+            addCriterion("uuid >=", value, "uuid");
+            return (Criteria) this;
+        }
+
+        public Criteria andUuidLessThan(String value) {
+            addCriterion("uuid <", value, "uuid");
+            return (Criteria) this;
+        }
+
+        public Criteria andUuidLessThanOrEqualTo(String value) {
+            addCriterion("uuid <=", value, "uuid");
+            return (Criteria) this;
+        }
+
+        public Criteria andUuidLike(String value) {
+            addCriterion("uuid like", value, "uuid");
+            return (Criteria) this;
+        }
+
+        public Criteria andUuidNotLike(String value) {
+            addCriterion("uuid not like", value, "uuid");
+            return (Criteria) this;
+        }
+
+        public Criteria andUuidIn(List<String> values) {
+            addCriterion("uuid in", values, "uuid");
+            return (Criteria) this;
+        }
+
+        public Criteria andUuidNotIn(List<String> values) {
+            addCriterion("uuid not in", values, "uuid");
+            return (Criteria) this;
+        }
+
+        public Criteria andUuidBetween(String value1, String value2) {
+            addCriterion("uuid between", value1, value2, "uuid");
+            return (Criteria) this;
+        }
+
+        public Criteria andUuidNotBetween(String value1, String value2) {
+            addCriterion("uuid not between", value1, value2, "uuid");
+            return (Criteria) this;
+        }
+
+        public Criteria andMobileIsNull() {
+            addCriterion("mobile is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andMobileIsNotNull() {
+            addCriterion("mobile is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andMobileEqualTo(String value) {
+            addCriterion("mobile =", value, "mobile");
+            return (Criteria) this;
+        }
+
+        public Criteria andMobileNotEqualTo(String value) {
+            addCriterion("mobile <>", value, "mobile");
+            return (Criteria) this;
+        }
+
+        public Criteria andMobileGreaterThan(String value) {
+            addCriterion("mobile >", value, "mobile");
+            return (Criteria) this;
+        }
+
+        public Criteria andMobileGreaterThanOrEqualTo(String value) {
+            addCriterion("mobile >=", value, "mobile");
+            return (Criteria) this;
+        }
+
+        public Criteria andMobileLessThan(String value) {
+            addCriterion("mobile <", value, "mobile");
+            return (Criteria) this;
+        }
+
+        public Criteria andMobileLessThanOrEqualTo(String value) {
+            addCriterion("mobile <=", value, "mobile");
+            return (Criteria) this;
+        }
+
+        public Criteria andMobileLike(String value) {
+            addCriterion("mobile like", value, "mobile");
+            return (Criteria) this;
+        }
+
+        public Criteria andMobileNotLike(String value) {
+            addCriterion("mobile not like", value, "mobile");
+            return (Criteria) this;
+        }
+
+        public Criteria andMobileIn(List<String> values) {
+            addCriterion("mobile in", values, "mobile");
+            return (Criteria) this;
+        }
+
+        public Criteria andMobileNotIn(List<String> values) {
+            addCriterion("mobile not in", values, "mobile");
+            return (Criteria) this;
+        }
+
+        public Criteria andMobileBetween(String value1, String value2) {
+            addCriterion("mobile between", value1, value2, "mobile");
+            return (Criteria) this;
+        }
+
+        public Criteria andMobileNotBetween(String value1, String value2) {
+            addCriterion("mobile not between", value1, value2, "mobile");
+            return (Criteria) this;
+        }
+
+        public Criteria andRealnameIsNull() {
+            addCriterion("realname is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andRealnameIsNotNull() {
+            addCriterion("realname is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andRealnameEqualTo(String value) {
+            addCriterion("realname =", value, "realname");
+            return (Criteria) this;
+        }
+
+        public Criteria andRealnameNotEqualTo(String value) {
+            addCriterion("realname <>", value, "realname");
+            return (Criteria) this;
+        }
+
+        public Criteria andRealnameGreaterThan(String value) {
+            addCriterion("realname >", value, "realname");
+            return (Criteria) this;
+        }
+
+        public Criteria andRealnameGreaterThanOrEqualTo(String value) {
+            addCriterion("realname >=", value, "realname");
+            return (Criteria) this;
+        }
+
+        public Criteria andRealnameLessThan(String value) {
+            addCriterion("realname <", value, "realname");
+            return (Criteria) this;
+        }
+
+        public Criteria andRealnameLessThanOrEqualTo(String value) {
+            addCriterion("realname <=", value, "realname");
+            return (Criteria) this;
+        }
+
+        public Criteria andRealnameLike(String value) {
+            addCriterion("realname like", value, "realname");
+            return (Criteria) this;
+        }
+
+        public Criteria andRealnameNotLike(String value) {
+            addCriterion("realname not like", value, "realname");
+            return (Criteria) this;
+        }
+
+        public Criteria andRealnameIn(List<String> values) {
+            addCriterion("realname in", values, "realname");
+            return (Criteria) this;
+        }
+
+        public Criteria andRealnameNotIn(List<String> values) {
+            addCriterion("realname not in", values, "realname");
+            return (Criteria) this;
+        }
+
+        public Criteria andRealnameBetween(String value1, String value2) {
+            addCriterion("realname between", value1, value2, "realname");
+            return (Criteria) this;
+        }
+
+        public Criteria andRealnameNotBetween(String value1, String value2) {
+            addCriterion("realname not between", value1, value2, "realname");
+            return (Criteria) this;
+        }
+
+        public Criteria andAvatarIsNull() {
+            addCriterion("avatar is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andAvatarIsNotNull() {
+            addCriterion("avatar is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andAvatarEqualTo(String value) {
+            addCriterion("avatar =", value, "avatar");
+            return (Criteria) this;
+        }
+
+        public Criteria andAvatarNotEqualTo(String value) {
+            addCriterion("avatar <>", value, "avatar");
+            return (Criteria) this;
+        }
+
+        public Criteria andAvatarGreaterThan(String value) {
+            addCriterion("avatar >", value, "avatar");
+            return (Criteria) this;
+        }
+
+        public Criteria andAvatarGreaterThanOrEqualTo(String value) {
+            addCriterion("avatar >=", value, "avatar");
+            return (Criteria) this;
+        }
+
+        public Criteria andAvatarLessThan(String value) {
+            addCriterion("avatar <", value, "avatar");
+            return (Criteria) this;
+        }
+
+        public Criteria andAvatarLessThanOrEqualTo(String value) {
+            addCriterion("avatar <=", value, "avatar");
+            return (Criteria) this;
+        }
+
+        public Criteria andAvatarLike(String value) {
+            addCriterion("avatar like", value, "avatar");
+            return (Criteria) this;
+        }
+
+        public Criteria andAvatarNotLike(String value) {
+            addCriterion("avatar not like", value, "avatar");
+            return (Criteria) this;
+        }
+
+        public Criteria andAvatarIn(List<String> values) {
+            addCriterion("avatar in", values, "avatar");
+            return (Criteria) this;
+        }
+
+        public Criteria andAvatarNotIn(List<String> values) {
+            addCriterion("avatar not in", values, "avatar");
+            return (Criteria) this;
+        }
+
+        public Criteria andAvatarBetween(String value1, String value2) {
+            addCriterion("avatar between", value1, value2, "avatar");
+            return (Criteria) this;
+        }
+
+        public Criteria andAvatarNotBetween(String value1, String value2) {
+            addCriterion("avatar not between", value1, value2, "avatar");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeIsNull() {
+            addCriterion("create_time is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeIsNotNull() {
+            addCriterion("create_time is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeEqualTo(Date value) {
+            addCriterion("create_time =", value, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeNotEqualTo(Date value) {
+            addCriterion("create_time <>", value, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeGreaterThan(Date value) {
+            addCriterion("create_time >", value, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
+            addCriterion("create_time >=", value, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeLessThan(Date value) {
+            addCriterion("create_time <", value, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
+            addCriterion("create_time <=", value, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeIn(List<Date> values) {
+            addCriterion("create_time in", values, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeNotIn(List<Date> values) {
+            addCriterion("create_time not in", values, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeBetween(Date value1, Date value2) {
+            addCriterion("create_time between", value1, value2, "createTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
+            addCriterion("create_time not between", value1, value2, "createTime");
+            return (Criteria) this;
+        }
+    }
+
+    /**
+     * This class was generated by MyBatis Generator.
+     * This class corresponds to the database table qywx_user_base
+     *
+     * @mbg.generated do_not_delete_during_merge Wed May 14 01:08:39 CST 2025
+     */
+    public static class Criteria extends GeneratedCriteria {
+
+        protected Criteria() {
+            super();
+        }
+    }
+
+    /**
+     * This class was generated by MyBatis Generator.
+     * This class corresponds to the database table qywx_user_base
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    public static class Criterion {
+        private String condition;
+
+        private Object value;
+
+        private Object secondValue;
+
+        private boolean noValue;
+
+        private boolean singleValue;
+
+        private boolean betweenValue;
+
+        private boolean listValue;
+
+        private String typeHandler;
+
+        public String getCondition() {
+            return condition;
+        }
+
+        public Object getValue() {
+            return value;
+        }
+
+        public Object getSecondValue() {
+            return secondValue;
+        }
+
+        public boolean isNoValue() {
+            return noValue;
+        }
+
+        public boolean isSingleValue() {
+            return singleValue;
+        }
+
+        public boolean isBetweenValue() {
+            return betweenValue;
+        }
+
+        public boolean isListValue() {
+            return listValue;
+        }
+
+        public String getTypeHandler() {
+            return typeHandler;
+        }
+
+        protected Criterion(String condition) {
+            super();
+            this.condition = condition;
+            this.typeHandler = null;
+            this.noValue = true;
+        }
+
+        protected Criterion(String condition, Object value, String typeHandler) {
+            super();
+            this.condition = condition;
+            this.value = value;
+            this.typeHandler = typeHandler;
+            if (value instanceof List<?>) {
+                this.listValue = true;
+            } else {
+                this.singleValue = true;
+            }
+        }
+
+        protected Criterion(String condition, Object value) {
+            this(condition, value, null);
+        }
+
+        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
+            super();
+            this.condition = condition;
+            this.value = value;
+            this.secondValue = secondValue;
+            this.typeHandler = typeHandler;
+            this.betweenValue = true;
+        }
+
+        protected Criterion(String condition, Object value, Object secondValue) {
+            this(condition, value, secondValue, null);
+        }
+    }
+}

+ 384 - 0
risk-control-core/src/main/java/com/tzld/piaoquan/risk/control/model/po/UserCorp.java

@@ -0,0 +1,384 @@
+package com.tzld.piaoquan.risk.control.model.po;
+
+import java.util.Date;
+
+/**
+ *
+ * This class was generated by MyBatis Generator.
+ * This class corresponds to the database table qywx_user_corp
+ */
+public class UserCorp {
+    /**
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column qywx_user_corp.id
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    private Long id;
+
+    /**
+     * Database Column Remarks:
+     *   关联用户ID
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column qywx_user_corp.user_id
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    private Long userId;
+
+    /**
+     * Database Column Remarks:
+     *   企业ID
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column qywx_user_corp.corp_id
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    private Long corpId;
+
+    /**
+     * Database Column Remarks:
+     *   在该企业的unionid
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column qywx_user_corp.unionid
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    private String unionid;
+
+    /**
+     * Database Column Remarks:
+     *   在该企业的账号ID
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column qywx_user_corp.acctid
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    private String acctid;
+
+    /**
+     * Database Column Remarks:
+     *   职位
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column qywx_user_corp.position
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    private String position;
+
+    /**
+     * Database Column Remarks:
+     *   英文名
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column qywx_user_corp.english_name
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    private String englishName;
+
+    /**
+     * Database Column Remarks:
+     *   企业名称
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column qywx_user_corp.corp_name
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    private String corpName;
+
+    /**
+     * Database Column Remarks:
+     *   登录状态(0-未登录 1-已登录)
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column qywx_user_corp.login_status
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    private Boolean loginStatus;
+
+    /**
+     * Database Column Remarks:
+     *   更新时间
+     *
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database column qywx_user_corp.update_time
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    private Date updateTime;
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column qywx_user_corp.id
+     *
+     * @return the value of qywx_user_corp.id
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    public Long getId() {
+        return id;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column qywx_user_corp.id
+     *
+     * @param id the value for qywx_user_corp.id
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    public void setId(Long id) {
+        this.id = id;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column qywx_user_corp.user_id
+     *
+     * @return the value of qywx_user_corp.user_id
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    public Long getUserId() {
+        return userId;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column qywx_user_corp.user_id
+     *
+     * @param userId the value for qywx_user_corp.user_id
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    public void setUserId(Long userId) {
+        this.userId = userId;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column qywx_user_corp.corp_id
+     *
+     * @return the value of qywx_user_corp.corp_id
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    public Long getCorpId() {
+        return corpId;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column qywx_user_corp.corp_id
+     *
+     * @param corpId the value for qywx_user_corp.corp_id
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    public void setCorpId(Long corpId) {
+        this.corpId = corpId;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column qywx_user_corp.unionid
+     *
+     * @return the value of qywx_user_corp.unionid
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    public String getUnionid() {
+        return unionid;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column qywx_user_corp.unionid
+     *
+     * @param unionid the value for qywx_user_corp.unionid
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    public void setUnionid(String unionid) {
+        this.unionid = unionid;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column qywx_user_corp.acctid
+     *
+     * @return the value of qywx_user_corp.acctid
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    public String getAcctid() {
+        return acctid;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column qywx_user_corp.acctid
+     *
+     * @param acctid the value for qywx_user_corp.acctid
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    public void setAcctid(String acctid) {
+        this.acctid = acctid;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column qywx_user_corp.position
+     *
+     * @return the value of qywx_user_corp.position
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    public String getPosition() {
+        return position;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column qywx_user_corp.position
+     *
+     * @param position the value for qywx_user_corp.position
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    public void setPosition(String position) {
+        this.position = position;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column qywx_user_corp.english_name
+     *
+     * @return the value of qywx_user_corp.english_name
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    public String getEnglishName() {
+        return englishName;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column qywx_user_corp.english_name
+     *
+     * @param englishName the value for qywx_user_corp.english_name
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    public void setEnglishName(String englishName) {
+        this.englishName = englishName;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column qywx_user_corp.corp_name
+     *
+     * @return the value of qywx_user_corp.corp_name
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    public String getCorpName() {
+        return corpName;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column qywx_user_corp.corp_name
+     *
+     * @param corpName the value for qywx_user_corp.corp_name
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    public void setCorpName(String corpName) {
+        this.corpName = corpName;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column qywx_user_corp.login_status
+     *
+     * @return the value of qywx_user_corp.login_status
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    public Boolean getLoginStatus() {
+        return loginStatus;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column qywx_user_corp.login_status
+     *
+     * @param loginStatus the value for qywx_user_corp.login_status
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    public void setLoginStatus(Boolean loginStatus) {
+        this.loginStatus = loginStatus;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method returns the value of the database column qywx_user_corp.update_time
+     *
+     * @return the value of qywx_user_corp.update_time
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    public Date getUpdateTime() {
+        return updateTime;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method sets the value of the database column qywx_user_corp.update_time
+     *
+     * @param updateTime the value for qywx_user_corp.update_time
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    public void setUpdateTime(Date updateTime) {
+        this.updateTime = updateTime;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table qywx_user_corp
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    @Override
+    public String toString() {
+        StringBuilder sb = new StringBuilder();
+        sb.append(getClass().getSimpleName());
+        sb.append(" [");
+        sb.append("Hash = ").append(hashCode());
+        sb.append(", id=").append(id);
+        sb.append(", userId=").append(userId);
+        sb.append(", corpId=").append(corpId);
+        sb.append(", unionid=").append(unionid);
+        sb.append(", acctid=").append(acctid);
+        sb.append(", position=").append(position);
+        sb.append(", englishName=").append(englishName);
+        sb.append(", corpName=").append(corpName);
+        sb.append(", loginStatus=").append(loginStatus);
+        sb.append(", updateTime=").append(updateTime);
+        sb.append("]");
+        return sb.toString();
+    }
+}

+ 953 - 0
risk-control-core/src/main/java/com/tzld/piaoquan/risk/control/model/po/UserCorpExample.java

@@ -0,0 +1,953 @@
+package com.tzld.piaoquan.risk.control.model.po;
+
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+
+public class UserCorpExample {
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table qywx_user_corp
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    protected String orderByClause;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table qywx_user_corp
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    protected boolean distinct;
+
+    /**
+     * This field was generated by MyBatis Generator.
+     * This field corresponds to the database table qywx_user_corp
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    protected List<Criteria> oredCriteria;
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table qywx_user_corp
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    public UserCorpExample() {
+        oredCriteria = new ArrayList<Criteria>();
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table qywx_user_corp
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    public void setOrderByClause(String orderByClause) {
+        this.orderByClause = orderByClause;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table qywx_user_corp
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    public String getOrderByClause() {
+        return orderByClause;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table qywx_user_corp
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    public void setDistinct(boolean distinct) {
+        this.distinct = distinct;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table qywx_user_corp
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    public boolean isDistinct() {
+        return distinct;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table qywx_user_corp
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    public List<Criteria> getOredCriteria() {
+        return oredCriteria;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table qywx_user_corp
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    public void or(Criteria criteria) {
+        oredCriteria.add(criteria);
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table qywx_user_corp
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    public Criteria or() {
+        Criteria criteria = createCriteriaInternal();
+        oredCriteria.add(criteria);
+        return criteria;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table qywx_user_corp
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    public Criteria createCriteria() {
+        Criteria criteria = createCriteriaInternal();
+        if (oredCriteria.size() == 0) {
+            oredCriteria.add(criteria);
+        }
+        return criteria;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table qywx_user_corp
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    protected Criteria createCriteriaInternal() {
+        Criteria criteria = new Criteria();
+        return criteria;
+    }
+
+    /**
+     * This method was generated by MyBatis Generator.
+     * This method corresponds to the database table qywx_user_corp
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    public void clear() {
+        oredCriteria.clear();
+        orderByClause = null;
+        distinct = false;
+    }
+
+    /**
+     * This class was generated by MyBatis Generator.
+     * This class corresponds to the database table qywx_user_corp
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    protected abstract static class GeneratedCriteria {
+        protected List<Criterion> criteria;
+
+        protected GeneratedCriteria() {
+            super();
+            criteria = new ArrayList<Criterion>();
+        }
+
+        public boolean isValid() {
+            return criteria.size() > 0;
+        }
+
+        public List<Criterion> getAllCriteria() {
+            return criteria;
+        }
+
+        public List<Criterion> getCriteria() {
+            return criteria;
+        }
+
+        protected void addCriterion(String condition) {
+            if (condition == null) {
+                throw new RuntimeException("Value for condition cannot be null");
+            }
+            criteria.add(new Criterion(condition));
+        }
+
+        protected void addCriterion(String condition, Object value, String property) {
+            if (value == null) {
+                throw new RuntimeException("Value for " + property + " cannot be null");
+            }
+            criteria.add(new Criterion(condition, value));
+        }
+
+        protected void addCriterion(String condition, Object value1, Object value2, String property) {
+            if (value1 == null || value2 == null) {
+                throw new RuntimeException("Between values for " + property + " cannot be null");
+            }
+            criteria.add(new Criterion(condition, value1, value2));
+        }
+
+        public Criteria andIdIsNull() {
+            addCriterion("id is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdIsNotNull() {
+            addCriterion("id is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdEqualTo(Long value) {
+            addCriterion("id =", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdNotEqualTo(Long value) {
+            addCriterion("id <>", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdGreaterThan(Long value) {
+            addCriterion("id >", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdGreaterThanOrEqualTo(Long value) {
+            addCriterion("id >=", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdLessThan(Long value) {
+            addCriterion("id <", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdLessThanOrEqualTo(Long value) {
+            addCriterion("id <=", value, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdIn(List<Long> values) {
+            addCriterion("id in", values, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdNotIn(List<Long> values) {
+            addCriterion("id not in", values, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdBetween(Long value1, Long value2) {
+            addCriterion("id between", value1, value2, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andIdNotBetween(Long value1, Long value2) {
+            addCriterion("id not between", value1, value2, "id");
+            return (Criteria) this;
+        }
+
+        public Criteria andUserIdIsNull() {
+            addCriterion("user_id is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andUserIdIsNotNull() {
+            addCriterion("user_id is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andUserIdEqualTo(Long value) {
+            addCriterion("user_id =", value, "userId");
+            return (Criteria) this;
+        }
+
+        public Criteria andUserIdNotEqualTo(Long value) {
+            addCriterion("user_id <>", value, "userId");
+            return (Criteria) this;
+        }
+
+        public Criteria andUserIdGreaterThan(Long value) {
+            addCriterion("user_id >", value, "userId");
+            return (Criteria) this;
+        }
+
+        public Criteria andUserIdGreaterThanOrEqualTo(Long value) {
+            addCriterion("user_id >=", value, "userId");
+            return (Criteria) this;
+        }
+
+        public Criteria andUserIdLessThan(Long value) {
+            addCriterion("user_id <", value, "userId");
+            return (Criteria) this;
+        }
+
+        public Criteria andUserIdLessThanOrEqualTo(Long value) {
+            addCriterion("user_id <=", value, "userId");
+            return (Criteria) this;
+        }
+
+        public Criteria andUserIdIn(List<Long> values) {
+            addCriterion("user_id in", values, "userId");
+            return (Criteria) this;
+        }
+
+        public Criteria andUserIdNotIn(List<Long> values) {
+            addCriterion("user_id not in", values, "userId");
+            return (Criteria) this;
+        }
+
+        public Criteria andUserIdBetween(Long value1, Long value2) {
+            addCriterion("user_id between", value1, value2, "userId");
+            return (Criteria) this;
+        }
+
+        public Criteria andUserIdNotBetween(Long value1, Long value2) {
+            addCriterion("user_id not between", value1, value2, "userId");
+            return (Criteria) this;
+        }
+
+        public Criteria andCorpIdIsNull() {
+            addCriterion("corp_id is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andCorpIdIsNotNull() {
+            addCriterion("corp_id is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andCorpIdEqualTo(Long value) {
+            addCriterion("corp_id =", value, "corpId");
+            return (Criteria) this;
+        }
+
+        public Criteria andCorpIdNotEqualTo(Long value) {
+            addCriterion("corp_id <>", value, "corpId");
+            return (Criteria) this;
+        }
+
+        public Criteria andCorpIdGreaterThan(Long value) {
+            addCriterion("corp_id >", value, "corpId");
+            return (Criteria) this;
+        }
+
+        public Criteria andCorpIdGreaterThanOrEqualTo(Long value) {
+            addCriterion("corp_id >=", value, "corpId");
+            return (Criteria) this;
+        }
+
+        public Criteria andCorpIdLessThan(Long value) {
+            addCriterion("corp_id <", value, "corpId");
+            return (Criteria) this;
+        }
+
+        public Criteria andCorpIdLessThanOrEqualTo(Long value) {
+            addCriterion("corp_id <=", value, "corpId");
+            return (Criteria) this;
+        }
+
+        public Criteria andCorpIdIn(List<Long> values) {
+            addCriterion("corp_id in", values, "corpId");
+            return (Criteria) this;
+        }
+
+        public Criteria andCorpIdNotIn(List<Long> values) {
+            addCriterion("corp_id not in", values, "corpId");
+            return (Criteria) this;
+        }
+
+        public Criteria andCorpIdBetween(Long value1, Long value2) {
+            addCriterion("corp_id between", value1, value2, "corpId");
+            return (Criteria) this;
+        }
+
+        public Criteria andCorpIdNotBetween(Long value1, Long value2) {
+            addCriterion("corp_id not between", value1, value2, "corpId");
+            return (Criteria) this;
+        }
+
+        public Criteria andUnionidIsNull() {
+            addCriterion("unionid is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andUnionidIsNotNull() {
+            addCriterion("unionid is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andUnionidEqualTo(String value) {
+            addCriterion("unionid =", value, "unionid");
+            return (Criteria) this;
+        }
+
+        public Criteria andUnionidNotEqualTo(String value) {
+            addCriterion("unionid <>", value, "unionid");
+            return (Criteria) this;
+        }
+
+        public Criteria andUnionidGreaterThan(String value) {
+            addCriterion("unionid >", value, "unionid");
+            return (Criteria) this;
+        }
+
+        public Criteria andUnionidGreaterThanOrEqualTo(String value) {
+            addCriterion("unionid >=", value, "unionid");
+            return (Criteria) this;
+        }
+
+        public Criteria andUnionidLessThan(String value) {
+            addCriterion("unionid <", value, "unionid");
+            return (Criteria) this;
+        }
+
+        public Criteria andUnionidLessThanOrEqualTo(String value) {
+            addCriterion("unionid <=", value, "unionid");
+            return (Criteria) this;
+        }
+
+        public Criteria andUnionidLike(String value) {
+            addCriterion("unionid like", value, "unionid");
+            return (Criteria) this;
+        }
+
+        public Criteria andUnionidNotLike(String value) {
+            addCriterion("unionid not like", value, "unionid");
+            return (Criteria) this;
+        }
+
+        public Criteria andUnionidIn(List<String> values) {
+            addCriterion("unionid in", values, "unionid");
+            return (Criteria) this;
+        }
+
+        public Criteria andUnionidNotIn(List<String> values) {
+            addCriterion("unionid not in", values, "unionid");
+            return (Criteria) this;
+        }
+
+        public Criteria andUnionidBetween(String value1, String value2) {
+            addCriterion("unionid between", value1, value2, "unionid");
+            return (Criteria) this;
+        }
+
+        public Criteria andUnionidNotBetween(String value1, String value2) {
+            addCriterion("unionid not between", value1, value2, "unionid");
+            return (Criteria) this;
+        }
+
+        public Criteria andAcctidIsNull() {
+            addCriterion("acctid is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andAcctidIsNotNull() {
+            addCriterion("acctid is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andAcctidEqualTo(String value) {
+            addCriterion("acctid =", value, "acctid");
+            return (Criteria) this;
+        }
+
+        public Criteria andAcctidNotEqualTo(String value) {
+            addCriterion("acctid <>", value, "acctid");
+            return (Criteria) this;
+        }
+
+        public Criteria andAcctidGreaterThan(String value) {
+            addCriterion("acctid >", value, "acctid");
+            return (Criteria) this;
+        }
+
+        public Criteria andAcctidGreaterThanOrEqualTo(String value) {
+            addCriterion("acctid >=", value, "acctid");
+            return (Criteria) this;
+        }
+
+        public Criteria andAcctidLessThan(String value) {
+            addCriterion("acctid <", value, "acctid");
+            return (Criteria) this;
+        }
+
+        public Criteria andAcctidLessThanOrEqualTo(String value) {
+            addCriterion("acctid <=", value, "acctid");
+            return (Criteria) this;
+        }
+
+        public Criteria andAcctidLike(String value) {
+            addCriterion("acctid like", value, "acctid");
+            return (Criteria) this;
+        }
+
+        public Criteria andAcctidNotLike(String value) {
+            addCriterion("acctid not like", value, "acctid");
+            return (Criteria) this;
+        }
+
+        public Criteria andAcctidIn(List<String> values) {
+            addCriterion("acctid in", values, "acctid");
+            return (Criteria) this;
+        }
+
+        public Criteria andAcctidNotIn(List<String> values) {
+            addCriterion("acctid not in", values, "acctid");
+            return (Criteria) this;
+        }
+
+        public Criteria andAcctidBetween(String value1, String value2) {
+            addCriterion("acctid between", value1, value2, "acctid");
+            return (Criteria) this;
+        }
+
+        public Criteria andAcctidNotBetween(String value1, String value2) {
+            addCriterion("acctid not between", value1, value2, "acctid");
+            return (Criteria) this;
+        }
+
+        public Criteria andPositionIsNull() {
+            addCriterion("`position` is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPositionIsNotNull() {
+            addCriterion("`position` is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andPositionEqualTo(String value) {
+            addCriterion("`position` =", value, "position");
+            return (Criteria) this;
+        }
+
+        public Criteria andPositionNotEqualTo(String value) {
+            addCriterion("`position` <>", value, "position");
+            return (Criteria) this;
+        }
+
+        public Criteria andPositionGreaterThan(String value) {
+            addCriterion("`position` >", value, "position");
+            return (Criteria) this;
+        }
+
+        public Criteria andPositionGreaterThanOrEqualTo(String value) {
+            addCriterion("`position` >=", value, "position");
+            return (Criteria) this;
+        }
+
+        public Criteria andPositionLessThan(String value) {
+            addCriterion("`position` <", value, "position");
+            return (Criteria) this;
+        }
+
+        public Criteria andPositionLessThanOrEqualTo(String value) {
+            addCriterion("`position` <=", value, "position");
+            return (Criteria) this;
+        }
+
+        public Criteria andPositionLike(String value) {
+            addCriterion("`position` like", value, "position");
+            return (Criteria) this;
+        }
+
+        public Criteria andPositionNotLike(String value) {
+            addCriterion("`position` not like", value, "position");
+            return (Criteria) this;
+        }
+
+        public Criteria andPositionIn(List<String> values) {
+            addCriterion("`position` in", values, "position");
+            return (Criteria) this;
+        }
+
+        public Criteria andPositionNotIn(List<String> values) {
+            addCriterion("`position` not in", values, "position");
+            return (Criteria) this;
+        }
+
+        public Criteria andPositionBetween(String value1, String value2) {
+            addCriterion("`position` between", value1, value2, "position");
+            return (Criteria) this;
+        }
+
+        public Criteria andPositionNotBetween(String value1, String value2) {
+            addCriterion("`position` not between", value1, value2, "position");
+            return (Criteria) this;
+        }
+
+        public Criteria andEnglishNameIsNull() {
+            addCriterion("english_name is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andEnglishNameIsNotNull() {
+            addCriterion("english_name is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andEnglishNameEqualTo(String value) {
+            addCriterion("english_name =", value, "englishName");
+            return (Criteria) this;
+        }
+
+        public Criteria andEnglishNameNotEqualTo(String value) {
+            addCriterion("english_name <>", value, "englishName");
+            return (Criteria) this;
+        }
+
+        public Criteria andEnglishNameGreaterThan(String value) {
+            addCriterion("english_name >", value, "englishName");
+            return (Criteria) this;
+        }
+
+        public Criteria andEnglishNameGreaterThanOrEqualTo(String value) {
+            addCriterion("english_name >=", value, "englishName");
+            return (Criteria) this;
+        }
+
+        public Criteria andEnglishNameLessThan(String value) {
+            addCriterion("english_name <", value, "englishName");
+            return (Criteria) this;
+        }
+
+        public Criteria andEnglishNameLessThanOrEqualTo(String value) {
+            addCriterion("english_name <=", value, "englishName");
+            return (Criteria) this;
+        }
+
+        public Criteria andEnglishNameLike(String value) {
+            addCriterion("english_name like", value, "englishName");
+            return (Criteria) this;
+        }
+
+        public Criteria andEnglishNameNotLike(String value) {
+            addCriterion("english_name not like", value, "englishName");
+            return (Criteria) this;
+        }
+
+        public Criteria andEnglishNameIn(List<String> values) {
+            addCriterion("english_name in", values, "englishName");
+            return (Criteria) this;
+        }
+
+        public Criteria andEnglishNameNotIn(List<String> values) {
+            addCriterion("english_name not in", values, "englishName");
+            return (Criteria) this;
+        }
+
+        public Criteria andEnglishNameBetween(String value1, String value2) {
+            addCriterion("english_name between", value1, value2, "englishName");
+            return (Criteria) this;
+        }
+
+        public Criteria andEnglishNameNotBetween(String value1, String value2) {
+            addCriterion("english_name not between", value1, value2, "englishName");
+            return (Criteria) this;
+        }
+
+        public Criteria andCorpNameIsNull() {
+            addCriterion("corp_name is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andCorpNameIsNotNull() {
+            addCriterion("corp_name is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andCorpNameEqualTo(String value) {
+            addCriterion("corp_name =", value, "corpName");
+            return (Criteria) this;
+        }
+
+        public Criteria andCorpNameNotEqualTo(String value) {
+            addCriterion("corp_name <>", value, "corpName");
+            return (Criteria) this;
+        }
+
+        public Criteria andCorpNameGreaterThan(String value) {
+            addCriterion("corp_name >", value, "corpName");
+            return (Criteria) this;
+        }
+
+        public Criteria andCorpNameGreaterThanOrEqualTo(String value) {
+            addCriterion("corp_name >=", value, "corpName");
+            return (Criteria) this;
+        }
+
+        public Criteria andCorpNameLessThan(String value) {
+            addCriterion("corp_name <", value, "corpName");
+            return (Criteria) this;
+        }
+
+        public Criteria andCorpNameLessThanOrEqualTo(String value) {
+            addCriterion("corp_name <=", value, "corpName");
+            return (Criteria) this;
+        }
+
+        public Criteria andCorpNameLike(String value) {
+            addCriterion("corp_name like", value, "corpName");
+            return (Criteria) this;
+        }
+
+        public Criteria andCorpNameNotLike(String value) {
+            addCriterion("corp_name not like", value, "corpName");
+            return (Criteria) this;
+        }
+
+        public Criteria andCorpNameIn(List<String> values) {
+            addCriterion("corp_name in", values, "corpName");
+            return (Criteria) this;
+        }
+
+        public Criteria andCorpNameNotIn(List<String> values) {
+            addCriterion("corp_name not in", values, "corpName");
+            return (Criteria) this;
+        }
+
+        public Criteria andCorpNameBetween(String value1, String value2) {
+            addCriterion("corp_name between", value1, value2, "corpName");
+            return (Criteria) this;
+        }
+
+        public Criteria andCorpNameNotBetween(String value1, String value2) {
+            addCriterion("corp_name not between", value1, value2, "corpName");
+            return (Criteria) this;
+        }
+
+        public Criteria andLoginStatusIsNull() {
+            addCriterion("login_status is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andLoginStatusIsNotNull() {
+            addCriterion("login_status is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andLoginStatusEqualTo(Boolean value) {
+            addCriterion("login_status =", value, "loginStatus");
+            return (Criteria) this;
+        }
+
+        public Criteria andLoginStatusNotEqualTo(Boolean value) {
+            addCriterion("login_status <>", value, "loginStatus");
+            return (Criteria) this;
+        }
+
+        public Criteria andLoginStatusGreaterThan(Boolean value) {
+            addCriterion("login_status >", value, "loginStatus");
+            return (Criteria) this;
+        }
+
+        public Criteria andLoginStatusGreaterThanOrEqualTo(Boolean value) {
+            addCriterion("login_status >=", value, "loginStatus");
+            return (Criteria) this;
+        }
+
+        public Criteria andLoginStatusLessThan(Boolean value) {
+            addCriterion("login_status <", value, "loginStatus");
+            return (Criteria) this;
+        }
+
+        public Criteria andLoginStatusLessThanOrEqualTo(Boolean value) {
+            addCriterion("login_status <=", value, "loginStatus");
+            return (Criteria) this;
+        }
+
+        public Criteria andLoginStatusIn(List<Boolean> values) {
+            addCriterion("login_status in", values, "loginStatus");
+            return (Criteria) this;
+        }
+
+        public Criteria andLoginStatusNotIn(List<Boolean> values) {
+            addCriterion("login_status not in", values, "loginStatus");
+            return (Criteria) this;
+        }
+
+        public Criteria andLoginStatusBetween(Boolean value1, Boolean value2) {
+            addCriterion("login_status between", value1, value2, "loginStatus");
+            return (Criteria) this;
+        }
+
+        public Criteria andLoginStatusNotBetween(Boolean value1, Boolean value2) {
+            addCriterion("login_status not between", value1, value2, "loginStatus");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateTimeIsNull() {
+            addCriterion("update_time is null");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateTimeIsNotNull() {
+            addCriterion("update_time is not null");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateTimeEqualTo(Date value) {
+            addCriterion("update_time =", value, "updateTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateTimeNotEqualTo(Date value) {
+            addCriterion("update_time <>", value, "updateTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateTimeGreaterThan(Date value) {
+            addCriterion("update_time >", value, "updateTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
+            addCriterion("update_time >=", value, "updateTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateTimeLessThan(Date value) {
+            addCriterion("update_time <", value, "updateTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
+            addCriterion("update_time <=", value, "updateTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateTimeIn(List<Date> values) {
+            addCriterion("update_time in", values, "updateTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateTimeNotIn(List<Date> values) {
+            addCriterion("update_time not in", values, "updateTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
+            addCriterion("update_time between", value1, value2, "updateTime");
+            return (Criteria) this;
+        }
+
+        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
+            addCriterion("update_time not between", value1, value2, "updateTime");
+            return (Criteria) this;
+        }
+    }
+
+    /**
+     * This class was generated by MyBatis Generator.
+     * This class corresponds to the database table qywx_user_corp
+     *
+     * @mbg.generated do_not_delete_during_merge Wed May 14 01:08:39 CST 2025
+     */
+    public static class Criteria extends GeneratedCriteria {
+
+        protected Criteria() {
+            super();
+        }
+    }
+
+    /**
+     * This class was generated by MyBatis Generator.
+     * This class corresponds to the database table qywx_user_corp
+     *
+     * @mbg.generated Wed May 14 01:08:39 CST 2025
+     */
+    public static class Criterion {
+        private String condition;
+
+        private Object value;
+
+        private Object secondValue;
+
+        private boolean noValue;
+
+        private boolean singleValue;
+
+        private boolean betweenValue;
+
+        private boolean listValue;
+
+        private String typeHandler;
+
+        public String getCondition() {
+            return condition;
+        }
+
+        public Object getValue() {
+            return value;
+        }
+
+        public Object getSecondValue() {
+            return secondValue;
+        }
+
+        public boolean isNoValue() {
+            return noValue;
+        }
+
+        public boolean isSingleValue() {
+            return singleValue;
+        }
+
+        public boolean isBetweenValue() {
+            return betweenValue;
+        }
+
+        public boolean isListValue() {
+            return listValue;
+        }
+
+        public String getTypeHandler() {
+            return typeHandler;
+        }
+
+        protected Criterion(String condition) {
+            super();
+            this.condition = condition;
+            this.typeHandler = null;
+            this.noValue = true;
+        }
+
+        protected Criterion(String condition, Object value, String typeHandler) {
+            super();
+            this.condition = condition;
+            this.value = value;
+            this.typeHandler = typeHandler;
+            if (value instanceof List<?>) {
+                this.listValue = true;
+            } else {
+                this.singleValue = true;
+            }
+        }
+
+        protected Criterion(String condition, Object value) {
+            this(condition, value, null);
+        }
+
+        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
+            super();
+            this.condition = condition;
+            this.value = value;
+            this.secondValue = secondValue;
+            this.typeHandler = typeHandler;
+            this.betweenValue = true;
+        }
+
+        protected Criterion(String condition, Object value, Object secondValue) {
+            this(condition, value, secondValue, null);
+        }
+    }
+}

+ 303 - 0
risk-control-core/src/main/resources/mapper/UserBaseMapper.xml

@@ -0,0 +1,303 @@
+<?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.tzld.piaoquan.risk.control.dao.mapper.UserBaseMapper">
+  <resultMap id="BaseResultMap" type="com.tzld.piaoquan.risk.control.model.po.UserBase">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Wed May 14 01:08:39 CST 2025.
+    -->
+    <id column="id" jdbcType="BIGINT" property="id" />
+    <result column="uuid" jdbcType="VARCHAR" property="uuid" />
+    <result column="mobile" jdbcType="VARCHAR" property="mobile" />
+    <result column="realname" jdbcType="VARCHAR" property="realname" />
+    <result column="avatar" jdbcType="VARCHAR" property="avatar" />
+    <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
+  </resultMap>
+  <sql id="Example_Where_Clause">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Wed May 14 01:08:39 CST 2025.
+    -->
+    <where>
+      <foreach collection="oredCriteria" item="criteria" separator="or">
+        <if test="criteria.valid">
+          <trim prefix="(" prefixOverrides="and" suffix=")">
+            <foreach collection="criteria.criteria" item="criterion">
+              <choose>
+                <when test="criterion.noValue">
+                  and ${criterion.condition}
+                </when>
+                <when test="criterion.singleValue">
+                  and ${criterion.condition} #{criterion.value}
+                </when>
+                <when test="criterion.betweenValue">
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+                </when>
+                <when test="criterion.listValue">
+                  and ${criterion.condition}
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
+                    #{listItem}
+                  </foreach>
+                </when>
+              </choose>
+            </foreach>
+          </trim>
+        </if>
+      </foreach>
+    </where>
+  </sql>
+  <sql id="Update_By_Example_Where_Clause">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Wed May 14 01:08:39 CST 2025.
+    -->
+    <where>
+      <foreach collection="example.oredCriteria" item="criteria" separator="or">
+        <if test="criteria.valid">
+          <trim prefix="(" prefixOverrides="and" suffix=")">
+            <foreach collection="criteria.criteria" item="criterion">
+              <choose>
+                <when test="criterion.noValue">
+                  and ${criterion.condition}
+                </when>
+                <when test="criterion.singleValue">
+                  and ${criterion.condition} #{criterion.value}
+                </when>
+                <when test="criterion.betweenValue">
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+                </when>
+                <when test="criterion.listValue">
+                  and ${criterion.condition}
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
+                    #{listItem}
+                  </foreach>
+                </when>
+              </choose>
+            </foreach>
+          </trim>
+        </if>
+      </foreach>
+    </where>
+  </sql>
+  <sql id="Base_Column_List">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Wed May 14 01:08:39 CST 2025.
+    -->
+    id, uuid, mobile, realname, avatar, create_time
+  </sql>
+  <select id="selectByExample" parameterType="com.tzld.piaoquan.risk.control.model.po.UserBaseExample" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Wed May 14 01:08:39 CST 2025.
+    -->
+    select
+    <if test="distinct">
+      distinct
+    </if>
+    <include refid="Base_Column_List" />
+    from qywx_user_base
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+    <if test="orderByClause != null">
+      order by ${orderByClause}
+    </if>
+  </select>
+  <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Wed May 14 01:08:39 CST 2025.
+    -->
+    select 
+    <include refid="Base_Column_List" />
+    from qywx_user_base
+    where id = #{id,jdbcType=BIGINT}
+  </select>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Wed May 14 01:08:39 CST 2025.
+    -->
+    delete from qywx_user_base
+    where id = #{id,jdbcType=BIGINT}
+  </delete>
+  <delete id="deleteByExample" parameterType="com.tzld.piaoquan.risk.control.model.po.UserBaseExample">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Wed May 14 01:08:39 CST 2025.
+    -->
+    delete from qywx_user_base
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </delete>
+  <insert id="insert" parameterType="com.tzld.piaoquan.risk.control.model.po.UserBase">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Wed May 14 01:08:39 CST 2025.
+    -->
+    insert into qywx_user_base (id, uuid, mobile, 
+      realname, avatar, create_time
+      )
+    values (#{id,jdbcType=BIGINT}, #{uuid,jdbcType=VARCHAR}, #{mobile,jdbcType=VARCHAR}, 
+      #{realname,jdbcType=VARCHAR}, #{avatar,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}
+      )
+  </insert>
+  <insert id="insertSelective" parameterType="com.tzld.piaoquan.risk.control.model.po.UserBase">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Wed May 14 01:08:39 CST 2025.
+    -->
+    insert into qywx_user_base
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="id != null">
+        id,
+      </if>
+      <if test="uuid != null">
+        uuid,
+      </if>
+      <if test="mobile != null">
+        mobile,
+      </if>
+      <if test="realname != null">
+        realname,
+      </if>
+      <if test="avatar != null">
+        avatar,
+      </if>
+      <if test="createTime != null">
+        create_time,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test="id != null">
+        #{id,jdbcType=BIGINT},
+      </if>
+      <if test="uuid != null">
+        #{uuid,jdbcType=VARCHAR},
+      </if>
+      <if test="mobile != null">
+        #{mobile,jdbcType=VARCHAR},
+      </if>
+      <if test="realname != null">
+        #{realname,jdbcType=VARCHAR},
+      </if>
+      <if test="avatar != null">
+        #{avatar,jdbcType=VARCHAR},
+      </if>
+      <if test="createTime != null">
+        #{createTime,jdbcType=TIMESTAMP},
+      </if>
+    </trim>
+  </insert>
+  <select id="countByExample" parameterType="com.tzld.piaoquan.risk.control.model.po.UserBaseExample" resultType="java.lang.Long">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Wed May 14 01:08:39 CST 2025.
+    -->
+    select count(*) from qywx_user_base
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </select>
+  <update id="updateByExampleSelective" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Wed May 14 01:08:39 CST 2025.
+    -->
+    update qywx_user_base
+    <set>
+      <if test="record.id != null">
+        id = #{record.id,jdbcType=BIGINT},
+      </if>
+      <if test="record.uuid != null">
+        uuid = #{record.uuid,jdbcType=VARCHAR},
+      </if>
+      <if test="record.mobile != null">
+        mobile = #{record.mobile,jdbcType=VARCHAR},
+      </if>
+      <if test="record.realname != null">
+        realname = #{record.realname,jdbcType=VARCHAR},
+      </if>
+      <if test="record.avatar != null">
+        avatar = #{record.avatar,jdbcType=VARCHAR},
+      </if>
+      <if test="record.createTime != null">
+        create_time = #{record.createTime,jdbcType=TIMESTAMP},
+      </if>
+    </set>
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByExample" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Wed May 14 01:08:39 CST 2025.
+    -->
+    update qywx_user_base
+    set id = #{record.id,jdbcType=BIGINT},
+      uuid = #{record.uuid,jdbcType=VARCHAR},
+      mobile = #{record.mobile,jdbcType=VARCHAR},
+      realname = #{record.realname,jdbcType=VARCHAR},
+      avatar = #{record.avatar,jdbcType=VARCHAR},
+      create_time = #{record.createTime,jdbcType=TIMESTAMP}
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByPrimaryKeySelective" parameterType="com.tzld.piaoquan.risk.control.model.po.UserBase">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Wed May 14 01:08:39 CST 2025.
+    -->
+    update qywx_user_base
+    <set>
+      <if test="uuid != null">
+        uuid = #{uuid,jdbcType=VARCHAR},
+      </if>
+      <if test="mobile != null">
+        mobile = #{mobile,jdbcType=VARCHAR},
+      </if>
+      <if test="realname != null">
+        realname = #{realname,jdbcType=VARCHAR},
+      </if>
+      <if test="avatar != null">
+        avatar = #{avatar,jdbcType=VARCHAR},
+      </if>
+      <if test="createTime != null">
+        create_time = #{createTime,jdbcType=TIMESTAMP},
+      </if>
+    </set>
+    where id = #{id,jdbcType=BIGINT}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.tzld.piaoquan.risk.control.model.po.UserBase">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Wed May 14 01:08:39 CST 2025.
+    -->
+    update qywx_user_base
+    set uuid = #{uuid,jdbcType=VARCHAR},
+      mobile = #{mobile,jdbcType=VARCHAR},
+      realname = #{realname,jdbcType=VARCHAR},
+      avatar = #{avatar,jdbcType=VARCHAR},
+      create_time = #{createTime,jdbcType=TIMESTAMP}
+    where id = #{id,jdbcType=BIGINT}
+  </update>
+</mapper>

+ 366 - 0
risk-control-core/src/main/resources/mapper/UserCorpMapper.xml

@@ -0,0 +1,366 @@
+<?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.tzld.piaoquan.risk.control.dao.mapper.UserCorpMapper">
+  <resultMap id="BaseResultMap" type="com.tzld.piaoquan.risk.control.model.po.UserCorp">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Wed May 14 01:08:39 CST 2025.
+    -->
+    <id column="id" jdbcType="BIGINT" property="id" />
+    <result column="user_id" jdbcType="BIGINT" property="userId" />
+    <result column="corp_id" jdbcType="BIGINT" property="corpId" />
+    <result column="unionid" jdbcType="VARCHAR" property="unionid" />
+    <result column="acctid" jdbcType="VARCHAR" property="acctid" />
+    <result column="position" jdbcType="VARCHAR" property="position" />
+    <result column="english_name" jdbcType="VARCHAR" property="englishName" />
+    <result column="corp_name" jdbcType="VARCHAR" property="corpName" />
+    <result column="login_status" jdbcType="BIT" property="loginStatus" />
+    <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
+  </resultMap>
+  <sql id="Example_Where_Clause">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Wed May 14 01:08:39 CST 2025.
+    -->
+    <where>
+      <foreach collection="oredCriteria" item="criteria" separator="or">
+        <if test="criteria.valid">
+          <trim prefix="(" prefixOverrides="and" suffix=")">
+            <foreach collection="criteria.criteria" item="criterion">
+              <choose>
+                <when test="criterion.noValue">
+                  and ${criterion.condition}
+                </when>
+                <when test="criterion.singleValue">
+                  and ${criterion.condition} #{criterion.value}
+                </when>
+                <when test="criterion.betweenValue">
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+                </when>
+                <when test="criterion.listValue">
+                  and ${criterion.condition}
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
+                    #{listItem}
+                  </foreach>
+                </when>
+              </choose>
+            </foreach>
+          </trim>
+        </if>
+      </foreach>
+    </where>
+  </sql>
+  <sql id="Update_By_Example_Where_Clause">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Wed May 14 01:08:39 CST 2025.
+    -->
+    <where>
+      <foreach collection="example.oredCriteria" item="criteria" separator="or">
+        <if test="criteria.valid">
+          <trim prefix="(" prefixOverrides="and" suffix=")">
+            <foreach collection="criteria.criteria" item="criterion">
+              <choose>
+                <when test="criterion.noValue">
+                  and ${criterion.condition}
+                </when>
+                <when test="criterion.singleValue">
+                  and ${criterion.condition} #{criterion.value}
+                </when>
+                <when test="criterion.betweenValue">
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
+                </when>
+                <when test="criterion.listValue">
+                  and ${criterion.condition}
+                  <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
+                    #{listItem}
+                  </foreach>
+                </when>
+              </choose>
+            </foreach>
+          </trim>
+        </if>
+      </foreach>
+    </where>
+  </sql>
+  <sql id="Base_Column_List">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Wed May 14 01:08:39 CST 2025.
+    -->
+    id, user_id, corp_id, unionid, acctid, `position`, english_name, corp_name, login_status, 
+    update_time
+  </sql>
+  <select id="selectByExample" parameterType="com.tzld.piaoquan.risk.control.model.po.UserCorpExample" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Wed May 14 01:08:39 CST 2025.
+    -->
+    select
+    <if test="distinct">
+      distinct
+    </if>
+    <include refid="Base_Column_List" />
+    from qywx_user_corp
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+    <if test="orderByClause != null">
+      order by ${orderByClause}
+    </if>
+  </select>
+  <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Wed May 14 01:08:39 CST 2025.
+    -->
+    select 
+    <include refid="Base_Column_List" />
+    from qywx_user_corp
+    where id = #{id,jdbcType=BIGINT}
+  </select>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Wed May 14 01:08:39 CST 2025.
+    -->
+    delete from qywx_user_corp
+    where id = #{id,jdbcType=BIGINT}
+  </delete>
+  <delete id="deleteByExample" parameterType="com.tzld.piaoquan.risk.control.model.po.UserCorpExample">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Wed May 14 01:08:39 CST 2025.
+    -->
+    delete from qywx_user_corp
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </delete>
+  <insert id="insert" parameterType="com.tzld.piaoquan.risk.control.model.po.UserCorp">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Wed May 14 01:08:39 CST 2025.
+    -->
+    insert into qywx_user_corp (id, user_id, corp_id, 
+      unionid, acctid, `position`, 
+      english_name, corp_name, login_status, 
+      update_time)
+    values (#{id,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT}, #{corpId,jdbcType=BIGINT}, 
+      #{unionid,jdbcType=VARCHAR}, #{acctid,jdbcType=VARCHAR}, #{position,jdbcType=VARCHAR}, 
+      #{englishName,jdbcType=VARCHAR}, #{corpName,jdbcType=VARCHAR}, #{loginStatus,jdbcType=BIT}, 
+      #{updateTime,jdbcType=TIMESTAMP})
+  </insert>
+  <insert id="insertSelective" parameterType="com.tzld.piaoquan.risk.control.model.po.UserCorp">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Wed May 14 01:08:39 CST 2025.
+    -->
+    insert into qywx_user_corp
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="id != null">
+        id,
+      </if>
+      <if test="userId != null">
+        user_id,
+      </if>
+      <if test="corpId != null">
+        corp_id,
+      </if>
+      <if test="unionid != null">
+        unionid,
+      </if>
+      <if test="acctid != null">
+        acctid,
+      </if>
+      <if test="position != null">
+        `position`,
+      </if>
+      <if test="englishName != null">
+        english_name,
+      </if>
+      <if test="corpName != null">
+        corp_name,
+      </if>
+      <if test="loginStatus != null">
+        login_status,
+      </if>
+      <if test="updateTime != null">
+        update_time,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test="id != null">
+        #{id,jdbcType=BIGINT},
+      </if>
+      <if test="userId != null">
+        #{userId,jdbcType=BIGINT},
+      </if>
+      <if test="corpId != null">
+        #{corpId,jdbcType=BIGINT},
+      </if>
+      <if test="unionid != null">
+        #{unionid,jdbcType=VARCHAR},
+      </if>
+      <if test="acctid != null">
+        #{acctid,jdbcType=VARCHAR},
+      </if>
+      <if test="position != null">
+        #{position,jdbcType=VARCHAR},
+      </if>
+      <if test="englishName != null">
+        #{englishName,jdbcType=VARCHAR},
+      </if>
+      <if test="corpName != null">
+        #{corpName,jdbcType=VARCHAR},
+      </if>
+      <if test="loginStatus != null">
+        #{loginStatus,jdbcType=BIT},
+      </if>
+      <if test="updateTime != null">
+        #{updateTime,jdbcType=TIMESTAMP},
+      </if>
+    </trim>
+  </insert>
+  <select id="countByExample" parameterType="com.tzld.piaoquan.risk.control.model.po.UserCorpExample" resultType="java.lang.Long">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Wed May 14 01:08:39 CST 2025.
+    -->
+    select count(*) from qywx_user_corp
+    <if test="_parameter != null">
+      <include refid="Example_Where_Clause" />
+    </if>
+  </select>
+  <update id="updateByExampleSelective" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Wed May 14 01:08:39 CST 2025.
+    -->
+    update qywx_user_corp
+    <set>
+      <if test="record.id != null">
+        id = #{record.id,jdbcType=BIGINT},
+      </if>
+      <if test="record.userId != null">
+        user_id = #{record.userId,jdbcType=BIGINT},
+      </if>
+      <if test="record.corpId != null">
+        corp_id = #{record.corpId,jdbcType=BIGINT},
+      </if>
+      <if test="record.unionid != null">
+        unionid = #{record.unionid,jdbcType=VARCHAR},
+      </if>
+      <if test="record.acctid != null">
+        acctid = #{record.acctid,jdbcType=VARCHAR},
+      </if>
+      <if test="record.position != null">
+        `position` = #{record.position,jdbcType=VARCHAR},
+      </if>
+      <if test="record.englishName != null">
+        english_name = #{record.englishName,jdbcType=VARCHAR},
+      </if>
+      <if test="record.corpName != null">
+        corp_name = #{record.corpName,jdbcType=VARCHAR},
+      </if>
+      <if test="record.loginStatus != null">
+        login_status = #{record.loginStatus,jdbcType=BIT},
+      </if>
+      <if test="record.updateTime != null">
+        update_time = #{record.updateTime,jdbcType=TIMESTAMP},
+      </if>
+    </set>
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByExample" parameterType="map">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Wed May 14 01:08:39 CST 2025.
+    -->
+    update qywx_user_corp
+    set id = #{record.id,jdbcType=BIGINT},
+      user_id = #{record.userId,jdbcType=BIGINT},
+      corp_id = #{record.corpId,jdbcType=BIGINT},
+      unionid = #{record.unionid,jdbcType=VARCHAR},
+      acctid = #{record.acctid,jdbcType=VARCHAR},
+      `position` = #{record.position,jdbcType=VARCHAR},
+      english_name = #{record.englishName,jdbcType=VARCHAR},
+      corp_name = #{record.corpName,jdbcType=VARCHAR},
+      login_status = #{record.loginStatus,jdbcType=BIT},
+      update_time = #{record.updateTime,jdbcType=TIMESTAMP}
+    <if test="_parameter != null">
+      <include refid="Update_By_Example_Where_Clause" />
+    </if>
+  </update>
+  <update id="updateByPrimaryKeySelective" parameterType="com.tzld.piaoquan.risk.control.model.po.UserCorp">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Wed May 14 01:08:39 CST 2025.
+    -->
+    update qywx_user_corp
+    <set>
+      <if test="userId != null">
+        user_id = #{userId,jdbcType=BIGINT},
+      </if>
+      <if test="corpId != null">
+        corp_id = #{corpId,jdbcType=BIGINT},
+      </if>
+      <if test="unionid != null">
+        unionid = #{unionid,jdbcType=VARCHAR},
+      </if>
+      <if test="acctid != null">
+        acctid = #{acctid,jdbcType=VARCHAR},
+      </if>
+      <if test="position != null">
+        `position` = #{position,jdbcType=VARCHAR},
+      </if>
+      <if test="englishName != null">
+        english_name = #{englishName,jdbcType=VARCHAR},
+      </if>
+      <if test="corpName != null">
+        corp_name = #{corpName,jdbcType=VARCHAR},
+      </if>
+      <if test="loginStatus != null">
+        login_status = #{loginStatus,jdbcType=BIT},
+      </if>
+      <if test="updateTime != null">
+        update_time = #{updateTime,jdbcType=TIMESTAMP},
+      </if>
+    </set>
+    where id = #{id,jdbcType=BIGINT}
+  </update>
+  <update id="updateByPrimaryKey" parameterType="com.tzld.piaoquan.risk.control.model.po.UserCorp">
+    <!--
+      WARNING - @mbg.generated
+      This element is automatically generated by MyBatis Generator, do not modify.
+      This element was generated on Wed May 14 01:08:39 CST 2025.
+    -->
+    update qywx_user_corp
+    set user_id = #{userId,jdbcType=BIGINT},
+      corp_id = #{corpId,jdbcType=BIGINT},
+      unionid = #{unionid,jdbcType=VARCHAR},
+      acctid = #{acctid,jdbcType=VARCHAR},
+      `position` = #{position,jdbcType=VARCHAR},
+      english_name = #{englishName,jdbcType=VARCHAR},
+      corp_name = #{corpName,jdbcType=VARCHAR},
+      login_status = #{loginStatus,jdbcType=BIT},
+      update_time = #{updateTime,jdbcType=TIMESTAMP}
+    where id = #{id,jdbcType=BIGINT}
+  </update>
+</mapper>

+ 26 - 18
risk-control-core/src/main/resources/mybatis-generator-config.xml

@@ -2,52 +2,60 @@
 <!DOCTYPE generatorConfiguration
         PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 1.0//EN"
         "http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd">
-<!-- 配置生成器 -->
 <generatorConfiguration>
     <context id="mysql" defaultModelType="flat">
+        <!-- 基础配置 -->
         <property name="autoDelimitKeywords" value="true"/>
-        <!-- 生成的Java文件的编码 -->
         <property name="javaFileEncoding" value="UTF-8"/>
-        <!-- 格式化java代码 -->
         <property name="javaFormatter" value="org.mybatis.generator.api.dom.DefaultJavaFormatter"/>
-        <!-- 格式化XML代码 -->
         <property name="xmlFormatter" value="org.mybatis.generator.api.dom.DefaultXmlFormatter"/>
-        <!-- beginningDelimiter和endingDelimiter:指明数据库的用于标记数据库对象名的符号,比如ORACLE就是双引号,MYSQL默认是`反引号; -->
         <property name="beginningDelimiter" value="`"/>
         <property name="endingDelimiter" value="`"/>
 
-        <plugin type="org.mybatis.generator.plugins.ToStringPlugin"></plugin>
-        <plugin type="org.mybatis.generator.plugins.UnmergeableXmlMappersPlugin" />
+        <!-- 插件配置 -->
+        <plugin type="org.mybatis.generator.plugins.ToStringPlugin"/>
+        <plugin type="org.mybatis.generator.plugins.UnmergeableXmlMappersPlugin"/>
 
+        <!-- 注释生成 -->
         <commentGenerator>
             <property name="addRemarkComments" value="true"/>
         </commentGenerator>
 
-        <jdbcConnection driverClass="com.mysql.jdbc.Driver"
-                        connectionURL="jdbc:mysql://rm-bp1k5853td1r25g3n690.mysql.rds.aliyuncs.com:3306/longvideo?useUnicode=true&amp;characterEncoding=utf-8&amp;zeroDateTimeBehavior=convertToNull&amp;useSSL=false"
-                        userId="wx2016_longvideo" password="wx2016_longvideoP@assword1234">
+        <!-- 保留原有JDBC配置 -->
+        <jdbcConnection
+                driverClass="com.mysql.jdbc.Driver"
+                connectionURL="jdbc:mysql://rm-bp1k5853td1r25g3n690.mysql.rds.aliyuncs.com:3306/test?useUnicode=true&amp;characterEncoding=utf-8&amp;zeroDateTimeBehavior=convertToNull&amp;useSSL=false"
+                userId="wx2016_longvideo"
+                password="wx2016_longvideoP@assword1234">
         </jdbcConnection>
 
+        <!-- 类型解析 -->
         <javaTypeResolver type="org.mybatis.generator.internal.types.JavaTypeResolverDefaultImpl">
             <property name="forceBigDecimals" value="false"/>
         </javaTypeResolver>
 
-        <javaModelGenerator targetPackage="com.tzld.piaoquan.risk.control.model.po" targetProject="src/main/java">
-            <property name="constructorBased" value="false"/>
+        <!-- 适配多模块路径 -->
+        <javaModelGenerator
+                targetPackage="com.tzld.piaoquan.risk.control.model.po"
+                targetProject="risk-control-core/src/main/java">
             <property name="enableSubPackages" value="true"/>
-            <property name="immutable" value="false"/>
         </javaModelGenerator>
 
-        <sqlMapGenerator targetPackage="mapper" targetProject="src/main/resources">
+        <sqlMapGenerator
+                targetPackage="mapper"
+                targetProject="risk-control-core/src/main/resources">
             <property name="enableSubPackages" value="true"/>
         </sqlMapGenerator>
 
-        <javaClientGenerator targetPackage="com.tzld.piaoquan.risk.control.dao.mapper" type="XMLMAPPER" targetProject="src/main/java">
+        <javaClientGenerator
+                targetPackage="com.tzld.piaoquan.risk.control.dao.mapper"
+                targetProject="risk-control-core/src/main/java"
+                type="XMLMAPPER">
             <property name="enableSubPackages" value="true"/>
         </javaClientGenerator>
 
-<!--        <table tableName="wx_video" domainObjectName="WxVideo" alias=""/>-->
-
+        <!-- 表配置 -->
+        <table tableName="qywx_user_base" domainObjectName="UserBase"/>
+        <table tableName="qywx_user_corp" domainObjectName="UserCorp"/>
     </context>
-
 </generatorConfiguration>

+ 20 - 0
risk-control-server/src/test/java/com/tzld/piaoquan/risk/control/JdbcTest.java

@@ -0,0 +1,20 @@
+package com.tzld.piaoquan.risk.control;
+
+import java.sql.Connection;
+import java.sql.DatabaseMetaData;
+import java.sql.DriverManager;
+import java.sql.ResultSet;
+
+public class JdbcTest {
+    public static void main(String[] args) throws Exception {
+        String url = "jdbc:mysql://rm-bp1k5853td1r25g3n690.mysql.rds.aliyuncs.com:3306/test?useUnicode=true&characterEncoding=utf-8";
+        String user = "wx2016_longvideo";
+        String password = "wx2016_longvideoP@assword1234";
+
+        try (Connection conn = DriverManager.getConnection(url, user, password)) {
+            DatabaseMetaData meta = conn.getMetaData();
+            ResultSet rs = meta.getTables(null, null, "qywx_user_base", new String[]{"TABLE"});
+            System.out.println(rs.next() ? "表存在" : "表不存在");
+        }
+    }
+}