作者 钟来

流水鱼登陆合并整理

正在显示 84 个修改的文件 包含 6438 行增加63 行删除
@@ -16,7 +16,6 @@ @@ -16,7 +16,6 @@
16 <dependency> 16 <dependency>
17 <groupId>io.swagger</groupId> 17 <groupId>io.swagger</groupId>
18 <artifactId>swagger-annotations</artifactId> 18 <artifactId>swagger-annotations</artifactId>
19 - <version>1.6.2</version>  
20 <scope>compile</scope> 19 <scope>compile</scope>
21 </dependency> 20 </dependency>
22 </dependencies> 21 </dependencies>
  1 +package com.zhonglai.luhui.domain.user;
  2 +
  3 +import org.apache.commons.lang3.builder.ToStringBuilder;
  4 +import org.apache.commons.lang3.builder.ToStringStyle;
  5 +import io.swagger.annotations.ApiModel;
  6 +import io.swagger.annotations.ApiModelProperty;
  7 +import com.ruoyi.common.tool.BaseEntity;
  8 +
  9 +/**
  10 + * 用户账户信息对象 user_account_info
  11 + *
  12 + * @author zhonglai
  13 + * @date 2025-10-18
  14 + */
  15 +@ApiModel("用户账户信息")
  16 +public class UserAccountInfo extends BaseEntity
  17 +{
  18 + private static final long serialVersionUID = 1L;
  19 +
  20 + /** 用户ID,主键关联 */
  21 + @ApiModelProperty(value="主键id")
  22 + private Integer id;
  23 +
  24 + /** 积分 */
  25 + @ApiModelProperty(value="积分")
  26 + private Integer integral;
  27 +
  28 + /** 余额 */
  29 + @ApiModelProperty(value="余额")
  30 + private Integer balance;
  31 +
  32 + /** 级别 */
  33 + @ApiModelProperty(value="级别")
  34 + private Integer level;
  35 +
  36 + /** 货币 */
  37 + @ApiModelProperty(value="货币")
  38 + private Integer currency;
  39 +
  40 + /** 经验 */
  41 + @ApiModelProperty(value="经验")
  42 + private Integer experience;
  43 +
  44 + /** 年度服务费 */
  45 + @ApiModelProperty(value="年度服务费")
  46 + private Integer annualServiceCharge;
  47 +
  48 + /** 点苗器到期时间 */
  49 + @ApiModelProperty(value="点苗器到期时间")
  50 + private Integer dianmiaoEndTime;
  51 +
  52 + public void setId(Integer id)
  53 + {
  54 + this.id = id;
  55 + }
  56 +
  57 + public Integer getId()
  58 + {
  59 + return id;
  60 + }
  61 + public void setIntegral(Integer integral)
  62 + {
  63 + this.integral = integral;
  64 + }
  65 +
  66 + public Integer getIntegral()
  67 + {
  68 + return integral;
  69 + }
  70 + public void setBalance(Integer balance)
  71 + {
  72 + this.balance = balance;
  73 + }
  74 +
  75 + public Integer getBalance()
  76 + {
  77 + return balance;
  78 + }
  79 + public void setLevel(Integer level)
  80 + {
  81 + this.level = level;
  82 + }
  83 +
  84 + public Integer getLevel()
  85 + {
  86 + return level;
  87 + }
  88 + public void setCurrency(Integer currency)
  89 + {
  90 + this.currency = currency;
  91 + }
  92 +
  93 + public Integer getCurrency()
  94 + {
  95 + return currency;
  96 + }
  97 + public void setExperience(Integer experience)
  98 + {
  99 + this.experience = experience;
  100 + }
  101 +
  102 + public Integer getExperience()
  103 + {
  104 + return experience;
  105 + }
  106 + public void setAnnualServiceCharge(Integer annualServiceCharge)
  107 + {
  108 + this.annualServiceCharge = annualServiceCharge;
  109 + }
  110 +
  111 + public Integer getAnnualServiceCharge()
  112 + {
  113 + return annualServiceCharge;
  114 + }
  115 + public void setDianmiaoEndTime(Integer dianmiaoEndTime)
  116 + {
  117 + this.dianmiaoEndTime = dianmiaoEndTime;
  118 + }
  119 +
  120 + public Integer getDianmiaoEndTime()
  121 + {
  122 + return dianmiaoEndTime;
  123 + }
  124 +
  125 + @Override
  126 + public String toString() {
  127 + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
  128 + .append("id", getId())
  129 + .append("integral", getIntegral())
  130 + .append("balance", getBalance())
  131 + .append("level", getLevel())
  132 + .append("currency", getCurrency())
  133 + .append("experience", getExperience())
  134 + .append("annualServiceCharge", getAnnualServiceCharge())
  135 + .append("dianmiaoEndTime", getDianmiaoEndTime())
  136 + .toString();
  137 + }
  138 +}
  1 +package com.zhonglai.luhui.domain.user;
  2 +
  3 +import org.apache.commons.lang3.builder.ToStringBuilder;
  4 +import org.apache.commons.lang3.builder.ToStringStyle;
  5 +import io.swagger.annotations.ApiModel;
  6 +import io.swagger.annotations.ApiModelProperty;
  7 +import com.ruoyi.common.tool.BaseEntity;
  8 +
  9 +/**
  10 + * 用户地理信息对象 user_address_info
  11 + *
  12 + * @author zhonglai
  13 + * @date 2025-10-18
  14 + */
  15 +@ApiModel("用户地理信息")
  16 +public class UserAddressInfo extends BaseEntity
  17 +{
  18 + private static final long serialVersionUID = 1L;
  19 +
  20 + /** 用户ID,主键关联 */
  21 + @ApiModelProperty(value="主键id")
  22 + private Integer id;
  23 +
  24 + /** */
  25 + @ApiModelProperty(value="")
  26 + private String provinceId;
  27 +
  28 + /** */
  29 + @ApiModelProperty(value="")
  30 + private String cityId;
  31 +
  32 + /** */
  33 + @ApiModelProperty(value="")
  34 + private String countyId;
  35 +
  36 + /** */
  37 + @ApiModelProperty(value="")
  38 + private String provinceName;
  39 +
  40 + /** */
  41 + @ApiModelProperty(value="")
  42 + private String cityName;
  43 +
  44 + /** */
  45 + @ApiModelProperty(value="")
  46 + private String countyName;
  47 +
  48 + /** */
  49 + @ApiModelProperty(value="")
  50 + private String address;
  51 +
  52 + /** 常用搜索 */
  53 + @ApiModelProperty(value="常用搜索")
  54 + private String search;
  55 +
  56 + public void setId(Integer id)
  57 + {
  58 + this.id = id;
  59 + }
  60 +
  61 + public Integer getId()
  62 + {
  63 + return id;
  64 + }
  65 + public void setProvinceId(String provinceId)
  66 + {
  67 + this.provinceId = provinceId;
  68 + }
  69 +
  70 + public String getProvinceId()
  71 + {
  72 + return provinceId;
  73 + }
  74 + public void setCityId(String cityId)
  75 + {
  76 + this.cityId = cityId;
  77 + }
  78 +
  79 + public String getCityId()
  80 + {
  81 + return cityId;
  82 + }
  83 + public void setCountyId(String countyId)
  84 + {
  85 + this.countyId = countyId;
  86 + }
  87 +
  88 + public String getCountyId()
  89 + {
  90 + return countyId;
  91 + }
  92 + public void setProvinceName(String provinceName)
  93 + {
  94 + this.provinceName = provinceName;
  95 + }
  96 +
  97 + public String getProvinceName()
  98 + {
  99 + return provinceName;
  100 + }
  101 + public void setCityName(String cityName)
  102 + {
  103 + this.cityName = cityName;
  104 + }
  105 +
  106 + public String getCityName()
  107 + {
  108 + return cityName;
  109 + }
  110 + public void setCountyName(String countyName)
  111 + {
  112 + this.countyName = countyName;
  113 + }
  114 +
  115 + public String getCountyName()
  116 + {
  117 + return countyName;
  118 + }
  119 + public void setAddress(String address)
  120 + {
  121 + this.address = address;
  122 + }
  123 +
  124 + public String getAddress()
  125 + {
  126 + return address;
  127 + }
  128 + public void setSearch(String search)
  129 + {
  130 + this.search = search;
  131 + }
  132 +
  133 + public String getSearch()
  134 + {
  135 + return search;
  136 + }
  137 +
  138 + @Override
  139 + public String toString() {
  140 + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
  141 + .append("id", getId())
  142 + .append("provinceId", getProvinceId())
  143 + .append("cityId", getCityId())
  144 + .append("countyId", getCountyId())
  145 + .append("provinceName", getProvinceName())
  146 + .append("cityName", getCityName())
  147 + .append("countyName", getCountyName())
  148 + .append("address", getAddress())
  149 + .append("search", getSearch())
  150 + .toString();
  151 + }
  152 +}
  1 +package com.zhonglai.luhui.domain.user;
  2 +
  3 +import org.apache.commons.lang3.builder.ToStringBuilder;
  4 +import org.apache.commons.lang3.builder.ToStringStyle;
  5 +import io.swagger.annotations.ApiModel;
  6 +import io.swagger.annotations.ApiModelProperty;
  7 +import com.ruoyi.common.tool.BaseEntity;
  8 +
  9 +/**
  10 + * 用户认证信息对象 user_auth_info
  11 + *
  12 + * @author zhonglai
  13 + * @date 2025-10-18
  14 + */
  15 +@ApiModel("用户认证信息")
  16 +public class UserAuthInfo extends BaseEntity
  17 +{
  18 + private static final long serialVersionUID = 1L;
  19 +
  20 + /** 用户ID,主键关联 */
  21 + @ApiModelProperty(value="主键id")
  22 + private Integer id;
  23 +
  24 + /** 是否实名认证(0否,1是) */
  25 + @ApiModelProperty(value="是否实名认证(0否,1是)")
  26 + private Integer nameAuthentication;
  27 +
  28 + /** 个人审核状态 */
  29 + @ApiModelProperty(value="个人审核状态")
  30 + private Integer personalAuthenticationState;
  31 +
  32 + /** 企业审核状态 */
  33 + @ApiModelProperty(value="企业审核状态")
  34 + private Integer enterpriseAuthenticationState;
  35 +
  36 + /** 个人审核描述 */
  37 + @ApiModelProperty(value="个人审核描述")
  38 + private String personalAuthenticationDescribe;
  39 +
  40 + /** 企业审核描述 */
  41 + @ApiModelProperty(value="企业审核描述")
  42 + private String enterpriseAuthenticationDescribe;
  43 +
  44 + /** 个人审核更新时间 */
  45 + @ApiModelProperty(value="个人审核更新时间")
  46 + private Integer personalAuthenticationTime;
  47 +
  48 + /** 企业审核更新时间 */
  49 + @ApiModelProperty(value="企业审核更新时间")
  50 + private Integer enterpriseAuthenticationTime;
  51 +
  52 + /** 身份证号 */
  53 + @ApiModelProperty(value="身份证号")
  54 + private String identificationCard;
  55 +
  56 + /** 营业执照号 */
  57 + @ApiModelProperty(value="营业执照号")
  58 + private String businessLicenseNo;
  59 +
  60 + /** 企业名称 */
  61 + @ApiModelProperty(value="企业名称")
  62 + private String enterpriseName;
  63 +
  64 + /** 企业营业执照 */
  65 + @ApiModelProperty(value="企业营业执照")
  66 + private String businessLicenseUrl;
  67 +
  68 + public void setId(Integer id)
  69 + {
  70 + this.id = id;
  71 + }
  72 +
  73 + public Integer getId()
  74 + {
  75 + return id;
  76 + }
  77 + public void setNameAuthentication(Integer nameAuthentication)
  78 + {
  79 + this.nameAuthentication = nameAuthentication;
  80 + }
  81 +
  82 + public Integer getNameAuthentication()
  83 + {
  84 + return nameAuthentication;
  85 + }
  86 + public void setPersonalAuthenticationState(Integer personalAuthenticationState)
  87 + {
  88 + this.personalAuthenticationState = personalAuthenticationState;
  89 + }
  90 +
  91 + public Integer getPersonalAuthenticationState()
  92 + {
  93 + return personalAuthenticationState;
  94 + }
  95 + public void setEnterpriseAuthenticationState(Integer enterpriseAuthenticationState)
  96 + {
  97 + this.enterpriseAuthenticationState = enterpriseAuthenticationState;
  98 + }
  99 +
  100 + public Integer getEnterpriseAuthenticationState()
  101 + {
  102 + return enterpriseAuthenticationState;
  103 + }
  104 + public void setPersonalAuthenticationDescribe(String personalAuthenticationDescribe)
  105 + {
  106 + this.personalAuthenticationDescribe = personalAuthenticationDescribe;
  107 + }
  108 +
  109 + public String getPersonalAuthenticationDescribe()
  110 + {
  111 + return personalAuthenticationDescribe;
  112 + }
  113 + public void setEnterpriseAuthenticationDescribe(String enterpriseAuthenticationDescribe)
  114 + {
  115 + this.enterpriseAuthenticationDescribe = enterpriseAuthenticationDescribe;
  116 + }
  117 +
  118 + public String getEnterpriseAuthenticationDescribe()
  119 + {
  120 + return enterpriseAuthenticationDescribe;
  121 + }
  122 + public void setPersonalAuthenticationTime(Integer personalAuthenticationTime)
  123 + {
  124 + this.personalAuthenticationTime = personalAuthenticationTime;
  125 + }
  126 +
  127 + public Integer getPersonalAuthenticationTime()
  128 + {
  129 + return personalAuthenticationTime;
  130 + }
  131 + public void setEnterpriseAuthenticationTime(Integer enterpriseAuthenticationTime)
  132 + {
  133 + this.enterpriseAuthenticationTime = enterpriseAuthenticationTime;
  134 + }
  135 +
  136 + public Integer getEnterpriseAuthenticationTime()
  137 + {
  138 + return enterpriseAuthenticationTime;
  139 + }
  140 + public void setIdentificationCard(String identificationCard)
  141 + {
  142 + this.identificationCard = identificationCard;
  143 + }
  144 +
  145 + public String getIdentificationCard()
  146 + {
  147 + return identificationCard;
  148 + }
  149 + public void setBusinessLicenseNo(String businessLicenseNo)
  150 + {
  151 + this.businessLicenseNo = businessLicenseNo;
  152 + }
  153 +
  154 + public String getBusinessLicenseNo()
  155 + {
  156 + return businessLicenseNo;
  157 + }
  158 + public void setEnterpriseName(String enterpriseName)
  159 + {
  160 + this.enterpriseName = enterpriseName;
  161 + }
  162 +
  163 + public String getEnterpriseName()
  164 + {
  165 + return enterpriseName;
  166 + }
  167 + public void setBusinessLicenseUrl(String businessLicenseUrl)
  168 + {
  169 + this.businessLicenseUrl = businessLicenseUrl;
  170 + }
  171 +
  172 + public String getBusinessLicenseUrl()
  173 + {
  174 + return businessLicenseUrl;
  175 + }
  176 +
  177 + @Override
  178 + public String toString() {
  179 + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
  180 + .append("id", getId())
  181 + .append("nameAuthentication", getNameAuthentication())
  182 + .append("personalAuthenticationState", getPersonalAuthenticationState())
  183 + .append("enterpriseAuthenticationState", getEnterpriseAuthenticationState())
  184 + .append("personalAuthenticationDescribe", getPersonalAuthenticationDescribe())
  185 + .append("enterpriseAuthenticationDescribe", getEnterpriseAuthenticationDescribe())
  186 + .append("personalAuthenticationTime", getPersonalAuthenticationTime())
  187 + .append("enterpriseAuthenticationTime", getEnterpriseAuthenticationTime())
  188 + .append("identificationCard", getIdentificationCard())
  189 + .append("businessLicenseNo", getBusinessLicenseNo())
  190 + .append("enterpriseName", getEnterpriseName())
  191 + .append("businessLicenseUrl", getBusinessLicenseUrl())
  192 + .toString();
  193 + }
  194 +}
  1 +package com.zhonglai.luhui.domain.user;
  2 +
  3 +import org.apache.commons.lang3.builder.ToStringBuilder;
  4 +import org.apache.commons.lang3.builder.ToStringStyle;
  5 +import io.swagger.annotations.ApiModel;
  6 +import io.swagger.annotations.ApiModelProperty;
  7 +import com.ruoyi.common.tool.BaseEntity;
  8 +
  9 +/**
  10 + * 基础用户信息对象 user_base_info
  11 + *
  12 + * @author zhonglai
  13 + * @date 2025-10-18
  14 + */
  15 +@ApiModel("基础用户信息")
  16 +public class UserBaseInfo extends BaseEntity
  17 +{
  18 + private static final long serialVersionUID = 1L;
  19 +
  20 + /** 用户ID,主键关联 */
  21 + @ApiModelProperty(value="主键id")
  22 + private Integer id;
  23 +
  24 + /** 登录名 */
  25 + @ApiModelProperty(value="登录名")
  26 + private String loginName;
  27 +
  28 + /** 真实姓名 */
  29 + @ApiModelProperty(value="真实姓名")
  30 + private String name;
  31 +
  32 + /** 昵称 */
  33 + @ApiModelProperty(value="昵称")
  34 + private String nickname;
  35 +
  36 + /** 性别(0男,1女) */
  37 + @ApiModelProperty(value="性别(0男,1女)")
  38 + private Integer gender;
  39 +
  40 + /** 手机号 */
  41 + @ApiModelProperty(value="手机号")
  42 + private String phone;
  43 +
  44 + /** 电子邮箱 */
  45 + @ApiModelProperty(value="电子邮箱")
  46 + private String email;
  47 +
  48 + /** 头像地址 */
  49 + @ApiModelProperty(value="头像地址")
  50 + private String imgUrl;
  51 +
  52 + public void setId(Integer id)
  53 + {
  54 + this.id = id;
  55 + }
  56 +
  57 + public Integer getId()
  58 + {
  59 + return id;
  60 + }
  61 + public void setLoginName(String loginName)
  62 + {
  63 + this.loginName = loginName;
  64 + }
  65 +
  66 + public String getLoginName()
  67 + {
  68 + return loginName;
  69 + }
  70 + public void setName(String name)
  71 + {
  72 + this.name = name;
  73 + }
  74 +
  75 + public String getName()
  76 + {
  77 + return name;
  78 + }
  79 + public void setNickname(String nickname)
  80 + {
  81 + this.nickname = nickname;
  82 + }
  83 +
  84 + public String getNickname()
  85 + {
  86 + return nickname;
  87 + }
  88 + public void setGender(Integer gender)
  89 + {
  90 + this.gender = gender;
  91 + }
  92 +
  93 + public Integer getGender()
  94 + {
  95 + return gender;
  96 + }
  97 + public void setPhone(String phone)
  98 + {
  99 + this.phone = phone;
  100 + }
  101 +
  102 + public String getPhone()
  103 + {
  104 + return phone;
  105 + }
  106 + public void setEmail(String email)
  107 + {
  108 + this.email = email;
  109 + }
  110 +
  111 + public String getEmail()
  112 + {
  113 + return email;
  114 + }
  115 + public void setImgUrl(String imgUrl)
  116 + {
  117 + this.imgUrl = imgUrl;
  118 + }
  119 +
  120 + public String getImgUrl()
  121 + {
  122 + return imgUrl;
  123 + }
  124 +
  125 + @Override
  126 + public String toString() {
  127 + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
  128 + .append("id", getId())
  129 + .append("loginName", getLoginName())
  130 + .append("name", getName())
  131 + .append("nickname", getNickname())
  132 + .append("gender", getGender())
  133 + .append("phone", getPhone())
  134 + .append("email", getEmail())
  135 + .append("imgUrl", getImgUrl())
  136 + .append("createTime", getCreateTime())
  137 + .toString();
  138 + }
  139 +}
  1 +package com.zhonglai.luhui.domain.user;
  2 +
  3 +import org.apache.commons.lang3.builder.ToStringBuilder;
  4 +import org.apache.commons.lang3.builder.ToStringStyle;
  5 +import io.swagger.annotations.ApiModel;
  6 +import io.swagger.annotations.ApiModelProperty;
  7 +import com.ruoyi.common.tool.BaseEntity;
  8 +
  9 +/**
  10 + * 用户其他信息对象 user_extra_info
  11 + *
  12 + * @author zhonglai
  13 + * @date 2025-10-18
  14 + */
  15 +@ApiModel("用户其他信息")
  16 +public class UserExtraInfo extends BaseEntity
  17 +{
  18 + private static final long serialVersionUID = 1L;
  19 +
  20 + /** 用户ID,主键关联 */
  21 + @ApiModelProperty(value="主键id")
  22 + private Integer id;
  23 +
  24 + /** 描述图片地址 */
  25 + @ApiModelProperty(value="描述图片地址")
  26 + private String describeImgUrl;
  27 +
  28 + /** 描述 */
  29 + @ApiModelProperty(value="描述")
  30 + private String describe;
  31 +
  32 + /** 用户类型(0普通用户,1管理员,2客服) */
  33 + @ApiModelProperty(value="用户类型",allowableValues="0=普通用户,1管理员,2客服")
  34 + private Integer userType;
  35 +
  36 + /** 是否失效 */
  37 + @ApiModelProperty(value="是否失效")
  38 + private Integer isInvalid;
  39 +
  40 + /** 是否参与活动 */
  41 + @ApiModelProperty(value="是否参与活动")
  42 + private Integer isParticipateIn;
  43 +
  44 + /** 公司ID */
  45 + @ApiModelProperty(value="公司ID")
  46 + private Integer companyId;
  47 +
  48 + /** 分享次数 */
  49 + @ApiModelProperty(value="分享次数")
  50 + private Integer shareNumber;
  51 +
  52 + public void setId(Integer id)
  53 + {
  54 + this.id = id;
  55 + }
  56 +
  57 + public Integer getId()
  58 + {
  59 + return id;
  60 + }
  61 + public void setDescribeImgUrl(String describeImgUrl)
  62 + {
  63 + this.describeImgUrl = describeImgUrl;
  64 + }
  65 +
  66 + public String getDescribeImgUrl()
  67 + {
  68 + return describeImgUrl;
  69 + }
  70 + public void setDescribe(String describe)
  71 + {
  72 + this.describe = describe;
  73 + }
  74 +
  75 + public String getDescribe()
  76 + {
  77 + return describe;
  78 + }
  79 + public void setUserType(Integer userType)
  80 + {
  81 + this.userType = userType;
  82 + }
  83 +
  84 + public Integer getUserType()
  85 + {
  86 + return userType;
  87 + }
  88 + public void setIsInvalid(Integer isInvalid)
  89 + {
  90 + this.isInvalid = isInvalid;
  91 + }
  92 +
  93 + public Integer getIsInvalid()
  94 + {
  95 + return isInvalid;
  96 + }
  97 + public void setIsParticipateIn(Integer isParticipateIn)
  98 + {
  99 + this.isParticipateIn = isParticipateIn;
  100 + }
  101 +
  102 + public Integer getIsParticipateIn()
  103 + {
  104 + return isParticipateIn;
  105 + }
  106 + public void setCompanyId(Integer companyId)
  107 + {
  108 + this.companyId = companyId;
  109 + }
  110 +
  111 + public Integer getCompanyId()
  112 + {
  113 + return companyId;
  114 + }
  115 + public void setShareNumber(Integer shareNumber)
  116 + {
  117 + this.shareNumber = shareNumber;
  118 + }
  119 +
  120 + public Integer getShareNumber()
  121 + {
  122 + return shareNumber;
  123 + }
  124 +
  125 + @Override
  126 + public String toString() {
  127 + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
  128 + .append("id", getId())
  129 + .append("describeImgUrl", getDescribeImgUrl())
  130 + .append("describe", getDescribe())
  131 + .append("userType", getUserType())
  132 + .append("isInvalid", getIsInvalid())
  133 + .append("isParticipateIn", getIsParticipateIn())
  134 + .append("companyId", getCompanyId())
  135 + .append("shareNumber", getShareNumber())
  136 + .toString();
  137 + }
  138 +}
  1 +package com.zhonglai.luhui.domain.user;
  2 +
  3 +import org.apache.commons.lang3.builder.ToStringBuilder;
  4 +import org.apache.commons.lang3.builder.ToStringStyle;
  5 +import io.swagger.annotations.ApiModel;
  6 +import io.swagger.annotations.ApiModelProperty;
  7 +import com.ruoyi.common.tool.BaseEntity;
  8 +
  9 +/**
  10 + * 用户登录对象 user_login
  11 + *
  12 + * @author zhonglai
  13 + * @date 2025-10-18
  14 + */
  15 +@ApiModel("用户登录")
  16 +public class UserLogin extends BaseEntity
  17 +{
  18 + private static final long serialVersionUID = 1L;
  19 +
  20 + /** 用户登录主键主键 */
  21 + @ApiModelProperty(value="主键id")
  22 + private Integer id;
  23 +
  24 + /** 用户主键id */
  25 + @ApiModelProperty(value="用户主键id")
  26 + private Integer userId;
  27 +
  28 + /** 用户登录名 */
  29 + @ApiModelProperty(value="用户登录名")
  30 + private String loginName;
  31 +
  32 + /** 用户密码 */
  33 + @ApiModelProperty(value="用户密码")
  34 + private String loginPass;
  35 +
  36 + /** 用户登录密码key */
  37 + @ApiModelProperty(value="用户登录密码key")
  38 + private String userLoginPassKey;
  39 +
  40 + public void setId(Integer id)
  41 + {
  42 + this.id = id;
  43 + }
  44 +
  45 + public Integer getId()
  46 + {
  47 + return id;
  48 + }
  49 + public void setUserId(Integer userId)
  50 + {
  51 + this.userId = userId;
  52 + }
  53 +
  54 + public Integer getUserId()
  55 + {
  56 + return userId;
  57 + }
  58 + public void setLoginName(String loginName)
  59 + {
  60 + this.loginName = loginName;
  61 + }
  62 +
  63 + public String getLoginName()
  64 + {
  65 + return loginName;
  66 + }
  67 + public void setLoginPass(String loginPass)
  68 + {
  69 + this.loginPass = loginPass;
  70 + }
  71 +
  72 + public String getLoginPass()
  73 + {
  74 + return loginPass;
  75 + }
  76 + public void setUserLoginPassKey(String userLoginPassKey)
  77 + {
  78 + this.userLoginPassKey = userLoginPassKey;
  79 + }
  80 +
  81 + public String getUserLoginPassKey()
  82 + {
  83 + return userLoginPassKey;
  84 + }
  85 +
  86 + @Override
  87 + public String toString() {
  88 + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
  89 + .append("id", getId())
  90 + .append("userId", getUserId())
  91 + .append("loginName", getLoginName())
  92 + .append("loginPass", getLoginPass())
  93 + .append("userLoginPassKey", getUserLoginPassKey())
  94 + .toString();
  95 + }
  96 +}
  1 +package com.zhonglai.luhui.domain.user;
  2 +
  3 +import org.apache.commons.lang3.builder.ToStringBuilder;
  4 +import org.apache.commons.lang3.builder.ToStringStyle;
  5 +import io.swagger.annotations.ApiModel;
  6 +import io.swagger.annotations.ApiModelProperty;
  7 +import com.ruoyi.common.tool.BaseEntity;
  8 +
  9 +/**
  10 + * 用户登录信息对象 user_login_info
  11 + *
  12 + * @author zhonglai
  13 + * @date 2025-10-18
  14 + */
  15 +@ApiModel("用户登录信息")
  16 +public class UserLoginInfo extends BaseEntity
  17 +{
  18 + private static final long serialVersionUID = 1L;
  19 +
  20 + /** 用户ID,主键关联 */
  21 + @ApiModelProperty(value="主键id")
  22 + private Integer id;
  23 +
  24 + /** 在线状态(0离线,1在线) */
  25 + @ApiModelProperty(value="在线状态(0离线,1在线)")
  26 + private Integer onlineState;
  27 +
  28 + /** 最后登陆时间 */
  29 + @ApiModelProperty(value="最后登陆时间")
  30 + private Integer lastLoginTime;
  31 +
  32 + /** 最后登陆IP */
  33 + @ApiModelProperty(value="最后登陆IP")
  34 + private String lastLoginIp;
  35 +
  36 + /** 最后登陆地点 */
  37 + @ApiModelProperty(value="最后登陆地点")
  38 + private String lastAddress;
  39 +
  40 + /** 最后登陆经度 */
  41 + @ApiModelProperty(value="最后登陆经度")
  42 + private String lastLoginLongitude;
  43 +
  44 + /** 最后登陆纬度 */
  45 + @ApiModelProperty(value="最后登陆纬度")
  46 + private String lastLoginLatitude;
  47 +
  48 + public void setId(Integer id)
  49 + {
  50 + this.id = id;
  51 + }
  52 +
  53 + public Integer getId()
  54 + {
  55 + return id;
  56 + }
  57 + public void setOnlineState(Integer onlineState)
  58 + {
  59 + this.onlineState = onlineState;
  60 + }
  61 +
  62 + public Integer getOnlineState()
  63 + {
  64 + return onlineState;
  65 + }
  66 + public void setLastLoginTime(Integer lastLoginTime)
  67 + {
  68 + this.lastLoginTime = lastLoginTime;
  69 + }
  70 +
  71 + public Integer getLastLoginTime()
  72 + {
  73 + return lastLoginTime;
  74 + }
  75 + public void setLastLoginIp(String lastLoginIp)
  76 + {
  77 + this.lastLoginIp = lastLoginIp;
  78 + }
  79 +
  80 + public String getLastLoginIp()
  81 + {
  82 + return lastLoginIp;
  83 + }
  84 + public void setLastAddress(String lastAddress)
  85 + {
  86 + this.lastAddress = lastAddress;
  87 + }
  88 +
  89 + public String getLastAddress()
  90 + {
  91 + return lastAddress;
  92 + }
  93 + public void setLastLoginLongitude(String lastLoginLongitude)
  94 + {
  95 + this.lastLoginLongitude = lastLoginLongitude;
  96 + }
  97 +
  98 + public String getLastLoginLongitude()
  99 + {
  100 + return lastLoginLongitude;
  101 + }
  102 + public void setLastLoginLatitude(String lastLoginLatitude)
  103 + {
  104 + this.lastLoginLatitude = lastLoginLatitude;
  105 + }
  106 +
  107 + public String getLastLoginLatitude()
  108 + {
  109 + return lastLoginLatitude;
  110 + }
  111 +
  112 + @Override
  113 + public String toString() {
  114 + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
  115 + .append("id", getId())
  116 + .append("onlineState", getOnlineState())
  117 + .append("lastLoginTime", getLastLoginTime())
  118 + .append("lastLoginIp", getLastLoginIp())
  119 + .append("lastAddress", getLastAddress())
  120 + .append("lastLoginLongitude", getLastLoginLongitude())
  121 + .append("lastLoginLatitude", getLastLoginLatitude())
  122 + .toString();
  123 + }
  124 +}
  1 +package com.zhonglai.luhui.domain.user;
  2 +
  3 +import org.apache.commons.lang3.builder.ToStringBuilder;
  4 +import org.apache.commons.lang3.builder.ToStringStyle;
  5 +import io.swagger.annotations.ApiModel;
  6 +import io.swagger.annotations.ApiModelProperty;
  7 +import com.ruoyi.common.tool.BaseEntity;
  8 +
  9 +/**
  10 + * 用户官方及告警信息对象 user_official_info
  11 + *
  12 + * @author zhonglai
  13 + * @date 2025-10-18
  14 + */
  15 +@ApiModel("用户官方及告警信息")
  16 +public class UserOfficialInfo extends BaseEntity
  17 +{
  18 + private static final long serialVersionUID = 1L;
  19 +
  20 + /** 用户ID,主键关联 */
  21 + @ApiModelProperty(value="主键id")
  22 + private Integer id;
  23 +
  24 + /** 官方担保状态 */
  25 + @ApiModelProperty(value="官方担保状态")
  26 + private Integer guarantee;
  27 +
  28 + /** 官方担保描述 */
  29 + @ApiModelProperty(value="官方担保描述")
  30 + private String guaranteeDescribe;
  31 +
  32 + /** 告警协议 */
  33 + @ApiModelProperty(value="告警协议")
  34 + private Integer alarmAgreement;
  35 +
  36 + /** 告警通知电话 */
  37 + @ApiModelProperty(value="告警通知电话")
  38 + private String alarmNoticePhone;
  39 +
  40 + /** 告警通知openid */
  41 + @ApiModelProperty(value="告警通知openid")
  42 + private String alarmNoticeOpenid;
  43 +
  44 + /** 告警通知开关 */
  45 + @ApiModelProperty(value="告警通知开关")
  46 + private Integer alarmNoticeWxopen;
  47 +
  48 + public void setId(Integer id)
  49 + {
  50 + this.id = id;
  51 + }
  52 +
  53 + public Integer getId()
  54 + {
  55 + return id;
  56 + }
  57 + public void setGuarantee(Integer guarantee)
  58 + {
  59 + this.guarantee = guarantee;
  60 + }
  61 +
  62 + public Integer getGuarantee()
  63 + {
  64 + return guarantee;
  65 + }
  66 + public void setGuaranteeDescribe(String guaranteeDescribe)
  67 + {
  68 + this.guaranteeDescribe = guaranteeDescribe;
  69 + }
  70 +
  71 + public String getGuaranteeDescribe()
  72 + {
  73 + return guaranteeDescribe;
  74 + }
  75 + public void setAlarmAgreement(Integer alarmAgreement)
  76 + {
  77 + this.alarmAgreement = alarmAgreement;
  78 + }
  79 +
  80 + public Integer getAlarmAgreement()
  81 + {
  82 + return alarmAgreement;
  83 + }
  84 + public void setAlarmNoticePhone(String alarmNoticePhone)
  85 + {
  86 + this.alarmNoticePhone = alarmNoticePhone;
  87 + }
  88 +
  89 + public String getAlarmNoticePhone()
  90 + {
  91 + return alarmNoticePhone;
  92 + }
  93 + public void setAlarmNoticeOpenid(String alarmNoticeOpenid)
  94 + {
  95 + this.alarmNoticeOpenid = alarmNoticeOpenid;
  96 + }
  97 +
  98 + public String getAlarmNoticeOpenid()
  99 + {
  100 + return alarmNoticeOpenid;
  101 + }
  102 + public void setAlarmNoticeWxopen(Integer alarmNoticeWxopen)
  103 + {
  104 + this.alarmNoticeWxopen = alarmNoticeWxopen;
  105 + }
  106 +
  107 + public Integer getAlarmNoticeWxopen()
  108 + {
  109 + return alarmNoticeWxopen;
  110 + }
  111 +
  112 + @Override
  113 + public String toString() {
  114 + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
  115 + .append("id", getId())
  116 + .append("guarantee", getGuarantee())
  117 + .append("guaranteeDescribe", getGuaranteeDescribe())
  118 + .append("alarmAgreement", getAlarmAgreement())
  119 + .append("alarmNoticePhone", getAlarmNoticePhone())
  120 + .append("alarmNoticeOpenid", getAlarmNoticeOpenid())
  121 + .append("alarmNoticeWxopen", getAlarmNoticeWxopen())
  122 + .toString();
  123 + }
  124 +}
  1 +package com.zhonglai.luhui.domain.user;
  2 +
  3 +import org.apache.commons.lang3.builder.ToStringBuilder;
  4 +import org.apache.commons.lang3.builder.ToStringStyle;
  5 +import io.swagger.annotations.ApiModel;
  6 +import io.swagger.annotations.ApiModelProperty;
  7 +import com.ruoyi.common.tool.BaseEntity;
  8 +
  9 +/**
  10 + * 用户社交信息对象 user_social_info
  11 + *
  12 + * @author zhonglai
  13 + * @date 2025-10-18
  14 + */
  15 +@ApiModel("用户社交信息")
  16 +public class UserSocialInfo extends BaseEntity
  17 +{
  18 + private static final long serialVersionUID = 1L;
  19 +
  20 + /** 用户ID,主键关联 */
  21 + @ApiModelProperty(value="主键id")
  22 + private Integer id;
  23 +
  24 + /** QQ账号 */
  25 + @ApiModelProperty(value="QQ账号")
  26 + private String qq;
  27 +
  28 + /** 微信账号 */
  29 + @ApiModelProperty(value="微信账号")
  30 + private String weixin;
  31 +
  32 + /** 开放平台ID */
  33 + @ApiModelProperty(value="开放平台ID")
  34 + private Integer openId;
  35 +
  36 + /** 萤石子账号ID */
  37 + @ApiModelProperty(value="萤石子账号ID")
  38 + private String ysChildrenId;
  39 +
  40 + /** 萤石子子账号密码 */
  41 + @ApiModelProperty(value="萤石子子账号密码")
  42 + private String ysChildrenPass;
  43 +
  44 + /** 极光消息密码 */
  45 + @ApiModelProperty(value="极光消息密码")
  46 + private String messagePassWord;
  47 +
  48 + /** 极光账号是否活跃 */
  49 + @ApiModelProperty(value="极光账号是否活跃")
  50 + private Integer isMessageAction;
  51 +
  52 + public void setId(Integer id)
  53 + {
  54 + this.id = id;
  55 + }
  56 +
  57 + public Integer getId()
  58 + {
  59 + return id;
  60 + }
  61 + public void setQq(String qq)
  62 + {
  63 + this.qq = qq;
  64 + }
  65 +
  66 + public String getQq()
  67 + {
  68 + return qq;
  69 + }
  70 + public void setWeixin(String weixin)
  71 + {
  72 + this.weixin = weixin;
  73 + }
  74 +
  75 + public String getWeixin()
  76 + {
  77 + return weixin;
  78 + }
  79 + public void setOpenId(Integer openId)
  80 + {
  81 + this.openId = openId;
  82 + }
  83 +
  84 + public Integer getOpenId()
  85 + {
  86 + return openId;
  87 + }
  88 + public void setYsChildrenId(String ysChildrenId)
  89 + {
  90 + this.ysChildrenId = ysChildrenId;
  91 + }
  92 +
  93 + public String getYsChildrenId()
  94 + {
  95 + return ysChildrenId;
  96 + }
  97 + public void setYsChildrenPass(String ysChildrenPass)
  98 + {
  99 + this.ysChildrenPass = ysChildrenPass;
  100 + }
  101 +
  102 + public String getYsChildrenPass()
  103 + {
  104 + return ysChildrenPass;
  105 + }
  106 + public void setMessagePassWord(String messagePassWord)
  107 + {
  108 + this.messagePassWord = messagePassWord;
  109 + }
  110 +
  111 + public String getMessagePassWord()
  112 + {
  113 + return messagePassWord;
  114 + }
  115 + public void setIsMessageAction(Integer isMessageAction)
  116 + {
  117 + this.isMessageAction = isMessageAction;
  118 + }
  119 +
  120 + public Integer getIsMessageAction()
  121 + {
  122 + return isMessageAction;
  123 + }
  124 +
  125 + @Override
  126 + public String toString() {
  127 + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
  128 + .append("id", getId())
  129 + .append("qq", getQq())
  130 + .append("weixin", getWeixin())
  131 + .append("openId", getOpenId())
  132 + .append("ysChildrenId", getYsChildrenId())
  133 + .append("ysChildrenPass", getYsChildrenPass())
  134 + .append("messagePassWord", getMessagePassWord())
  135 + .append("isMessageAction", getIsMessageAction())
  136 + .toString();
  137 + }
  138 +}
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<project xmlns="http://maven.apache.org/POM/4.0.0"
  3 + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4 + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5 + <modelVersion>4.0.0</modelVersion>
  6 + <parent>
  7 + <groupId>com.zhonglai.luhui</groupId>
  8 + <artifactId>lh-common</artifactId>
  9 + <version>1.0-SNAPSHOT</version>
  10 + </parent>
  11 +
  12 + <artifactId>lh-user</artifactId>
  13 +
  14 + <properties>
  15 + <maven.compiler.source>8</maven.compiler.source>
  16 + <maven.compiler.target>8</maven.compiler.target>
  17 + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  18 + </properties>
  19 +
  20 + <dependencies>
  21 + <!-- 通用工具-->
  22 + <dependency>
  23 + <groupId>com.zhonglai.luhui</groupId>
  24 + <artifactId>ruoyi-common-security</artifactId>
  25 + </dependency>
  26 + <dependency>
  27 + <groupId>com.zhonglai.luhui</groupId>
  28 + <artifactId>lh-jar-action</artifactId>
  29 + </dependency>
  30 + </dependencies>
  31 +</project>
  1 +package com.zhonglai.luhui.user.domain;
  2 +
  3 +import org.apache.commons.lang3.builder.ToStringBuilder;
  4 +import org.apache.commons.lang3.builder.ToStringStyle;
  5 +import io.swagger.annotations.ApiModel;
  6 +import io.swagger.annotations.ApiModelProperty;
  7 +import com.ruoyi.common.tool.BaseEntity;
  8 +
  9 +/**
  10 + * 用户账户信息对象 user_account_info
  11 + *
  12 + * @author zhonglai
  13 + * @date 2025-10-20
  14 + */
  15 +@ApiModel("用户账户信息")
  16 +public class UserAccountInfo extends BaseEntity
  17 +{
  18 + private static final long serialVersionUID = 1L;
  19 +
  20 + /** 用户ID,主键关联 */
  21 + private Integer id;
  22 +
  23 + /** 积分 */
  24 + @ApiModelProperty(value="积分")
  25 + private Integer integral;
  26 +
  27 + /** 余额 */
  28 + @ApiModelProperty(value="余额")
  29 + private Integer balance;
  30 +
  31 + /** 级别 */
  32 + @ApiModelProperty(value="级别")
  33 + private Integer level;
  34 +
  35 + /** 货币 */
  36 + @ApiModelProperty(value="货币")
  37 + private Integer currency;
  38 +
  39 + /** 经验 */
  40 + @ApiModelProperty(value="经验")
  41 + private Integer experience;
  42 +
  43 + /** 年度服务费 */
  44 + @ApiModelProperty(value="年度服务费")
  45 + private Integer annualServiceCharge;
  46 +
  47 + /** 点苗器到期时间 */
  48 + @ApiModelProperty(value="点苗器到期时间")
  49 + private Integer dianmiaoEndTime;
  50 +
  51 + public void setId(Integer id)
  52 + {
  53 + this.id = id;
  54 + }
  55 +
  56 + public Integer getId()
  57 + {
  58 + return id;
  59 + }
  60 + public void setIntegral(Integer integral)
  61 + {
  62 + this.integral = integral;
  63 + }
  64 +
  65 + public Integer getIntegral()
  66 + {
  67 + return integral;
  68 + }
  69 + public void setBalance(Integer balance)
  70 + {
  71 + this.balance = balance;
  72 + }
  73 +
  74 + public Integer getBalance()
  75 + {
  76 + return balance;
  77 + }
  78 + public void setLevel(Integer level)
  79 + {
  80 + this.level = level;
  81 + }
  82 +
  83 + public Integer getLevel()
  84 + {
  85 + return level;
  86 + }
  87 + public void setCurrency(Integer currency)
  88 + {
  89 + this.currency = currency;
  90 + }
  91 +
  92 + public Integer getCurrency()
  93 + {
  94 + return currency;
  95 + }
  96 + public void setExperience(Integer experience)
  97 + {
  98 + this.experience = experience;
  99 + }
  100 +
  101 + public Integer getExperience()
  102 + {
  103 + return experience;
  104 + }
  105 + public void setAnnualServiceCharge(Integer annualServiceCharge)
  106 + {
  107 + this.annualServiceCharge = annualServiceCharge;
  108 + }
  109 +
  110 + public Integer getAnnualServiceCharge()
  111 + {
  112 + return annualServiceCharge;
  113 + }
  114 + public void setDianmiaoEndTime(Integer dianmiaoEndTime)
  115 + {
  116 + this.dianmiaoEndTime = dianmiaoEndTime;
  117 + }
  118 +
  119 + public Integer getDianmiaoEndTime()
  120 + {
  121 + return dianmiaoEndTime;
  122 + }
  123 +
  124 + @Override
  125 + public String toString() {
  126 + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
  127 + .append("id", getId())
  128 + .append("integral", getIntegral())
  129 + .append("balance", getBalance())
  130 + .append("level", getLevel())
  131 + .append("currency", getCurrency())
  132 + .append("experience", getExperience())
  133 + .append("annualServiceCharge", getAnnualServiceCharge())
  134 + .append("dianmiaoEndTime", getDianmiaoEndTime())
  135 + .toString();
  136 + }
  137 +}
  1 +package com.zhonglai.luhui.user.domain;
  2 +
  3 +import org.apache.commons.lang3.builder.ToStringBuilder;
  4 +import org.apache.commons.lang3.builder.ToStringStyle;
  5 +import io.swagger.annotations.ApiModel;
  6 +import io.swagger.annotations.ApiModelProperty;
  7 +import com.ruoyi.common.tool.BaseEntity;
  8 +
  9 +/**
  10 + * 用户地理信息对象 user_address_info
  11 + *
  12 + * @author zhonglai
  13 + * @date 2025-10-20
  14 + */
  15 +@ApiModel("用户地理信息")
  16 +public class UserAddressInfo extends BaseEntity
  17 +{
  18 + private static final long serialVersionUID = 1L;
  19 +
  20 + /** 用户ID,主键关联 */
  21 + private Integer id;
  22 +
  23 + /** 省编号 */
  24 + @ApiModelProperty(value="省编号")
  25 + private String provinceId;
  26 +
  27 + /** 市编号 */
  28 + @ApiModelProperty(value="市编号")
  29 + private String cityId;
  30 +
  31 + /** 县编号 */
  32 + @ApiModelProperty(value="县编号")
  33 + private String countyId;
  34 +
  35 + /** 省名称 */
  36 + @ApiModelProperty(value="省名称")
  37 + private String provinceName;
  38 +
  39 + /** 市名称 */
  40 + @ApiModelProperty(value="市名称")
  41 + private String cityName;
  42 +
  43 + /** 县名称 */
  44 + @ApiModelProperty(value="县名称")
  45 + private String countyName;
  46 +
  47 + /** 地址 */
  48 + @ApiModelProperty(value="地址")
  49 + private String address;
  50 +
  51 + /** 常用搜索 */
  52 + @ApiModelProperty(value="常用搜索")
  53 + private String search;
  54 +
  55 + public void setId(Integer id)
  56 + {
  57 + this.id = id;
  58 + }
  59 +
  60 + public Integer getId()
  61 + {
  62 + return id;
  63 + }
  64 + public void setProvinceId(String provinceId)
  65 + {
  66 + this.provinceId = provinceId;
  67 + }
  68 +
  69 + public String getProvinceId()
  70 + {
  71 + return provinceId;
  72 + }
  73 + public void setCityId(String cityId)
  74 + {
  75 + this.cityId = cityId;
  76 + }
  77 +
  78 + public String getCityId()
  79 + {
  80 + return cityId;
  81 + }
  82 + public void setCountyId(String countyId)
  83 + {
  84 + this.countyId = countyId;
  85 + }
  86 +
  87 + public String getCountyId()
  88 + {
  89 + return countyId;
  90 + }
  91 + public void setProvinceName(String provinceName)
  92 + {
  93 + this.provinceName = provinceName;
  94 + }
  95 +
  96 + public String getProvinceName()
  97 + {
  98 + return provinceName;
  99 + }
  100 + public void setCityName(String cityName)
  101 + {
  102 + this.cityName = cityName;
  103 + }
  104 +
  105 + public String getCityName()
  106 + {
  107 + return cityName;
  108 + }
  109 + public void setCountyName(String countyName)
  110 + {
  111 + this.countyName = countyName;
  112 + }
  113 +
  114 + public String getCountyName()
  115 + {
  116 + return countyName;
  117 + }
  118 + public void setAddress(String address)
  119 + {
  120 + this.address = address;
  121 + }
  122 +
  123 + public String getAddress()
  124 + {
  125 + return address;
  126 + }
  127 + public void setSearch(String search)
  128 + {
  129 + this.search = search;
  130 + }
  131 +
  132 + public String getSearch()
  133 + {
  134 + return search;
  135 + }
  136 +
  137 + @Override
  138 + public String toString() {
  139 + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
  140 + .append("id", getId())
  141 + .append("provinceId", getProvinceId())
  142 + .append("cityId", getCityId())
  143 + .append("countyId", getCountyId())
  144 + .append("provinceName", getProvinceName())
  145 + .append("cityName", getCityName())
  146 + .append("countyName", getCountyName())
  147 + .append("address", getAddress())
  148 + .append("search", getSearch())
  149 + .toString();
  150 + }
  151 +}
  1 +package com.zhonglai.luhui.user.domain;
  2 +
  3 +import org.apache.commons.lang3.builder.ToStringBuilder;
  4 +import org.apache.commons.lang3.builder.ToStringStyle;
  5 +import io.swagger.annotations.ApiModel;
  6 +import io.swagger.annotations.ApiModelProperty;
  7 +import com.ruoyi.common.tool.BaseEntity;
  8 +
  9 +/**
  10 + * 用户认证信息对象 user_auth_info
  11 + *
  12 + * @author zhonglai
  13 + * @date 2025-10-20
  14 + */
  15 +@ApiModel("用户认证信息")
  16 +public class UserAuthInfo extends BaseEntity
  17 +{
  18 + private static final long serialVersionUID = 1L;
  19 +
  20 + /** 用户ID,主键关联 */
  21 + private Integer id;
  22 +
  23 + /** 是否实名认证(0否,1是) */
  24 + @ApiModelProperty(value="是否实名认证(0否,1是)")
  25 + private Integer nameAuthentication;
  26 +
  27 + /** 个人审核状态 */
  28 + @ApiModelProperty(value="个人审核状态")
  29 + private Integer personalAuthenticationState;
  30 +
  31 + /** 企业审核状态 */
  32 + @ApiModelProperty(value="企业审核状态")
  33 + private Integer enterpriseAuthenticationState;
  34 +
  35 + /** 个人审核描述 */
  36 + @ApiModelProperty(value="个人审核描述")
  37 + private String personalAuthenticationDescribe;
  38 +
  39 + /** 企业审核描述 */
  40 + @ApiModelProperty(value="企业审核描述")
  41 + private String enterpriseAuthenticationDescribe;
  42 +
  43 + /** 个人审核更新时间 */
  44 + @ApiModelProperty(value="个人审核更新时间")
  45 + private Integer personalAuthenticationTime;
  46 +
  47 + /** 企业审核更新时间 */
  48 + @ApiModelProperty(value="企业审核更新时间")
  49 + private Integer enterpriseAuthenticationTime;
  50 +
  51 + /** 身份证号 */
  52 + @ApiModelProperty(value="身份证号")
  53 + private String identificationCard;
  54 +
  55 + /** 营业执照号 */
  56 + @ApiModelProperty(value="营业执照号")
  57 + private String businessLicenseNo;
  58 +
  59 + /** 企业名称 */
  60 + @ApiModelProperty(value="企业名称")
  61 + private String enterpriseName;
  62 +
  63 + /** 企业营业执照 */
  64 + @ApiModelProperty(value="企业营业执照")
  65 + private String businessLicenseUrl;
  66 +
  67 + public void setId(Integer id)
  68 + {
  69 + this.id = id;
  70 + }
  71 +
  72 + public Integer getId()
  73 + {
  74 + return id;
  75 + }
  76 + public void setNameAuthentication(Integer nameAuthentication)
  77 + {
  78 + this.nameAuthentication = nameAuthentication;
  79 + }
  80 +
  81 + public Integer getNameAuthentication()
  82 + {
  83 + return nameAuthentication;
  84 + }
  85 + public void setPersonalAuthenticationState(Integer personalAuthenticationState)
  86 + {
  87 + this.personalAuthenticationState = personalAuthenticationState;
  88 + }
  89 +
  90 + public Integer getPersonalAuthenticationState()
  91 + {
  92 + return personalAuthenticationState;
  93 + }
  94 + public void setEnterpriseAuthenticationState(Integer enterpriseAuthenticationState)
  95 + {
  96 + this.enterpriseAuthenticationState = enterpriseAuthenticationState;
  97 + }
  98 +
  99 + public Integer getEnterpriseAuthenticationState()
  100 + {
  101 + return enterpriseAuthenticationState;
  102 + }
  103 + public void setPersonalAuthenticationDescribe(String personalAuthenticationDescribe)
  104 + {
  105 + this.personalAuthenticationDescribe = personalAuthenticationDescribe;
  106 + }
  107 +
  108 + public String getPersonalAuthenticationDescribe()
  109 + {
  110 + return personalAuthenticationDescribe;
  111 + }
  112 + public void setEnterpriseAuthenticationDescribe(String enterpriseAuthenticationDescribe)
  113 + {
  114 + this.enterpriseAuthenticationDescribe = enterpriseAuthenticationDescribe;
  115 + }
  116 +
  117 + public String getEnterpriseAuthenticationDescribe()
  118 + {
  119 + return enterpriseAuthenticationDescribe;
  120 + }
  121 + public void setPersonalAuthenticationTime(Integer personalAuthenticationTime)
  122 + {
  123 + this.personalAuthenticationTime = personalAuthenticationTime;
  124 + }
  125 +
  126 + public Integer getPersonalAuthenticationTime()
  127 + {
  128 + return personalAuthenticationTime;
  129 + }
  130 + public void setEnterpriseAuthenticationTime(Integer enterpriseAuthenticationTime)
  131 + {
  132 + this.enterpriseAuthenticationTime = enterpriseAuthenticationTime;
  133 + }
  134 +
  135 + public Integer getEnterpriseAuthenticationTime()
  136 + {
  137 + return enterpriseAuthenticationTime;
  138 + }
  139 + public void setIdentificationCard(String identificationCard)
  140 + {
  141 + this.identificationCard = identificationCard;
  142 + }
  143 +
  144 + public String getIdentificationCard()
  145 + {
  146 + return identificationCard;
  147 + }
  148 + public void setBusinessLicenseNo(String businessLicenseNo)
  149 + {
  150 + this.businessLicenseNo = businessLicenseNo;
  151 + }
  152 +
  153 + public String getBusinessLicenseNo()
  154 + {
  155 + return businessLicenseNo;
  156 + }
  157 + public void setEnterpriseName(String enterpriseName)
  158 + {
  159 + this.enterpriseName = enterpriseName;
  160 + }
  161 +
  162 + public String getEnterpriseName()
  163 + {
  164 + return enterpriseName;
  165 + }
  166 + public void setBusinessLicenseUrl(String businessLicenseUrl)
  167 + {
  168 + this.businessLicenseUrl = businessLicenseUrl;
  169 + }
  170 +
  171 + public String getBusinessLicenseUrl()
  172 + {
  173 + return businessLicenseUrl;
  174 + }
  175 +
  176 + @Override
  177 + public String toString() {
  178 + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
  179 + .append("id", getId())
  180 + .append("nameAuthentication", getNameAuthentication())
  181 + .append("personalAuthenticationState", getPersonalAuthenticationState())
  182 + .append("enterpriseAuthenticationState", getEnterpriseAuthenticationState())
  183 + .append("personalAuthenticationDescribe", getPersonalAuthenticationDescribe())
  184 + .append("enterpriseAuthenticationDescribe", getEnterpriseAuthenticationDescribe())
  185 + .append("personalAuthenticationTime", getPersonalAuthenticationTime())
  186 + .append("enterpriseAuthenticationTime", getEnterpriseAuthenticationTime())
  187 + .append("identificationCard", getIdentificationCard())
  188 + .append("businessLicenseNo", getBusinessLicenseNo())
  189 + .append("enterpriseName", getEnterpriseName())
  190 + .append("businessLicenseUrl", getBusinessLicenseUrl())
  191 + .toString();
  192 + }
  193 +}
  1 +package com.zhonglai.luhui.user.domain;
  2 +
  3 +import org.apache.commons.lang3.builder.ToStringBuilder;
  4 +import org.apache.commons.lang3.builder.ToStringStyle;
  5 +import io.swagger.annotations.ApiModel;
  6 +import io.swagger.annotations.ApiModelProperty;
  7 +import com.ruoyi.common.tool.BaseEntity;
  8 +
  9 +/**
  10 + * 基础用户信息对象 user_base_info
  11 + *
  12 + * @author zhonglai
  13 + * @date 2025-10-20
  14 + */
  15 +@ApiModel("基础用户信息")
  16 +public class UserBaseInfo extends BaseEntity
  17 +{
  18 + private static final long serialVersionUID = 1L;
  19 +
  20 + /** 用户ID,主键关联 */
  21 + private Integer id;
  22 +
  23 + /** 登录名 */
  24 + @ApiModelProperty(value="登录名")
  25 + private String loginName;
  26 +
  27 + /** 真实姓名 */
  28 + @ApiModelProperty(value="真实姓名")
  29 + private String name;
  30 +
  31 + /** 昵称 */
  32 + @ApiModelProperty(value="昵称")
  33 + private String nickname;
  34 +
  35 + /** 性别(0男,1女) */
  36 + @ApiModelProperty(value="性别(0男,1女)")
  37 + private Integer gender;
  38 +
  39 + /** 手机号 */
  40 + @ApiModelProperty(value="手机号")
  41 + private String phone;
  42 +
  43 + /** 电子邮箱 */
  44 + @ApiModelProperty(value="电子邮箱")
  45 + private String email;
  46 +
  47 + /** 头像地址 */
  48 + @ApiModelProperty(value="头像地址")
  49 + private String imgUrl;
  50 +
  51 + public void setId(Integer id)
  52 + {
  53 + this.id = id;
  54 + }
  55 +
  56 + public Integer getId()
  57 + {
  58 + return id;
  59 + }
  60 + public void setLoginName(String loginName)
  61 + {
  62 + this.loginName = loginName;
  63 + }
  64 +
  65 + public String getLoginName()
  66 + {
  67 + return loginName;
  68 + }
  69 + public void setName(String name)
  70 + {
  71 + this.name = name;
  72 + }
  73 +
  74 + public String getName()
  75 + {
  76 + return name;
  77 + }
  78 + public void setNickname(String nickname)
  79 + {
  80 + this.nickname = nickname;
  81 + }
  82 +
  83 + public String getNickname()
  84 + {
  85 + return nickname;
  86 + }
  87 + public void setGender(Integer gender)
  88 + {
  89 + this.gender = gender;
  90 + }
  91 +
  92 + public Integer getGender()
  93 + {
  94 + return gender;
  95 + }
  96 + public void setPhone(String phone)
  97 + {
  98 + this.phone = phone;
  99 + }
  100 +
  101 + public String getPhone()
  102 + {
  103 + return phone;
  104 + }
  105 + public void setEmail(String email)
  106 + {
  107 + this.email = email;
  108 + }
  109 +
  110 + public String getEmail()
  111 + {
  112 + return email;
  113 + }
  114 + public void setImgUrl(String imgUrl)
  115 + {
  116 + this.imgUrl = imgUrl;
  117 + }
  118 +
  119 + public String getImgUrl()
  120 + {
  121 + return imgUrl;
  122 + }
  123 +
  124 + @Override
  125 + public String toString() {
  126 + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
  127 + .append("id", getId())
  128 + .append("loginName", getLoginName())
  129 + .append("name", getName())
  130 + .append("nickname", getNickname())
  131 + .append("gender", getGender())
  132 + .append("phone", getPhone())
  133 + .append("email", getEmail())
  134 + .append("imgUrl", getImgUrl())
  135 + .append("createTime", getCreateTime())
  136 + .toString();
  137 + }
  138 +}
  1 +package com.zhonglai.luhui.user.domain;
  2 +
  3 +import org.apache.commons.lang3.builder.ToStringBuilder;
  4 +import org.apache.commons.lang3.builder.ToStringStyle;
  5 +import io.swagger.annotations.ApiModel;
  6 +import io.swagger.annotations.ApiModelProperty;
  7 +import com.ruoyi.common.tool.BaseEntity;
  8 +
  9 +/**
  10 + * 用户其他信息对象 user_extra_info
  11 + *
  12 + * @author zhonglai
  13 + * @date 2025-10-20
  14 + */
  15 +@ApiModel("用户其他信息")
  16 +public class UserExtraInfo extends BaseEntity
  17 +{
  18 + private static final long serialVersionUID = 1L;
  19 +
  20 + /** 用户ID,主键关联 */
  21 + private Integer id;
  22 +
  23 + /** 描述图片地址 */
  24 + @ApiModelProperty(value="描述图片地址")
  25 + private String describeImgUrl;
  26 +
  27 + /** 描述 */
  28 + @ApiModelProperty(value="描述")
  29 + private String describe;
  30 +
  31 + /** 用户类型(0普通用户,1管理员,2客服) */
  32 + @ApiModelProperty(value="用户类型",allowableValues="0=普通用户,1管理员,2客服")
  33 + private Integer userType;
  34 +
  35 + /** 是否失效 */
  36 + @ApiModelProperty(value="是否失效")
  37 + private Integer isInvalid;
  38 +
  39 + /** 是否参与活动 */
  40 + @ApiModelProperty(value="是否参与活动")
  41 + private Integer isParticipateIn;
  42 +
  43 + /** 公司ID */
  44 + @ApiModelProperty(value="公司ID")
  45 + private Integer companyId;
  46 +
  47 + /** 分享次数 */
  48 + @ApiModelProperty(value="分享次数")
  49 + private Integer shareNumber;
  50 +
  51 + public void setId(Integer id)
  52 + {
  53 + this.id = id;
  54 + }
  55 +
  56 + public Integer getId()
  57 + {
  58 + return id;
  59 + }
  60 + public void setDescribeImgUrl(String describeImgUrl)
  61 + {
  62 + this.describeImgUrl = describeImgUrl;
  63 + }
  64 +
  65 + public String getDescribeImgUrl()
  66 + {
  67 + return describeImgUrl;
  68 + }
  69 + public void setDescribe(String describe)
  70 + {
  71 + this.describe = describe;
  72 + }
  73 +
  74 + public String getDescribe()
  75 + {
  76 + return describe;
  77 + }
  78 + public void setUserType(Integer userType)
  79 + {
  80 + this.userType = userType;
  81 + }
  82 +
  83 + public Integer getUserType()
  84 + {
  85 + return userType;
  86 + }
  87 + public void setIsInvalid(Integer isInvalid)
  88 + {
  89 + this.isInvalid = isInvalid;
  90 + }
  91 +
  92 + public Integer getIsInvalid()
  93 + {
  94 + return isInvalid;
  95 + }
  96 + public void setIsParticipateIn(Integer isParticipateIn)
  97 + {
  98 + this.isParticipateIn = isParticipateIn;
  99 + }
  100 +
  101 + public Integer getIsParticipateIn()
  102 + {
  103 + return isParticipateIn;
  104 + }
  105 + public void setCompanyId(Integer companyId)
  106 + {
  107 + this.companyId = companyId;
  108 + }
  109 +
  110 + public Integer getCompanyId()
  111 + {
  112 + return companyId;
  113 + }
  114 + public void setShareNumber(Integer shareNumber)
  115 + {
  116 + this.shareNumber = shareNumber;
  117 + }
  118 +
  119 + public Integer getShareNumber()
  120 + {
  121 + return shareNumber;
  122 + }
  123 +
  124 + @Override
  125 + public String toString() {
  126 + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
  127 + .append("id", getId())
  128 + .append("describeImgUrl", getDescribeImgUrl())
  129 + .append("describe", getDescribe())
  130 + .append("userType", getUserType())
  131 + .append("isInvalid", getIsInvalid())
  132 + .append("isParticipateIn", getIsParticipateIn())
  133 + .append("companyId", getCompanyId())
  134 + .append("shareNumber", getShareNumber())
  135 + .toString();
  136 + }
  137 +}
  1 +package com.zhonglai.luhui.user.domain;
  2 +
  3 +import org.apache.commons.lang3.builder.ToStringBuilder;
  4 +import org.apache.commons.lang3.builder.ToStringStyle;
  5 +import io.swagger.annotations.ApiModel;
  6 +import io.swagger.annotations.ApiModelProperty;
  7 +import com.ruoyi.common.tool.BaseEntity;
  8 +
  9 +/**
  10 + * 用户登录对象 user_login
  11 + *
  12 + * @author zhonglai
  13 + * @date 2025-10-20
  14 + */
  15 +@ApiModel("用户登录")
  16 +public class UserLogin extends BaseEntity
  17 +{
  18 + private static final long serialVersionUID = 1L;
  19 +
  20 + /** 用户登录主键主键 */
  21 + private Integer id;
  22 +
  23 + /** 用户主键id */
  24 + @ApiModelProperty(value="用户主键id")
  25 + private Integer userId;
  26 +
  27 + /** 用户登录名 */
  28 + @ApiModelProperty(value="用户登录名")
  29 + private String loginName;
  30 +
  31 + /** 用户密码 */
  32 + @ApiModelProperty(value="用户密码")
  33 + private String loginPass;
  34 +
  35 + /** 用户登录密码key */
  36 + @ApiModelProperty(value="用户登录密码key")
  37 + private String userLoginPassKey;
  38 +
  39 + public void setId(Integer id)
  40 + {
  41 + this.id = id;
  42 + }
  43 +
  44 + public Integer getId()
  45 + {
  46 + return id;
  47 + }
  48 + public void setUserId(Integer userId)
  49 + {
  50 + this.userId = userId;
  51 + }
  52 +
  53 + public Integer getUserId()
  54 + {
  55 + return userId;
  56 + }
  57 + public void setLoginName(String loginName)
  58 + {
  59 + this.loginName = loginName;
  60 + }
  61 +
  62 + public String getLoginName()
  63 + {
  64 + return loginName;
  65 + }
  66 + public void setLoginPass(String loginPass)
  67 + {
  68 + this.loginPass = loginPass;
  69 + }
  70 +
  71 + public String getLoginPass()
  72 + {
  73 + return loginPass;
  74 + }
  75 + public void setUserLoginPassKey(String userLoginPassKey)
  76 + {
  77 + this.userLoginPassKey = userLoginPassKey;
  78 + }
  79 +
  80 + public String getUserLoginPassKey()
  81 + {
  82 + return userLoginPassKey;
  83 + }
  84 +
  85 + @Override
  86 + public String toString() {
  87 + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
  88 + .append("id", getId())
  89 + .append("userId", getUserId())
  90 + .append("loginName", getLoginName())
  91 + .append("loginPass", getLoginPass())
  92 + .append("userLoginPassKey", getUserLoginPassKey())
  93 + .toString();
  94 + }
  95 +}
  1 +package com.zhonglai.luhui.user.domain;
  2 +
  3 +import org.apache.commons.lang3.builder.ToStringBuilder;
  4 +import org.apache.commons.lang3.builder.ToStringStyle;
  5 +import io.swagger.annotations.ApiModel;
  6 +import io.swagger.annotations.ApiModelProperty;
  7 +import com.ruoyi.common.tool.BaseEntity;
  8 +
  9 +/**
  10 + * 用户登录信息对象 user_login_info
  11 + *
  12 + * @author zhonglai
  13 + * @date 2025-10-20
  14 + */
  15 +@ApiModel("用户登录信息")
  16 +public class UserLoginInfo extends BaseEntity
  17 +{
  18 + private static final long serialVersionUID = 1L;
  19 +
  20 + /** 用户ID,主键关联 */
  21 + private Integer id;
  22 +
  23 + /** 在线状态(0离线,1在线) */
  24 + @ApiModelProperty(value="在线状态(0离线,1在线)")
  25 + private Integer onlineState;
  26 +
  27 + /** 最后登陆时间 */
  28 + @ApiModelProperty(value="最后登陆时间")
  29 + private Integer lastLoginTime;
  30 +
  31 + /** 最后登陆IP */
  32 + @ApiModelProperty(value="最后登陆IP")
  33 + private String lastLoginIp;
  34 +
  35 + /** 最后登陆地点 */
  36 + @ApiModelProperty(value="最后登陆地点")
  37 + private String lastAddress;
  38 +
  39 + /** 最后登陆经度 */
  40 + @ApiModelProperty(value="最后登陆经度")
  41 + private String lastLoginLongitude;
  42 +
  43 + /** 最后登陆纬度 */
  44 + @ApiModelProperty(value="最后登陆纬度")
  45 + private String lastLoginLatitude;
  46 +
  47 + public void setId(Integer id)
  48 + {
  49 + this.id = id;
  50 + }
  51 +
  52 + public Integer getId()
  53 + {
  54 + return id;
  55 + }
  56 + public void setOnlineState(Integer onlineState)
  57 + {
  58 + this.onlineState = onlineState;
  59 + }
  60 +
  61 + public Integer getOnlineState()
  62 + {
  63 + return onlineState;
  64 + }
  65 + public void setLastLoginTime(Integer lastLoginTime)
  66 + {
  67 + this.lastLoginTime = lastLoginTime;
  68 + }
  69 +
  70 + public Integer getLastLoginTime()
  71 + {
  72 + return lastLoginTime;
  73 + }
  74 + public void setLastLoginIp(String lastLoginIp)
  75 + {
  76 + this.lastLoginIp = lastLoginIp;
  77 + }
  78 +
  79 + public String getLastLoginIp()
  80 + {
  81 + return lastLoginIp;
  82 + }
  83 + public void setLastAddress(String lastAddress)
  84 + {
  85 + this.lastAddress = lastAddress;
  86 + }
  87 +
  88 + public String getLastAddress()
  89 + {
  90 + return lastAddress;
  91 + }
  92 + public void setLastLoginLongitude(String lastLoginLongitude)
  93 + {
  94 + this.lastLoginLongitude = lastLoginLongitude;
  95 + }
  96 +
  97 + public String getLastLoginLongitude()
  98 + {
  99 + return lastLoginLongitude;
  100 + }
  101 + public void setLastLoginLatitude(String lastLoginLatitude)
  102 + {
  103 + this.lastLoginLatitude = lastLoginLatitude;
  104 + }
  105 +
  106 + public String getLastLoginLatitude()
  107 + {
  108 + return lastLoginLatitude;
  109 + }
  110 +
  111 + @Override
  112 + public String toString() {
  113 + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
  114 + .append("id", getId())
  115 + .append("onlineState", getOnlineState())
  116 + .append("lastLoginTime", getLastLoginTime())
  117 + .append("lastLoginIp", getLastLoginIp())
  118 + .append("lastAddress", getLastAddress())
  119 + .append("lastLoginLongitude", getLastLoginLongitude())
  120 + .append("lastLoginLatitude", getLastLoginLatitude())
  121 + .toString();
  122 + }
  123 +}
  1 +package com.zhonglai.luhui.user.domain;
  2 +
  3 +import org.apache.commons.lang3.builder.ToStringBuilder;
  4 +import org.apache.commons.lang3.builder.ToStringStyle;
  5 +import io.swagger.annotations.ApiModel;
  6 +import io.swagger.annotations.ApiModelProperty;
  7 +import com.ruoyi.common.tool.BaseEntity;
  8 +
  9 +/**
  10 + * 用户官方及告警信息对象 user_official_info
  11 + *
  12 + * @author zhonglai
  13 + * @date 2025-10-20
  14 + */
  15 +@ApiModel("用户官方及告警信息")
  16 +public class UserOfficialInfo extends BaseEntity
  17 +{
  18 + private static final long serialVersionUID = 1L;
  19 +
  20 + /** 用户ID,主键关联 */
  21 + private Integer id;
  22 +
  23 + /** 官方担保状态 */
  24 + @ApiModelProperty(value="官方担保状态")
  25 + private Integer guarantee;
  26 +
  27 + /** 官方担保描述 */
  28 + @ApiModelProperty(value="官方担保描述")
  29 + private String guaranteeDescribe;
  30 +
  31 + /** 告警协议 */
  32 + @ApiModelProperty(value="告警协议")
  33 + private Integer alarmAgreement;
  34 +
  35 + /** 告警通知电话 */
  36 + @ApiModelProperty(value="告警通知电话")
  37 + private String alarmNoticePhone;
  38 +
  39 + /** 告警通知openid */
  40 + @ApiModelProperty(value="告警通知openid")
  41 + private String alarmNoticeOpenid;
  42 +
  43 + /** 告警通知开关 */
  44 + @ApiModelProperty(value="告警通知开关")
  45 + private Integer alarmNoticeWxopen;
  46 +
  47 + public void setId(Integer id)
  48 + {
  49 + this.id = id;
  50 + }
  51 +
  52 + public Integer getId()
  53 + {
  54 + return id;
  55 + }
  56 + public void setGuarantee(Integer guarantee)
  57 + {
  58 + this.guarantee = guarantee;
  59 + }
  60 +
  61 + public Integer getGuarantee()
  62 + {
  63 + return guarantee;
  64 + }
  65 + public void setGuaranteeDescribe(String guaranteeDescribe)
  66 + {
  67 + this.guaranteeDescribe = guaranteeDescribe;
  68 + }
  69 +
  70 + public String getGuaranteeDescribe()
  71 + {
  72 + return guaranteeDescribe;
  73 + }
  74 + public void setAlarmAgreement(Integer alarmAgreement)
  75 + {
  76 + this.alarmAgreement = alarmAgreement;
  77 + }
  78 +
  79 + public Integer getAlarmAgreement()
  80 + {
  81 + return alarmAgreement;
  82 + }
  83 + public void setAlarmNoticePhone(String alarmNoticePhone)
  84 + {
  85 + this.alarmNoticePhone = alarmNoticePhone;
  86 + }
  87 +
  88 + public String getAlarmNoticePhone()
  89 + {
  90 + return alarmNoticePhone;
  91 + }
  92 + public void setAlarmNoticeOpenid(String alarmNoticeOpenid)
  93 + {
  94 + this.alarmNoticeOpenid = alarmNoticeOpenid;
  95 + }
  96 +
  97 + public String getAlarmNoticeOpenid()
  98 + {
  99 + return alarmNoticeOpenid;
  100 + }
  101 + public void setAlarmNoticeWxopen(Integer alarmNoticeWxopen)
  102 + {
  103 + this.alarmNoticeWxopen = alarmNoticeWxopen;
  104 + }
  105 +
  106 + public Integer getAlarmNoticeWxopen()
  107 + {
  108 + return alarmNoticeWxopen;
  109 + }
  110 +
  111 + @Override
  112 + public String toString() {
  113 + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
  114 + .append("id", getId())
  115 + .append("guarantee", getGuarantee())
  116 + .append("guaranteeDescribe", getGuaranteeDescribe())
  117 + .append("alarmAgreement", getAlarmAgreement())
  118 + .append("alarmNoticePhone", getAlarmNoticePhone())
  119 + .append("alarmNoticeOpenid", getAlarmNoticeOpenid())
  120 + .append("alarmNoticeWxopen", getAlarmNoticeWxopen())
  121 + .toString();
  122 + }
  123 +}
  1 +package com.zhonglai.luhui.user.domain;
  2 +
  3 +import org.apache.commons.lang3.builder.ToStringBuilder;
  4 +import org.apache.commons.lang3.builder.ToStringStyle;
  5 +import io.swagger.annotations.ApiModel;
  6 +import io.swagger.annotations.ApiModelProperty;
  7 +import com.ruoyi.common.tool.BaseEntity;
  8 +
  9 +/**
  10 + * 用户社交信息对象 user_social_info
  11 + *
  12 + * @author zhonglai
  13 + * @date 2025-10-20
  14 + */
  15 +@ApiModel("用户社交信息")
  16 +public class UserSocialInfo extends BaseEntity
  17 +{
  18 + private static final long serialVersionUID = 1L;
  19 +
  20 + /** 用户ID,主键关联 */
  21 + private Integer id;
  22 +
  23 + /** QQ账号 */
  24 + @ApiModelProperty(value="QQ账号")
  25 + private String qq;
  26 +
  27 + /** 微信账号 */
  28 + @ApiModelProperty(value="微信账号")
  29 + private String weixin;
  30 +
  31 + /** 开放平台ID */
  32 + @ApiModelProperty(value="开放平台ID")
  33 + private Integer openId;
  34 +
  35 + /** 萤石子账号ID */
  36 + @ApiModelProperty(value="萤石子账号ID")
  37 + private String ysChildrenId;
  38 +
  39 + /** 萤石子子账号密码 */
  40 + @ApiModelProperty(value="萤石子子账号密码")
  41 + private String ysChildrenPass;
  42 +
  43 + /** 极光消息密码 */
  44 + @ApiModelProperty(value="极光消息密码")
  45 + private String messagePassWord;
  46 +
  47 + /** 极光账号是否活跃 */
  48 + @ApiModelProperty(value="极光账号是否活跃")
  49 + private Integer isMessageAction;
  50 +
  51 + public void setId(Integer id)
  52 + {
  53 + this.id = id;
  54 + }
  55 +
  56 + public Integer getId()
  57 + {
  58 + return id;
  59 + }
  60 + public void setQq(String qq)
  61 + {
  62 + this.qq = qq;
  63 + }
  64 +
  65 + public String getQq()
  66 + {
  67 + return qq;
  68 + }
  69 + public void setWeixin(String weixin)
  70 + {
  71 + this.weixin = weixin;
  72 + }
  73 +
  74 + public String getWeixin()
  75 + {
  76 + return weixin;
  77 + }
  78 + public void setOpenId(Integer openId)
  79 + {
  80 + this.openId = openId;
  81 + }
  82 +
  83 + public Integer getOpenId()
  84 + {
  85 + return openId;
  86 + }
  87 + public void setYsChildrenId(String ysChildrenId)
  88 + {
  89 + this.ysChildrenId = ysChildrenId;
  90 + }
  91 +
  92 + public String getYsChildrenId()
  93 + {
  94 + return ysChildrenId;
  95 + }
  96 + public void setYsChildrenPass(String ysChildrenPass)
  97 + {
  98 + this.ysChildrenPass = ysChildrenPass;
  99 + }
  100 +
  101 + public String getYsChildrenPass()
  102 + {
  103 + return ysChildrenPass;
  104 + }
  105 + public void setMessagePassWord(String messagePassWord)
  106 + {
  107 + this.messagePassWord = messagePassWord;
  108 + }
  109 +
  110 + public String getMessagePassWord()
  111 + {
  112 + return messagePassWord;
  113 + }
  114 + public void setIsMessageAction(Integer isMessageAction)
  115 + {
  116 + this.isMessageAction = isMessageAction;
  117 + }
  118 +
  119 + public Integer getIsMessageAction()
  120 + {
  121 + return isMessageAction;
  122 + }
  123 +
  124 + @Override
  125 + public String toString() {
  126 + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
  127 + .append("id", getId())
  128 + .append("qq", getQq())
  129 + .append("weixin", getWeixin())
  130 + .append("openId", getOpenId())
  131 + .append("ysChildrenId", getYsChildrenId())
  132 + .append("ysChildrenPass", getYsChildrenPass())
  133 + .append("messagePassWord", getMessagePassWord())
  134 + .append("isMessageAction", getIsMessageAction())
  135 + .toString();
  136 + }
  137 +}
  1 +package com.zhonglai.luhui.user.mapper;
  2 +
  3 +import java.util.List;
  4 +import com.zhonglai.luhui.user.domain.UserAccountInfo;
  5 +
  6 +/**
  7 + * 用户账户信息Mapper接口
  8 + *
  9 + * @author zhonglai
  10 + * @date 2025-10-20
  11 + */
  12 +public interface UserAccountInfoMapper
  13 +{
  14 + /**
  15 + * 查询用户账户信息
  16 + *
  17 + * @param id 用户账户信息主键
  18 + * @return 用户账户信息
  19 + */
  20 + public UserAccountInfo selectUserAccountInfoById(Integer id);
  21 +
  22 + /**
  23 + * 查询用户账户信息列表
  24 + *
  25 + * @param userAccountInfo 用户账户信息
  26 + * @return 用户账户信息集合
  27 + */
  28 + public List<UserAccountInfo> selectUserAccountInfoList(UserAccountInfo userAccountInfo);
  29 +
  30 + /**
  31 + * 新增用户账户信息
  32 + *
  33 + * @param userAccountInfo 用户账户信息
  34 + * @return 结果
  35 + */
  36 + public int insertUserAccountInfo(UserAccountInfo userAccountInfo);
  37 +
  38 + /**
  39 + * 修改用户账户信息
  40 + *
  41 + * @param userAccountInfo 用户账户信息
  42 + * @return 结果
  43 + */
  44 + public int updateUserAccountInfo(UserAccountInfo userAccountInfo);
  45 +
  46 + /**
  47 + * 删除用户账户信息
  48 + *
  49 + * @param id 用户账户信息主键
  50 + * @return 结果
  51 + */
  52 + public int deleteUserAccountInfoById(Integer id);
  53 +
  54 + /**
  55 + * 批量删除用户账户信息
  56 + *
  57 + * @param ids 需要删除的数据主键集合
  58 + * @return 结果
  59 + */
  60 + public int deleteUserAccountInfoByIds(Integer[] ids);
  61 +}
  1 +package com.zhonglai.luhui.user.mapper;
  2 +
  3 +import java.util.List;
  4 +import com.zhonglai.luhui.user.domain.UserAddressInfo;
  5 +
  6 +/**
  7 + * 用户地理信息Mapper接口
  8 + *
  9 + * @author zhonglai
  10 + * @date 2025-10-20
  11 + */
  12 +public interface UserAddressInfoMapper
  13 +{
  14 + /**
  15 + * 查询用户地理信息
  16 + *
  17 + * @param id 用户地理信息主键
  18 + * @return 用户地理信息
  19 + */
  20 + public UserAddressInfo selectUserAddressInfoById(Integer id);
  21 +
  22 + /**
  23 + * 查询用户地理信息列表
  24 + *
  25 + * @param userAddressInfo 用户地理信息
  26 + * @return 用户地理信息集合
  27 + */
  28 + public List<UserAddressInfo> selectUserAddressInfoList(UserAddressInfo userAddressInfo);
  29 +
  30 + /**
  31 + * 新增用户地理信息
  32 + *
  33 + * @param userAddressInfo 用户地理信息
  34 + * @return 结果
  35 + */
  36 + public int insertUserAddressInfo(UserAddressInfo userAddressInfo);
  37 +
  38 + /**
  39 + * 修改用户地理信息
  40 + *
  41 + * @param userAddressInfo 用户地理信息
  42 + * @return 结果
  43 + */
  44 + public int updateUserAddressInfo(UserAddressInfo userAddressInfo);
  45 +
  46 + /**
  47 + * 删除用户地理信息
  48 + *
  49 + * @param id 用户地理信息主键
  50 + * @return 结果
  51 + */
  52 + public int deleteUserAddressInfoById(Integer id);
  53 +
  54 + /**
  55 + * 批量删除用户地理信息
  56 + *
  57 + * @param ids 需要删除的数据主键集合
  58 + * @return 结果
  59 + */
  60 + public int deleteUserAddressInfoByIds(Integer[] ids);
  61 +}
  1 +package com.zhonglai.luhui.user.mapper;
  2 +
  3 +import java.util.List;
  4 +import com.zhonglai.luhui.user.domain.UserAuthInfo;
  5 +
  6 +/**
  7 + * 用户认证信息Mapper接口
  8 + *
  9 + * @author zhonglai
  10 + * @date 2025-10-20
  11 + */
  12 +public interface UserAuthInfoMapper
  13 +{
  14 + /**
  15 + * 查询用户认证信息
  16 + *
  17 + * @param id 用户认证信息主键
  18 + * @return 用户认证信息
  19 + */
  20 + public UserAuthInfo selectUserAuthInfoById(Integer id);
  21 +
  22 + /**
  23 + * 查询用户认证信息列表
  24 + *
  25 + * @param userAuthInfo 用户认证信息
  26 + * @return 用户认证信息集合
  27 + */
  28 + public List<UserAuthInfo> selectUserAuthInfoList(UserAuthInfo userAuthInfo);
  29 +
  30 + /**
  31 + * 新增用户认证信息
  32 + *
  33 + * @param userAuthInfo 用户认证信息
  34 + * @return 结果
  35 + */
  36 + public int insertUserAuthInfo(UserAuthInfo userAuthInfo);
  37 +
  38 + /**
  39 + * 修改用户认证信息
  40 + *
  41 + * @param userAuthInfo 用户认证信息
  42 + * @return 结果
  43 + */
  44 + public int updateUserAuthInfo(UserAuthInfo userAuthInfo);
  45 +
  46 + /**
  47 + * 删除用户认证信息
  48 + *
  49 + * @param id 用户认证信息主键
  50 + * @return 结果
  51 + */
  52 + public int deleteUserAuthInfoById(Integer id);
  53 +
  54 + /**
  55 + * 批量删除用户认证信息
  56 + *
  57 + * @param ids 需要删除的数据主键集合
  58 + * @return 结果
  59 + */
  60 + public int deleteUserAuthInfoByIds(Integer[] ids);
  61 +}
  1 +package com.zhonglai.luhui.user.mapper;
  2 +
  3 +import java.util.List;
  4 +import com.zhonglai.luhui.user.domain.UserBaseInfo;
  5 +
  6 +/**
  7 + * 基础用户信息Mapper接口
  8 + *
  9 + * @author zhonglai
  10 + * @date 2025-10-20
  11 + */
  12 +public interface UserBaseInfoMapper
  13 +{
  14 + /**
  15 + * 查询基础用户信息
  16 + *
  17 + * @param id 基础用户信息主键
  18 + * @return 基础用户信息
  19 + */
  20 + public UserBaseInfo selectUserBaseInfoById(Integer id);
  21 +
  22 + /**
  23 + * 查询基础用户信息列表
  24 + *
  25 + * @param userBaseInfo 基础用户信息
  26 + * @return 基础用户信息集合
  27 + */
  28 + public List<UserBaseInfo> selectUserBaseInfoList(UserBaseInfo userBaseInfo);
  29 +
  30 + /**
  31 + * 新增基础用户信息
  32 + *
  33 + * @param userBaseInfo 基础用户信息
  34 + * @return 结果
  35 + */
  36 + public int insertUserBaseInfo(UserBaseInfo userBaseInfo);
  37 +
  38 + /**
  39 + * 修改基础用户信息
  40 + *
  41 + * @param userBaseInfo 基础用户信息
  42 + * @return 结果
  43 + */
  44 + public int updateUserBaseInfo(UserBaseInfo userBaseInfo);
  45 +
  46 + /**
  47 + * 删除基础用户信息
  48 + *
  49 + * @param id 基础用户信息主键
  50 + * @return 结果
  51 + */
  52 + public int deleteUserBaseInfoById(Integer id);
  53 +
  54 + /**
  55 + * 批量删除基础用户信息
  56 + *
  57 + * @param ids 需要删除的数据主键集合
  58 + * @return 结果
  59 + */
  60 + public int deleteUserBaseInfoByIds(Integer[] ids);
  61 +}
  1 +package com.zhonglai.luhui.user.mapper;
  2 +
  3 +import java.util.List;
  4 +import com.zhonglai.luhui.user.domain.UserExtraInfo;
  5 +
  6 +/**
  7 + * 用户其他信息Mapper接口
  8 + *
  9 + * @author zhonglai
  10 + * @date 2025-10-20
  11 + */
  12 +public interface UserExtraInfoMapper
  13 +{
  14 + /**
  15 + * 查询用户其他信息
  16 + *
  17 + * @param id 用户其他信息主键
  18 + * @return 用户其他信息
  19 + */
  20 + public UserExtraInfo selectUserExtraInfoById(Integer id);
  21 +
  22 + /**
  23 + * 查询用户其他信息列表
  24 + *
  25 + * @param userExtraInfo 用户其他信息
  26 + * @return 用户其他信息集合
  27 + */
  28 + public List<UserExtraInfo> selectUserExtraInfoList(UserExtraInfo userExtraInfo);
  29 +
  30 + /**
  31 + * 新增用户其他信息
  32 + *
  33 + * @param userExtraInfo 用户其他信息
  34 + * @return 结果
  35 + */
  36 + public int insertUserExtraInfo(UserExtraInfo userExtraInfo);
  37 +
  38 + /**
  39 + * 修改用户其他信息
  40 + *
  41 + * @param userExtraInfo 用户其他信息
  42 + * @return 结果
  43 + */
  44 + public int updateUserExtraInfo(UserExtraInfo userExtraInfo);
  45 +
  46 + /**
  47 + * 删除用户其他信息
  48 + *
  49 + * @param id 用户其他信息主键
  50 + * @return 结果
  51 + */
  52 + public int deleteUserExtraInfoById(Integer id);
  53 +
  54 + /**
  55 + * 批量删除用户其他信息
  56 + *
  57 + * @param ids 需要删除的数据主键集合
  58 + * @return 结果
  59 + */
  60 + public int deleteUserExtraInfoByIds(Integer[] ids);
  61 +}
  1 +package com.zhonglai.luhui.user.mapper;
  2 +
  3 +import java.util.List;
  4 +import com.zhonglai.luhui.user.domain.UserLoginInfo;
  5 +
  6 +/**
  7 + * 用户登录信息Mapper接口
  8 + *
  9 + * @author zhonglai
  10 + * @date 2025-10-20
  11 + */
  12 +public interface UserLoginInfoMapper
  13 +{
  14 + /**
  15 + * 查询用户登录信息
  16 + *
  17 + * @param id 用户登录信息主键
  18 + * @return 用户登录信息
  19 + */
  20 + public UserLoginInfo selectUserLoginInfoById(Integer id);
  21 +
  22 + /**
  23 + * 查询用户登录信息列表
  24 + *
  25 + * @param userLoginInfo 用户登录信息
  26 + * @return 用户登录信息集合
  27 + */
  28 + public List<UserLoginInfo> selectUserLoginInfoList(UserLoginInfo userLoginInfo);
  29 +
  30 + /**
  31 + * 新增用户登录信息
  32 + *
  33 + * @param userLoginInfo 用户登录信息
  34 + * @return 结果
  35 + */
  36 + public int insertUserLoginInfo(UserLoginInfo userLoginInfo);
  37 +
  38 + /**
  39 + * 修改用户登录信息
  40 + *
  41 + * @param userLoginInfo 用户登录信息
  42 + * @return 结果
  43 + */
  44 + public int updateUserLoginInfo(UserLoginInfo userLoginInfo);
  45 +
  46 + /**
  47 + * 删除用户登录信息
  48 + *
  49 + * @param id 用户登录信息主键
  50 + * @return 结果
  51 + */
  52 + public int deleteUserLoginInfoById(Integer id);
  53 +
  54 + /**
  55 + * 批量删除用户登录信息
  56 + *
  57 + * @param ids 需要删除的数据主键集合
  58 + * @return 结果
  59 + */
  60 + public int deleteUserLoginInfoByIds(Integer[] ids);
  61 +}
  1 +package com.zhonglai.luhui.user.mapper;
  2 +
  3 +import java.util.List;
  4 +import com.zhonglai.luhui.user.domain.UserLogin;
  5 +
  6 +/**
  7 + * 用户登录Mapper接口
  8 + *
  9 + * @author zhonglai
  10 + * @date 2025-10-20
  11 + */
  12 +public interface UserLoginMapper
  13 +{
  14 + /**
  15 + * 查询用户登录
  16 + *
  17 + * @param id 用户登录主键
  18 + * @return 用户登录
  19 + */
  20 + public UserLogin selectUserLoginById(Integer id);
  21 +
  22 + /**
  23 + * 查询用户登录列表
  24 + *
  25 + * @param userLogin 用户登录
  26 + * @return 用户登录集合
  27 + */
  28 + public List<UserLogin> selectUserLoginList(UserLogin userLogin);
  29 +
  30 + /**
  31 + * 新增用户登录
  32 + *
  33 + * @param userLogin 用户登录
  34 + * @return 结果
  35 + */
  36 + public int insertUserLogin(UserLogin userLogin);
  37 +
  38 + /**
  39 + * 修改用户登录
  40 + *
  41 + * @param userLogin 用户登录
  42 + * @return 结果
  43 + */
  44 + public int updateUserLogin(UserLogin userLogin);
  45 +
  46 + /**
  47 + * 删除用户登录
  48 + *
  49 + * @param id 用户登录主键
  50 + * @return 结果
  51 + */
  52 + public int deleteUserLoginById(Integer id);
  53 +
  54 + /**
  55 + * 批量删除用户登录
  56 + *
  57 + * @param ids 需要删除的数据主键集合
  58 + * @return 结果
  59 + */
  60 + public int deleteUserLoginByIds(Integer[] ids);
  61 +}
  1 +package com.zhonglai.luhui.user.mapper;
  2 +
  3 +import java.util.List;
  4 +import com.zhonglai.luhui.user.domain.UserOfficialInfo;
  5 +
  6 +/**
  7 + * 用户官方及告警信息Mapper接口
  8 + *
  9 + * @author zhonglai
  10 + * @date 2025-10-20
  11 + */
  12 +public interface UserOfficialInfoMapper
  13 +{
  14 + /**
  15 + * 查询用户官方及告警信息
  16 + *
  17 + * @param id 用户官方及告警信息主键
  18 + * @return 用户官方及告警信息
  19 + */
  20 + public UserOfficialInfo selectUserOfficialInfoById(Integer id);
  21 +
  22 + /**
  23 + * 查询用户官方及告警信息列表
  24 + *
  25 + * @param userOfficialInfo 用户官方及告警信息
  26 + * @return 用户官方及告警信息集合
  27 + */
  28 + public List<UserOfficialInfo> selectUserOfficialInfoList(UserOfficialInfo userOfficialInfo);
  29 +
  30 + /**
  31 + * 新增用户官方及告警信息
  32 + *
  33 + * @param userOfficialInfo 用户官方及告警信息
  34 + * @return 结果
  35 + */
  36 + public int insertUserOfficialInfo(UserOfficialInfo userOfficialInfo);
  37 +
  38 + /**
  39 + * 修改用户官方及告警信息
  40 + *
  41 + * @param userOfficialInfo 用户官方及告警信息
  42 + * @return 结果
  43 + */
  44 + public int updateUserOfficialInfo(UserOfficialInfo userOfficialInfo);
  45 +
  46 + /**
  47 + * 删除用户官方及告警信息
  48 + *
  49 + * @param id 用户官方及告警信息主键
  50 + * @return 结果
  51 + */
  52 + public int deleteUserOfficialInfoById(Integer id);
  53 +
  54 + /**
  55 + * 批量删除用户官方及告警信息
  56 + *
  57 + * @param ids 需要删除的数据主键集合
  58 + * @return 结果
  59 + */
  60 + public int deleteUserOfficialInfoByIds(Integer[] ids);
  61 +}
  1 +package com.zhonglai.luhui.user.mapper;
  2 +
  3 +import java.util.List;
  4 +import com.zhonglai.luhui.user.domain.UserSocialInfo;
  5 +
  6 +/**
  7 + * 用户社交信息Mapper接口
  8 + *
  9 + * @author zhonglai
  10 + * @date 2025-10-20
  11 + */
  12 +public interface UserSocialInfoMapper
  13 +{
  14 + /**
  15 + * 查询用户社交信息
  16 + *
  17 + * @param id 用户社交信息主键
  18 + * @return 用户社交信息
  19 + */
  20 + public UserSocialInfo selectUserSocialInfoById(Integer id);
  21 +
  22 + /**
  23 + * 查询用户社交信息列表
  24 + *
  25 + * @param userSocialInfo 用户社交信息
  26 + * @return 用户社交信息集合
  27 + */
  28 + public List<UserSocialInfo> selectUserSocialInfoList(UserSocialInfo userSocialInfo);
  29 +
  30 + /**
  31 + * 新增用户社交信息
  32 + *
  33 + * @param userSocialInfo 用户社交信息
  34 + * @return 结果
  35 + */
  36 + public int insertUserSocialInfo(UserSocialInfo userSocialInfo);
  37 +
  38 + /**
  39 + * 修改用户社交信息
  40 + *
  41 + * @param userSocialInfo 用户社交信息
  42 + * @return 结果
  43 + */
  44 + public int updateUserSocialInfo(UserSocialInfo userSocialInfo);
  45 +
  46 + /**
  47 + * 删除用户社交信息
  48 + *
  49 + * @param id 用户社交信息主键
  50 + * @return 结果
  51 + */
  52 + public int deleteUserSocialInfoById(Integer id);
  53 +
  54 + /**
  55 + * 批量删除用户社交信息
  56 + *
  57 + * @param ids 需要删除的数据主键集合
  58 + * @return 结果
  59 + */
  60 + public int deleteUserSocialInfoByIds(Integer[] ids);
  61 +}
  1 +package com.zhonglai.luhui.user.service;
  2 +
  3 +import java.util.List;
  4 +import com.zhonglai.luhui.user.domain.UserAccountInfo;
  5 +
  6 +/**
  7 + * 用户账户信息Service接口
  8 + *
  9 + * @author zhonglai
  10 + * @date 2025-10-20
  11 + */
  12 +public interface IUserAccountInfoService
  13 +{
  14 + /**
  15 + * 查询用户账户信息
  16 + *
  17 + * @param id 用户账户信息主键
  18 + * @return 用户账户信息
  19 + */
  20 + public UserAccountInfo selectUserAccountInfoById(Integer id);
  21 +
  22 + /**
  23 + * 查询用户账户信息列表
  24 + *
  25 + * @param userAccountInfo 用户账户信息
  26 + * @return 用户账户信息集合
  27 + */
  28 + public List<UserAccountInfo> selectUserAccountInfoList(UserAccountInfo userAccountInfo);
  29 +
  30 + /**
  31 + * 新增用户账户信息
  32 + *
  33 + * @param userAccountInfo 用户账户信息
  34 + * @return 结果
  35 + */
  36 + public int insertUserAccountInfo(UserAccountInfo userAccountInfo);
  37 +
  38 + /**
  39 + * 修改用户账户信息
  40 + *
  41 + * @param userAccountInfo 用户账户信息
  42 + * @return 结果
  43 + */
  44 + public int updateUserAccountInfo(UserAccountInfo userAccountInfo);
  45 +
  46 + /**
  47 + * 批量删除用户账户信息
  48 + *
  49 + * @param ids 需要删除的用户账户信息主键集合
  50 + * @return 结果
  51 + */
  52 + public int deleteUserAccountInfoByIds(Integer[] ids);
  53 +
  54 + /**
  55 + * 删除用户账户信息信息
  56 + *
  57 + * @param id 用户账户信息主键
  58 + * @return 结果
  59 + */
  60 + public int deleteUserAccountInfoById(Integer id);
  61 +}
  1 +package com.zhonglai.luhui.user.service;
  2 +
  3 +import java.util.List;
  4 +import com.zhonglai.luhui.user.domain.UserAddressInfo;
  5 +
  6 +/**
  7 + * 用户地理信息Service接口
  8 + *
  9 + * @author zhonglai
  10 + * @date 2025-10-20
  11 + */
  12 +public interface IUserAddressInfoService
  13 +{
  14 + /**
  15 + * 查询用户地理信息
  16 + *
  17 + * @param id 用户地理信息主键
  18 + * @return 用户地理信息
  19 + */
  20 + public UserAddressInfo selectUserAddressInfoById(Integer id);
  21 +
  22 + /**
  23 + * 查询用户地理信息列表
  24 + *
  25 + * @param userAddressInfo 用户地理信息
  26 + * @return 用户地理信息集合
  27 + */
  28 + public List<UserAddressInfo> selectUserAddressInfoList(UserAddressInfo userAddressInfo);
  29 +
  30 + /**
  31 + * 新增用户地理信息
  32 + *
  33 + * @param userAddressInfo 用户地理信息
  34 + * @return 结果
  35 + */
  36 + public int insertUserAddressInfo(UserAddressInfo userAddressInfo);
  37 +
  38 + /**
  39 + * 修改用户地理信息
  40 + *
  41 + * @param userAddressInfo 用户地理信息
  42 + * @return 结果
  43 + */
  44 + public int updateUserAddressInfo(UserAddressInfo userAddressInfo);
  45 +
  46 + /**
  47 + * 批量删除用户地理信息
  48 + *
  49 + * @param ids 需要删除的用户地理信息主键集合
  50 + * @return 结果
  51 + */
  52 + public int deleteUserAddressInfoByIds(Integer[] ids);
  53 +
  54 + /**
  55 + * 删除用户地理信息信息
  56 + *
  57 + * @param id 用户地理信息主键
  58 + * @return 结果
  59 + */
  60 + public int deleteUserAddressInfoById(Integer id);
  61 +}
  1 +package com.zhonglai.luhui.user.service;
  2 +
  3 +import java.util.List;
  4 +import com.zhonglai.luhui.user.domain.UserAuthInfo;
  5 +
  6 +/**
  7 + * 用户认证信息Service接口
  8 + *
  9 + * @author zhonglai
  10 + * @date 2025-10-20
  11 + */
  12 +public interface IUserAuthInfoService
  13 +{
  14 + /**
  15 + * 查询用户认证信息
  16 + *
  17 + * @param id 用户认证信息主键
  18 + * @return 用户认证信息
  19 + */
  20 + public UserAuthInfo selectUserAuthInfoById(Integer id);
  21 +
  22 + /**
  23 + * 查询用户认证信息列表
  24 + *
  25 + * @param userAuthInfo 用户认证信息
  26 + * @return 用户认证信息集合
  27 + */
  28 + public List<UserAuthInfo> selectUserAuthInfoList(UserAuthInfo userAuthInfo);
  29 +
  30 + /**
  31 + * 新增用户认证信息
  32 + *
  33 + * @param userAuthInfo 用户认证信息
  34 + * @return 结果
  35 + */
  36 + public int insertUserAuthInfo(UserAuthInfo userAuthInfo);
  37 +
  38 + /**
  39 + * 修改用户认证信息
  40 + *
  41 + * @param userAuthInfo 用户认证信息
  42 + * @return 结果
  43 + */
  44 + public int updateUserAuthInfo(UserAuthInfo userAuthInfo);
  45 +
  46 + /**
  47 + * 批量删除用户认证信息
  48 + *
  49 + * @param ids 需要删除的用户认证信息主键集合
  50 + * @return 结果
  51 + */
  52 + public int deleteUserAuthInfoByIds(Integer[] ids);
  53 +
  54 + /**
  55 + * 删除用户认证信息信息
  56 + *
  57 + * @param id 用户认证信息主键
  58 + * @return 结果
  59 + */
  60 + public int deleteUserAuthInfoById(Integer id);
  61 +}
  1 +package com.zhonglai.luhui.user.service;
  2 +
  3 +import java.util.List;
  4 +import com.zhonglai.luhui.user.domain.UserBaseInfo;
  5 +
  6 +/**
  7 + * 基础用户信息Service接口
  8 + *
  9 + * @author zhonglai
  10 + * @date 2025-10-20
  11 + */
  12 +public interface IUserBaseInfoService
  13 +{
  14 + /**
  15 + * 查询基础用户信息
  16 + *
  17 + * @param id 基础用户信息主键
  18 + * @return 基础用户信息
  19 + */
  20 + public UserBaseInfo selectUserBaseInfoById(Integer id);
  21 +
  22 + /**
  23 + * 查询基础用户信息列表
  24 + *
  25 + * @param userBaseInfo 基础用户信息
  26 + * @return 基础用户信息集合
  27 + */
  28 + public List<UserBaseInfo> selectUserBaseInfoList(UserBaseInfo userBaseInfo);
  29 +
  30 + /**
  31 + * 新增基础用户信息
  32 + *
  33 + * @param userBaseInfo 基础用户信息
  34 + * @return 结果
  35 + */
  36 + public int insertUserBaseInfo(UserBaseInfo userBaseInfo);
  37 +
  38 + /**
  39 + * 修改基础用户信息
  40 + *
  41 + * @param userBaseInfo 基础用户信息
  42 + * @return 结果
  43 + */
  44 + public int updateUserBaseInfo(UserBaseInfo userBaseInfo);
  45 +
  46 + /**
  47 + * 批量删除基础用户信息
  48 + *
  49 + * @param ids 需要删除的基础用户信息主键集合
  50 + * @return 结果
  51 + */
  52 + public int deleteUserBaseInfoByIds(Integer[] ids);
  53 +
  54 + /**
  55 + * 删除基础用户信息信息
  56 + *
  57 + * @param id 基础用户信息主键
  58 + * @return 结果
  59 + */
  60 + public int deleteUserBaseInfoById(Integer id);
  61 +}
  1 +package com.zhonglai.luhui.user.service;
  2 +
  3 +import java.util.List;
  4 +import com.zhonglai.luhui.user.domain.UserExtraInfo;
  5 +
  6 +/**
  7 + * 用户其他信息Service接口
  8 + *
  9 + * @author zhonglai
  10 + * @date 2025-10-20
  11 + */
  12 +public interface IUserExtraInfoService
  13 +{
  14 + /**
  15 + * 查询用户其他信息
  16 + *
  17 + * @param id 用户其他信息主键
  18 + * @return 用户其他信息
  19 + */
  20 + public UserExtraInfo selectUserExtraInfoById(Integer id);
  21 +
  22 + /**
  23 + * 查询用户其他信息列表
  24 + *
  25 + * @param userExtraInfo 用户其他信息
  26 + * @return 用户其他信息集合
  27 + */
  28 + public List<UserExtraInfo> selectUserExtraInfoList(UserExtraInfo userExtraInfo);
  29 +
  30 + /**
  31 + * 新增用户其他信息
  32 + *
  33 + * @param userExtraInfo 用户其他信息
  34 + * @return 结果
  35 + */
  36 + public int insertUserExtraInfo(UserExtraInfo userExtraInfo);
  37 +
  38 + /**
  39 + * 修改用户其他信息
  40 + *
  41 + * @param userExtraInfo 用户其他信息
  42 + * @return 结果
  43 + */
  44 + public int updateUserExtraInfo(UserExtraInfo userExtraInfo);
  45 +
  46 + /**
  47 + * 批量删除用户其他信息
  48 + *
  49 + * @param ids 需要删除的用户其他信息主键集合
  50 + * @return 结果
  51 + */
  52 + public int deleteUserExtraInfoByIds(Integer[] ids);
  53 +
  54 + /**
  55 + * 删除用户其他信息信息
  56 + *
  57 + * @param id 用户其他信息主键
  58 + * @return 结果
  59 + */
  60 + public int deleteUserExtraInfoById(Integer id);
  61 +}
  1 +package com.zhonglai.luhui.user.service;
  2 +
  3 +import java.util.List;
  4 +import com.zhonglai.luhui.user.domain.UserLoginInfo;
  5 +
  6 +/**
  7 + * 用户登录信息Service接口
  8 + *
  9 + * @author zhonglai
  10 + * @date 2025-10-20
  11 + */
  12 +public interface IUserLoginInfoService
  13 +{
  14 + /**
  15 + * 查询用户登录信息
  16 + *
  17 + * @param id 用户登录信息主键
  18 + * @return 用户登录信息
  19 + */
  20 + public UserLoginInfo selectUserLoginInfoById(Integer id);
  21 +
  22 + /**
  23 + * 查询用户登录信息列表
  24 + *
  25 + * @param userLoginInfo 用户登录信息
  26 + * @return 用户登录信息集合
  27 + */
  28 + public List<UserLoginInfo> selectUserLoginInfoList(UserLoginInfo userLoginInfo);
  29 +
  30 + /**
  31 + * 新增用户登录信息
  32 + *
  33 + * @param userLoginInfo 用户登录信息
  34 + * @return 结果
  35 + */
  36 + public int insertUserLoginInfo(UserLoginInfo userLoginInfo);
  37 +
  38 + /**
  39 + * 修改用户登录信息
  40 + *
  41 + * @param userLoginInfo 用户登录信息
  42 + * @return 结果
  43 + */
  44 + public int updateUserLoginInfo(UserLoginInfo userLoginInfo);
  45 +
  46 + /**
  47 + * 批量删除用户登录信息
  48 + *
  49 + * @param ids 需要删除的用户登录信息主键集合
  50 + * @return 结果
  51 + */
  52 + public int deleteUserLoginInfoByIds(Integer[] ids);
  53 +
  54 + /**
  55 + * 删除用户登录信息信息
  56 + *
  57 + * @param id 用户登录信息主键
  58 + * @return 结果
  59 + */
  60 + public int deleteUserLoginInfoById(Integer id);
  61 +}
  1 +package com.zhonglai.luhui.user.service;
  2 +
  3 +import java.util.List;
  4 +import com.zhonglai.luhui.user.domain.UserLogin;
  5 +
  6 +/**
  7 + * 用户登录Service接口
  8 + *
  9 + * @author zhonglai
  10 + * @date 2025-10-20
  11 + */
  12 +public interface IUserLoginService
  13 +{
  14 + /**
  15 + * 查询用户登录
  16 + *
  17 + * @param id 用户登录主键
  18 + * @return 用户登录
  19 + */
  20 + public UserLogin selectUserLoginById(Integer id);
  21 +
  22 + /**
  23 + * 查询用户登录列表
  24 + *
  25 + * @param userLogin 用户登录
  26 + * @return 用户登录集合
  27 + */
  28 + public List<UserLogin> selectUserLoginList(UserLogin userLogin);
  29 +
  30 + /**
  31 + * 新增用户登录
  32 + *
  33 + * @param userLogin 用户登录
  34 + * @return 结果
  35 + */
  36 + public int insertUserLogin(UserLogin userLogin);
  37 +
  38 + /**
  39 + * 修改用户登录
  40 + *
  41 + * @param userLogin 用户登录
  42 + * @return 结果
  43 + */
  44 + public int updateUserLogin(UserLogin userLogin);
  45 +
  46 + /**
  47 + * 批量删除用户登录
  48 + *
  49 + * @param ids 需要删除的用户登录主键集合
  50 + * @return 结果
  51 + */
  52 + public int deleteUserLoginByIds(Integer[] ids);
  53 +
  54 + /**
  55 + * 删除用户登录信息
  56 + *
  57 + * @param id 用户登录主键
  58 + * @return 结果
  59 + */
  60 + public int deleteUserLoginById(Integer id);
  61 +
  62 + String apiLoginByPass(String user, String pass);
  63 +}
  1 +package com.zhonglai.luhui.user.service;
  2 +
  3 +import java.util.List;
  4 +import com.zhonglai.luhui.user.domain.UserOfficialInfo;
  5 +
  6 +/**
  7 + * 用户官方及告警信息Service接口
  8 + *
  9 + * @author zhonglai
  10 + * @date 2025-10-20
  11 + */
  12 +public interface IUserOfficialInfoService
  13 +{
  14 + /**
  15 + * 查询用户官方及告警信息
  16 + *
  17 + * @param id 用户官方及告警信息主键
  18 + * @return 用户官方及告警信息
  19 + */
  20 + public UserOfficialInfo selectUserOfficialInfoById(Integer id);
  21 +
  22 + /**
  23 + * 查询用户官方及告警信息列表
  24 + *
  25 + * @param userOfficialInfo 用户官方及告警信息
  26 + * @return 用户官方及告警信息集合
  27 + */
  28 + public List<UserOfficialInfo> selectUserOfficialInfoList(UserOfficialInfo userOfficialInfo);
  29 +
  30 + /**
  31 + * 新增用户官方及告警信息
  32 + *
  33 + * @param userOfficialInfo 用户官方及告警信息
  34 + * @return 结果
  35 + */
  36 + public int insertUserOfficialInfo(UserOfficialInfo userOfficialInfo);
  37 +
  38 + /**
  39 + * 修改用户官方及告警信息
  40 + *
  41 + * @param userOfficialInfo 用户官方及告警信息
  42 + * @return 结果
  43 + */
  44 + public int updateUserOfficialInfo(UserOfficialInfo userOfficialInfo);
  45 +
  46 + /**
  47 + * 批量删除用户官方及告警信息
  48 + *
  49 + * @param ids 需要删除的用户官方及告警信息主键集合
  50 + * @return 结果
  51 + */
  52 + public int deleteUserOfficialInfoByIds(Integer[] ids);
  53 +
  54 + /**
  55 + * 删除用户官方及告警信息信息
  56 + *
  57 + * @param id 用户官方及告警信息主键
  58 + * @return 结果
  59 + */
  60 + public int deleteUserOfficialInfoById(Integer id);
  61 +}
  1 +package com.zhonglai.luhui.user.service;
  2 +
  3 +import java.util.List;
  4 +import com.zhonglai.luhui.user.domain.UserSocialInfo;
  5 +
  6 +/**
  7 + * 用户社交信息Service接口
  8 + *
  9 + * @author zhonglai
  10 + * @date 2025-10-20
  11 + */
  12 +public interface IUserSocialInfoService
  13 +{
  14 + /**
  15 + * 查询用户社交信息
  16 + *
  17 + * @param id 用户社交信息主键
  18 + * @return 用户社交信息
  19 + */
  20 + public UserSocialInfo selectUserSocialInfoById(Integer id);
  21 +
  22 + /**
  23 + * 查询用户社交信息列表
  24 + *
  25 + * @param userSocialInfo 用户社交信息
  26 + * @return 用户社交信息集合
  27 + */
  28 + public List<UserSocialInfo> selectUserSocialInfoList(UserSocialInfo userSocialInfo);
  29 +
  30 + /**
  31 + * 新增用户社交信息
  32 + *
  33 + * @param userSocialInfo 用户社交信息
  34 + * @return 结果
  35 + */
  36 + public int insertUserSocialInfo(UserSocialInfo userSocialInfo);
  37 +
  38 + /**
  39 + * 修改用户社交信息
  40 + *
  41 + * @param userSocialInfo 用户社交信息
  42 + * @return 结果
  43 + */
  44 + public int updateUserSocialInfo(UserSocialInfo userSocialInfo);
  45 +
  46 + /**
  47 + * 批量删除用户社交信息
  48 + *
  49 + * @param ids 需要删除的用户社交信息主键集合
  50 + * @return 结果
  51 + */
  52 + public int deleteUserSocialInfoByIds(Integer[] ids);
  53 +
  54 + /**
  55 + * 删除用户社交信息信息
  56 + *
  57 + * @param id 用户社交信息主键
  58 + * @return 结果
  59 + */
  60 + public int deleteUserSocialInfoById(Integer id);
  61 +}
  1 +package com.zhonglai.luhui.user.service.impl;
  2 +
  3 +import java.util.List;
  4 +import org.springframework.beans.factory.annotation.Autowired;
  5 +import org.springframework.stereotype.Service;
  6 +import com.zhonglai.luhui.user.mapper.UserAccountInfoMapper;
  7 +import com.zhonglai.luhui.user.domain.UserAccountInfo;
  8 +import com.zhonglai.luhui.user.service.IUserAccountInfoService;
  9 +
  10 +/**
  11 + * 用户账户信息Service业务层处理
  12 + *
  13 + * @author zhonglai
  14 + * @date 2025-10-20
  15 + */
  16 +@Service
  17 +public class UserAccountInfoServiceImpl implements IUserAccountInfoService
  18 +{
  19 + @Autowired
  20 + private UserAccountInfoMapper userAccountInfoMapper;
  21 +
  22 + /**
  23 + * 查询用户账户信息
  24 + *
  25 + * @param id 用户账户信息主键
  26 + * @return 用户账户信息
  27 + */
  28 + @Override
  29 + public UserAccountInfo selectUserAccountInfoById(Integer id)
  30 + {
  31 + return userAccountInfoMapper.selectUserAccountInfoById(id);
  32 + }
  33 +
  34 + /**
  35 + * 查询用户账户信息列表
  36 + *
  37 + * @param userAccountInfo 用户账户信息
  38 + * @return 用户账户信息
  39 + */
  40 + @Override
  41 + public List<UserAccountInfo> selectUserAccountInfoList(UserAccountInfo userAccountInfo)
  42 + {
  43 + return userAccountInfoMapper.selectUserAccountInfoList(userAccountInfo);
  44 + }
  45 +
  46 + /**
  47 + * 新增用户账户信息
  48 + *
  49 + * @param userAccountInfo 用户账户信息
  50 + * @return 结果
  51 + */
  52 + @Override
  53 + public int insertUserAccountInfo(UserAccountInfo userAccountInfo)
  54 + {
  55 + return userAccountInfoMapper.insertUserAccountInfo(userAccountInfo);
  56 + }
  57 +
  58 + /**
  59 + * 修改用户账户信息
  60 + *
  61 + * @param userAccountInfo 用户账户信息
  62 + * @return 结果
  63 + */
  64 + @Override
  65 + public int updateUserAccountInfo(UserAccountInfo userAccountInfo)
  66 + {
  67 + return userAccountInfoMapper.updateUserAccountInfo(userAccountInfo);
  68 + }
  69 +
  70 + /**
  71 + * 批量删除用户账户信息
  72 + *
  73 + * @param ids 需要删除的用户账户信息主键
  74 + * @return 结果
  75 + */
  76 + @Override
  77 + public int deleteUserAccountInfoByIds(Integer[] ids)
  78 + {
  79 + return userAccountInfoMapper.deleteUserAccountInfoByIds(ids);
  80 + }
  81 +
  82 + /**
  83 + * 删除用户账户信息信息
  84 + *
  85 + * @param id 用户账户信息主键
  86 + * @return 结果
  87 + */
  88 + @Override
  89 + public int deleteUserAccountInfoById(Integer id)
  90 + {
  91 + return userAccountInfoMapper.deleteUserAccountInfoById(id);
  92 + }
  93 +}
  1 +package com.zhonglai.luhui.user.service.impl;
  2 +
  3 +import java.util.List;
  4 +import org.springframework.beans.factory.annotation.Autowired;
  5 +import org.springframework.stereotype.Service;
  6 +import com.zhonglai.luhui.user.mapper.UserAddressInfoMapper;
  7 +import com.zhonglai.luhui.user.domain.UserAddressInfo;
  8 +import com.zhonglai.luhui.user.service.IUserAddressInfoService;
  9 +
  10 +/**
  11 + * 用户地理信息Service业务层处理
  12 + *
  13 + * @author zhonglai
  14 + * @date 2025-10-20
  15 + */
  16 +@Service
  17 +public class UserAddressInfoServiceImpl implements IUserAddressInfoService
  18 +{
  19 + @Autowired
  20 + private UserAddressInfoMapper userAddressInfoMapper;
  21 +
  22 + /**
  23 + * 查询用户地理信息
  24 + *
  25 + * @param id 用户地理信息主键
  26 + * @return 用户地理信息
  27 + */
  28 + @Override
  29 + public UserAddressInfo selectUserAddressInfoById(Integer id)
  30 + {
  31 + return userAddressInfoMapper.selectUserAddressInfoById(id);
  32 + }
  33 +
  34 + /**
  35 + * 查询用户地理信息列表
  36 + *
  37 + * @param userAddressInfo 用户地理信息
  38 + * @return 用户地理信息
  39 + */
  40 + @Override
  41 + public List<UserAddressInfo> selectUserAddressInfoList(UserAddressInfo userAddressInfo)
  42 + {
  43 + return userAddressInfoMapper.selectUserAddressInfoList(userAddressInfo);
  44 + }
  45 +
  46 + /**
  47 + * 新增用户地理信息
  48 + *
  49 + * @param userAddressInfo 用户地理信息
  50 + * @return 结果
  51 + */
  52 + @Override
  53 + public int insertUserAddressInfo(UserAddressInfo userAddressInfo)
  54 + {
  55 + return userAddressInfoMapper.insertUserAddressInfo(userAddressInfo);
  56 + }
  57 +
  58 + /**
  59 + * 修改用户地理信息
  60 + *
  61 + * @param userAddressInfo 用户地理信息
  62 + * @return 结果
  63 + */
  64 + @Override
  65 + public int updateUserAddressInfo(UserAddressInfo userAddressInfo)
  66 + {
  67 + return userAddressInfoMapper.updateUserAddressInfo(userAddressInfo);
  68 + }
  69 +
  70 + /**
  71 + * 批量删除用户地理信息
  72 + *
  73 + * @param ids 需要删除的用户地理信息主键
  74 + * @return 结果
  75 + */
  76 + @Override
  77 + public int deleteUserAddressInfoByIds(Integer[] ids)
  78 + {
  79 + return userAddressInfoMapper.deleteUserAddressInfoByIds(ids);
  80 + }
  81 +
  82 + /**
  83 + * 删除用户地理信息信息
  84 + *
  85 + * @param id 用户地理信息主键
  86 + * @return 结果
  87 + */
  88 + @Override
  89 + public int deleteUserAddressInfoById(Integer id)
  90 + {
  91 + return userAddressInfoMapper.deleteUserAddressInfoById(id);
  92 + }
  93 +}
  1 +package com.zhonglai.luhui.user.service.impl;
  2 +
  3 +import java.util.List;
  4 +import org.springframework.beans.factory.annotation.Autowired;
  5 +import org.springframework.stereotype.Service;
  6 +import com.zhonglai.luhui.user.mapper.UserAuthInfoMapper;
  7 +import com.zhonglai.luhui.user.domain.UserAuthInfo;
  8 +import com.zhonglai.luhui.user.service.IUserAuthInfoService;
  9 +
  10 +/**
  11 + * 用户认证信息Service业务层处理
  12 + *
  13 + * @author zhonglai
  14 + * @date 2025-10-20
  15 + */
  16 +@Service
  17 +public class UserAuthInfoServiceImpl implements IUserAuthInfoService
  18 +{
  19 + @Autowired
  20 + private UserAuthInfoMapper userAuthInfoMapper;
  21 +
  22 + /**
  23 + * 查询用户认证信息
  24 + *
  25 + * @param id 用户认证信息主键
  26 + * @return 用户认证信息
  27 + */
  28 + @Override
  29 + public UserAuthInfo selectUserAuthInfoById(Integer id)
  30 + {
  31 + return userAuthInfoMapper.selectUserAuthInfoById(id);
  32 + }
  33 +
  34 + /**
  35 + * 查询用户认证信息列表
  36 + *
  37 + * @param userAuthInfo 用户认证信息
  38 + * @return 用户认证信息
  39 + */
  40 + @Override
  41 + public List<UserAuthInfo> selectUserAuthInfoList(UserAuthInfo userAuthInfo)
  42 + {
  43 + return userAuthInfoMapper.selectUserAuthInfoList(userAuthInfo);
  44 + }
  45 +
  46 + /**
  47 + * 新增用户认证信息
  48 + *
  49 + * @param userAuthInfo 用户认证信息
  50 + * @return 结果
  51 + */
  52 + @Override
  53 + public int insertUserAuthInfo(UserAuthInfo userAuthInfo)
  54 + {
  55 + return userAuthInfoMapper.insertUserAuthInfo(userAuthInfo);
  56 + }
  57 +
  58 + /**
  59 + * 修改用户认证信息
  60 + *
  61 + * @param userAuthInfo 用户认证信息
  62 + * @return 结果
  63 + */
  64 + @Override
  65 + public int updateUserAuthInfo(UserAuthInfo userAuthInfo)
  66 + {
  67 + return userAuthInfoMapper.updateUserAuthInfo(userAuthInfo);
  68 + }
  69 +
  70 + /**
  71 + * 批量删除用户认证信息
  72 + *
  73 + * @param ids 需要删除的用户认证信息主键
  74 + * @return 结果
  75 + */
  76 + @Override
  77 + public int deleteUserAuthInfoByIds(Integer[] ids)
  78 + {
  79 + return userAuthInfoMapper.deleteUserAuthInfoByIds(ids);
  80 + }
  81 +
  82 + /**
  83 + * 删除用户认证信息信息
  84 + *
  85 + * @param id 用户认证信息主键
  86 + * @return 结果
  87 + */
  88 + @Override
  89 + public int deleteUserAuthInfoById(Integer id)
  90 + {
  91 + return userAuthInfoMapper.deleteUserAuthInfoById(id);
  92 + }
  93 +}
  1 +package com.zhonglai.luhui.user.service.impl;
  2 +
  3 +import java.util.List;
  4 +import com.ruoyi.common.utils.DateUtils;
  5 +import org.springframework.beans.factory.annotation.Autowired;
  6 +import org.springframework.stereotype.Service;
  7 +import com.zhonglai.luhui.user.mapper.UserBaseInfoMapper;
  8 +import com.zhonglai.luhui.user.domain.UserBaseInfo;
  9 +import com.zhonglai.luhui.user.service.IUserBaseInfoService;
  10 +
  11 +/**
  12 + * 基础用户信息Service业务层处理
  13 + *
  14 + * @author zhonglai
  15 + * @date 2025-10-20
  16 + */
  17 +@Service
  18 +public class UserBaseInfoServiceImpl implements IUserBaseInfoService
  19 +{
  20 + @Autowired
  21 + private UserBaseInfoMapper userBaseInfoMapper;
  22 +
  23 + /**
  24 + * 查询基础用户信息
  25 + *
  26 + * @param id 基础用户信息主键
  27 + * @return 基础用户信息
  28 + */
  29 + @Override
  30 + public UserBaseInfo selectUserBaseInfoById(Integer id)
  31 + {
  32 + return userBaseInfoMapper.selectUserBaseInfoById(id);
  33 + }
  34 +
  35 + /**
  36 + * 查询基础用户信息列表
  37 + *
  38 + * @param userBaseInfo 基础用户信息
  39 + * @return 基础用户信息
  40 + */
  41 + @Override
  42 + public List<UserBaseInfo> selectUserBaseInfoList(UserBaseInfo userBaseInfo)
  43 + {
  44 + return userBaseInfoMapper.selectUserBaseInfoList(userBaseInfo);
  45 + }
  46 +
  47 + /**
  48 + * 新增基础用户信息
  49 + *
  50 + * @param userBaseInfo 基础用户信息
  51 + * @return 结果
  52 + */
  53 + @Override
  54 + public int insertUserBaseInfo(UserBaseInfo userBaseInfo)
  55 + {
  56 + userBaseInfo.setCreateTime(DateUtils.getNowDate());
  57 + return userBaseInfoMapper.insertUserBaseInfo(userBaseInfo);
  58 + }
  59 +
  60 + /**
  61 + * 修改基础用户信息
  62 + *
  63 + * @param userBaseInfo 基础用户信息
  64 + * @return 结果
  65 + */
  66 + @Override
  67 + public int updateUserBaseInfo(UserBaseInfo userBaseInfo)
  68 + {
  69 + return userBaseInfoMapper.updateUserBaseInfo(userBaseInfo);
  70 + }
  71 +
  72 + /**
  73 + * 批量删除基础用户信息
  74 + *
  75 + * @param ids 需要删除的基础用户信息主键
  76 + * @return 结果
  77 + */
  78 + @Override
  79 + public int deleteUserBaseInfoByIds(Integer[] ids)
  80 + {
  81 + return userBaseInfoMapper.deleteUserBaseInfoByIds(ids);
  82 + }
  83 +
  84 + /**
  85 + * 删除基础用户信息信息
  86 + *
  87 + * @param id 基础用户信息主键
  88 + * @return 结果
  89 + */
  90 + @Override
  91 + public int deleteUserBaseInfoById(Integer id)
  92 + {
  93 + return userBaseInfoMapper.deleteUserBaseInfoById(id);
  94 + }
  95 +}
  1 +package com.zhonglai.luhui.user.service.impl;
  2 +
  3 +import java.util.List;
  4 +import org.springframework.beans.factory.annotation.Autowired;
  5 +import org.springframework.stereotype.Service;
  6 +import com.zhonglai.luhui.user.mapper.UserExtraInfoMapper;
  7 +import com.zhonglai.luhui.user.domain.UserExtraInfo;
  8 +import com.zhonglai.luhui.user.service.IUserExtraInfoService;
  9 +
  10 +/**
  11 + * 用户其他信息Service业务层处理
  12 + *
  13 + * @author zhonglai
  14 + * @date 2025-10-20
  15 + */
  16 +@Service
  17 +public class UserExtraInfoServiceImpl implements IUserExtraInfoService
  18 +{
  19 + @Autowired
  20 + private UserExtraInfoMapper userExtraInfoMapper;
  21 +
  22 + /**
  23 + * 查询用户其他信息
  24 + *
  25 + * @param id 用户其他信息主键
  26 + * @return 用户其他信息
  27 + */
  28 + @Override
  29 + public UserExtraInfo selectUserExtraInfoById(Integer id)
  30 + {
  31 + return userExtraInfoMapper.selectUserExtraInfoById(id);
  32 + }
  33 +
  34 + /**
  35 + * 查询用户其他信息列表
  36 + *
  37 + * @param userExtraInfo 用户其他信息
  38 + * @return 用户其他信息
  39 + */
  40 + @Override
  41 + public List<UserExtraInfo> selectUserExtraInfoList(UserExtraInfo userExtraInfo)
  42 + {
  43 + return userExtraInfoMapper.selectUserExtraInfoList(userExtraInfo);
  44 + }
  45 +
  46 + /**
  47 + * 新增用户其他信息
  48 + *
  49 + * @param userExtraInfo 用户其他信息
  50 + * @return 结果
  51 + */
  52 + @Override
  53 + public int insertUserExtraInfo(UserExtraInfo userExtraInfo)
  54 + {
  55 + return userExtraInfoMapper.insertUserExtraInfo(userExtraInfo);
  56 + }
  57 +
  58 + /**
  59 + * 修改用户其他信息
  60 + *
  61 + * @param userExtraInfo 用户其他信息
  62 + * @return 结果
  63 + */
  64 + @Override
  65 + public int updateUserExtraInfo(UserExtraInfo userExtraInfo)
  66 + {
  67 + return userExtraInfoMapper.updateUserExtraInfo(userExtraInfo);
  68 + }
  69 +
  70 + /**
  71 + * 批量删除用户其他信息
  72 + *
  73 + * @param ids 需要删除的用户其他信息主键
  74 + * @return 结果
  75 + */
  76 + @Override
  77 + public int deleteUserExtraInfoByIds(Integer[] ids)
  78 + {
  79 + return userExtraInfoMapper.deleteUserExtraInfoByIds(ids);
  80 + }
  81 +
  82 + /**
  83 + * 删除用户其他信息信息
  84 + *
  85 + * @param id 用户其他信息主键
  86 + * @return 结果
  87 + */
  88 + @Override
  89 + public int deleteUserExtraInfoById(Integer id)
  90 + {
  91 + return userExtraInfoMapper.deleteUserExtraInfoById(id);
  92 + }
  93 +}
  1 +package com.zhonglai.luhui.user.service.impl;
  2 +
  3 +import java.util.List;
  4 +import org.springframework.beans.factory.annotation.Autowired;
  5 +import org.springframework.stereotype.Service;
  6 +import com.zhonglai.luhui.user.mapper.UserLoginInfoMapper;
  7 +import com.zhonglai.luhui.user.domain.UserLoginInfo;
  8 +import com.zhonglai.luhui.user.service.IUserLoginInfoService;
  9 +
  10 +/**
  11 + * 用户登录信息Service业务层处理
  12 + *
  13 + * @author zhonglai
  14 + * @date 2025-10-20
  15 + */
  16 +@Service
  17 +public class UserLoginInfoServiceImpl implements IUserLoginInfoService
  18 +{
  19 + @Autowired
  20 + private UserLoginInfoMapper userLoginInfoMapper;
  21 +
  22 + /**
  23 + * 查询用户登录信息
  24 + *
  25 + * @param id 用户登录信息主键
  26 + * @return 用户登录信息
  27 + */
  28 + @Override
  29 + public UserLoginInfo selectUserLoginInfoById(Integer id)
  30 + {
  31 + return userLoginInfoMapper.selectUserLoginInfoById(id);
  32 + }
  33 +
  34 + /**
  35 + * 查询用户登录信息列表
  36 + *
  37 + * @param userLoginInfo 用户登录信息
  38 + * @return 用户登录信息
  39 + */
  40 + @Override
  41 + public List<UserLoginInfo> selectUserLoginInfoList(UserLoginInfo userLoginInfo)
  42 + {
  43 + return userLoginInfoMapper.selectUserLoginInfoList(userLoginInfo);
  44 + }
  45 +
  46 + /**
  47 + * 新增用户登录信息
  48 + *
  49 + * @param userLoginInfo 用户登录信息
  50 + * @return 结果
  51 + */
  52 + @Override
  53 + public int insertUserLoginInfo(UserLoginInfo userLoginInfo)
  54 + {
  55 + return userLoginInfoMapper.insertUserLoginInfo(userLoginInfo);
  56 + }
  57 +
  58 + /**
  59 + * 修改用户登录信息
  60 + *
  61 + * @param userLoginInfo 用户登录信息
  62 + * @return 结果
  63 + */
  64 + @Override
  65 + public int updateUserLoginInfo(UserLoginInfo userLoginInfo)
  66 + {
  67 + return userLoginInfoMapper.updateUserLoginInfo(userLoginInfo);
  68 + }
  69 +
  70 + /**
  71 + * 批量删除用户登录信息
  72 + *
  73 + * @param ids 需要删除的用户登录信息主键
  74 + * @return 结果
  75 + */
  76 + @Override
  77 + public int deleteUserLoginInfoByIds(Integer[] ids)
  78 + {
  79 + return userLoginInfoMapper.deleteUserLoginInfoByIds(ids);
  80 + }
  81 +
  82 + /**
  83 + * 删除用户登录信息信息
  84 + *
  85 + * @param id 用户登录信息主键
  86 + * @return 结果
  87 + */
  88 + @Override
  89 + public int deleteUserLoginInfoById(Integer id)
  90 + {
  91 + return userLoginInfoMapper.deleteUserLoginInfoById(id);
  92 + }
  93 +}
  1 +package com.zhonglai.luhui.user.service.impl;
  2 +
  3 +import java.util.List;
  4 +import org.springframework.beans.factory.annotation.Autowired;
  5 +import org.springframework.stereotype.Service;
  6 +import com.zhonglai.luhui.user.mapper.UserLoginMapper;
  7 +import com.zhonglai.luhui.user.domain.UserLogin;
  8 +import com.zhonglai.luhui.user.service.IUserLoginService;
  9 +
  10 +/**
  11 + * 用户登录Service业务层处理
  12 + *
  13 + * @author zhonglai
  14 + * @date 2025-10-20
  15 + */
  16 +@Service
  17 +public class UserLoginServiceImpl implements IUserLoginService
  18 +{
  19 + @Autowired
  20 + private UserLoginMapper userLoginMapper;
  21 +
  22 + /**
  23 + * 查询用户登录
  24 + *
  25 + * @param id 用户登录主键
  26 + * @return 用户登录
  27 + */
  28 + @Override
  29 + public UserLogin selectUserLoginById(Integer id)
  30 + {
  31 + return userLoginMapper.selectUserLoginById(id);
  32 + }
  33 +
  34 + /**
  35 + * 查询用户登录列表
  36 + *
  37 + * @param userLogin 用户登录
  38 + * @return 用户登录
  39 + */
  40 + @Override
  41 + public List<UserLogin> selectUserLoginList(UserLogin userLogin)
  42 + {
  43 + return userLoginMapper.selectUserLoginList(userLogin);
  44 + }
  45 +
  46 + /**
  47 + * 新增用户登录
  48 + *
  49 + * @param userLogin 用户登录
  50 + * @return 结果
  51 + */
  52 + @Override
  53 + public int insertUserLogin(UserLogin userLogin)
  54 + {
  55 + return userLoginMapper.insertUserLogin(userLogin);
  56 + }
  57 +
  58 + /**
  59 + * 修改用户登录
  60 + *
  61 + * @param userLogin 用户登录
  62 + * @return 结果
  63 + */
  64 + @Override
  65 + public int updateUserLogin(UserLogin userLogin)
  66 + {
  67 + return userLoginMapper.updateUserLogin(userLogin);
  68 + }
  69 +
  70 + /**
  71 + * 批量删除用户登录
  72 + *
  73 + * @param ids 需要删除的用户登录主键
  74 + * @return 结果
  75 + */
  76 + @Override
  77 + public int deleteUserLoginByIds(Integer[] ids)
  78 + {
  79 + return userLoginMapper.deleteUserLoginByIds(ids);
  80 + }
  81 +
  82 + /**
  83 + * 删除用户登录信息
  84 + *
  85 + * @param id 用户登录主键
  86 + * @return 结果
  87 + */
  88 + @Override
  89 + public int deleteUserLoginById(Integer id)
  90 + {
  91 + return userLoginMapper.deleteUserLoginById(id);
  92 + }
  93 +
  94 + @Override
  95 + public String apiLoginByPass(String user, String pass) {
  96 +
  97 + return null;
  98 + }
  99 +}
  1 +package com.zhonglai.luhui.user.service.impl;
  2 +
  3 +import java.util.List;
  4 +import org.springframework.beans.factory.annotation.Autowired;
  5 +import org.springframework.stereotype.Service;
  6 +import com.zhonglai.luhui.user.mapper.UserOfficialInfoMapper;
  7 +import com.zhonglai.luhui.user.domain.UserOfficialInfo;
  8 +import com.zhonglai.luhui.user.service.IUserOfficialInfoService;
  9 +
  10 +/**
  11 + * 用户官方及告警信息Service业务层处理
  12 + *
  13 + * @author zhonglai
  14 + * @date 2025-10-20
  15 + */
  16 +@Service
  17 +public class UserOfficialInfoServiceImpl implements IUserOfficialInfoService
  18 +{
  19 + @Autowired
  20 + private UserOfficialInfoMapper userOfficialInfoMapper;
  21 +
  22 + /**
  23 + * 查询用户官方及告警信息
  24 + *
  25 + * @param id 用户官方及告警信息主键
  26 + * @return 用户官方及告警信息
  27 + */
  28 + @Override
  29 + public UserOfficialInfo selectUserOfficialInfoById(Integer id)
  30 + {
  31 + return userOfficialInfoMapper.selectUserOfficialInfoById(id);
  32 + }
  33 +
  34 + /**
  35 + * 查询用户官方及告警信息列表
  36 + *
  37 + * @param userOfficialInfo 用户官方及告警信息
  38 + * @return 用户官方及告警信息
  39 + */
  40 + @Override
  41 + public List<UserOfficialInfo> selectUserOfficialInfoList(UserOfficialInfo userOfficialInfo)
  42 + {
  43 + return userOfficialInfoMapper.selectUserOfficialInfoList(userOfficialInfo);
  44 + }
  45 +
  46 + /**
  47 + * 新增用户官方及告警信息
  48 + *
  49 + * @param userOfficialInfo 用户官方及告警信息
  50 + * @return 结果
  51 + */
  52 + @Override
  53 + public int insertUserOfficialInfo(UserOfficialInfo userOfficialInfo)
  54 + {
  55 + return userOfficialInfoMapper.insertUserOfficialInfo(userOfficialInfo);
  56 + }
  57 +
  58 + /**
  59 + * 修改用户官方及告警信息
  60 + *
  61 + * @param userOfficialInfo 用户官方及告警信息
  62 + * @return 结果
  63 + */
  64 + @Override
  65 + public int updateUserOfficialInfo(UserOfficialInfo userOfficialInfo)
  66 + {
  67 + return userOfficialInfoMapper.updateUserOfficialInfo(userOfficialInfo);
  68 + }
  69 +
  70 + /**
  71 + * 批量删除用户官方及告警信息
  72 + *
  73 + * @param ids 需要删除的用户官方及告警信息主键
  74 + * @return 结果
  75 + */
  76 + @Override
  77 + public int deleteUserOfficialInfoByIds(Integer[] ids)
  78 + {
  79 + return userOfficialInfoMapper.deleteUserOfficialInfoByIds(ids);
  80 + }
  81 +
  82 + /**
  83 + * 删除用户官方及告警信息信息
  84 + *
  85 + * @param id 用户官方及告警信息主键
  86 + * @return 结果
  87 + */
  88 + @Override
  89 + public int deleteUserOfficialInfoById(Integer id)
  90 + {
  91 + return userOfficialInfoMapper.deleteUserOfficialInfoById(id);
  92 + }
  93 +}
  1 +package com.zhonglai.luhui.user.service.impl;
  2 +
  3 +import java.util.List;
  4 +import org.springframework.beans.factory.annotation.Autowired;
  5 +import org.springframework.stereotype.Service;
  6 +import com.zhonglai.luhui.user.mapper.UserSocialInfoMapper;
  7 +import com.zhonglai.luhui.user.domain.UserSocialInfo;
  8 +import com.zhonglai.luhui.user.service.IUserSocialInfoService;
  9 +
  10 +/**
  11 + * 用户社交信息Service业务层处理
  12 + *
  13 + * @author zhonglai
  14 + * @date 2025-10-20
  15 + */
  16 +@Service
  17 +public class UserSocialInfoServiceImpl implements IUserSocialInfoService
  18 +{
  19 + @Autowired
  20 + private UserSocialInfoMapper userSocialInfoMapper;
  21 +
  22 + /**
  23 + * 查询用户社交信息
  24 + *
  25 + * @param id 用户社交信息主键
  26 + * @return 用户社交信息
  27 + */
  28 + @Override
  29 + public UserSocialInfo selectUserSocialInfoById(Integer id)
  30 + {
  31 + return userSocialInfoMapper.selectUserSocialInfoById(id);
  32 + }
  33 +
  34 + /**
  35 + * 查询用户社交信息列表
  36 + *
  37 + * @param userSocialInfo 用户社交信息
  38 + * @return 用户社交信息
  39 + */
  40 + @Override
  41 + public List<UserSocialInfo> selectUserSocialInfoList(UserSocialInfo userSocialInfo)
  42 + {
  43 + return userSocialInfoMapper.selectUserSocialInfoList(userSocialInfo);
  44 + }
  45 +
  46 + /**
  47 + * 新增用户社交信息
  48 + *
  49 + * @param userSocialInfo 用户社交信息
  50 + * @return 结果
  51 + */
  52 + @Override
  53 + public int insertUserSocialInfo(UserSocialInfo userSocialInfo)
  54 + {
  55 + return userSocialInfoMapper.insertUserSocialInfo(userSocialInfo);
  56 + }
  57 +
  58 + /**
  59 + * 修改用户社交信息
  60 + *
  61 + * @param userSocialInfo 用户社交信息
  62 + * @return 结果
  63 + */
  64 + @Override
  65 + public int updateUserSocialInfo(UserSocialInfo userSocialInfo)
  66 + {
  67 + return userSocialInfoMapper.updateUserSocialInfo(userSocialInfo);
  68 + }
  69 +
  70 + /**
  71 + * 批量删除用户社交信息
  72 + *
  73 + * @param ids 需要删除的用户社交信息主键
  74 + * @return 结果
  75 + */
  76 + @Override
  77 + public int deleteUserSocialInfoByIds(Integer[] ids)
  78 + {
  79 + return userSocialInfoMapper.deleteUserSocialInfoByIds(ids);
  80 + }
  81 +
  82 + /**
  83 + * 删除用户社交信息信息
  84 + *
  85 + * @param id 用户社交信息主键
  86 + * @return 结果
  87 + */
  88 + @Override
  89 + public int deleteUserSocialInfoById(Integer id)
  90 + {
  91 + return userSocialInfoMapper.deleteUserSocialInfoById(id);
  92 + }
  93 +}
  1 +<?xml version="1.0" encoding="UTF-8" ?>
  2 +<!DOCTYPE mapper
  3 +PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  4 +"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  5 +<mapper namespace="com.zhonglai.luhui.user.mapper.UserAccountInfoMapper">
  6 +
  7 + <resultMap type="UserAccountInfo" id="UserAccountInfoResult">
  8 + <result property="id" column="id" />
  9 + <result property="integral" column="integral" />
  10 + <result property="balance" column="balance" />
  11 + <result property="level" column="level" />
  12 + <result property="currency" column="currency" />
  13 + <result property="experience" column="experience" />
  14 + <result property="annualServiceCharge" column="annual_service_charge" />
  15 + <result property="dianmiaoEndTime" column="dianmiao_end_time" />
  16 + </resultMap>
  17 +
  18 + <sql id="selectUserAccountInfoVo">
  19 + select id, integral, balance, level, currency, experience, annual_service_charge, dianmiao_end_time from user_account_info
  20 + </sql>
  21 +
  22 + <select id="selectUserAccountInfoList" parameterType="UserAccountInfo" resultMap="UserAccountInfoResult">
  23 + <include refid="selectUserAccountInfoVo"/>
  24 + <where>
  25 + <if test="integral != null "> and integral = #{integral}</if>
  26 + <if test="balance != null "> and balance = #{balance}</if>
  27 + <if test="level != null "> and level = #{level}</if>
  28 + <if test="currency != null "> and currency = #{currency}</if>
  29 + <if test="experience != null "> and experience = #{experience}</if>
  30 + <if test="annualServiceCharge != null "> and annual_service_charge = #{annualServiceCharge}</if>
  31 + <if test="dianmiaoEndTime != null "> and dianmiao_end_time = #{dianmiaoEndTime}</if>
  32 + </where>
  33 + </select>
  34 +
  35 + <select id="selectUserAccountInfoById" parameterType="Integer" resultMap="UserAccountInfoResult">
  36 + <include refid="selectUserAccountInfoVo"/>
  37 + where id = #{id}
  38 + </select>
  39 +
  40 + <insert id="insertUserAccountInfo" parameterType="UserAccountInfo">
  41 + insert into user_account_info
  42 + <trim prefix="(" suffix=")" suffixOverrides=",">
  43 + <if test="id != null">id,</if>
  44 + <if test="integral != null">integral,</if>
  45 + <if test="balance != null">balance,</if>
  46 + <if test="level != null">level,</if>
  47 + <if test="currency != null">currency,</if>
  48 + <if test="experience != null">experience,</if>
  49 + <if test="annualServiceCharge != null">annual_service_charge,</if>
  50 + <if test="dianmiaoEndTime != null">dianmiao_end_time,</if>
  51 + </trim>
  52 + <trim prefix="values (" suffix=")" suffixOverrides=",">
  53 + <if test="id != null">#{id},</if>
  54 + <if test="integral != null">#{integral},</if>
  55 + <if test="balance != null">#{balance},</if>
  56 + <if test="level != null">#{level},</if>
  57 + <if test="currency != null">#{currency},</if>
  58 + <if test="experience != null">#{experience},</if>
  59 + <if test="annualServiceCharge != null">#{annualServiceCharge},</if>
  60 + <if test="dianmiaoEndTime != null">#{dianmiaoEndTime},</if>
  61 + </trim>
  62 + </insert>
  63 +
  64 + <update id="updateUserAccountInfo" parameterType="UserAccountInfo">
  65 + update user_account_info
  66 + <trim prefix="SET" suffixOverrides=",">
  67 + <if test="integral != null">integral = #{integral},</if>
  68 + <if test="balance != null">balance = #{balance},</if>
  69 + <if test="level != null">level = #{level},</if>
  70 + <if test="currency != null">currency = #{currency},</if>
  71 + <if test="experience != null">experience = #{experience},</if>
  72 + <if test="annualServiceCharge != null">annual_service_charge = #{annualServiceCharge},</if>
  73 + <if test="dianmiaoEndTime != null">dianmiao_end_time = #{dianmiaoEndTime},</if>
  74 + </trim>
  75 + where id = #{id}
  76 + </update>
  77 +
  78 + <delete id="deleteUserAccountInfoById" parameterType="Integer">
  79 + delete from user_account_info where id = #{id}
  80 + </delete>
  81 +
  82 + <delete id="deleteUserAccountInfoByIds" parameterType="String">
  83 + delete from user_account_info where id in
  84 + <foreach item="id" collection="array" open="(" separator="," close=")">
  85 + #{id}
  86 + </foreach>
  87 + </delete>
  88 +</mapper>
  1 +<?xml version="1.0" encoding="UTF-8" ?>
  2 +<!DOCTYPE mapper
  3 +PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  4 +"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  5 +<mapper namespace="com.zhonglai.luhui.user.mapper.UserAddressInfoMapper">
  6 +
  7 + <resultMap type="UserAddressInfo" id="UserAddressInfoResult">
  8 + <result property="id" column="id" />
  9 + <result property="provinceId" column="province_id" />
  10 + <result property="cityId" column="city_id" />
  11 + <result property="countyId" column="county_id" />
  12 + <result property="provinceName" column="province_name" />
  13 + <result property="cityName" column="city_name" />
  14 + <result property="countyName" column="county_name" />
  15 + <result property="address" column="address" />
  16 + <result property="search" column="search" />
  17 + </resultMap>
  18 +
  19 + <sql id="selectUserAddressInfoVo">
  20 + select id, province_id, city_id, county_id, province_name, city_name, county_name, address, search from user_address_info
  21 + </sql>
  22 +
  23 + <select id="selectUserAddressInfoList" parameterType="UserAddressInfo" resultMap="UserAddressInfoResult">
  24 + <include refid="selectUserAddressInfoVo"/>
  25 + <where>
  26 + <if test="provinceId != null and provinceId != ''"> and province_id = #{provinceId}</if>
  27 + <if test="cityId != null and cityId != ''"> and city_id = #{cityId}</if>
  28 + <if test="countyId != null and countyId != ''"> and county_id = #{countyId}</if>
  29 + <if test="provinceName != null and provinceName != ''"> and province_name = #{provinceName}</if>
  30 + <if test="cityName != null and cityName != ''"> and city_name like concat('%', #{cityName}, '%')</if>
  31 + <if test="countyName != null and countyName != ''"> and county_name like concat('%', #{countyName}, '%')</if>
  32 + <if test="address != null and address != ''"> and address like concat('%', #{address}, '%')</if>
  33 + <if test="search != null and search != ''"> and search = #{search}</if>
  34 + </where>
  35 + </select>
  36 +
  37 + <select id="selectUserAddressInfoById" parameterType="Integer" resultMap="UserAddressInfoResult">
  38 + <include refid="selectUserAddressInfoVo"/>
  39 + where id = #{id}
  40 + </select>
  41 +
  42 + <insert id="insertUserAddressInfo" parameterType="UserAddressInfo">
  43 + insert into user_address_info
  44 + <trim prefix="(" suffix=")" suffixOverrides=",">
  45 + <if test="id != null">id,</if>
  46 + <if test="provinceId != null">province_id,</if>
  47 + <if test="cityId != null">city_id,</if>
  48 + <if test="countyId != null">county_id,</if>
  49 + <if test="provinceName != null">province_name,</if>
  50 + <if test="cityName != null">city_name,</if>
  51 + <if test="countyName != null">county_name,</if>
  52 + <if test="address != null">address,</if>
  53 + <if test="search != null">search,</if>
  54 + </trim>
  55 + <trim prefix="values (" suffix=")" suffixOverrides=",">
  56 + <if test="id != null">#{id},</if>
  57 + <if test="provinceId != null">#{provinceId},</if>
  58 + <if test="cityId != null">#{cityId},</if>
  59 + <if test="countyId != null">#{countyId},</if>
  60 + <if test="provinceName != null">#{provinceName},</if>
  61 + <if test="cityName != null">#{cityName},</if>
  62 + <if test="countyName != null">#{countyName},</if>
  63 + <if test="address != null">#{address},</if>
  64 + <if test="search != null">#{search},</if>
  65 + </trim>
  66 + </insert>
  67 +
  68 + <update id="updateUserAddressInfo" parameterType="UserAddressInfo">
  69 + update user_address_info
  70 + <trim prefix="SET" suffixOverrides=",">
  71 + <if test="provinceId != null">province_id = #{provinceId},</if>
  72 + <if test="cityId != null">city_id = #{cityId},</if>
  73 + <if test="countyId != null">county_id = #{countyId},</if>
  74 + <if test="provinceName != null">province_name = #{provinceName},</if>
  75 + <if test="cityName != null">city_name = #{cityName},</if>
  76 + <if test="countyName != null">county_name = #{countyName},</if>
  77 + <if test="address != null">address = #{address},</if>
  78 + <if test="search != null">search = #{search},</if>
  79 + </trim>
  80 + where id = #{id}
  81 + </update>
  82 +
  83 + <delete id="deleteUserAddressInfoById" parameterType="Integer">
  84 + delete from user_address_info where id = #{id}
  85 + </delete>
  86 +
  87 + <delete id="deleteUserAddressInfoByIds" parameterType="String">
  88 + delete from user_address_info where id in
  89 + <foreach item="id" collection="array" open="(" separator="," close=")">
  90 + #{id}
  91 + </foreach>
  92 + </delete>
  93 +</mapper>
  1 +<?xml version="1.0" encoding="UTF-8" ?>
  2 +<!DOCTYPE mapper
  3 +PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  4 +"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  5 +<mapper namespace="com.zhonglai.luhui.user.mapper.UserAuthInfoMapper">
  6 +
  7 + <resultMap type="UserAuthInfo" id="UserAuthInfoResult">
  8 + <result property="id" column="id" />
  9 + <result property="nameAuthentication" column="name_authentication" />
  10 + <result property="personalAuthenticationState" column="personal_authentication_state" />
  11 + <result property="enterpriseAuthenticationState" column="enterprise_authentication_state" />
  12 + <result property="personalAuthenticationDescribe" column="personal_authentication_describe" />
  13 + <result property="enterpriseAuthenticationDescribe" column="enterprise_authentication_describe" />
  14 + <result property="personalAuthenticationTime" column="personal_authentication_time" />
  15 + <result property="enterpriseAuthenticationTime" column="enterprise_authentication_time" />
  16 + <result property="identificationCard" column="identification_card" />
  17 + <result property="businessLicenseNo" column="business_license_no" />
  18 + <result property="enterpriseName" column="enterprise_name" />
  19 + <result property="businessLicenseUrl" column="business_license_url" />
  20 + </resultMap>
  21 +
  22 + <sql id="selectUserAuthInfoVo">
  23 + select id, name_authentication, personal_authentication_state, enterprise_authentication_state, personal_authentication_describe, enterprise_authentication_describe, personal_authentication_time, enterprise_authentication_time, identification_card, business_license_no, enterprise_name, business_license_url from user_auth_info
  24 + </sql>
  25 +
  26 + <select id="selectUserAuthInfoList" parameterType="UserAuthInfo" resultMap="UserAuthInfoResult">
  27 + <include refid="selectUserAuthInfoVo"/>
  28 + <where>
  29 + <if test="nameAuthentication != null "> and name_authentication = #{nameAuthentication}</if>
  30 + <if test="personalAuthenticationState != null "> and personal_authentication_state = #{personalAuthenticationState}</if>
  31 + <if test="enterpriseAuthenticationState != null "> and enterprise_authentication_state = #{enterpriseAuthenticationState}</if>
  32 + <if test="personalAuthenticationDescribe != null and personalAuthenticationDescribe != ''"> and personal_authentication_describe = #{personalAuthenticationDescribe}</if>
  33 + <if test="enterpriseAuthenticationDescribe != null and enterpriseAuthenticationDescribe != ''"> and enterprise_authentication_describe = #{enterpriseAuthenticationDescribe}</if>
  34 + <if test="personalAuthenticationTime != null "> and personal_authentication_time = #{personalAuthenticationTime}</if>
  35 + <if test="enterpriseAuthenticationTime != null "> and enterprise_authentication_time = #{enterpriseAuthenticationTime}</if>
  36 + <if test="identificationCard != null and identificationCard != ''"> and identification_card = #{identificationCard}</if>
  37 + <if test="businessLicenseNo != null and businessLicenseNo != ''"> and business_license_no like concat('%', #{businessLicenseNo}, '%')</if>
  38 + <if test="enterpriseName != null and enterpriseName != ''"> and enterprise_name like concat('%', #{enterpriseName}, '%')</if>
  39 + <if test="businessLicenseUrl != null and businessLicenseUrl != ''"> and business_license_url = #{businessLicenseUrl}</if>
  40 + </where>
  41 + </select>
  42 +
  43 + <select id="selectUserAuthInfoById" parameterType="Integer" resultMap="UserAuthInfoResult">
  44 + <include refid="selectUserAuthInfoVo"/>
  45 + where id = #{id}
  46 + </select>
  47 +
  48 + <insert id="insertUserAuthInfo" parameterType="UserAuthInfo">
  49 + insert into user_auth_info
  50 + <trim prefix="(" suffix=")" suffixOverrides=",">
  51 + <if test="id != null">id,</if>
  52 + <if test="nameAuthentication != null">name_authentication,</if>
  53 + <if test="personalAuthenticationState != null">personal_authentication_state,</if>
  54 + <if test="enterpriseAuthenticationState != null">enterprise_authentication_state,</if>
  55 + <if test="personalAuthenticationDescribe != null">personal_authentication_describe,</if>
  56 + <if test="enterpriseAuthenticationDescribe != null">enterprise_authentication_describe,</if>
  57 + <if test="personalAuthenticationTime != null">personal_authentication_time,</if>
  58 + <if test="enterpriseAuthenticationTime != null">enterprise_authentication_time,</if>
  59 + <if test="identificationCard != null">identification_card,</if>
  60 + <if test="businessLicenseNo != null">business_license_no,</if>
  61 + <if test="enterpriseName != null">enterprise_name,</if>
  62 + <if test="businessLicenseUrl != null">business_license_url,</if>
  63 + </trim>
  64 + <trim prefix="values (" suffix=")" suffixOverrides=",">
  65 + <if test="id != null">#{id},</if>
  66 + <if test="nameAuthentication != null">#{nameAuthentication},</if>
  67 + <if test="personalAuthenticationState != null">#{personalAuthenticationState},</if>
  68 + <if test="enterpriseAuthenticationState != null">#{enterpriseAuthenticationState},</if>
  69 + <if test="personalAuthenticationDescribe != null">#{personalAuthenticationDescribe},</if>
  70 + <if test="enterpriseAuthenticationDescribe != null">#{enterpriseAuthenticationDescribe},</if>
  71 + <if test="personalAuthenticationTime != null">#{personalAuthenticationTime},</if>
  72 + <if test="enterpriseAuthenticationTime != null">#{enterpriseAuthenticationTime},</if>
  73 + <if test="identificationCard != null">#{identificationCard},</if>
  74 + <if test="businessLicenseNo != null">#{businessLicenseNo},</if>
  75 + <if test="enterpriseName != null">#{enterpriseName},</if>
  76 + <if test="businessLicenseUrl != null">#{businessLicenseUrl},</if>
  77 + </trim>
  78 + </insert>
  79 +
  80 + <update id="updateUserAuthInfo" parameterType="UserAuthInfo">
  81 + update user_auth_info
  82 + <trim prefix="SET" suffixOverrides=",">
  83 + <if test="nameAuthentication != null">name_authentication = #{nameAuthentication},</if>
  84 + <if test="personalAuthenticationState != null">personal_authentication_state = #{personalAuthenticationState},</if>
  85 + <if test="enterpriseAuthenticationState != null">enterprise_authentication_state = #{enterpriseAuthenticationState},</if>
  86 + <if test="personalAuthenticationDescribe != null">personal_authentication_describe = #{personalAuthenticationDescribe},</if>
  87 + <if test="enterpriseAuthenticationDescribe != null">enterprise_authentication_describe = #{enterpriseAuthenticationDescribe},</if>
  88 + <if test="personalAuthenticationTime != null">personal_authentication_time = #{personalAuthenticationTime},</if>
  89 + <if test="enterpriseAuthenticationTime != null">enterprise_authentication_time = #{enterpriseAuthenticationTime},</if>
  90 + <if test="identificationCard != null">identification_card = #{identificationCard},</if>
  91 + <if test="businessLicenseNo != null">business_license_no = #{businessLicenseNo},</if>
  92 + <if test="enterpriseName != null">enterprise_name = #{enterpriseName},</if>
  93 + <if test="businessLicenseUrl != null">business_license_url = #{businessLicenseUrl},</if>
  94 + </trim>
  95 + where id = #{id}
  96 + </update>
  97 +
  98 + <delete id="deleteUserAuthInfoById" parameterType="Integer">
  99 + delete from user_auth_info where id = #{id}
  100 + </delete>
  101 +
  102 + <delete id="deleteUserAuthInfoByIds" parameterType="String">
  103 + delete from user_auth_info where id in
  104 + <foreach item="id" collection="array" open="(" separator="," close=")">
  105 + #{id}
  106 + </foreach>
  107 + </delete>
  108 +</mapper>
  1 +<?xml version="1.0" encoding="UTF-8" ?>
  2 +<!DOCTYPE mapper
  3 +PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  4 +"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  5 +<mapper namespace="com.zhonglai.luhui.user.mapper.UserBaseInfoMapper">
  6 +
  7 + <resultMap type="UserBaseInfo" id="UserBaseInfoResult">
  8 + <result property="id" column="id" />
  9 + <result property="loginName" column="login_name" />
  10 + <result property="name" column="name" />
  11 + <result property="nickname" column="nickname" />
  12 + <result property="gender" column="gender" />
  13 + <result property="phone" column="phone" />
  14 + <result property="email" column="email" />
  15 + <result property="imgUrl" column="img_url" />
  16 + <result property="createTime" column="create_time" />
  17 + </resultMap>
  18 +
  19 + <sql id="selectUserBaseInfoVo">
  20 + select id, login_name, name, nickname, gender, phone, email, img_url, create_time from user_base_info
  21 + </sql>
  22 +
  23 + <select id="selectUserBaseInfoList" parameterType="UserBaseInfo" resultMap="UserBaseInfoResult">
  24 + <include refid="selectUserBaseInfoVo"/>
  25 + <where>
  26 + <if test="loginName != null and loginName != ''"> and login_name like concat('%', #{loginName}, '%')</if>
  27 + <if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
  28 + <if test="nickname != null and nickname != ''"> and nickname like concat('%', #{nickname}, '%')</if>
  29 + <if test="gender != null "> and gender = #{gender}</if>
  30 + <if test="phone != null and phone != ''"> and phone like concat('%', #{phone}, '%')</if>
  31 + <if test="email != null and email != ''"> and email like concat('%', #{email}, '%')</if>
  32 + <if test="imgUrl != null and imgUrl != ''"> and img_url = #{imgUrl}</if>
  33 + </where>
  34 + </select>
  35 +
  36 + <select id="selectUserBaseInfoById" parameterType="Integer" resultMap="UserBaseInfoResult">
  37 + <include refid="selectUserBaseInfoVo"/>
  38 + where id = #{id}
  39 + </select>
  40 +
  41 + <insert id="insertUserBaseInfo" parameterType="UserBaseInfo" useGeneratedKeys="true" keyProperty="id">
  42 + insert into user_base_info
  43 + <trim prefix="(" suffix=")" suffixOverrides=",">
  44 + <if test="loginName != null and loginName != ''">login_name,</if>
  45 + <if test="name != null">name,</if>
  46 + <if test="nickname != null">nickname,</if>
  47 + <if test="gender != null">gender,</if>
  48 + <if test="phone != null">phone,</if>
  49 + <if test="email != null">email,</if>
  50 + <if test="imgUrl != null">img_url,</if>
  51 + <if test="createTime != null">create_time,</if>
  52 + </trim>
  53 + <trim prefix="values (" suffix=")" suffixOverrides=",">
  54 + <if test="loginName != null and loginName != ''">#{loginName},</if>
  55 + <if test="name != null">#{name},</if>
  56 + <if test="nickname != null">#{nickname},</if>
  57 + <if test="gender != null">#{gender},</if>
  58 + <if test="phone != null">#{phone},</if>
  59 + <if test="email != null">#{email},</if>
  60 + <if test="imgUrl != null">#{imgUrl},</if>
  61 + <if test="createTime != null">#{createTime},</if>
  62 + </trim>
  63 + </insert>
  64 +
  65 + <update id="updateUserBaseInfo" parameterType="UserBaseInfo">
  66 + update user_base_info
  67 + <trim prefix="SET" suffixOverrides=",">
  68 + <if test="loginName != null and loginName != ''">login_name = #{loginName},</if>
  69 + <if test="name != null">name = #{name},</if>
  70 + <if test="nickname != null">nickname = #{nickname},</if>
  71 + <if test="gender != null">gender = #{gender},</if>
  72 + <if test="phone != null">phone = #{phone},</if>
  73 + <if test="email != null">email = #{email},</if>
  74 + <if test="imgUrl != null">img_url = #{imgUrl},</if>
  75 + <if test="createTime != null">create_time = #{createTime},</if>
  76 + </trim>
  77 + where id = #{id}
  78 + </update>
  79 +
  80 + <delete id="deleteUserBaseInfoById" parameterType="Integer">
  81 + delete from user_base_info where id = #{id}
  82 + </delete>
  83 +
  84 + <delete id="deleteUserBaseInfoByIds" parameterType="String">
  85 + delete from user_base_info where id in
  86 + <foreach item="id" collection="array" open="(" separator="," close=")">
  87 + #{id}
  88 + </foreach>
  89 + </delete>
  90 +</mapper>
  1 +<?xml version="1.0" encoding="UTF-8" ?>
  2 +<!DOCTYPE mapper
  3 +PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  4 +"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  5 +<mapper namespace="com.zhonglai.luhui.user.mapper.UserExtraInfoMapper">
  6 +
  7 + <resultMap type="UserExtraInfo" id="UserExtraInfoResult">
  8 + <result property="id" column="id" />
  9 + <result property="describeImgUrl" column="describe_img_url" />
  10 + <result property="describe" column="describe" />
  11 + <result property="userType" column="user_type" />
  12 + <result property="isInvalid" column="is_invalid" />
  13 + <result property="isParticipateIn" column="is_participate_in" />
  14 + <result property="companyId" column="company_id" />
  15 + <result property="shareNumber" column="share_number" />
  16 + </resultMap>
  17 +
  18 + <sql id="selectUserExtraInfoVo">
  19 + select id, describe_img_url, describe, user_type, is_invalid, is_participate_in, company_id, share_number from user_extra_info
  20 + </sql>
  21 +
  22 + <select id="selectUserExtraInfoList" parameterType="UserExtraInfo" resultMap="UserExtraInfoResult">
  23 + <include refid="selectUserExtraInfoVo"/>
  24 + <where>
  25 + <if test="describeImgUrl != null and describeImgUrl != ''"> and describe_img_url = #{describeImgUrl}</if>
  26 + <if test="describe != null and describe != ''"> and describe = #{describe}</if>
  27 + <if test="userType != null "> and user_type = #{userType}</if>
  28 + <if test="isInvalid != null "> and is_invalid = #{isInvalid}</if>
  29 + <if test="isParticipateIn != null "> and is_participate_in = #{isParticipateIn}</if>
  30 + <if test="companyId != null "> and company_id = #{companyId}</if>
  31 + <if test="shareNumber != null "> and share_number = #{shareNumber}</if>
  32 + </where>
  33 + </select>
  34 +
  35 + <select id="selectUserExtraInfoById" parameterType="Integer" resultMap="UserExtraInfoResult">
  36 + <include refid="selectUserExtraInfoVo"/>
  37 + where id = #{id}
  38 + </select>
  39 +
  40 + <insert id="insertUserExtraInfo" parameterType="UserExtraInfo">
  41 + insert into user_extra_info
  42 + <trim prefix="(" suffix=")" suffixOverrides=",">
  43 + <if test="id != null">id,</if>
  44 + <if test="describeImgUrl != null">describe_img_url,</if>
  45 + <if test="describe != null">describe,</if>
  46 + <if test="userType != null">user_type,</if>
  47 + <if test="isInvalid != null">is_invalid,</if>
  48 + <if test="isParticipateIn != null">is_participate_in,</if>
  49 + <if test="companyId != null">company_id,</if>
  50 + <if test="shareNumber != null">share_number,</if>
  51 + </trim>
  52 + <trim prefix="values (" suffix=")" suffixOverrides=",">
  53 + <if test="id != null">#{id},</if>
  54 + <if test="describeImgUrl != null">#{describeImgUrl},</if>
  55 + <if test="describe != null">#{describe},</if>
  56 + <if test="userType != null">#{userType},</if>
  57 + <if test="isInvalid != null">#{isInvalid},</if>
  58 + <if test="isParticipateIn != null">#{isParticipateIn},</if>
  59 + <if test="companyId != null">#{companyId},</if>
  60 + <if test="shareNumber != null">#{shareNumber},</if>
  61 + </trim>
  62 + </insert>
  63 +
  64 + <update id="updateUserExtraInfo" parameterType="UserExtraInfo">
  65 + update user_extra_info
  66 + <trim prefix="SET" suffixOverrides=",">
  67 + <if test="describeImgUrl != null">describe_img_url = #{describeImgUrl},</if>
  68 + <if test="describe != null">describe = #{describe},</if>
  69 + <if test="userType != null">user_type = #{userType},</if>
  70 + <if test="isInvalid != null">is_invalid = #{isInvalid},</if>
  71 + <if test="isParticipateIn != null">is_participate_in = #{isParticipateIn},</if>
  72 + <if test="companyId != null">company_id = #{companyId},</if>
  73 + <if test="shareNumber != null">share_number = #{shareNumber},</if>
  74 + </trim>
  75 + where id = #{id}
  76 + </update>
  77 +
  78 + <delete id="deleteUserExtraInfoById" parameterType="Integer">
  79 + delete from user_extra_info where id = #{id}
  80 + </delete>
  81 +
  82 + <delete id="deleteUserExtraInfoByIds" parameterType="String">
  83 + delete from user_extra_info where id in
  84 + <foreach item="id" collection="array" open="(" separator="," close=")">
  85 + #{id}
  86 + </foreach>
  87 + </delete>
  88 +</mapper>
  1 +<?xml version="1.0" encoding="UTF-8" ?>
  2 +<!DOCTYPE mapper
  3 +PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  4 +"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  5 +<mapper namespace="com.zhonglai.luhui.user.mapper.UserLoginInfoMapper">
  6 +
  7 + <resultMap type="UserLoginInfo" id="UserLoginInfoResult">
  8 + <result property="id" column="id" />
  9 + <result property="onlineState" column="online_state" />
  10 + <result property="lastLoginTime" column="last_login_time" />
  11 + <result property="lastLoginIp" column="last_login_ip" />
  12 + <result property="lastAddress" column="last_address" />
  13 + <result property="lastLoginLongitude" column="last_login_longitude" />
  14 + <result property="lastLoginLatitude" column="last_login_latitude" />
  15 + </resultMap>
  16 +
  17 + <sql id="selectUserLoginInfoVo">
  18 + select id, online_state, last_login_time, last_login_ip, last_address, last_login_longitude, last_login_latitude from user_login_info
  19 + </sql>
  20 +
  21 + <select id="selectUserLoginInfoList" parameterType="UserLoginInfo" resultMap="UserLoginInfoResult">
  22 + <include refid="selectUserLoginInfoVo"/>
  23 + <where>
  24 + <if test="onlineState != null "> and online_state = #{onlineState}</if>
  25 + <if test="lastLoginTime != null "> and last_login_time = #{lastLoginTime}</if>
  26 + <if test="lastLoginIp != null and lastLoginIp != ''"> and last_login_ip = #{lastLoginIp}</if>
  27 + <if test="lastAddress != null and lastAddress != ''"> and last_address = #{lastAddress}</if>
  28 + <if test="lastLoginLongitude != null and lastLoginLongitude != ''"> and last_login_longitude = #{lastLoginLongitude}</if>
  29 + <if test="lastLoginLatitude != null and lastLoginLatitude != ''"> and last_login_latitude = #{lastLoginLatitude}</if>
  30 + </where>
  31 + </select>
  32 +
  33 + <select id="selectUserLoginInfoById" parameterType="Integer" resultMap="UserLoginInfoResult">
  34 + <include refid="selectUserLoginInfoVo"/>
  35 + where id = #{id}
  36 + </select>
  37 +
  38 + <insert id="insertUserLoginInfo" parameterType="UserLoginInfo">
  39 + insert into user_login_info
  40 + <trim prefix="(" suffix=")" suffixOverrides=",">
  41 + <if test="id != null">id,</if>
  42 + <if test="onlineState != null">online_state,</if>
  43 + <if test="lastLoginTime != null">last_login_time,</if>
  44 + <if test="lastLoginIp != null">last_login_ip,</if>
  45 + <if test="lastAddress != null">last_address,</if>
  46 + <if test="lastLoginLongitude != null">last_login_longitude,</if>
  47 + <if test="lastLoginLatitude != null">last_login_latitude,</if>
  48 + </trim>
  49 + <trim prefix="values (" suffix=")" suffixOverrides=",">
  50 + <if test="id != null">#{id},</if>
  51 + <if test="onlineState != null">#{onlineState},</if>
  52 + <if test="lastLoginTime != null">#{lastLoginTime},</if>
  53 + <if test="lastLoginIp != null">#{lastLoginIp},</if>
  54 + <if test="lastAddress != null">#{lastAddress},</if>
  55 + <if test="lastLoginLongitude != null">#{lastLoginLongitude},</if>
  56 + <if test="lastLoginLatitude != null">#{lastLoginLatitude},</if>
  57 + </trim>
  58 + </insert>
  59 +
  60 + <update id="updateUserLoginInfo" parameterType="UserLoginInfo">
  61 + update user_login_info
  62 + <trim prefix="SET" suffixOverrides=",">
  63 + <if test="onlineState != null">online_state = #{onlineState},</if>
  64 + <if test="lastLoginTime != null">last_login_time = #{lastLoginTime},</if>
  65 + <if test="lastLoginIp != null">last_login_ip = #{lastLoginIp},</if>
  66 + <if test="lastAddress != null">last_address = #{lastAddress},</if>
  67 + <if test="lastLoginLongitude != null">last_login_longitude = #{lastLoginLongitude},</if>
  68 + <if test="lastLoginLatitude != null">last_login_latitude = #{lastLoginLatitude},</if>
  69 + </trim>
  70 + where id = #{id}
  71 + </update>
  72 +
  73 + <delete id="deleteUserLoginInfoById" parameterType="Integer">
  74 + delete from user_login_info where id = #{id}
  75 + </delete>
  76 +
  77 + <delete id="deleteUserLoginInfoByIds" parameterType="String">
  78 + delete from user_login_info where id in
  79 + <foreach item="id" collection="array" open="(" separator="," close=")">
  80 + #{id}
  81 + </foreach>
  82 + </delete>
  83 +</mapper>
  1 +<?xml version="1.0" encoding="UTF-8" ?>
  2 +<!DOCTYPE mapper
  3 +PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  4 +"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  5 +<mapper namespace="com.zhonglai.luhui.user.mapper.UserLoginMapper">
  6 +
  7 + <resultMap type="UserLogin" id="UserLoginResult">
  8 + <result property="id" column="id" />
  9 + <result property="userId" column="user_id" />
  10 + <result property="loginName" column="login_name" />
  11 + <result property="loginPass" column="login_pass" />
  12 + <result property="userLoginPassKey" column="user_login_pass_key" />
  13 + </resultMap>
  14 +
  15 + <sql id="selectUserLoginVo">
  16 + select id, user_id, login_name, login_pass, user_login_pass_key from user_login
  17 + </sql>
  18 +
  19 + <select id="selectUserLoginList" parameterType="UserLogin" resultMap="UserLoginResult">
  20 + <include refid="selectUserLoginVo"/>
  21 + <where>
  22 + <if test="userId != null "> and user_id = #{userId}</if>
  23 + <if test="loginName != null and loginName != ''"> and login_name like concat('%', #{loginName}, '%')</if>
  24 + <if test="loginPass != null and loginPass != ''"> and login_pass = #{loginPass}</if>
  25 + <if test="userLoginPassKey != null and userLoginPassKey != ''"> and user_login_pass_key = #{userLoginPassKey}</if>
  26 + </where>
  27 + </select>
  28 +
  29 + <select id="selectUserLoginById" parameterType="Integer" resultMap="UserLoginResult">
  30 + <include refid="selectUserLoginVo"/>
  31 + where id = #{id}
  32 + </select>
  33 +
  34 + <insert id="insertUserLogin" parameterType="UserLogin" useGeneratedKeys="true" keyProperty="id">
  35 + insert into user_login
  36 + <trim prefix="(" suffix=")" suffixOverrides=",">
  37 + <if test="userId != null">user_id,</if>
  38 + <if test="loginName != null and loginName != ''">login_name,</if>
  39 + <if test="loginPass != null and loginPass != ''">login_pass,</if>
  40 + <if test="userLoginPassKey != null and userLoginPassKey != ''">user_login_pass_key,</if>
  41 + </trim>
  42 + <trim prefix="values (" suffix=")" suffixOverrides=",">
  43 + <if test="userId != null">#{userId},</if>
  44 + <if test="loginName != null and loginName != ''">#{loginName},</if>
  45 + <if test="loginPass != null and loginPass != ''">#{loginPass},</if>
  46 + <if test="userLoginPassKey != null and userLoginPassKey != ''">#{userLoginPassKey},</if>
  47 + </trim>
  48 + </insert>
  49 +
  50 + <update id="updateUserLogin" parameterType="UserLogin">
  51 + update user_login
  52 + <trim prefix="SET" suffixOverrides=",">
  53 + <if test="userId != null">user_id = #{userId},</if>
  54 + <if test="loginName != null and loginName != ''">login_name = #{loginName},</if>
  55 + <if test="loginPass != null and loginPass != ''">login_pass = #{loginPass},</if>
  56 + <if test="userLoginPassKey != null and userLoginPassKey != ''">user_login_pass_key = #{userLoginPassKey},</if>
  57 + </trim>
  58 + where id = #{id}
  59 + </update>
  60 +
  61 + <delete id="deleteUserLoginById" parameterType="Integer">
  62 + delete from user_login where id = #{id}
  63 + </delete>
  64 +
  65 + <delete id="deleteUserLoginByIds" parameterType="String">
  66 + delete from user_login where id in
  67 + <foreach item="id" collection="array" open="(" separator="," close=")">
  68 + #{id}
  69 + </foreach>
  70 + </delete>
  71 +</mapper>
  1 +<?xml version="1.0" encoding="UTF-8" ?>
  2 +<!DOCTYPE mapper
  3 +PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  4 +"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  5 +<mapper namespace="com.zhonglai.luhui.user.mapper.UserOfficialInfoMapper">
  6 +
  7 + <resultMap type="UserOfficialInfo" id="UserOfficialInfoResult">
  8 + <result property="id" column="id" />
  9 + <result property="guarantee" column="guarantee" />
  10 + <result property="guaranteeDescribe" column="guarantee_describe" />
  11 + <result property="alarmAgreement" column="alarm_agreement" />
  12 + <result property="alarmNoticePhone" column="alarm_notice_phone" />
  13 + <result property="alarmNoticeOpenid" column="alarm_notice_openid" />
  14 + <result property="alarmNoticeWxopen" column="alarm_notice_wxopen" />
  15 + </resultMap>
  16 +
  17 + <sql id="selectUserOfficialInfoVo">
  18 + select id, guarantee, guarantee_describe, alarm_agreement, alarm_notice_phone, alarm_notice_openid, alarm_notice_wxopen from user_official_info
  19 + </sql>
  20 +
  21 + <select id="selectUserOfficialInfoList" parameterType="UserOfficialInfo" resultMap="UserOfficialInfoResult">
  22 + <include refid="selectUserOfficialInfoVo"/>
  23 + <where>
  24 + <if test="guarantee != null "> and guarantee = #{guarantee}</if>
  25 + <if test="guaranteeDescribe != null and guaranteeDescribe != ''"> and guarantee_describe = #{guaranteeDescribe}</if>
  26 + <if test="alarmAgreement != null "> and alarm_agreement = #{alarmAgreement}</if>
  27 + <if test="alarmNoticePhone != null and alarmNoticePhone != ''"> and alarm_notice_phone like concat('%', #{alarmNoticePhone}, '%')</if>
  28 + <if test="alarmNoticeOpenid != null and alarmNoticeOpenid != ''"> and alarm_notice_openid = #{alarmNoticeOpenid}</if>
  29 + <if test="alarmNoticeWxopen != null "> and alarm_notice_wxopen = #{alarmNoticeWxopen}</if>
  30 + </where>
  31 + </select>
  32 +
  33 + <select id="selectUserOfficialInfoById" parameterType="Integer" resultMap="UserOfficialInfoResult">
  34 + <include refid="selectUserOfficialInfoVo"/>
  35 + where id = #{id}
  36 + </select>
  37 +
  38 + <insert id="insertUserOfficialInfo" parameterType="UserOfficialInfo">
  39 + insert into user_official_info
  40 + <trim prefix="(" suffix=")" suffixOverrides=",">
  41 + <if test="id != null">id,</if>
  42 + <if test="guarantee != null">guarantee,</if>
  43 + <if test="guaranteeDescribe != null">guarantee_describe,</if>
  44 + <if test="alarmAgreement != null">alarm_agreement,</if>
  45 + <if test="alarmNoticePhone != null">alarm_notice_phone,</if>
  46 + <if test="alarmNoticeOpenid != null">alarm_notice_openid,</if>
  47 + <if test="alarmNoticeWxopen != null">alarm_notice_wxopen,</if>
  48 + </trim>
  49 + <trim prefix="values (" suffix=")" suffixOverrides=",">
  50 + <if test="id != null">#{id},</if>
  51 + <if test="guarantee != null">#{guarantee},</if>
  52 + <if test="guaranteeDescribe != null">#{guaranteeDescribe},</if>
  53 + <if test="alarmAgreement != null">#{alarmAgreement},</if>
  54 + <if test="alarmNoticePhone != null">#{alarmNoticePhone},</if>
  55 + <if test="alarmNoticeOpenid != null">#{alarmNoticeOpenid},</if>
  56 + <if test="alarmNoticeWxopen != null">#{alarmNoticeWxopen},</if>
  57 + </trim>
  58 + </insert>
  59 +
  60 + <update id="updateUserOfficialInfo" parameterType="UserOfficialInfo">
  61 + update user_official_info
  62 + <trim prefix="SET" suffixOverrides=",">
  63 + <if test="guarantee != null">guarantee = #{guarantee},</if>
  64 + <if test="guaranteeDescribe != null">guarantee_describe = #{guaranteeDescribe},</if>
  65 + <if test="alarmAgreement != null">alarm_agreement = #{alarmAgreement},</if>
  66 + <if test="alarmNoticePhone != null">alarm_notice_phone = #{alarmNoticePhone},</if>
  67 + <if test="alarmNoticeOpenid != null">alarm_notice_openid = #{alarmNoticeOpenid},</if>
  68 + <if test="alarmNoticeWxopen != null">alarm_notice_wxopen = #{alarmNoticeWxopen},</if>
  69 + </trim>
  70 + where id = #{id}
  71 + </update>
  72 +
  73 + <delete id="deleteUserOfficialInfoById" parameterType="Integer">
  74 + delete from user_official_info where id = #{id}
  75 + </delete>
  76 +
  77 + <delete id="deleteUserOfficialInfoByIds" parameterType="String">
  78 + delete from user_official_info where id in
  79 + <foreach item="id" collection="array" open="(" separator="," close=")">
  80 + #{id}
  81 + </foreach>
  82 + </delete>
  83 +</mapper>
  1 +<?xml version="1.0" encoding="UTF-8" ?>
  2 +<!DOCTYPE mapper
  3 +PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  4 +"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  5 +<mapper namespace="com.zhonglai.luhui.user.mapper.UserSocialInfoMapper">
  6 +
  7 + <resultMap type="UserSocialInfo" id="UserSocialInfoResult">
  8 + <result property="id" column="id" />
  9 + <result property="qq" column="qq" />
  10 + <result property="weixin" column="weixin" />
  11 + <result property="openId" column="open_id" />
  12 + <result property="ysChildrenId" column="ys_children_id" />
  13 + <result property="ysChildrenPass" column="ys_children_pass" />
  14 + <result property="messagePassWord" column="message_pass_word" />
  15 + <result property="isMessageAction" column="is_message_action" />
  16 + </resultMap>
  17 +
  18 + <sql id="selectUserSocialInfoVo">
  19 + select id, qq, weixin, open_id, ys_children_id, ys_children_pass, message_pass_word, is_message_action from user_social_info
  20 + </sql>
  21 +
  22 + <select id="selectUserSocialInfoList" parameterType="UserSocialInfo" resultMap="UserSocialInfoResult">
  23 + <include refid="selectUserSocialInfoVo"/>
  24 + <where>
  25 + <if test="qq != null and qq != ''"> and qq = #{qq}</if>
  26 + <if test="weixin != null and weixin != ''"> and weixin = #{weixin}</if>
  27 + <if test="openId != null "> and open_id = #{openId}</if>
  28 + <if test="ysChildrenId != null and ysChildrenId != ''"> and ys_children_id = #{ysChildrenId}</if>
  29 + <if test="ysChildrenPass != null and ysChildrenPass != ''"> and ys_children_pass = #{ysChildrenPass}</if>
  30 + <if test="messagePassWord != null and messagePassWord != ''"> and message_pass_word = #{messagePassWord}</if>
  31 + <if test="isMessageAction != null "> and is_message_action = #{isMessageAction}</if>
  32 + </where>
  33 + </select>
  34 +
  35 + <select id="selectUserSocialInfoById" parameterType="Integer" resultMap="UserSocialInfoResult">
  36 + <include refid="selectUserSocialInfoVo"/>
  37 + where id = #{id}
  38 + </select>
  39 +
  40 + <insert id="insertUserSocialInfo" parameterType="UserSocialInfo">
  41 + insert into user_social_info
  42 + <trim prefix="(" suffix=")" suffixOverrides=",">
  43 + <if test="id != null">id,</if>
  44 + <if test="qq != null">qq,</if>
  45 + <if test="weixin != null">weixin,</if>
  46 + <if test="openId != null">open_id,</if>
  47 + <if test="ysChildrenId != null">ys_children_id,</if>
  48 + <if test="ysChildrenPass != null">ys_children_pass,</if>
  49 + <if test="messagePassWord != null">message_pass_word,</if>
  50 + <if test="isMessageAction != null">is_message_action,</if>
  51 + </trim>
  52 + <trim prefix="values (" suffix=")" suffixOverrides=",">
  53 + <if test="id != null">#{id},</if>
  54 + <if test="qq != null">#{qq},</if>
  55 + <if test="weixin != null">#{weixin},</if>
  56 + <if test="openId != null">#{openId},</if>
  57 + <if test="ysChildrenId != null">#{ysChildrenId},</if>
  58 + <if test="ysChildrenPass != null">#{ysChildrenPass},</if>
  59 + <if test="messagePassWord != null">#{messagePassWord},</if>
  60 + <if test="isMessageAction != null">#{isMessageAction},</if>
  61 + </trim>
  62 + </insert>
  63 +
  64 + <update id="updateUserSocialInfo" parameterType="UserSocialInfo">
  65 + update user_social_info
  66 + <trim prefix="SET" suffixOverrides=",">
  67 + <if test="qq != null">qq = #{qq},</if>
  68 + <if test="weixin != null">weixin = #{weixin},</if>
  69 + <if test="openId != null">open_id = #{openId},</if>
  70 + <if test="ysChildrenId != null">ys_children_id = #{ysChildrenId},</if>
  71 + <if test="ysChildrenPass != null">ys_children_pass = #{ysChildrenPass},</if>
  72 + <if test="messagePassWord != null">message_pass_word = #{messagePassWord},</if>
  73 + <if test="isMessageAction != null">is_message_action = #{isMessageAction},</if>
  74 + </trim>
  75 + where id = #{id}
  76 + </update>
  77 +
  78 + <delete id="deleteUserSocialInfoById" parameterType="Integer">
  79 + delete from user_social_info where id = #{id}
  80 + </delete>
  81 +
  82 + <delete id="deleteUserSocialInfoByIds" parameterType="String">
  83 + delete from user_social_info where id in
  84 + <foreach item="id" collection="array" open="(" separator="," close=")">
  85 + #{id}
  86 + </foreach>
  87 + </delete>
  88 +</mapper>
@@ -32,6 +32,7 @@ @@ -32,6 +32,7 @@
32 <module>ruoyi-framework</module> 32 <module>ruoyi-framework</module>
33 <module>ruoyi-generator</module> 33 <module>ruoyi-generator</module>
34 <module>lh-service-dao</module> 34 <module>lh-service-dao</module>
  35 + <module>lh-user</module>
35 </modules> 36 </modules>
36 37
37 <packaging>pom</packaging> 38 <packaging>pom</packaging>
@@ -116,7 +116,7 @@ public class GenController extends BaseController @@ -116,7 +116,7 @@ public class GenController extends BaseController
116 String[] tableNames = Convert.toStrArray(tables); 116 String[] tableNames = Convert.toStrArray(tables);
117 // 查询表信息 117 // 查询表信息
118 List<GenTable> tableList = genTableService.selectDbTableListByNames(databaseName,tableNames); 118 List<GenTable> tableList = genTableService.selectDbTableListByNames(databaseName,tableNames);
119 - genTableService.importGenTable(tableList, SecurityUtils.getUsername()); 119 + genTableService.importGenTable(databaseName,tableList, SecurityUtils.getUsername());
120 return success(); 120 return success();
121 } 121 }
122 122
@@ -147,7 +147,7 @@ public class GenController extends BaseController @@ -147,7 +147,7 @@ public class GenController extends BaseController
147 } 147 }
148 List<GenTable> tableList = genTableService.selectDbTableListByNames(databaseName,tableNames.toArray(new String[tableNames.size()])); 148 List<GenTable> tableList = genTableService.selectDbTableListByNames(databaseName,tableNames.toArray(new String[tableNames.size()]));
149 String operName = SecurityUtils.getUsername(); 149 String operName = SecurityUtils.getUsername();
150 - genTableService.importGenTable(tableList, operName); 150 + genTableService.importGenTable(databaseName,tableList, operName);
151 return AjaxResult.success(); 151 return AjaxResult.success();
152 } 152 }
153 catch (Exception e) 153 catch (Exception e)
@@ -223,9 +223,9 @@ public class GenController extends BaseController @@ -223,9 +223,9 @@ public class GenController extends BaseController
223 @PreAuthorize("@ss.hasPermi('tool:gen:edit')") 223 @PreAuthorize("@ss.hasPermi('tool:gen:edit')")
224 @Log(title = "同步数据库", businessType = BusinessType.UPDATE) 224 @Log(title = "同步数据库", businessType = BusinessType.UPDATE)
225 @GetMapping("/synchDb/{tableName}") 225 @GetMapping("/synchDb/{tableName}")
226 - public AjaxResult synchDb(@PathVariable("tableName") String tableName) 226 + public AjaxResult synchDb(@PathVariable("tableName") String tableName,String databaseName)
227 { 227 {
228 - genTableService.synchDb(tableName); 228 + genTableService.synchDb(databaseName,tableName);
229 return success(); 229 return success();
230 } 230 }
231 231
@@ -2,6 +2,7 @@ package com.ruoyi.generator.mapper; @@ -2,6 +2,7 @@ package com.ruoyi.generator.mapper;
2 2
3 import java.util.List; 3 import java.util.List;
4 import com.ruoyi.generator.domain.GenTableColumn; 4 import com.ruoyi.generator.domain.GenTableColumn;
  5 +import org.apache.ibatis.annotations.Param;
5 6
6 /** 7 /**
7 * 业务字段 数据层 8 * 业务字段 数据层
@@ -16,7 +17,7 @@ public interface GenTableColumnMapper @@ -16,7 +17,7 @@ public interface GenTableColumnMapper
16 * @param tableName 表名称 17 * @param tableName 表名称
17 * @return 列信息 18 * @return 列信息
18 */ 19 */
19 - public List<GenTableColumn> selectDbTableColumnsByName(String tableName); 20 + public List<GenTableColumn> selectDbTableColumnsByName(@Param("databaseName") String databaseName,@Param("tableName") String tableName);
20 21
21 /** 22 /**
22 * 查询业务字段列表 23 * 查询业务字段列表
@@ -2,6 +2,7 @@ package com.ruoyi.generator.mapper; @@ -2,6 +2,7 @@ package com.ruoyi.generator.mapper;
2 2
3 import java.util.List; 3 import java.util.List;
4 import com.ruoyi.generator.domain.GenTable; 4 import com.ruoyi.generator.domain.GenTable;
  5 +import org.apache.ibatis.annotations.Param;
5 6
6 /** 7 /**
7 * 业务 数据层 8 * 业务 数据层
@@ -32,7 +33,7 @@ public interface GenTableMapper @@ -32,7 +33,7 @@ public interface GenTableMapper
32 * @param tableNames 表名称组 33 * @param tableNames 表名称组
33 * @return 数据库表集合 34 * @return 数据库表集合
34 */ 35 */
35 - public List<GenTable> selectDbTableListByNames(String databaseName,String[] tableNames); 36 + public List<GenTable> selectDbTableListByNames(@Param("databaseName") String databaseName, @Param("tableNames") String[] tableNames);
36 37
37 /** 38 /**
38 * 查询所有表信息 39 * 查询所有表信息
@@ -170,7 +170,7 @@ public class GenTableServiceImpl implements IGenTableService @@ -170,7 +170,7 @@ public class GenTableServiceImpl implements IGenTableService
170 */ 170 */
171 @Override 171 @Override
172 @Transactional 172 @Transactional
173 - public void importGenTable(List<GenTable> tableList, String operName) 173 + public void importGenTable(String databaseName,List<GenTable> tableList, String operName)
174 { 174 {
175 try 175 try
176 { 176 {
@@ -182,7 +182,7 @@ public class GenTableServiceImpl implements IGenTableService @@ -182,7 +182,7 @@ public class GenTableServiceImpl implements IGenTableService
182 if (row > 0) 182 if (row > 0)
183 { 183 {
184 // 保存列信息 184 // 保存列信息
185 - List<GenTableColumn> genTableColumns = genTableColumnMapper.selectDbTableColumnsByName(tableName); 185 + List<GenTableColumn> genTableColumns = genTableColumnMapper.selectDbTableColumnsByName(databaseName,tableName);
186 for (GenTableColumn column : genTableColumns) 186 for (GenTableColumn column : genTableColumns)
187 { 187 {
188 GenUtils.initColumnField(column, table); 188 GenUtils.initColumnField(column, table);
@@ -295,13 +295,13 @@ public class GenTableServiceImpl implements IGenTableService @@ -295,13 +295,13 @@ public class GenTableServiceImpl implements IGenTableService
295 */ 295 */
296 @Override 296 @Override
297 @Transactional 297 @Transactional
298 - public void synchDb(String tableName) 298 + public void synchDb(String databaseName,String tableName)
299 { 299 {
300 GenTable table = genTableMapper.selectGenTableByName(tableName); 300 GenTable table = genTableMapper.selectGenTableByName(tableName);
301 List<GenTableColumn> tableColumns = table.getColumns(); 301 List<GenTableColumn> tableColumns = table.getColumns();
302 Map<String, GenTableColumn> tableColumnMap = tableColumns.stream().collect(Collectors.toMap(GenTableColumn::getColumnName, Function.identity())); 302 Map<String, GenTableColumn> tableColumnMap = tableColumns.stream().collect(Collectors.toMap(GenTableColumn::getColumnName, Function.identity()));
303 303
304 - List<GenTableColumn> dbTableColumns = genTableColumnMapper.selectDbTableColumnsByName(tableName); 304 + List<GenTableColumn> dbTableColumns = genTableColumnMapper.selectDbTableColumnsByName(databaseName,tableName);
305 if (StringUtils.isEmpty(dbTableColumns)) 305 if (StringUtils.isEmpty(dbTableColumns))
306 { 306 {
307 throw new ServiceException("同步数据失败,原表结构不存在"); 307 throw new ServiceException("同步数据失败,原表结构不存在");
@@ -80,7 +80,7 @@ public interface IGenTableService @@ -80,7 +80,7 @@ public interface IGenTableService
80 * @param tableList 导入表列表 80 * @param tableList 导入表列表
81 * @param operName 操作人员 81 * @param operName 操作人员
82 */ 82 */
83 - public void importGenTable(List<GenTable> tableList, String operName); 83 + public void importGenTable(String databaseName,List<GenTable> tableList, String operName);
84 84
85 /** 85 /**
86 * 预览代码 86 * 预览代码
@@ -111,7 +111,7 @@ public interface IGenTableService @@ -111,7 +111,7 @@ public interface IGenTableService
111 * 111 *
112 * @param tableName 表名称 112 * @param tableName 表名称
113 */ 113 */
114 - public void synchDb(String tableName); 114 + public void synchDb(String databaseName,String tableName);
115 115
116 /** 116 /**
117 * 批量生成代码(下载方式) 117 * 批量生成代码(下载方式)
@@ -139,11 +139,11 @@ public class VelocityUtils @@ -139,11 +139,11 @@ public class VelocityUtils
139 } 139 }
140 List<String> templates = new ArrayList<String>(); 140 List<String> templates = new ArrayList<String>();
141 templates.add("vm/java/domain.java.vm"); 141 templates.add("vm/java/domain.java.vm");
142 -// templates.add("vm/java/mapper.java.vm");  
143 -// templates.add("vm/java/service.java.vm");  
144 -// templates.add("vm/java/serviceImpl.java.vm"); 142 + templates.add("vm/java/mapper.java.vm");
  143 + templates.add("vm/java/service.java.vm");
  144 + templates.add("vm/java/serviceImpl.java.vm");
145 templates.add("vm/java/controller.java.vm"); 145 templates.add("vm/java/controller.java.vm");
146 -// templates.add("vm/xml/mapper.xml.vm"); 146 + templates.add("vm/xml/mapper.xml.vm");
147 templates.add("vm/sql/sql.vm"); 147 templates.add("vm/sql/sql.vm");
148 templates.add("vm/js/api.js.vm"); 148 templates.add("vm/js/api.js.vm");
149 if (GenConstants.TPL_CRUD.equals(tplCategory)) 149 if (GenConstants.TPL_CRUD.equals(tplCategory))
@@ -321,7 +321,11 @@ public class VelocityUtils @@ -321,7 +321,11 @@ public class VelocityUtils
321 */ 321 */
322 public static String getPermissionPrefix(String modlePath,String moduleName, String businessName) 322 public static String getPermissionPrefix(String modlePath,String moduleName, String businessName)
323 { 323 {
324 - return StringUtils.format("{}:{}:{}",modlePath, moduleName, businessName); 324 + if(StringUtils.isNotEmpty(modlePath))
  325 + {
  326 + return StringUtils.format("{}:{}:{}",modlePath, moduleName, businessName);
  327 + }
  328 + return StringUtils.format("{}:{}", moduleName, businessName);
325 } 329 }
326 330
327 /** 331 /**
@@ -39,9 +39,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" @@ -39,9 +39,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
39 order by sort 39 order by sort
40 </select> 40 </select>
41 41
42 - <select id="selectDbTableColumnsByName" parameterType="String" resultMap="GenTableColumnResult"> 42 + <select id="selectDbTableColumnsByName" parameterType="map" resultMap="GenTableColumnResult">
43 select column_name, (case when (is_nullable = 'no' <![CDATA[ && ]]> column_key != 'PRI') then '1' else '0' end) as is_required, (case when column_key = 'PRI' then '1' else '0' end) as is_pk, ordinal_position as sort, column_comment, (case when extra = 'auto_increment' then '1' else '0' end) as is_increment, column_type 43 select column_name, (case when (is_nullable = 'no' <![CDATA[ && ]]> column_key != 'PRI') then '1' else '0' end) as is_required, (case when column_key = 'PRI' then '1' else '0' end) as is_pk, ordinal_position as sort, column_comment, (case when extra = 'auto_increment' then '1' else '0' end) as is_increment, column_type
44 - from information_schema.columns where table_schema = (select database()) and table_name = (#{tableName}) 44 + from information_schema.columns where table_name = (#{tableName})
  45 + <if test="databaseName != null and databaseName != ''">
  46 + and table_schema = #{databaseName}
  47 + </if>
  48 + <if test="databaseName == null or databaseName == ''">
  49 + and table_schema = (select database())
  50 + </if>
45 order by ordinal_position 51 order by ordinal_position
46 </select> 52 </select>
47 53
@@ -100,7 +100,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" @@ -100,7 +100,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
100 order by create_time desc 100 order by create_time desc
101 </select> 101 </select>
102 102
103 - <select id="selectDbTableListByNames" resultMap="GenTableResult"> 103 + <select id="selectDbTableListByNames" parameterType="map" resultMap="GenTableResult">
104 select table_name, table_comment, create_time, update_time from information_schema.tables 104 select table_name, table_comment, create_time, update_time from information_schema.tables
105 where table_name NOT LIKE 'qrtz_%' and table_name NOT LIKE 'gen_%' 105 where table_name NOT LIKE 'qrtz_%' and table_name NOT LIKE 'gen_%'
106 <if test="databaseName != null and databaseName != ''"> 106 <if test="databaseName != null and databaseName != ''">
@@ -110,7 +110,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" @@ -110,7 +110,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
110 and table_schema = (select database()) 110 and table_schema = (select database())
111 </if> 111 </if>
112 and table_name in 112 and table_name in
113 - <foreach collection="array" item="name" open="(" separator="," close=")"> 113 + <foreach collection="tableNames" item="name" open="(" separator="," close=")">
114 #{name} 114 #{name}
115 </foreach> 115 </foreach>
116 </select> 116 </select>
1 -package ${packageName}.${modlePath}.controller.${moduleName}; 1 +package ${packageName}#if($modlePath).${modlePath}#end.controller.${moduleName};
2 2
3 import java.util.List; 3 import java.util.List;
4 import com.zhonglai.luhui.datasource.enums.DataSource; 4 import com.zhonglai.luhui.datasource.enums.DataSource;
@@ -22,7 +22,7 @@ import com.ruoyi.common.core.domain.AjaxResult; @@ -22,7 +22,7 @@ import com.ruoyi.common.core.domain.AjaxResult;
22 import com.ruoyi.common.enums.BusinessType; 22 import com.ruoyi.common.enums.BusinessType;
23 import com.zhonglai.luhui.dao.service.PublicTemplateService; 23 import com.zhonglai.luhui.dao.service.PublicTemplateService;
24 import ${packageName}.domain.${moduleName}.${ClassName}; 24 import ${packageName}.domain.${moduleName}.${ClassName};
25 -import com.ruoyi.common.utils.poi.ExcelUtil; 25 +import com.zhonglai.luhui.sys.utils.ExcelUtil;
26 26
27 #if($table.crud || $table.sub) 27 #if($table.crud || $table.sub)
28 import com.ruoyi.common.core.page.TableDataInfo; 28 import com.ruoyi.common.core.page.TableDataInfo;
@@ -122,4 +122,4 @@ public class ${ClassName}Controller extends BaseController @@ -122,4 +122,4 @@ public class ${ClassName}Controller extends BaseController
122 { 122 {
123 return toAjax(publicTemplateService.removeByIds(${ClassName}.class,${pkColumn.javaField}s)); 123 return toAjax(publicTemplateService.removeByIds(${ClassName}.class,${pkColumn.javaField}s));
124 } 124 }
125 -} 125 +}
@@ -5,7 +5,7 @@ import ${import}; @@ -5,7 +5,7 @@ import ${import};
5 #end 5 #end
6 import org.apache.commons.lang3.builder.ToStringBuilder; 6 import org.apache.commons.lang3.builder.ToStringBuilder;
7 import org.apache.commons.lang3.builder.ToStringStyle; 7 import org.apache.commons.lang3.builder.ToStringStyle;
8 -import com.zhonglai.luhui.common.util.annotation.Excel; 8 +##import com.zhonglai.luhui.common.util.annotation.Excel;
9 import io.swagger.annotations.ApiModel; 9 import io.swagger.annotations.ApiModel;
10 import io.swagger.annotations.ApiModelProperty; 10 import io.swagger.annotations.ApiModelProperty;
11 #if($table.crud || $table.sub) 11 #if($table.crud || $table.sub)
@@ -41,14 +41,14 @@ public class ${ClassName} extends ${Entity} @@ -41,14 +41,14 @@ public class ${ClassName} extends ${Entity}
41 #end 41 #end
42 #if($parentheseIndex != -1) 42 #if($parentheseIndex != -1)
43 @ApiModelProperty(value="${comment}",allowableValues="$column.readConverterExp()") 43 @ApiModelProperty(value="${comment}",allowableValues="$column.readConverterExp()")
44 - @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") 44 +## @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
45 #elseif($column.javaType == 'Date') 45 #elseif($column.javaType == 'Date')
46 @JsonFormat(pattern = "yyyy-MM-dd") 46 @JsonFormat(pattern = "yyyy-MM-dd")
47 @ApiModelProperty(value="${comment}") 47 @ApiModelProperty(value="${comment}")
48 - @Excel(name = "${comment}", width = 30, dateFormat = "yyyy-MM-dd") 48 +## @Excel(name = "${comment}", width = 30, dateFormat = "yyyy-MM-dd")
49 #else 49 #else
50 @ApiModelProperty(value="${comment}") 50 @ApiModelProperty(value="${comment}")
51 - @Excel(name = "${comment}") 51 +## @Excel(name = "${comment}")
52 #end 52 #end
53 #end 53 #end
54 private $column.javaType $column.javaField; 54 private $column.javaType $column.javaField;
@@ -93,6 +93,10 @@ @@ -93,6 +93,10 @@
93 <groupId>com.zhonglai.luhui</groupId> 93 <groupId>com.zhonglai.luhui</groupId>
94 <artifactId>ruoyi-common-security</artifactId> 94 <artifactId>ruoyi-common-security</artifactId>
95 </dependency> 95 </dependency>
  96 + <dependency>
  97 + <groupId>com.zhonglai.luhui</groupId>
  98 + <artifactId>lh-user</artifactId>
  99 + </dependency>
96 </dependencies> 100 </dependencies>
97 101
98 <build> 102 <build>
@@ -163,7 +163,7 @@ public class ControlGkjController extends BaseController { @@ -163,7 +163,7 @@ public class ControlGkjController extends BaseController {
163 @ApiImplicitParams({ 163 @ApiImplicitParams({
164 @ApiImplicitParam(name = "deviceId", value = "设备ID", required = true, dataType = "String", paramType = "path"), 164 @ApiImplicitParam(name = "deviceId", value = "设备ID", required = true, dataType = "String", paramType = "path"),
165 @ApiImplicitParam(name = "url", value = "url", required = true, dataType = "String", paramType = "query"), 165 @ApiImplicitParam(name = "url", value = "url", required = true, dataType = "String", paramType = "query"),
166 - @ApiImplicitParam(name = "name", value = "名称", required = true, dataType = "String", paramType = "pqueryath"), 166 + @ApiImplicitParam(name = "name", value = "名称", required = true, dataType = "String", paramType = "query"),
167 }) 167 })
168 @GetMapping("/upload/{deviceId}") 168 @GetMapping("/upload/{deviceId}")
169 public AjaxResult upload(@PathVariable String deviceId,String url,String name) { 169 public AjaxResult upload(@PathVariable String deviceId,String url,String name) {
  1 +package com.zhonglai.luhui.admin.controller.user;
  2 +
  3 +import java.util.List;
  4 +import com.zhonglai.luhui.datasource.enums.DataSource;
  5 +import com.zhonglai.luhui.datasource.enums.DataSourceType;
  6 +import javax.servlet.http.HttpServletResponse;
  7 +import io.swagger.annotations.Api;
  8 +import io.swagger.annotations.ApiOperation;
  9 +import org.springframework.security.access.prepost.PreAuthorize;
  10 +import org.springframework.beans.factory.annotation.Autowired;
  11 +import org.springframework.web.bind.annotation.GetMapping;
  12 +import org.springframework.web.bind.annotation.PostMapping;
  13 +import org.springframework.web.bind.annotation.PutMapping;
  14 +import org.springframework.web.bind.annotation.DeleteMapping;
  15 +import org.springframework.web.bind.annotation.PathVariable;
  16 +import org.springframework.web.bind.annotation.RequestBody;
  17 +import org.springframework.web.bind.annotation.RequestMapping;
  18 +import org.springframework.web.bind.annotation.RestController;
  19 +import com.ruoyi.common.annotation.Log;
  20 +import com.zhonglai.luhui.action.BaseController;
  21 +import com.ruoyi.common.core.domain.AjaxResult;
  22 +import com.ruoyi.common.enums.BusinessType;
  23 +import com.zhonglai.luhui.dao.service.PublicTemplateService;
  24 +import com.zhonglai.luhui.user.domain.UserAccountInfo;
  25 +import com.zhonglai.luhui.sys.utils.ExcelUtil;
  26 +
  27 +import com.ruoyi.common.core.page.TableDataInfo;
  28 +
  29 +/**
  30 + * 用户账户信息Controller
  31 + *
  32 + * @author zhonglai
  33 + * @date 2025-10-20
  34 + */
  35 +@Api(tags = "用户账户信息")
  36 +@RestController
  37 +@RequestMapping("/user/account_info")
  38 +public class UserAccountInfoController extends BaseController
  39 +{
  40 + @Autowired
  41 + private PublicTemplateService publicTemplateService;
  42 +
  43 + @ApiOperation(value ="查询用户账户信息列表",notes="\n" +
  44 + "公共参数描述:\n" +
  45 + "条件参数:\n" +
  46 + "timeMap; //时间条件(如:{\"create_time\":[开始时间,结束时间]})\n" +
  47 + "keyValue; //模糊匹配的关键字(如:[\"value\",\"name,no\"])\n" +
  48 + "queryParams; //字段对应的比较符号(如:{\"id\":\"EQ\"})\n" +
  49 + "orderBy; //排序(如:\"id desc,name asc\")\n" +
  50 + "\n" +
  51 + "分页参数:\n" +
  52 + "pageNum; //当前记录起始索引,从1开始\n" +
  53 + "pageSize; //每页显示记录数")
  54 + @DataSource(DataSourceType.SLAVE)
  55 + @PreAuthorize("@ss.hasPermi('user:account_info:list')")
  56 + @GetMapping("/list")
  57 + public TableDataInfo list(UserAccountInfo userAccountInfo)
  58 + {
  59 + startPage();
  60 + List<UserAccountInfo> list = publicTemplateService.selectTList(userAccountInfo);
  61 + return getDataTable(list);
  62 + }
  63 +
  64 + @ApiOperation("导出用户账户信息列表")
  65 + @DataSource(DataSourceType.SLAVE)
  66 + @PreAuthorize("@ss.hasPermi('user:account_info:export')")
  67 + @Log(title = "用户账户信息", businessType = BusinessType.EXPORT)
  68 + @PostMapping("/export")
  69 + public void export(HttpServletResponse response, UserAccountInfo userAccountInfo)
  70 + {
  71 + List<UserAccountInfo> list = publicTemplateService.selectTList(userAccountInfo);
  72 + ExcelUtil<UserAccountInfo> util = new ExcelUtil<UserAccountInfo>(UserAccountInfo.class);
  73 + util.exportExcel(response, list, "用户账户信息数据");
  74 + }
  75 +
  76 + @ApiOperation("获取用户账户信息详细信息")
  77 + @DataSource(DataSourceType.SLAVE)
  78 + @PreAuthorize("@ss.hasPermi('user:account_info:query')")
  79 + @GetMapping(value = "/{id}")
  80 + public AjaxResult getInfo(@PathVariable("id") Integer id)
  81 + {
  82 + return success(publicTemplateService.getTById(id, UserAccountInfo.class));
  83 + }
  84 +
  85 + @ApiOperation("新增用户账户信息")
  86 + @DataSource(DataSourceType.SLAVE)
  87 + @PreAuthorize("@ss.hasPermi('user:account_info:add')")
  88 + @Log(title = "用户账户信息", businessType = BusinessType.INSERT)
  89 + @PostMapping
  90 + public AjaxResult add(@RequestBody UserAccountInfo userAccountInfo)
  91 + {
  92 + return toAjax(publicTemplateService.add(userAccountInfo));
  93 + }
  94 +
  95 + @ApiOperation("修改用户账户信息")
  96 + @DataSource(DataSourceType.SLAVE)
  97 + @PreAuthorize("@ss.hasPermi('user:account_info:edit')")
  98 + @Log(title = "用户账户信息", businessType = BusinessType.UPDATE)
  99 + @PutMapping
  100 + public AjaxResult edit(@RequestBody UserAccountInfo userAccountInfo)
  101 + {
  102 + return toAjax(publicTemplateService.edit((userAccountInfo)));
  103 + }
  104 +
  105 + @ApiOperation("删除用户账户信息")
  106 + @DataSource(DataSourceType.SLAVE)
  107 + @PreAuthorize("@ss.hasPermi('user:account_info:remove')")
  108 + @Log(title = "用户账户信息", businessType = BusinessType.DELETE)
  109 + @DeleteMapping("/{ids}")
  110 + public AjaxResult remove(@PathVariable Integer[] ids)
  111 + {
  112 + return toAjax(publicTemplateService.removeByIds(UserAccountInfo.class,ids));
  113 + }
  114 +}
  1 +package com.zhonglai.luhui.admin.controller.user;
  2 +
  3 +import java.util.List;
  4 +import com.zhonglai.luhui.datasource.enums.DataSource;
  5 +import com.zhonglai.luhui.datasource.enums.DataSourceType;
  6 +import javax.servlet.http.HttpServletResponse;
  7 +import io.swagger.annotations.Api;
  8 +import io.swagger.annotations.ApiOperation;
  9 +import org.springframework.security.access.prepost.PreAuthorize;
  10 +import org.springframework.beans.factory.annotation.Autowired;
  11 +import org.springframework.web.bind.annotation.GetMapping;
  12 +import org.springframework.web.bind.annotation.PostMapping;
  13 +import org.springframework.web.bind.annotation.PutMapping;
  14 +import org.springframework.web.bind.annotation.DeleteMapping;
  15 +import org.springframework.web.bind.annotation.PathVariable;
  16 +import org.springframework.web.bind.annotation.RequestBody;
  17 +import org.springframework.web.bind.annotation.RequestMapping;
  18 +import org.springframework.web.bind.annotation.RestController;
  19 +import com.ruoyi.common.annotation.Log;
  20 +import com.zhonglai.luhui.action.BaseController;
  21 +import com.ruoyi.common.core.domain.AjaxResult;
  22 +import com.ruoyi.common.enums.BusinessType;
  23 +import com.zhonglai.luhui.dao.service.PublicTemplateService;
  24 +import com.zhonglai.luhui.user.domain.UserAddressInfo;
  25 +import com.zhonglai.luhui.sys.utils.ExcelUtil;
  26 +
  27 +import com.ruoyi.common.core.page.TableDataInfo;
  28 +
  29 +/**
  30 + * 用户地理信息Controller
  31 + *
  32 + * @author zhonglai
  33 + * @date 2025-10-20
  34 + */
  35 +@Api(tags = "用户地理信息")
  36 +@RestController
  37 +@RequestMapping("/user/address_info")
  38 +public class UserAddressInfoController extends BaseController
  39 +{
  40 + @Autowired
  41 + private PublicTemplateService publicTemplateService;
  42 +
  43 + @ApiOperation(value ="查询用户地理信息列表",notes="\n" +
  44 + "公共参数描述:\n" +
  45 + "条件参数:\n" +
  46 + "timeMap; //时间条件(如:{\"create_time\":[开始时间,结束时间]})\n" +
  47 + "keyValue; //模糊匹配的关键字(如:[\"value\",\"name,no\"])\n" +
  48 + "queryParams; //字段对应的比较符号(如:{\"id\":\"EQ\"})\n" +
  49 + "orderBy; //排序(如:\"id desc,name asc\")\n" +
  50 + "\n" +
  51 + "分页参数:\n" +
  52 + "pageNum; //当前记录起始索引,从1开始\n" +
  53 + "pageSize; //每页显示记录数")
  54 + @DataSource(DataSourceType.SLAVE)
  55 + @PreAuthorize("@ss.hasPermi('user:address_info:list')")
  56 + @GetMapping("/list")
  57 + public TableDataInfo list(UserAddressInfo userAddressInfo)
  58 + {
  59 + startPage();
  60 + List<UserAddressInfo> list = publicTemplateService.selectTList(userAddressInfo);
  61 + return getDataTable(list);
  62 + }
  63 +
  64 + @ApiOperation("导出用户地理信息列表")
  65 + @DataSource(DataSourceType.SLAVE)
  66 + @PreAuthorize("@ss.hasPermi('user:address_info:export')")
  67 + @Log(title = "用户地理信息", businessType = BusinessType.EXPORT)
  68 + @PostMapping("/export")
  69 + public void export(HttpServletResponse response, UserAddressInfo userAddressInfo)
  70 + {
  71 + List<UserAddressInfo> list = publicTemplateService.selectTList(userAddressInfo);
  72 + ExcelUtil<UserAddressInfo> util = new ExcelUtil<UserAddressInfo>(UserAddressInfo.class);
  73 + util.exportExcel(response, list, "用户地理信息数据");
  74 + }
  75 +
  76 + @ApiOperation("获取用户地理信息详细信息")
  77 + @DataSource(DataSourceType.SLAVE)
  78 + @PreAuthorize("@ss.hasPermi('user:address_info:query')")
  79 + @GetMapping(value = "/{id}")
  80 + public AjaxResult getInfo(@PathVariable("id") Integer id)
  81 + {
  82 + return success(publicTemplateService.getTById(id, UserAddressInfo.class));
  83 + }
  84 +
  85 + @ApiOperation("新增用户地理信息")
  86 + @DataSource(DataSourceType.SLAVE)
  87 + @PreAuthorize("@ss.hasPermi('user:address_info:add')")
  88 + @Log(title = "用户地理信息", businessType = BusinessType.INSERT)
  89 + @PostMapping
  90 + public AjaxResult add(@RequestBody UserAddressInfo userAddressInfo)
  91 + {
  92 + return toAjax(publicTemplateService.add(userAddressInfo));
  93 + }
  94 +
  95 + @ApiOperation("修改用户地理信息")
  96 + @DataSource(DataSourceType.SLAVE)
  97 + @PreAuthorize("@ss.hasPermi('user:address_info:edit')")
  98 + @Log(title = "用户地理信息", businessType = BusinessType.UPDATE)
  99 + @PutMapping
  100 + public AjaxResult edit(@RequestBody UserAddressInfo userAddressInfo)
  101 + {
  102 + return toAjax(publicTemplateService.edit((userAddressInfo)));
  103 + }
  104 +
  105 + @ApiOperation("删除用户地理信息")
  106 + @DataSource(DataSourceType.SLAVE)
  107 + @PreAuthorize("@ss.hasPermi('user:address_info:remove')")
  108 + @Log(title = "用户地理信息", businessType = BusinessType.DELETE)
  109 + @DeleteMapping("/{ids}")
  110 + public AjaxResult remove(@PathVariable Integer[] ids)
  111 + {
  112 + return toAjax(publicTemplateService.removeByIds(UserAddressInfo.class,ids));
  113 + }
  114 +}
  1 +package com.zhonglai.luhui.admin.controller.user;
  2 +
  3 +import java.util.List;
  4 +import com.zhonglai.luhui.datasource.enums.DataSource;
  5 +import com.zhonglai.luhui.datasource.enums.DataSourceType;
  6 +import javax.servlet.http.HttpServletResponse;
  7 +import io.swagger.annotations.Api;
  8 +import io.swagger.annotations.ApiOperation;
  9 +import org.springframework.security.access.prepost.PreAuthorize;
  10 +import org.springframework.beans.factory.annotation.Autowired;
  11 +import org.springframework.web.bind.annotation.GetMapping;
  12 +import org.springframework.web.bind.annotation.PostMapping;
  13 +import org.springframework.web.bind.annotation.PutMapping;
  14 +import org.springframework.web.bind.annotation.DeleteMapping;
  15 +import org.springframework.web.bind.annotation.PathVariable;
  16 +import org.springframework.web.bind.annotation.RequestBody;
  17 +import org.springframework.web.bind.annotation.RequestMapping;
  18 +import org.springframework.web.bind.annotation.RestController;
  19 +import com.ruoyi.common.annotation.Log;
  20 +import com.zhonglai.luhui.action.BaseController;
  21 +import com.ruoyi.common.core.domain.AjaxResult;
  22 +import com.ruoyi.common.enums.BusinessType;
  23 +import com.zhonglai.luhui.dao.service.PublicTemplateService;
  24 +import com.zhonglai.luhui.user.domain.UserAuthInfo;
  25 +import com.zhonglai.luhui.sys.utils.ExcelUtil;
  26 +
  27 +import com.ruoyi.common.core.page.TableDataInfo;
  28 +
  29 +/**
  30 + * 用户认证信息Controller
  31 + *
  32 + * @author zhonglai
  33 + * @date 2025-10-20
  34 + */
  35 +@Api(tags = "用户认证信息")
  36 +@RestController
  37 +@RequestMapping("/user/auth_info")
  38 +public class UserAuthInfoController extends BaseController
  39 +{
  40 + @Autowired
  41 + private PublicTemplateService publicTemplateService;
  42 +
  43 + @ApiOperation(value ="查询用户认证信息列表",notes="\n" +
  44 + "公共参数描述:\n" +
  45 + "条件参数:\n" +
  46 + "timeMap; //时间条件(如:{\"create_time\":[开始时间,结束时间]})\n" +
  47 + "keyValue; //模糊匹配的关键字(如:[\"value\",\"name,no\"])\n" +
  48 + "queryParams; //字段对应的比较符号(如:{\"id\":\"EQ\"})\n" +
  49 + "orderBy; //排序(如:\"id desc,name asc\")\n" +
  50 + "\n" +
  51 + "分页参数:\n" +
  52 + "pageNum; //当前记录起始索引,从1开始\n" +
  53 + "pageSize; //每页显示记录数")
  54 + @DataSource(DataSourceType.SLAVE)
  55 + @PreAuthorize("@ss.hasPermi('user:auth_info:list')")
  56 + @GetMapping("/list")
  57 + public TableDataInfo list(UserAuthInfo userAuthInfo)
  58 + {
  59 + startPage();
  60 + List<UserAuthInfo> list = publicTemplateService.selectTList(userAuthInfo);
  61 + return getDataTable(list);
  62 + }
  63 +
  64 + @ApiOperation("导出用户认证信息列表")
  65 + @DataSource(DataSourceType.SLAVE)
  66 + @PreAuthorize("@ss.hasPermi('user:auth_info:export')")
  67 + @Log(title = "用户认证信息", businessType = BusinessType.EXPORT)
  68 + @PostMapping("/export")
  69 + public void export(HttpServletResponse response, UserAuthInfo userAuthInfo)
  70 + {
  71 + List<UserAuthInfo> list = publicTemplateService.selectTList(userAuthInfo);
  72 + ExcelUtil<UserAuthInfo> util = new ExcelUtil<UserAuthInfo>(UserAuthInfo.class);
  73 + util.exportExcel(response, list, "用户认证信息数据");
  74 + }
  75 +
  76 + @ApiOperation("获取用户认证信息详细信息")
  77 + @DataSource(DataSourceType.SLAVE)
  78 + @PreAuthorize("@ss.hasPermi('user:auth_info:query')")
  79 + @GetMapping(value = "/{id}")
  80 + public AjaxResult getInfo(@PathVariable("id") Integer id)
  81 + {
  82 + return success(publicTemplateService.getTById(id, UserAuthInfo.class));
  83 + }
  84 +
  85 + @ApiOperation("新增用户认证信息")
  86 + @DataSource(DataSourceType.SLAVE)
  87 + @PreAuthorize("@ss.hasPermi('user:auth_info:add')")
  88 + @Log(title = "用户认证信息", businessType = BusinessType.INSERT)
  89 + @PostMapping
  90 + public AjaxResult add(@RequestBody UserAuthInfo userAuthInfo)
  91 + {
  92 + return toAjax(publicTemplateService.add(userAuthInfo));
  93 + }
  94 +
  95 + @ApiOperation("修改用户认证信息")
  96 + @DataSource(DataSourceType.SLAVE)
  97 + @PreAuthorize("@ss.hasPermi('user:auth_info:edit')")
  98 + @Log(title = "用户认证信息", businessType = BusinessType.UPDATE)
  99 + @PutMapping
  100 + public AjaxResult edit(@RequestBody UserAuthInfo userAuthInfo)
  101 + {
  102 + return toAjax(publicTemplateService.edit((userAuthInfo)));
  103 + }
  104 +
  105 + @ApiOperation("删除用户认证信息")
  106 + @DataSource(DataSourceType.SLAVE)
  107 + @PreAuthorize("@ss.hasPermi('user:auth_info:remove')")
  108 + @Log(title = "用户认证信息", businessType = BusinessType.DELETE)
  109 + @DeleteMapping("/{ids}")
  110 + public AjaxResult remove(@PathVariable Integer[] ids)
  111 + {
  112 + return toAjax(publicTemplateService.removeByIds(UserAuthInfo.class,ids));
  113 + }
  114 +}
  1 +package com.zhonglai.luhui.admin.controller.user;
  2 +
  3 +import java.util.List;
  4 +import com.zhonglai.luhui.datasource.enums.DataSource;
  5 +import com.zhonglai.luhui.datasource.enums.DataSourceType;
  6 +import javax.servlet.http.HttpServletResponse;
  7 +import io.swagger.annotations.Api;
  8 +import io.swagger.annotations.ApiOperation;
  9 +import org.springframework.security.access.prepost.PreAuthorize;
  10 +import org.springframework.beans.factory.annotation.Autowired;
  11 +import org.springframework.web.bind.annotation.GetMapping;
  12 +import org.springframework.web.bind.annotation.PostMapping;
  13 +import org.springframework.web.bind.annotation.PutMapping;
  14 +import org.springframework.web.bind.annotation.DeleteMapping;
  15 +import org.springframework.web.bind.annotation.PathVariable;
  16 +import org.springframework.web.bind.annotation.RequestBody;
  17 +import org.springframework.web.bind.annotation.RequestMapping;
  18 +import org.springframework.web.bind.annotation.RestController;
  19 +import com.ruoyi.common.annotation.Log;
  20 +import com.zhonglai.luhui.action.BaseController;
  21 +import com.ruoyi.common.core.domain.AjaxResult;
  22 +import com.ruoyi.common.enums.BusinessType;
  23 +import com.zhonglai.luhui.dao.service.PublicTemplateService;
  24 +import com.zhonglai.luhui.user.domain.UserBaseInfo;
  25 +import com.zhonglai.luhui.sys.utils.ExcelUtil;
  26 +
  27 +import com.ruoyi.common.core.page.TableDataInfo;
  28 +
  29 +/**
  30 + * 基础用户信息Controller
  31 + *
  32 + * @author zhonglai
  33 + * @date 2025-10-20
  34 + */
  35 +@Api(tags = "基础用户信息")
  36 +@RestController
  37 +@RequestMapping("/base_info")
  38 +public class UserBaseInfoController extends BaseController
  39 +{
  40 + @Autowired
  41 + private PublicTemplateService publicTemplateService;
  42 +
  43 + @ApiOperation(value ="查询基础用户信息列表",notes="\n" +
  44 + "公共参数描述:\n" +
  45 + "条件参数:\n" +
  46 + "timeMap; //时间条件(如:{\"create_time\":[开始时间,结束时间]})\n" +
  47 + "keyValue; //模糊匹配的关键字(如:[\"value\",\"name,no\"])\n" +
  48 + "queryParams; //字段对应的比较符号(如:{\"id\":\"EQ\"})\n" +
  49 + "orderBy; //排序(如:\"id desc,name asc\")\n" +
  50 + "\n" +
  51 + "分页参数:\n" +
  52 + "pageNum; //当前记录起始索引,从1开始\n" +
  53 + "pageSize; //每页显示记录数")
  54 + @DataSource(DataSourceType.SLAVE)
  55 + @PreAuthorize("@ss.hasPermi('user:base_info:list')")
  56 + @GetMapping("/list")
  57 + public TableDataInfo list(UserBaseInfo userBaseInfo)
  58 + {
  59 + startPage();
  60 + List<UserBaseInfo> list = publicTemplateService.selectTList(userBaseInfo);
  61 + return getDataTable(list);
  62 + }
  63 +
  64 + @ApiOperation("导出基础用户信息列表")
  65 + @DataSource(DataSourceType.SLAVE)
  66 + @PreAuthorize("@ss.hasPermi('user:base_info:export')")
  67 + @Log(title = "基础用户信息", businessType = BusinessType.EXPORT)
  68 + @PostMapping("/export")
  69 + public void export(HttpServletResponse response, UserBaseInfo userBaseInfo)
  70 + {
  71 + List<UserBaseInfo> list = publicTemplateService.selectTList(userBaseInfo);
  72 + ExcelUtil<UserBaseInfo> util = new ExcelUtil<UserBaseInfo>(UserBaseInfo.class);
  73 + util.exportExcel(response, list, "基础用户信息数据");
  74 + }
  75 +
  76 + @ApiOperation("获取基础用户信息详细信息")
  77 + @DataSource(DataSourceType.SLAVE)
  78 + @PreAuthorize("@ss.hasPermi('user:base_info:query')")
  79 + @GetMapping(value = "/{id}")
  80 + public AjaxResult getInfo(@PathVariable("id") Integer id)
  81 + {
  82 + return success(publicTemplateService.getTById(id, UserBaseInfo.class));
  83 + }
  84 +
  85 + @ApiOperation("新增基础用户信息")
  86 + @DataSource(DataSourceType.SLAVE)
  87 + @PreAuthorize("@ss.hasPermi('user:base_info:add')")
  88 + @Log(title = "基础用户信息", businessType = BusinessType.INSERT)
  89 + @PostMapping
  90 + public AjaxResult add(@RequestBody UserBaseInfo userBaseInfo)
  91 + {
  92 + return toAjax(publicTemplateService.add(userBaseInfo));
  93 + }
  94 +
  95 + @ApiOperation("修改基础用户信息")
  96 + @DataSource(DataSourceType.SLAVE)
  97 + @PreAuthorize("@ss.hasPermi('user:base_info:edit')")
  98 + @Log(title = "基础用户信息", businessType = BusinessType.UPDATE)
  99 + @PutMapping
  100 + public AjaxResult edit(@RequestBody UserBaseInfo userBaseInfo)
  101 + {
  102 + return toAjax(publicTemplateService.edit((userBaseInfo)));
  103 + }
  104 +
  105 + @ApiOperation("删除基础用户信息")
  106 + @DataSource(DataSourceType.SLAVE)
  107 + @PreAuthorize("@ss.hasPermi('user:base_info:remove')")
  108 + @Log(title = "基础用户信息", businessType = BusinessType.DELETE)
  109 + @DeleteMapping("/{ids}")
  110 + public AjaxResult remove(@PathVariable Integer[] ids)
  111 + {
  112 + return toAjax(publicTemplateService.removeByIds(UserBaseInfo.class,ids));
  113 + }
  114 +}
  1 +package com.zhonglai.luhui.admin.controller.user;
  2 +
  3 +import java.util.List;
  4 +import com.zhonglai.luhui.datasource.enums.DataSource;
  5 +import com.zhonglai.luhui.datasource.enums.DataSourceType;
  6 +import javax.servlet.http.HttpServletResponse;
  7 +import io.swagger.annotations.Api;
  8 +import io.swagger.annotations.ApiOperation;
  9 +import org.springframework.security.access.prepost.PreAuthorize;
  10 +import org.springframework.beans.factory.annotation.Autowired;
  11 +import org.springframework.web.bind.annotation.GetMapping;
  12 +import org.springframework.web.bind.annotation.PostMapping;
  13 +import org.springframework.web.bind.annotation.PutMapping;
  14 +import org.springframework.web.bind.annotation.DeleteMapping;
  15 +import org.springframework.web.bind.annotation.PathVariable;
  16 +import org.springframework.web.bind.annotation.RequestBody;
  17 +import org.springframework.web.bind.annotation.RequestMapping;
  18 +import org.springframework.web.bind.annotation.RestController;
  19 +import com.ruoyi.common.annotation.Log;
  20 +import com.zhonglai.luhui.action.BaseController;
  21 +import com.ruoyi.common.core.domain.AjaxResult;
  22 +import com.ruoyi.common.enums.BusinessType;
  23 +import com.zhonglai.luhui.dao.service.PublicTemplateService;
  24 +import com.zhonglai.luhui.user.domain.UserExtraInfo;
  25 +import com.zhonglai.luhui.sys.utils.ExcelUtil;
  26 +
  27 +import com.ruoyi.common.core.page.TableDataInfo;
  28 +
  29 +/**
  30 + * 用户其他信息Controller
  31 + *
  32 + * @author zhonglai
  33 + * @date 2025-10-20
  34 + */
  35 +@Api(tags = "用户其他信息")
  36 +@RestController
  37 +@RequestMapping("/user/extra_info")
  38 +public class UserExtraInfoController extends BaseController
  39 +{
  40 + @Autowired
  41 + private PublicTemplateService publicTemplateService;
  42 +
  43 + @ApiOperation(value ="查询用户其他信息列表",notes="\n" +
  44 + "公共参数描述:\n" +
  45 + "条件参数:\n" +
  46 + "timeMap; //时间条件(如:{\"create_time\":[开始时间,结束时间]})\n" +
  47 + "keyValue; //模糊匹配的关键字(如:[\"value\",\"name,no\"])\n" +
  48 + "queryParams; //字段对应的比较符号(如:{\"id\":\"EQ\"})\n" +
  49 + "orderBy; //排序(如:\"id desc,name asc\")\n" +
  50 + "\n" +
  51 + "分页参数:\n" +
  52 + "pageNum; //当前记录起始索引,从1开始\n" +
  53 + "pageSize; //每页显示记录数")
  54 + @DataSource(DataSourceType.SLAVE)
  55 + @PreAuthorize("@ss.hasPermi('user:extra_info:list')")
  56 + @GetMapping("/list")
  57 + public TableDataInfo list(UserExtraInfo userExtraInfo)
  58 + {
  59 + startPage();
  60 + List<UserExtraInfo> list = publicTemplateService.selectTList(userExtraInfo);
  61 + return getDataTable(list);
  62 + }
  63 +
  64 + @ApiOperation("导出用户其他信息列表")
  65 + @DataSource(DataSourceType.SLAVE)
  66 + @PreAuthorize("@ss.hasPermi('user:extra_info:export')")
  67 + @Log(title = "用户其他信息", businessType = BusinessType.EXPORT)
  68 + @PostMapping("/export")
  69 + public void export(HttpServletResponse response, UserExtraInfo userExtraInfo)
  70 + {
  71 + List<UserExtraInfo> list = publicTemplateService.selectTList(userExtraInfo);
  72 + ExcelUtil<UserExtraInfo> util = new ExcelUtil<UserExtraInfo>(UserExtraInfo.class);
  73 + util.exportExcel(response, list, "用户其他信息数据");
  74 + }
  75 +
  76 + @ApiOperation("获取用户其他信息详细信息")
  77 + @DataSource(DataSourceType.SLAVE)
  78 + @PreAuthorize("@ss.hasPermi('user:extra_info:query')")
  79 + @GetMapping(value = "/{id}")
  80 + public AjaxResult getInfo(@PathVariable("id") Integer id)
  81 + {
  82 + return success(publicTemplateService.getTById(id, UserExtraInfo.class));
  83 + }
  84 +
  85 + @ApiOperation("新增用户其他信息")
  86 + @DataSource(DataSourceType.SLAVE)
  87 + @PreAuthorize("@ss.hasPermi('user:extra_info:add')")
  88 + @Log(title = "用户其他信息", businessType = BusinessType.INSERT)
  89 + @PostMapping
  90 + public AjaxResult add(@RequestBody UserExtraInfo userExtraInfo)
  91 + {
  92 + return toAjax(publicTemplateService.add(userExtraInfo));
  93 + }
  94 +
  95 + @ApiOperation("修改用户其他信息")
  96 + @DataSource(DataSourceType.SLAVE)
  97 + @PreAuthorize("@ss.hasPermi('user:extra_info:edit')")
  98 + @Log(title = "用户其他信息", businessType = BusinessType.UPDATE)
  99 + @PutMapping
  100 + public AjaxResult edit(@RequestBody UserExtraInfo userExtraInfo)
  101 + {
  102 + return toAjax(publicTemplateService.edit((userExtraInfo)));
  103 + }
  104 +
  105 + @ApiOperation("删除用户其他信息")
  106 + @DataSource(DataSourceType.SLAVE)
  107 + @PreAuthorize("@ss.hasPermi('user:extra_info:remove')")
  108 + @Log(title = "用户其他信息", businessType = BusinessType.DELETE)
  109 + @DeleteMapping("/{ids}")
  110 + public AjaxResult remove(@PathVariable Integer[] ids)
  111 + {
  112 + return toAjax(publicTemplateService.removeByIds(UserExtraInfo.class,ids));
  113 + }
  114 +}
  1 +package com.zhonglai.luhui.admin.controller.user;
  2 +
  3 +import java.util.List;
  4 +import com.zhonglai.luhui.datasource.enums.DataSource;
  5 +import com.zhonglai.luhui.datasource.enums.DataSourceType;
  6 +import javax.servlet.http.HttpServletResponse;
  7 +import io.swagger.annotations.Api;
  8 +import io.swagger.annotations.ApiOperation;
  9 +import org.springframework.security.access.prepost.PreAuthorize;
  10 +import org.springframework.beans.factory.annotation.Autowired;
  11 +import org.springframework.web.bind.annotation.GetMapping;
  12 +import org.springframework.web.bind.annotation.PostMapping;
  13 +import org.springframework.web.bind.annotation.PutMapping;
  14 +import org.springframework.web.bind.annotation.DeleteMapping;
  15 +import org.springframework.web.bind.annotation.PathVariable;
  16 +import org.springframework.web.bind.annotation.RequestBody;
  17 +import org.springframework.web.bind.annotation.RequestMapping;
  18 +import org.springframework.web.bind.annotation.RestController;
  19 +import com.ruoyi.common.annotation.Log;
  20 +import com.zhonglai.luhui.action.BaseController;
  21 +import com.ruoyi.common.core.domain.AjaxResult;
  22 +import com.ruoyi.common.enums.BusinessType;
  23 +import com.zhonglai.luhui.dao.service.PublicTemplateService;
  24 +import com.zhonglai.luhui.user.domain.UserLogin;
  25 +import com.zhonglai.luhui.sys.utils.ExcelUtil;
  26 +
  27 +import com.ruoyi.common.core.page.TableDataInfo;
  28 +
  29 +/**
  30 + * 用户登录Controller
  31 + *
  32 + * @author zhonglai
  33 + * @date 2025-10-20
  34 + */
  35 +@Api(tags = "用户登录")
  36 +@RestController
  37 +@RequestMapping("/user/login")
  38 +public class UserLoginController extends BaseController
  39 +{
  40 + @Autowired
  41 + private PublicTemplateService publicTemplateService;
  42 +
  43 + @ApiOperation(value ="查询用户登录列表",notes="\n" +
  44 + "公共参数描述:\n" +
  45 + "条件参数:\n" +
  46 + "timeMap; //时间条件(如:{\"create_time\":[开始时间,结束时间]})\n" +
  47 + "keyValue; //模糊匹配的关键字(如:[\"value\",\"name,no\"])\n" +
  48 + "queryParams; //字段对应的比较符号(如:{\"id\":\"EQ\"})\n" +
  49 + "orderBy; //排序(如:\"id desc,name asc\")\n" +
  50 + "\n" +
  51 + "分页参数:\n" +
  52 + "pageNum; //当前记录起始索引,从1开始\n" +
  53 + "pageSize; //每页显示记录数")
  54 + @DataSource(DataSourceType.SLAVE)
  55 + @PreAuthorize("@ss.hasPermi('user:login:list')")
  56 + @GetMapping("/list")
  57 + public TableDataInfo list(UserLogin userLogin)
  58 + {
  59 + startPage();
  60 + List<UserLogin> list = publicTemplateService.selectTList(userLogin);
  61 + return getDataTable(list);
  62 + }
  63 +
  64 + @ApiOperation("导出用户登录列表")
  65 + @DataSource(DataSourceType.SLAVE)
  66 + @PreAuthorize("@ss.hasPermi('user:login:export')")
  67 + @Log(title = "用户登录", businessType = BusinessType.EXPORT)
  68 + @PostMapping("/export")
  69 + public void export(HttpServletResponse response, UserLogin userLogin)
  70 + {
  71 + List<UserLogin> list = publicTemplateService.selectTList(userLogin);
  72 + ExcelUtil<UserLogin> util = new ExcelUtil<UserLogin>(UserLogin.class);
  73 + util.exportExcel(response, list, "用户登录数据");
  74 + }
  75 +
  76 + @ApiOperation("获取用户登录详细信息")
  77 + @DataSource(DataSourceType.SLAVE)
  78 + @PreAuthorize("@ss.hasPermi('user:login:query')")
  79 + @GetMapping(value = "/{id}")
  80 + public AjaxResult getInfo(@PathVariable("id") Integer id)
  81 + {
  82 + return success(publicTemplateService.getTById(id, UserLogin.class));
  83 + }
  84 +
  85 + @ApiOperation("新增用户登录")
  86 + @DataSource(DataSourceType.SLAVE)
  87 + @PreAuthorize("@ss.hasPermi('user:login:add')")
  88 + @Log(title = "用户登录", businessType = BusinessType.INSERT)
  89 + @PostMapping
  90 + public AjaxResult add(@RequestBody UserLogin userLogin)
  91 + {
  92 + return toAjax(publicTemplateService.add(userLogin));
  93 + }
  94 +
  95 + @ApiOperation("修改用户登录")
  96 + @DataSource(DataSourceType.SLAVE)
  97 + @PreAuthorize("@ss.hasPermi('user:login:edit')")
  98 + @Log(title = "用户登录", businessType = BusinessType.UPDATE)
  99 + @PutMapping
  100 + public AjaxResult edit(@RequestBody UserLogin userLogin)
  101 + {
  102 + return toAjax(publicTemplateService.edit((userLogin)));
  103 + }
  104 +
  105 + @ApiOperation("删除用户登录")
  106 + @DataSource(DataSourceType.SLAVE)
  107 + @PreAuthorize("@ss.hasPermi('user:login:remove')")
  108 + @Log(title = "用户登录", businessType = BusinessType.DELETE)
  109 + @DeleteMapping("/{ids}")
  110 + public AjaxResult remove(@PathVariable Integer[] ids)
  111 + {
  112 + return toAjax(publicTemplateService.removeByIds(UserLogin.class,ids));
  113 + }
  114 +}
  1 +package com.zhonglai.luhui.admin.controller.user;
  2 +
  3 +import java.util.List;
  4 +import com.zhonglai.luhui.datasource.enums.DataSource;
  5 +import com.zhonglai.luhui.datasource.enums.DataSourceType;
  6 +import javax.servlet.http.HttpServletResponse;
  7 +import io.swagger.annotations.Api;
  8 +import io.swagger.annotations.ApiOperation;
  9 +import org.springframework.security.access.prepost.PreAuthorize;
  10 +import org.springframework.beans.factory.annotation.Autowired;
  11 +import org.springframework.web.bind.annotation.GetMapping;
  12 +import org.springframework.web.bind.annotation.PostMapping;
  13 +import org.springframework.web.bind.annotation.PutMapping;
  14 +import org.springframework.web.bind.annotation.DeleteMapping;
  15 +import org.springframework.web.bind.annotation.PathVariable;
  16 +import org.springframework.web.bind.annotation.RequestBody;
  17 +import org.springframework.web.bind.annotation.RequestMapping;
  18 +import org.springframework.web.bind.annotation.RestController;
  19 +import com.ruoyi.common.annotation.Log;
  20 +import com.zhonglai.luhui.action.BaseController;
  21 +import com.ruoyi.common.core.domain.AjaxResult;
  22 +import com.ruoyi.common.enums.BusinessType;
  23 +import com.zhonglai.luhui.dao.service.PublicTemplateService;
  24 +import com.zhonglai.luhui.user.domain.UserLoginInfo;
  25 +import com.zhonglai.luhui.sys.utils.ExcelUtil;
  26 +
  27 +import com.ruoyi.common.core.page.TableDataInfo;
  28 +
  29 +/**
  30 + * 用户登录信息Controller
  31 + *
  32 + * @author zhonglai
  33 + * @date 2025-10-20
  34 + */
  35 +@Api(tags = "用户登录信息")
  36 +@RestController
  37 +@RequestMapping("/user/login_info")
  38 +public class UserLoginInfoController extends BaseController
  39 +{
  40 + @Autowired
  41 + private PublicTemplateService publicTemplateService;
  42 +
  43 + @ApiOperation(value ="查询用户登录信息列表",notes="\n" +
  44 + "公共参数描述:\n" +
  45 + "条件参数:\n" +
  46 + "timeMap; //时间条件(如:{\"create_time\":[开始时间,结束时间]})\n" +
  47 + "keyValue; //模糊匹配的关键字(如:[\"value\",\"name,no\"])\n" +
  48 + "queryParams; //字段对应的比较符号(如:{\"id\":\"EQ\"})\n" +
  49 + "orderBy; //排序(如:\"id desc,name asc\")\n" +
  50 + "\n" +
  51 + "分页参数:\n" +
  52 + "pageNum; //当前记录起始索引,从1开始\n" +
  53 + "pageSize; //每页显示记录数")
  54 + @DataSource(DataSourceType.SLAVE)
  55 + @PreAuthorize("@ss.hasPermi('user:login_info:list')")
  56 + @GetMapping("/list")
  57 + public TableDataInfo list(UserLoginInfo userLoginInfo)
  58 + {
  59 + startPage();
  60 + List<UserLoginInfo> list = publicTemplateService.selectTList(userLoginInfo);
  61 + return getDataTable(list);
  62 + }
  63 +
  64 + @ApiOperation("导出用户登录信息列表")
  65 + @DataSource(DataSourceType.SLAVE)
  66 + @PreAuthorize("@ss.hasPermi('user:login_info:export')")
  67 + @Log(title = "用户登录信息", businessType = BusinessType.EXPORT)
  68 + @PostMapping("/export")
  69 + public void export(HttpServletResponse response, UserLoginInfo userLoginInfo)
  70 + {
  71 + List<UserLoginInfo> list = publicTemplateService.selectTList(userLoginInfo);
  72 + ExcelUtil<UserLoginInfo> util = new ExcelUtil<UserLoginInfo>(UserLoginInfo.class);
  73 + util.exportExcel(response, list, "用户登录信息数据");
  74 + }
  75 +
  76 + @ApiOperation("获取用户登录信息详细信息")
  77 + @DataSource(DataSourceType.SLAVE)
  78 + @PreAuthorize("@ss.hasPermi('user:login_info:query')")
  79 + @GetMapping(value = "/{id}")
  80 + public AjaxResult getInfo(@PathVariable("id") Integer id)
  81 + {
  82 + return success(publicTemplateService.getTById(id, UserLoginInfo.class));
  83 + }
  84 +
  85 + @ApiOperation("新增用户登录信息")
  86 + @DataSource(DataSourceType.SLAVE)
  87 + @PreAuthorize("@ss.hasPermi('user:login_info:add')")
  88 + @Log(title = "用户登录信息", businessType = BusinessType.INSERT)
  89 + @PostMapping
  90 + public AjaxResult add(@RequestBody UserLoginInfo userLoginInfo)
  91 + {
  92 + return toAjax(publicTemplateService.add(userLoginInfo));
  93 + }
  94 +
  95 + @ApiOperation("修改用户登录信息")
  96 + @DataSource(DataSourceType.SLAVE)
  97 + @PreAuthorize("@ss.hasPermi('user:login_info:edit')")
  98 + @Log(title = "用户登录信息", businessType = BusinessType.UPDATE)
  99 + @PutMapping
  100 + public AjaxResult edit(@RequestBody UserLoginInfo userLoginInfo)
  101 + {
  102 + return toAjax(publicTemplateService.edit((userLoginInfo)));
  103 + }
  104 +
  105 + @ApiOperation("删除用户登录信息")
  106 + @DataSource(DataSourceType.SLAVE)
  107 + @PreAuthorize("@ss.hasPermi('user:login_info:remove')")
  108 + @Log(title = "用户登录信息", businessType = BusinessType.DELETE)
  109 + @DeleteMapping("/{ids}")
  110 + public AjaxResult remove(@PathVariable Integer[] ids)
  111 + {
  112 + return toAjax(publicTemplateService.removeByIds(UserLoginInfo.class,ids));
  113 + }
  114 +}
  1 +package com.zhonglai.luhui.admin.controller.user;
  2 +
  3 +import java.util.List;
  4 +import com.zhonglai.luhui.datasource.enums.DataSource;
  5 +import com.zhonglai.luhui.datasource.enums.DataSourceType;
  6 +import javax.servlet.http.HttpServletResponse;
  7 +import io.swagger.annotations.Api;
  8 +import io.swagger.annotations.ApiOperation;
  9 +import org.springframework.security.access.prepost.PreAuthorize;
  10 +import org.springframework.beans.factory.annotation.Autowired;
  11 +import org.springframework.web.bind.annotation.GetMapping;
  12 +import org.springframework.web.bind.annotation.PostMapping;
  13 +import org.springframework.web.bind.annotation.PutMapping;
  14 +import org.springframework.web.bind.annotation.DeleteMapping;
  15 +import org.springframework.web.bind.annotation.PathVariable;
  16 +import org.springframework.web.bind.annotation.RequestBody;
  17 +import org.springframework.web.bind.annotation.RequestMapping;
  18 +import org.springframework.web.bind.annotation.RestController;
  19 +import com.ruoyi.common.annotation.Log;
  20 +import com.zhonglai.luhui.action.BaseController;
  21 +import com.ruoyi.common.core.domain.AjaxResult;
  22 +import com.ruoyi.common.enums.BusinessType;
  23 +import com.zhonglai.luhui.dao.service.PublicTemplateService;
  24 +import com.zhonglai.luhui.user.domain.UserOfficialInfo;
  25 +import com.zhonglai.luhui.sys.utils.ExcelUtil;
  26 +
  27 +import com.ruoyi.common.core.page.TableDataInfo;
  28 +
  29 +/**
  30 + * 用户官方及告警信息Controller
  31 + *
  32 + * @author zhonglai
  33 + * @date 2025-10-20
  34 + */
  35 +@Api(tags = "用户官方及告警信息")
  36 +@RestController
  37 +@RequestMapping("/user/official_info")
  38 +public class UserOfficialInfoController extends BaseController
  39 +{
  40 + @Autowired
  41 + private PublicTemplateService publicTemplateService;
  42 +
  43 + @ApiOperation(value ="查询用户官方及告警信息列表",notes="\n" +
  44 + "公共参数描述:\n" +
  45 + "条件参数:\n" +
  46 + "timeMap; //时间条件(如:{\"create_time\":[开始时间,结束时间]})\n" +
  47 + "keyValue; //模糊匹配的关键字(如:[\"value\",\"name,no\"])\n" +
  48 + "queryParams; //字段对应的比较符号(如:{\"id\":\"EQ\"})\n" +
  49 + "orderBy; //排序(如:\"id desc,name asc\")\n" +
  50 + "\n" +
  51 + "分页参数:\n" +
  52 + "pageNum; //当前记录起始索引,从1开始\n" +
  53 + "pageSize; //每页显示记录数")
  54 + @DataSource(DataSourceType.SLAVE)
  55 + @PreAuthorize("@ss.hasPermi('user:official_info:list')")
  56 + @GetMapping("/list")
  57 + public TableDataInfo list(UserOfficialInfo userOfficialInfo)
  58 + {
  59 + startPage();
  60 + List<UserOfficialInfo> list = publicTemplateService.selectTList(userOfficialInfo);
  61 + return getDataTable(list);
  62 + }
  63 +
  64 + @ApiOperation("导出用户官方及告警信息列表")
  65 + @DataSource(DataSourceType.SLAVE)
  66 + @PreAuthorize("@ss.hasPermi('user:official_info:export')")
  67 + @Log(title = "用户官方及告警信息", businessType = BusinessType.EXPORT)
  68 + @PostMapping("/export")
  69 + public void export(HttpServletResponse response, UserOfficialInfo userOfficialInfo)
  70 + {
  71 + List<UserOfficialInfo> list = publicTemplateService.selectTList(userOfficialInfo);
  72 + ExcelUtil<UserOfficialInfo> util = new ExcelUtil<UserOfficialInfo>(UserOfficialInfo.class);
  73 + util.exportExcel(response, list, "用户官方及告警信息数据");
  74 + }
  75 +
  76 + @ApiOperation("获取用户官方及告警信息详细信息")
  77 + @DataSource(DataSourceType.SLAVE)
  78 + @PreAuthorize("@ss.hasPermi('user:official_info:query')")
  79 + @GetMapping(value = "/{id}")
  80 + public AjaxResult getInfo(@PathVariable("id") Integer id)
  81 + {
  82 + return success(publicTemplateService.getTById(id, UserOfficialInfo.class));
  83 + }
  84 +
  85 + @ApiOperation("新增用户官方及告警信息")
  86 + @DataSource(DataSourceType.SLAVE)
  87 + @PreAuthorize("@ss.hasPermi('user:official_info:add')")
  88 + @Log(title = "用户官方及告警信息", businessType = BusinessType.INSERT)
  89 + @PostMapping
  90 + public AjaxResult add(@RequestBody UserOfficialInfo userOfficialInfo)
  91 + {
  92 + return toAjax(publicTemplateService.add(userOfficialInfo));
  93 + }
  94 +
  95 + @ApiOperation("修改用户官方及告警信息")
  96 + @DataSource(DataSourceType.SLAVE)
  97 + @PreAuthorize("@ss.hasPermi('user:official_info:edit')")
  98 + @Log(title = "用户官方及告警信息", businessType = BusinessType.UPDATE)
  99 + @PutMapping
  100 + public AjaxResult edit(@RequestBody UserOfficialInfo userOfficialInfo)
  101 + {
  102 + return toAjax(publicTemplateService.edit((userOfficialInfo)));
  103 + }
  104 +
  105 + @ApiOperation("删除用户官方及告警信息")
  106 + @DataSource(DataSourceType.SLAVE)
  107 + @PreAuthorize("@ss.hasPermi('user:official_info:remove')")
  108 + @Log(title = "用户官方及告警信息", businessType = BusinessType.DELETE)
  109 + @DeleteMapping("/{ids}")
  110 + public AjaxResult remove(@PathVariable Integer[] ids)
  111 + {
  112 + return toAjax(publicTemplateService.removeByIds(UserOfficialInfo.class,ids));
  113 + }
  114 +}
  1 +package com.zhonglai.luhui.admin.controller.user;
  2 +
  3 +import java.util.List;
  4 +import com.zhonglai.luhui.datasource.enums.DataSource;
  5 +import com.zhonglai.luhui.datasource.enums.DataSourceType;
  6 +import javax.servlet.http.HttpServletResponse;
  7 +import io.swagger.annotations.Api;
  8 +import io.swagger.annotations.ApiOperation;
  9 +import org.springframework.security.access.prepost.PreAuthorize;
  10 +import org.springframework.beans.factory.annotation.Autowired;
  11 +import org.springframework.web.bind.annotation.GetMapping;
  12 +import org.springframework.web.bind.annotation.PostMapping;
  13 +import org.springframework.web.bind.annotation.PutMapping;
  14 +import org.springframework.web.bind.annotation.DeleteMapping;
  15 +import org.springframework.web.bind.annotation.PathVariable;
  16 +import org.springframework.web.bind.annotation.RequestBody;
  17 +import org.springframework.web.bind.annotation.RequestMapping;
  18 +import org.springframework.web.bind.annotation.RestController;
  19 +import com.ruoyi.common.annotation.Log;
  20 +import com.zhonglai.luhui.action.BaseController;
  21 +import com.ruoyi.common.core.domain.AjaxResult;
  22 +import com.ruoyi.common.enums.BusinessType;
  23 +import com.zhonglai.luhui.dao.service.PublicTemplateService;
  24 +import com.zhonglai.luhui.user.domain.UserSocialInfo;
  25 +import com.zhonglai.luhui.sys.utils.ExcelUtil;
  26 +
  27 +import com.ruoyi.common.core.page.TableDataInfo;
  28 +
  29 +/**
  30 + * 用户社交信息Controller
  31 + *
  32 + * @author zhonglai
  33 + * @date 2025-10-20
  34 + */
  35 +@Api(tags = "用户社交信息")
  36 +@RestController
  37 +@RequestMapping("/user/social_info")
  38 +public class UserSocialInfoController extends BaseController
  39 +{
  40 + @Autowired
  41 + private PublicTemplateService publicTemplateService;
  42 +
  43 + @ApiOperation(value ="查询用户社交信息列表",notes="\n" +
  44 + "公共参数描述:\n" +
  45 + "条件参数:\n" +
  46 + "timeMap; //时间条件(如:{\"create_time\":[开始时间,结束时间]})\n" +
  47 + "keyValue; //模糊匹配的关键字(如:[\"value\",\"name,no\"])\n" +
  48 + "queryParams; //字段对应的比较符号(如:{\"id\":\"EQ\"})\n" +
  49 + "orderBy; //排序(如:\"id desc,name asc\")\n" +
  50 + "\n" +
  51 + "分页参数:\n" +
  52 + "pageNum; //当前记录起始索引,从1开始\n" +
  53 + "pageSize; //每页显示记录数")
  54 + @DataSource(DataSourceType.SLAVE)
  55 + @PreAuthorize("@ss.hasPermi('user:social_info:list')")
  56 + @GetMapping("/list")
  57 + public TableDataInfo list(UserSocialInfo userSocialInfo)
  58 + {
  59 + startPage();
  60 + List<UserSocialInfo> list = publicTemplateService.selectTList(userSocialInfo);
  61 + return getDataTable(list);
  62 + }
  63 +
  64 + @ApiOperation("导出用户社交信息列表")
  65 + @DataSource(DataSourceType.SLAVE)
  66 + @PreAuthorize("@ss.hasPermi('user:social_info:export')")
  67 + @Log(title = "用户社交信息", businessType = BusinessType.EXPORT)
  68 + @PostMapping("/export")
  69 + public void export(HttpServletResponse response, UserSocialInfo userSocialInfo)
  70 + {
  71 + List<UserSocialInfo> list = publicTemplateService.selectTList(userSocialInfo);
  72 + ExcelUtil<UserSocialInfo> util = new ExcelUtil<UserSocialInfo>(UserSocialInfo.class);
  73 + util.exportExcel(response, list, "用户社交信息数据");
  74 + }
  75 +
  76 + @ApiOperation("获取用户社交信息详细信息")
  77 + @DataSource(DataSourceType.SLAVE)
  78 + @PreAuthorize("@ss.hasPermi('user:social_info:query')")
  79 + @GetMapping(value = "/{id}")
  80 + public AjaxResult getInfo(@PathVariable("id") Integer id)
  81 + {
  82 + return success(publicTemplateService.getTById(id, UserSocialInfo.class));
  83 + }
  84 +
  85 + @ApiOperation("新增用户社交信息")
  86 + @DataSource(DataSourceType.SLAVE)
  87 + @PreAuthorize("@ss.hasPermi('user:social_info:add')")
  88 + @Log(title = "用户社交信息", businessType = BusinessType.INSERT)
  89 + @PostMapping
  90 + public AjaxResult add(@RequestBody UserSocialInfo userSocialInfo)
  91 + {
  92 + return toAjax(publicTemplateService.add(userSocialInfo));
  93 + }
  94 +
  95 + @ApiOperation("修改用户社交信息")
  96 + @DataSource(DataSourceType.SLAVE)
  97 + @PreAuthorize("@ss.hasPermi('user:social_info:edit')")
  98 + @Log(title = "用户社交信息", businessType = BusinessType.UPDATE)
  99 + @PutMapping
  100 + public AjaxResult edit(@RequestBody UserSocialInfo userSocialInfo)
  101 + {
  102 + return toAjax(publicTemplateService.edit((userSocialInfo)));
  103 + }
  104 +
  105 + @ApiOperation("删除用户社交信息")
  106 + @DataSource(DataSourceType.SLAVE)
  107 + @PreAuthorize("@ss.hasPermi('user:social_info:remove')")
  108 + @Log(title = "用户社交信息", businessType = BusinessType.DELETE)
  109 + @DeleteMapping("/{ids}")
  110 + public AjaxResult remove(@PathVariable Integer[] ids)
  111 + {
  112 + return toAjax(publicTemplateService.removeByIds(UserSocialInfo.class,ids));
  113 + }
  114 +}
@@ -80,6 +80,11 @@ @@ -80,6 +80,11 @@
80 <groupId>org.apache.xmlgraphics</groupId> 80 <groupId>org.apache.xmlgraphics</groupId>
81 <artifactId>batik-transcoder</artifactId> 81 <artifactId>batik-transcoder</artifactId>
82 </dependency> 82 </dependency>
  83 +
  84 + <dependency>
  85 + <groupId>com.zhonglai.luhui</groupId>
  86 + <artifactId>lh-user</artifactId>
  87 + </dependency>
83 </dependencies> 88 </dependencies>
84 89
85 <build> 90 <build>
@@ -13,7 +13,6 @@ import java.util.List; @@ -13,7 +13,6 @@ import java.util.List;
13 **/ 13 **/
14 public class SensorData { 14 public class SensorData {
15 15
16 -  
17 public static StringBuffer deviceSensorDataListToIntervalCompletion(List<DeviceSensorData> deviceSensorDataList,int lastTime,int interval,String day) 16 public static StringBuffer deviceSensorDataListToIntervalCompletion(List<DeviceSensorData> deviceSensorDataList,int lastTime,int interval,String day)
18 { 17 {
19 int abs = interval; 18 int abs = interval;
@@ -15,6 +15,7 @@ import javax.servlet.http.HttpServletResponse; @@ -15,6 +15,7 @@ import javax.servlet.http.HttpServletResponse;
15 import java.io.IOException; 15 import java.io.IOException;
16 import java.util.Date; 16 import java.util.Date;
17 import java.util.List; 17 import java.util.List;
  18 +import java.util.Map;
18 19
19 @Api(tags = "数据管理") 20 @Api(tags = "数据管理")
20 @RestController 21 @RestController
@@ -63,22 +64,12 @@ public class SensorDataController { @@ -63,22 +64,12 @@ public class SensorDataController {
63 @ApiParam(name = "startTime", value = "开始时间(时间戳)", required = true) @RequestParam(name = "startTime") int startTime, 64 @ApiParam(name = "startTime", value = "开始时间(时间戳)", required = true) @RequestParam(name = "startTime") int startTime,
64 @ApiParam(name = "endTime", value = "结束时间(时间戳)", required = true) @RequestParam(name = "endTime") int endTime, 65 @ApiParam(name = "endTime", value = "结束时间(时间戳)", required = true) @RequestParam(name = "endTime") int endTime,
65 @ApiParam(name = "deviceInfoId", value = "设备信息表id/imei号", required = true) @RequestParam(name = "id") String id, 66 @ApiParam(name = "deviceInfoId", value = "设备信息表id/imei号", required = true) @RequestParam(name = "id") String id,
66 - String dataType) throws IOException { 67 + String dataType,Integer interval) throws IOException {
67 68
68 - List<DeviceSensorData> list = dataService.getBeifeiDbDeviceHistoryDataByDeviceId( id, dataType, startTime, endTime);  
69 - return AjaxResult.success().put("data",list); 69 + Map<String,StringBuffer> map = dataService.getBeifeiDbDeviceHistoryDataByDeviceId( id, dataType, startTime, endTime,interval);
  70 + return AjaxResult.success().put("data",map);
70 } 71 }
71 72
72 - /**  
73 - * 获取原始数据  
74 - * @param startTime  
75 - * @param endTime  
76 - * @param id  
77 - * @param dataType  
78 - * @return  
79 - * @throws IOException  
80 - */  
81 -  
82 73
83 /** 74 /**
84 * 获取数据指定天的数据查询语句 75 * 获取数据指定天的数据查询语句
  1 +package com.zhonglai.luhui.api.controller.login.v2;
  2 +
  3 +import com.ruoyi.common.constant.Constants;
  4 +import com.ruoyi.common.core.domain.AjaxResult;
  5 +import com.zhonglai.luhui.action.BaseController;
  6 +import com.zhonglai.luhui.login.service.LoginService;
  7 +import com.zhonglai.luhui.user.service.IUserLoginService;
  8 +import io.swagger.annotations.Api;
  9 +import io.swagger.annotations.ApiImplicitParam;
  10 +import io.swagger.annotations.ApiImplicitParams;
  11 +import io.swagger.annotations.ApiOperation;
  12 +import org.springframework.beans.factory.annotation.Autowired;
  13 +import org.springframework.web.bind.annotation.PostMapping;
  14 +import org.springframework.web.bind.annotation.RequestMapping;
  15 +import org.springframework.web.bind.annotation.RestController;
  16 +
  17 +@Api(tags = "api登陆-v2")
  18 +@RestController
  19 +@RequestMapping("/v2/login/ApiLogin")
  20 +public class V2ApiLoginController extends BaseController {
  21 + @Autowired
  22 + private IUserLoginService userLoginService;
  23 + @ApiOperation("账号密码登陆")
  24 + @ApiImplicitParams({
  25 + @ApiImplicitParam(value = "账号",name = "user"),
  26 + @ApiImplicitParam(value = "密码",name = "pass"),
  27 + })
  28 + @PostMapping("/userpassLogin")
  29 + public AjaxResult userpassLogin(String user, String pass)
  30 + {
  31 + AjaxResult ajax = AjaxResult.success();
  32 + //生成令牌
  33 + String token = userLoginService.apiLoginByPass(user,pass);
  34 + ajax.put(Constants.TOKEN, token);
  35 + return ajax;
  36 + }
  37 +}
@@ -338,23 +338,71 @@ public class DataService { @@ -338,23 +338,71 @@ public class DataService {
338 return null; 338 return null;
339 } 339 }
340 340
341 - public List<DeviceSensorData> getBeifeiDbDeviceHistoryDataByDeviceId(String deviceId,String dataType,int startTime,int endTime) 341 + public Map<String,StringBuffer> getBeifeiDbDeviceHistoryDataByDeviceId(String deviceId,String dataType,int startTime,int endTime,Integer interval)
  342 + {
  343 + List<Map<String, Object>> tempDataList = queryDeviceIdAndDataType(deviceId, startTime, endTime); //获取设备id和数据类型
  344 + if(null != tempDataList && tempDataList.size()!=0)
  345 + {
  346 + Map<String,StringBuffer> deviceAndDataTypeDataMap = new HashMap();
  347 + for(Map<String, Object> deviceAndDataTypeMap:tempDataList) //遍历设备id和数据类型,获取曲线数据
  348 + {
  349 + String deviceInfoId = deviceAndDataTypeMap.get("device_info_id")+"";
  350 + String dbDataType = deviceAndDataTypeMap.get("data_type")+"";
  351 + if (StringUtils.isNotEmpty(dataType) && !((","+dataType+",").indexOf(dbDataType+",")>=0)) ///数据类型过滤
  352 + {
  353 + continue;
  354 + }
  355 + String key = deviceInfoId+"-"+dbDataType;
  356 + if (!deviceAndDataTypeDataMap.containsKey(key))
  357 + {
  358 + List<DeviceSensorData> deviceSensorDataList = getBeifeiDbDeviceHistoryData(deviceInfoId,dbDataType,startTime,endTime); //获取设备历史数据
  359 + if (null != deviceSensorDataList && deviceSensorDataList.size()!=0)
  360 + {
  361 + StringBuffer stringBuffer10 = null;
  362 + //如果interval为0或者为空,则不进行间隔时间补全
  363 + if(interval!=null && interval!=0)
  364 + {
  365 + //间隔时间补全
  366 + Date sdate = new Date(startTime*1000l);
  367 + String day = DateUtils.parseDateToStr("yyyyMMdd",sdate);
  368 + stringBuffer10 = SensorData.deviceSensorDataListToIntervalCompletion(deviceSensorDataList, Integer.parseInt(sdate.getTime() / 1000 + ""), interval, day);
  369 +
  370 + }else {
  371 + stringBuffer10 = new StringBuffer();
  372 + for (DeviceSensorData deviceSensorData:deviceSensorDataList)
  373 + {
  374 + stringBuffer10.append(deviceSensorData.getCreatTime());
  375 + stringBuffer10.append(",");
  376 + stringBuffer10.append(deviceSensorData.getDataValue());
  377 + stringBuffer10.append("\r\n");
  378 + }
  379 + }
  380 + deviceAndDataTypeDataMap.put(key, stringBuffer10);
  381 + }
  382 + }
  383 + }
  384 + return deviceAndDataTypeDataMap;
  385 + }
  386 + return null;
  387 + }
  388 +
  389 + public List<Map<String, Object>> queryDeviceIdAndDataType(String deviceId,int startTime,int endTime)
342 { 390 {
343 List<String> tableNames = getTableNames(startTime, endTime); 391 List<String> tableNames = getTableNames(startTime, endTime);
  392 +
344 // 每次查询的最大天数,超过则分批查询 393 // 每次查询的最大天数,超过则分批查询
345 int BATCH_QUERY_DAYS = 30; 394 int BATCH_QUERY_DAYS = 30;
346 395
347 if(null != tableNames && tableNames.size() !=0 && null != tableNames.get(0) ) 396 if(null != tableNames && tableNames.size() !=0 && null != tableNames.get(0) )
348 { 397 {
349 - List<DeviceSensorData> deviceSensorDataList = new ArrayList<>(); 398 + List<Map<String, Object>> deviceSensorDataList = new ArrayList<>();
350 399
351 // **分批查询**(一次最多查 30 天) 400 // **分批查询**(一次最多查 30 天)
352 for (int i = 0; i < tableNames.size(); i += BATCH_QUERY_DAYS) { 401 for (int i = 0; i < tableNames.size(); i += BATCH_QUERY_DAYS) {
353 int batchStart = i; 402 int batchStart = i;
354 int batchEnd = Math.min(i + BATCH_QUERY_DAYS, tableNames.size()); 403 int batchEnd = Math.min(i + BATCH_QUERY_DAYS, tableNames.size());
355 List<String> batchTables = tableNames.subList(batchStart, batchEnd); 404 List<String> batchTables = tableNames.subList(batchStart, batchEnd);
356 -  
357 - List<DeviceSensorData> tempDataList = queryBatchTablesByDeviceId(batchTables, deviceId, dataType, startTime, endTime); 405 + List<Map<String, Object>> tempDataList = queryDeviceIdAndDataType(batchTables, deviceId, startTime, endTime);
358 deviceSensorDataList.addAll(tempDataList); 406 deviceSensorDataList.addAll(tempDataList);
359 } 407 }
360 return deviceSensorDataList; 408 return deviceSensorDataList;
@@ -474,7 +522,7 @@ public class DataService { @@ -474,7 +522,7 @@ public class DataService {
474 } 522 }
475 sqlBuilder.append("SELECT device_info_id, data_type, data_value, creat_time FROM ") 523 sqlBuilder.append("SELECT device_info_id, data_type, data_value, creat_time FROM ")
476 .append(tableNames.get(i)) 524 .append(tableNames.get(i))
477 - .append(" WHERE device_info_id = '"+deviceInfoId+"%'"); 525 + .append(" WHERE device_info_id = '"+deviceInfoId+"'");
478 if (StringUtils.isNotEmpty(dataType)) 526 if (StringUtils.isNotEmpty(dataType))
479 { 527 {
480 sqlBuilder.append(" AND data_type = '"+dataType+"'"); 528 sqlBuilder.append(" AND data_type = '"+dataType+"'");
@@ -491,30 +539,27 @@ public class DataService { @@ -491,30 +539,27 @@ public class DataService {
491 } 539 }
492 540
493 /** 541 /**
494 - * 查询一批表的数据 542 + * 在指定时间范围内,查询出所有表中出现过的设备ID和数据类型的对应关系
495 */ 543 */
496 - private List<DeviceSensorData> queryBatchTablesByDeviceId(List<String> tableNames, String deviceId, String dataType, int startTime, int endTime) { 544 + private List<Map<String, Object>> queryDeviceIdAndDataType(List<String> tableNames, String deviceId, int startTime, int endTime) {
497 StringBuilder sqlBuilder = new StringBuilder(); 545 StringBuilder sqlBuilder = new StringBuilder();
498 546
499 for (int i = 0; i < tableNames.size(); i++) { 547 for (int i = 0; i < tableNames.size(); i++) {
500 if (i > 0) { 548 if (i > 0) {
501 sqlBuilder.append(" UNION ALL "); 549 sqlBuilder.append(" UNION ALL ");
502 } 550 }
503 - sqlBuilder.append("SELECT device_info_id, data_type, data_value, creat_time FROM ") 551 + sqlBuilder.append("SELECT DISTINCT device_info_id, data_type FROM ")
504 .append(tableNames.get(i)) 552 .append(tableNames.get(i))
505 - .append(" WHERE device_info_id like '"+deviceId+"%'");  
506 - if (StringUtils.isNotEmpty(dataType))  
507 - {  
508 - sqlBuilder.append(" AND data_type = '"+dataType+"'");  
509 - }  
510 - sqlBuilder.append(" AND creat_time BETWEEN "+startTime+" AND "+endTime); 553 + .append(" WHERE device_info_id LIKE '").append(deviceId).append("%'")
  554 + .append(" AND creat_time BETWEEN ").append(startTime).append(" AND ").append(endTime);
511 } 555 }
512 556
513 - sqlBuilder.append(" ORDER BY creat_time ASC");  
514 -  
515 - // **执行 SQL 查询**  
516 - List<DeviceSensorData> deviceSensorDataList = deviceSensorDataMapper.getDeviceSensorDataList(sqlBuilder.toString()); 557 + // 外层去重并排序(防止重复)
  558 + String finalSql = "SELECT DISTINCT device_info_id, data_type FROM (" + sqlBuilder + ") t ORDER BY device_info_id, data_type";
517 559
518 - return deviceSensorDataList; 560 + return publicMapper.getObjectListBySQL(finalSql);
519 } 561 }
  562 +
  563 +
  564 +
520 } 565 }
@@ -374,6 +374,11 @@ @@ -374,6 +374,11 @@
374 <version>${ruoyi.version}</version> 374 <version>${ruoyi.version}</version>
375 </dependency> 375 </dependency>
376 <dependency> 376 <dependency>
  377 + <groupId>com.zhonglai.luhui</groupId>
  378 + <artifactId>lh-user</artifactId>
  379 + <version>${ruoyi.version}</version>
  380 + </dependency>
  381 + <dependency>
377 <groupId>com.zhonglai</groupId> 382 <groupId>com.zhonglai</groupId>
378 <artifactId>ServiceDao</artifactId> 383 <artifactId>ServiceDao</artifactId>
379 <version>1.4.3</version> 384 <version>1.4.3</version>
@@ -651,6 +656,12 @@ @@ -651,6 +656,12 @@
651 <artifactId>ini4j</artifactId> 656 <artifactId>ini4j</artifactId>
652 <version>0.5.4</version> 657 <version>0.5.4</version>
653 </dependency> 658 </dependency>
  659 +
  660 + <dependency>
  661 + <groupId>io.swagger</groupId>
  662 + <artifactId>swagger-annotations</artifactId>
  663 + <version>1.6.2</version>
  664 + </dependency>
654 </dependencies> 665 </dependencies>
655 666
656 667