添加逆向生成

master
whb 11 months ago
parent 9145c05fa6
commit 9a18141d18

2
.gitignore vendored

@ -32,3 +32,5 @@ build/
### VS Code ###
.vscode/
logs/

@ -11,8 +11,8 @@
<groupId>com.sztzjy</groupId>
<artifactId>tz_digital_credit</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>Financial_BigData</name>
<description>Financial_BigData</description>
<name>tz_digital_credit</name>
<description>tz_digital_credit</description>
<properties>
<java.version>1.8</java.version>
<jjwt.version>0.10.8</jjwt.version>

@ -1,4 +1,4 @@
package com.sztzjy.financial_bigdata;
package com.sztzjy;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@ -1,4 +1,4 @@
package com.sztzjy.financial_bigdata.annotation;
package com.sztzjy.annotation;
import java.lang.annotation.*;

@ -1,4 +1,4 @@
package com.sztzjy.financial_bigdata.annotation;
package com.sztzjy.annotation;
import java.lang.annotation.*;

@ -1,8 +1,8 @@
package com.sztzjy.financial_bigdata.annotation;
package com.sztzjy.annotation;
import com.sztzjy.financial_bigdata.annotation.aspect.PermissionType;
import com.sztzjy.annotation.aspect.PermissionType;
import java.lang.annotation.*;

@ -1,4 +1,4 @@
package com.sztzjy.financial_bigdata.annotation.aspect;
package com.sztzjy.annotation.aspect;
/**

@ -1,6 +1,5 @@
package com.sztzjy.financial_bigdata.config;
package com.sztzjy.config;
import io.swagger.models.auth.In;
import org.springframework.stereotype.Component;
/**

@ -1,4 +1,4 @@
package com.sztzjy.financial_bigdata.config;
package com.sztzjy.config;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.databind.JsonSerializer;

@ -1,4 +1,4 @@
package com.sztzjy.financial_bigdata.config;
package com.sztzjy.config;
import org.springframework.context.ApplicationEvent;

@ -1,4 +1,4 @@
package com.sztzjy.financial_bigdata.config;
package com.sztzjy.config;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.BeansException;

@ -1,4 +1,4 @@
package com.sztzjy.financial_bigdata.config.exception;
package com.sztzjy.config.exception;
/**
* 访

@ -1,4 +1,4 @@
package com.sztzjy.financial_bigdata.config.exception.handler;
package com.sztzjy.config.exception.handler;
import org.springframework.http.HttpStatus;
import org.springframework.security.access.AccessDeniedException;

@ -1,4 +1,4 @@
package com.sztzjy.financial_bigdata.config.exception.handler;
package com.sztzjy.config.exception.handler;
import org.springframework.http.HttpStatus;
import org.springframework.security.core.AuthenticationException;

@ -1,8 +1,8 @@
package com.sztzjy.financial_bigdata.config.exception.handler;
package com.sztzjy.config.exception.handler;
import com.sztzjy.financial_bigdata.config.exception.UnAuthorizedException;
import com.sztzjy.financial_bigdata.util.ResultEntity;
import com.sztzjy.financial_bigdata.util.ThrowableUtil;
import com.sztzjy.config.exception.UnAuthorizedException;
import com.sztzjy.util.ResultEntity;
import com.sztzjy.util.ThrowableUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.HttpStatus;
import org.springframework.security.access.AccessDeniedException;

@ -1,4 +1,4 @@
package com.sztzjy.financial_bigdata.config.redis;
package com.sztzjy.config.redis;
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.PropertyAccessor;

@ -1,8 +1,8 @@
package com.sztzjy.financial_bigdata.config.security;
package com.sztzjy.config.security;
import cn.hutool.extra.servlet.ServletUtil;
import com.sztzjy.financial_bigdata.config.Constant;
import com.sztzjy.financial_bigdata.config.exception.UnAuthorizedException;
import com.sztzjy.config.Constant;
import com.sztzjy.config.exception.UnAuthorizedException;
import io.jsonwebtoken.ExpiredJwtException;
import io.jsonwebtoken.MalformedJwtException;
import io.jsonwebtoken.UnsupportedJwtException;

@ -1,4 +1,4 @@
//package com.sztzjy.financial_bigdata.config.security;
//package com.sztzjy.config.security;
//
//import com.sztzjy.financial_bigdata.entity.User;
//import com.sztzjy.financial_bigdata.service.IUserService;

@ -1,4 +1,4 @@
package com.sztzjy.financial_bigdata.config.security;
package com.sztzjy.config.security;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

@ -1,6 +1,5 @@
package com.sztzjy.financial_bigdata.config.security;
package com.sztzjy.config.security;
import io.swagger.models.auth.In;
import lombok.Getter;
import lombok.Setter;
import org.springframework.security.core.GrantedAuthority;

@ -1,14 +1,11 @@
package com.sztzjy.financial_bigdata.config.security;
package com.sztzjy.config.security;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.springframework.security.core.GrantedAuthority;
import java.util.List;
import java.util.Set;
import java.util.stream.Collectors;
/**
*

@ -1,8 +1,8 @@
package com.sztzjy.financial_bigdata.config.security;
package com.sztzjy.config.security;
import com.sztzjy.financial_bigdata.config.Constant;
import com.sztzjy.financial_bigdata.config.exception.UnAuthorizedException;
import com.sztzjy.config.Constant;
import com.sztzjy.config.exception.UnAuthorizedException;
import io.jsonwebtoken.*;
import io.jsonwebtoken.security.Keys;
import io.jsonwebtoken.security.SignatureException;

@ -1,7 +1,7 @@
package com.sztzjy.financial_bigdata.config.security;
package com.sztzjy.config.security;
import com.sztzjy.financial_bigdata.util.file.IFileUtil;
import com.sztzjy.financial_bigdata.util.file.LocalFileUtil;
import com.sztzjy.util.file.IFileUtil;
import com.sztzjy.util.file.LocalFileUtil;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@ -1,10 +1,10 @@
package com.sztzjy.financial_bigdata.config.security;
package com.sztzjy.config.security;
import com.sztzjy.financial_bigdata.annotation.AnonymousAccess;
import com.sztzjy.financial_bigdata.config.SpringContextHolder;
import com.sztzjy.financial_bigdata.config.exception.handler.CustomAccessDeniedHandler;
import com.sztzjy.financial_bigdata.config.exception.handler.CustomAuthenticationEntryPoint;
import com.sztzjy.annotation.AnonymousAccess;
import com.sztzjy.config.SpringContextHolder;
import com.sztzjy.config.exception.handler.CustomAccessDeniedHandler;
import com.sztzjy.config.exception.handler.CustomAuthenticationEntryPoint;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.authentication.AuthenticationManager;
@ -22,7 +22,6 @@ import org.springframework.web.method.HandlerMethod;
import org.springframework.web.servlet.mvc.method.RequestMappingInfo;
import org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping;
import javax.annotation.Resource;
import java.util.HashSet;
import java.util.Map;
import java.util.Objects;

@ -1,4 +1,4 @@
package com.sztzjy.financial_bigdata.config.swagger;
package com.sztzjy.config.swagger;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

@ -1,4 +1,4 @@
package com.sztzjy.financial_bigdata.config.swagger;
package com.sztzjy.config.swagger;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@ -0,0 +1,308 @@
package com.sztzjy.entity;
import java.util.Date;
import io.swagger.annotations.ApiModelProperty;
/**
*
* @author whb
* stu_base_info
*/
public class StuBaseInfo {
@ApiModelProperty("id")
private Integer id;
@ApiModelProperty("公司名称")
private String corpName;
@ApiModelProperty("统一社会信用代码")
private String unSocialCreditCode;
@ApiModelProperty("法定代表人")
private String legalRepresent;
@ApiModelProperty("经营状态")
private String bussinsssState;
@ApiModelProperty("成立日期")
private Date dateOfEstablish;
@ApiModelProperty("行政区划")
private String adminDivision;
@ApiModelProperty("注册资本")
private String regCapital;
@ApiModelProperty("实缴资本")
private String paidUpCapital;
@ApiModelProperty("企业类型")
private String enterType;
@ApiModelProperty("所属行业")
private String industry;
@ApiModelProperty("工商注册号")
private String bussRegNumber;
@ApiModelProperty("组织机构代码")
private String orgCode;
@ApiModelProperty("纳税人识别号")
private String texIdentifiNumber;
@ApiModelProperty("纳税人资质")
private String taxQualification;
@ApiModelProperty("营业期限")
private String businessTerm;
@ApiModelProperty("核准日期")
private Date dateOfApproval;
@ApiModelProperty("登记机关")
private String regAuth;
@ApiModelProperty("参保人数")
private String numberOfInsurePerson;
@ApiModelProperty("注册地址")
private String companyRegAddress;
@ApiModelProperty("经营范围")
private String businessScope;
@ApiModelProperty("股东名称")
private String shareholderName;
@ApiModelProperty("持股比例")
private String shareholdRatio;
@ApiModelProperty("用户ID")
private String userId;
@ApiModelProperty("创建时间")
private Date createTime;
@ApiModelProperty("更新时间")
private Date updateTime;
@ApiModelProperty("案例详情")
private String caseDetail;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getCorpName() {
return corpName;
}
public void setCorpName(String corpName) {
this.corpName = corpName == null ? null : corpName.trim();
}
public String getUnSocialCreditCode() {
return unSocialCreditCode;
}
public void setUnSocialCreditCode(String unSocialCreditCode) {
this.unSocialCreditCode = unSocialCreditCode == null ? null : unSocialCreditCode.trim();
}
public String getLegalRepresent() {
return legalRepresent;
}
public void setLegalRepresent(String legalRepresent) {
this.legalRepresent = legalRepresent == null ? null : legalRepresent.trim();
}
public String getBussinsssState() {
return bussinsssState;
}
public void setBussinsssState(String bussinsssState) {
this.bussinsssState = bussinsssState == null ? null : bussinsssState.trim();
}
public Date getDateOfEstablish() {
return dateOfEstablish;
}
public void setDateOfEstablish(Date dateOfEstablish) {
this.dateOfEstablish = dateOfEstablish;
}
public String getAdminDivision() {
return adminDivision;
}
public void setAdminDivision(String adminDivision) {
this.adminDivision = adminDivision == null ? null : adminDivision.trim();
}
public String getRegCapital() {
return regCapital;
}
public void setRegCapital(String regCapital) {
this.regCapital = regCapital == null ? null : regCapital.trim();
}
public String getPaidUpCapital() {
return paidUpCapital;
}
public void setPaidUpCapital(String paidUpCapital) {
this.paidUpCapital = paidUpCapital == null ? null : paidUpCapital.trim();
}
public String getEnterType() {
return enterType;
}
public void setEnterType(String enterType) {
this.enterType = enterType == null ? null : enterType.trim();
}
public String getIndustry() {
return industry;
}
public void setIndustry(String industry) {
this.industry = industry == null ? null : industry.trim();
}
public String getBussRegNumber() {
return bussRegNumber;
}
public void setBussRegNumber(String bussRegNumber) {
this.bussRegNumber = bussRegNumber == null ? null : bussRegNumber.trim();
}
public String getOrgCode() {
return orgCode;
}
public void setOrgCode(String orgCode) {
this.orgCode = orgCode == null ? null : orgCode.trim();
}
public String getTexIdentifiNumber() {
return texIdentifiNumber;
}
public void setTexIdentifiNumber(String texIdentifiNumber) {
this.texIdentifiNumber = texIdentifiNumber == null ? null : texIdentifiNumber.trim();
}
public String getTaxQualification() {
return taxQualification;
}
public void setTaxQualification(String taxQualification) {
this.taxQualification = taxQualification == null ? null : taxQualification.trim();
}
public String getBusinessTerm() {
return businessTerm;
}
public void setBusinessTerm(String businessTerm) {
this.businessTerm = businessTerm == null ? null : businessTerm.trim();
}
public Date getDateOfApproval() {
return dateOfApproval;
}
public void setDateOfApproval(Date dateOfApproval) {
this.dateOfApproval = dateOfApproval;
}
public String getRegAuth() {
return regAuth;
}
public void setRegAuth(String regAuth) {
this.regAuth = regAuth == null ? null : regAuth.trim();
}
public String getNumberOfInsurePerson() {
return numberOfInsurePerson;
}
public void setNumberOfInsurePerson(String numberOfInsurePerson) {
this.numberOfInsurePerson = numberOfInsurePerson == null ? null : numberOfInsurePerson.trim();
}
public String getCompanyRegAddress() {
return companyRegAddress;
}
public void setCompanyRegAddress(String companyRegAddress) {
this.companyRegAddress = companyRegAddress == null ? null : companyRegAddress.trim();
}
public String getBusinessScope() {
return businessScope;
}
public void setBusinessScope(String businessScope) {
this.businessScope = businessScope == null ? null : businessScope.trim();
}
public String getShareholderName() {
return shareholderName;
}
public void setShareholderName(String shareholderName) {
this.shareholderName = shareholderName == null ? null : shareholderName.trim();
}
public String getShareholdRatio() {
return shareholdRatio;
}
public void setShareholdRatio(String shareholdRatio) {
this.shareholdRatio = shareholdRatio == null ? null : shareholdRatio.trim();
}
public String getUserId() {
return userId;
}
public void setUserId(String userId) {
this.userId = userId == null ? null : userId.trim();
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
public String getCaseDetail() {
return caseDetail;
}
public void setCaseDetail(String caseDetail) {
this.caseDetail = caseDetail == null ? null : caseDetail.trim();
}
}

File diff suppressed because it is too large Load Diff

@ -0,0 +1,393 @@
package com.sztzjy.entity;
import java.math.BigDecimal;
import io.swagger.annotations.ApiModelProperty;
/**
*
* @author whb
* stu_user
*/
public class StuUser {
@ApiModelProperty("用户ID")
private String userId;
@ApiModelProperty("用户名")
private String username;
@ApiModelProperty("密码")
private String password;
@ApiModelProperty("姓名")
private String name;
@ApiModelProperty("角色权限")
private String roleId;
@ApiModelProperty("学校ID")
private String schoolId;
@ApiModelProperty("学校名称")
private String schoolName;
@ApiModelProperty("班级ID")
private String classId;
@ApiModelProperty("班级名称")
private String className;
@ApiModelProperty("电话")
private String phone;
private String collegeId;
private String collegeName;
@ApiModelProperty("学号")
private String studentId;
@ApiModelProperty("专业")
private String major;
@ApiModelProperty("专业ID")
private String majorId;
private String majorName;
@ApiModelProperty("5g成绩")
private BigDecimal fiveScore;
@ApiModelProperty("人工智能成绩")
private BigDecimal artificialIntelligenceScore;
@ApiModelProperty("大数据成绩")
private BigDecimal bigDataScore;
@ApiModelProperty("云计算成绩")
private BigDecimal cloudComputeScore;
@ApiModelProperty("物联网成绩")
private BigDecimal internetOfThingsSocre;
@ApiModelProperty("虚拟现实成绩")
private BigDecimal virtualRealitySocre;
@ApiModelProperty("工业互联网成绩")
private BigDecimal industrialInternetSocre;
@ApiModelProperty("数字产业化成绩")
private BigDecimal digitalIndustryScore;
@ApiModelProperty("数字产业化排名")
private Integer digitalIndustryRank;
@ApiModelProperty("数字化治理成绩")
private BigDecimal digitalGoverSocre;
@ApiModelProperty("数字化治理排名")
private Integer digitalGoverRank;
@ApiModelProperty("数字贸易成绩")
private BigDecimal digitalTradeScore;
@ApiModelProperty("数字金融成绩")
private BigDecimal digitalFinanceScore;
@ApiModelProperty("数据价值化成绩")
private BigDecimal valueDataScore;
@ApiModelProperty("数据价值化排名")
private Integer valueDataRank;
@ApiModelProperty("产业数字化成绩")
private BigDecimal industryDigitalScore;
@ApiModelProperty("产业数字化排名")
private Integer industryDigitalRank;
@ApiModelProperty("总排名(学校)")
private Integer totalRank;
@ApiModelProperty("综合得分(学校)(乘完权重后)")
private BigDecimal totalScore;
public String getUserId() {
return userId;
}
public void setUserId(String userId) {
this.userId = userId == null ? null : userId.trim();
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username == null ? null : username.trim();
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password == null ? null : password.trim();
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name == null ? null : name.trim();
}
public String getRoleId() {
return roleId;
}
public void setRoleId(String roleId) {
this.roleId = roleId == null ? null : roleId.trim();
}
public String getSchoolId() {
return schoolId;
}
public void setSchoolId(String schoolId) {
this.schoolId = schoolId == null ? null : schoolId.trim();
}
public String getSchoolName() {
return schoolName;
}
public void setSchoolName(String schoolName) {
this.schoolName = schoolName == null ? null : schoolName.trim();
}
public String getClassId() {
return classId;
}
public void setClassId(String classId) {
this.classId = classId == null ? null : classId.trim();
}
public String getClassName() {
return className;
}
public void setClassName(String className) {
this.className = className == null ? null : className.trim();
}
public String getPhone() {
return phone;
}
public void setPhone(String phone) {
this.phone = phone == null ? null : phone.trim();
}
public String getCollegeId() {
return collegeId;
}
public void setCollegeId(String collegeId) {
this.collegeId = collegeId == null ? null : collegeId.trim();
}
public String getCollegeName() {
return collegeName;
}
public void setCollegeName(String collegeName) {
this.collegeName = collegeName == null ? null : collegeName.trim();
}
public String getStudentId() {
return studentId;
}
public void setStudentId(String studentId) {
this.studentId = studentId == null ? null : studentId.trim();
}
public String getMajor() {
return major;
}
public void setMajor(String major) {
this.major = major == null ? null : major.trim();
}
public String getMajorId() {
return majorId;
}
public void setMajorId(String majorId) {
this.majorId = majorId == null ? null : majorId.trim();
}
public String getMajorName() {
return majorName;
}
public void setMajorName(String majorName) {
this.majorName = majorName == null ? null : majorName.trim();
}
public BigDecimal getFiveScore() {
return fiveScore;
}
public void setFiveScore(BigDecimal fiveScore) {
this.fiveScore = fiveScore;
}
public BigDecimal getArtificialIntelligenceScore() {
return artificialIntelligenceScore;
}
public void setArtificialIntelligenceScore(BigDecimal artificialIntelligenceScore) {
this.artificialIntelligenceScore = artificialIntelligenceScore;
}
public BigDecimal getBigDataScore() {
return bigDataScore;
}
public void setBigDataScore(BigDecimal bigDataScore) {
this.bigDataScore = bigDataScore;
}
public BigDecimal getCloudComputeScore() {
return cloudComputeScore;
}
public void setCloudComputeScore(BigDecimal cloudComputeScore) {
this.cloudComputeScore = cloudComputeScore;
}
public BigDecimal getInternetOfThingsSocre() {
return internetOfThingsSocre;
}
public void setInternetOfThingsSocre(BigDecimal internetOfThingsSocre) {
this.internetOfThingsSocre = internetOfThingsSocre;
}
public BigDecimal getVirtualRealitySocre() {
return virtualRealitySocre;
}
public void setVirtualRealitySocre(BigDecimal virtualRealitySocre) {
this.virtualRealitySocre = virtualRealitySocre;
}
public BigDecimal getIndustrialInternetSocre() {
return industrialInternetSocre;
}
public void setIndustrialInternetSocre(BigDecimal industrialInternetSocre) {
this.industrialInternetSocre = industrialInternetSocre;
}
public BigDecimal getDigitalIndustryScore() {
return digitalIndustryScore;
}
public void setDigitalIndustryScore(BigDecimal digitalIndustryScore) {
this.digitalIndustryScore = digitalIndustryScore;
}
public Integer getDigitalIndustryRank() {
return digitalIndustryRank;
}
public void setDigitalIndustryRank(Integer digitalIndustryRank) {
this.digitalIndustryRank = digitalIndustryRank;
}
public BigDecimal getDigitalGoverSocre() {
return digitalGoverSocre;
}
public void setDigitalGoverSocre(BigDecimal digitalGoverSocre) {
this.digitalGoverSocre = digitalGoverSocre;
}
public Integer getDigitalGoverRank() {
return digitalGoverRank;
}
public void setDigitalGoverRank(Integer digitalGoverRank) {
this.digitalGoverRank = digitalGoverRank;
}
public BigDecimal getDigitalTradeScore() {
return digitalTradeScore;
}
public void setDigitalTradeScore(BigDecimal digitalTradeScore) {
this.digitalTradeScore = digitalTradeScore;
}
public BigDecimal getDigitalFinanceScore() {
return digitalFinanceScore;
}
public void setDigitalFinanceScore(BigDecimal digitalFinanceScore) {
this.digitalFinanceScore = digitalFinanceScore;
}
public BigDecimal getValueDataScore() {
return valueDataScore;
}
public void setValueDataScore(BigDecimal valueDataScore) {
this.valueDataScore = valueDataScore;
}
public Integer getValueDataRank() {
return valueDataRank;
}
public void setValueDataRank(Integer valueDataRank) {
this.valueDataRank = valueDataRank;
}
public BigDecimal getIndustryDigitalScore() {
return industryDigitalScore;
}
public void setIndustryDigitalScore(BigDecimal industryDigitalScore) {
this.industryDigitalScore = industryDigitalScore;
}
public Integer getIndustryDigitalRank() {
return industryDigitalRank;
}
public void setIndustryDigitalRank(Integer industryDigitalRank) {
this.industryDigitalRank = industryDigitalRank;
}
public Integer getTotalRank() {
return totalRank;
}
public void setTotalRank(Integer totalRank) {
this.totalRank = totalRank;
}
public BigDecimal getTotalScore() {
return totalScore;
}
public void setTotalScore(BigDecimal totalScore) {
this.totalScore = totalScore;
}
}

File diff suppressed because it is too large Load Diff

@ -1,39 +0,0 @@
package com.sztzjy.financial_bigdata.util;//package com.sztzjy.fund_investment.util;
//
//import org.mybatis.generator.api.MyBatisGenerator;
//import org.mybatis.generator.config.Configuration;
//import org.mybatis.generator.config.xml.ConfigurationParser;
//import org.mybatis.generator.internal.DefaultShellCallback;
//
//import java.io.File;
//import java.net.URL;
//import java.util.ArrayList;
//import java.util.List;
//
//public class GeneratorUtil {
//
// public static void generate() {
// try {
// List<String> warnings = new ArrayList<>();
// boolean overwrite = true;
//
// // 获取 generatorConfig.xml 文件路径
// URL resourceUrl = GeneratorUtil.class.getResource("/generatorConfig.xml");
// String configFilePath = resourceUrl.getFile();
//
// File configFileObj = new File(configFilePath);
// ConfigurationParser cp = new ConfigurationParser(warnings);
// Configuration config = cp.parseConfiguration(configFileObj);
//
// DefaultShellCallback callback = new DefaultShellCallback(overwrite);
// MyBatisGenerator myBatisGenerator = new MyBatisGenerator(config, callback, warnings);
// myBatisGenerator.generate(null);
// } catch (Exception e) {
// e.printStackTrace();
// }
// }
//
// public static void main(String[] args) {
// generate();
// }
//}

@ -0,0 +1,36 @@
package com.sztzjy.mappers;
import com.sztzjy.entity.StuBaseInfo;
import com.sztzjy.entity.StuBaseInfoExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface StuBaseInfoMapper {
long countByExample(StuBaseInfoExample example);
int deleteByExample(StuBaseInfoExample example);
int deleteByPrimaryKey(Integer id);
int insert(StuBaseInfo record);
int insertSelective(StuBaseInfo record);
List<StuBaseInfo> selectByExampleWithBLOBs(StuBaseInfoExample example);
List<StuBaseInfo> selectByExample(StuBaseInfoExample example);
StuBaseInfo selectByPrimaryKey(Integer id);
int updateByExampleSelective(@Param("record") StuBaseInfo record, @Param("example") StuBaseInfoExample example);
int updateByExampleWithBLOBs(@Param("record") StuBaseInfo record, @Param("example") StuBaseInfoExample example);
int updateByExample(@Param("record") StuBaseInfo record, @Param("example") StuBaseInfoExample example);
int updateByPrimaryKeySelective(StuBaseInfo record);
int updateByPrimaryKeyWithBLOBs(StuBaseInfo record);
int updateByPrimaryKey(StuBaseInfo record);
}

@ -0,0 +1,30 @@
package com.sztzjy.mappers;
import com.sztzjy.entity.StuUser;
import com.sztzjy.entity.StuUserExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface StuUserMapper {
long countByExample(StuUserExample example);
int deleteByExample(StuUserExample example);
int deleteByPrimaryKey(String userId);
int insert(StuUser record);
int insertSelective(StuUser record);
List<StuUser> selectByExample(StuUserExample example);
StuUser selectByPrimaryKey(String userId);
int updateByExampleSelective(@Param("record") StuUser record, @Param("example") StuUserExample example);
int updateByExample(@Param("record") StuUser record, @Param("example") StuUserExample example);
int updateByPrimaryKeySelective(StuUser record);
int updateByPrimaryKey(StuUser record);
}

@ -1,4 +1,4 @@
package com.sztzjy.financial_bigdata.util;
package com.sztzjy.util;
import org.springframework.stereotype.Component;

@ -1,4 +1,4 @@
package com.sztzjy.financial_bigdata.util;
package com.sztzjy.util;
import com.github.benmanes.caffeine.cache.Cache;
import com.github.benmanes.caffeine.cache.Caffeine;

@ -1,4 +1,4 @@
package com.sztzjy.financial_bigdata.util;
package com.sztzjy.util;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

@ -1,5 +1,4 @@
package com.sztzjy.financial_bigdata.util;
import cn.hutool.core.date.DateUnit;
package com.sztzjy.util;
import cn.hutool.core.date.DateUtil;
import java.text.SimpleDateFormat;

@ -1,4 +1,4 @@
package com.sztzjy.financial_bigdata.util;
package com.sztzjy.util;
import cn.hutool.json.JSONObject;
import lombok.extern.slf4j.Slf4j;

@ -1,4 +1,4 @@
package com.sztzjy.financial_bigdata.util;
package com.sztzjy.util;
import org.mybatis.generator.api.CommentGenerator;
import org.mybatis.generator.api.IntrospectedColumn;
@ -113,7 +113,7 @@ public class MyCommentGenerator implements CommentGenerator {
}
}
topLevelClass.addJavaDocLine(" *");
topLevelClass.addJavaDocLine(" * @author xcj");
topLevelClass.addJavaDocLine(" * @author whb");
topLevelClass.addJavaDocLine(" * " + introspectedTable.getFullyQualifiedTable().toString());
topLevelClass.addJavaDocLine(" */");
// topLevelClass.addJavaDocLine("@Data");

@ -1,4 +1,4 @@
package com.sztzjy.financial_bigdata.util;
package com.sztzjy.util;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageInfo;

@ -1,4 +1,4 @@
package com.sztzjy.financial_bigdata.util;
package com.sztzjy.util;
import org.springframework.beans.factory.annotation.Autowired;

@ -1,4 +1,4 @@
package com.sztzjy.financial_bigdata.util;
package com.sztzjy.util;
import lombok.Getter;
import org.springframework.http.HttpStatus;

@ -1,4 +1,4 @@
package com.sztzjy.financial_bigdata.util;
package com.sztzjy.util;
import io.swagger.annotations.ApiModel;
import lombok.Getter;

@ -1,4 +1,4 @@
package com.sztzjy.financial_bigdata.util;
package com.sztzjy.util;
import org.apache.commons.codec.binary.Base64;

@ -1,9 +1,9 @@
//package com.sztzjy.financial_bigdata.util;
//package com.sztzjy.util;
//
//import cn.hutool.core.util.IdUtil;
//import com.sztzjy.financial_bigdata.util.file.LocalFileUtil;
//import com.sztzjy.financial_bigdata.util.seal.SealCircle;
//import com.sztzjy.financial_bigdata.util.seal.SealFont;
//import com.sztzjy.util.file.LocalFileUtil;
//import com.sztzjy.util.seal.SealCircle;
//import com.sztzjy.util.seal.SealFont;
//import org.springframework.beans.factory.annotation.Value;
//import org.springframework.stereotype.Component;
//
@ -32,7 +32,7 @@
// infoFile.mkdir();
// }
// String s = IdUtil.fastSimpleUUID();
// com.sztzjy.financial_bigdata.util.seal.SealUtil.builder()
// com.sztzjy.util.seal.SealUtil.builder()
// .size(200)
// .borderCircle(SealCircle.builder().line(4).width(95).height(95).build())
// .mainFont(SealFont.builder().text(name+"有限公司").size(22).space(30.0).margin(4).build())
@ -51,7 +51,7 @@
// infoFile.mkdir();
// }
// String s = IdUtil.fastSimpleUUID();
// com.sztzjy.financial_bigdata.util.seal.SealUtil.builder()
// com.sztzjy.util.seal.SealUtil.builder()
// .size(200)
// .borderCircle(SealCircle.builder().line(4).width(95).height(95).build())
// .mainFont(SealFont.builder().text(name).size(22).space(30.0).margin(4).build())

@ -1,4 +1,4 @@
package com.sztzjy.financial_bigdata.util;
package com.sztzjy.util;
import java.io.PrintWriter;
import java.io.StringWriter;

@ -1,12 +1,12 @@
package com.sztzjy.financial_bigdata.util;
package com.sztzjy.util;
import cn.hutool.http.HttpStatus;
import cn.hutool.json.JSONObject;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.github.pagehelper.PageInfo;
import com.sztzjy.financial_bigdata.config.security.JwtUser;
import com.sztzjy.financial_bigdata.config.security.TokenProvider;
import com.sztzjy.config.security.JwtUser;
import com.sztzjy.config.security.TokenProvider;
import org.springframework.util.StringUtils;
import java.io.UnsupportedEncodingException;

@ -1,4 +1,4 @@
package com.sztzjy.financial_bigdata.util.excel;
package com.sztzjy.util.excel;
import lombok.Getter;

@ -1,4 +1,4 @@
package com.sztzjy.financial_bigdata.util.excel;
package com.sztzjy.util.excel;
import cn.hutool.poi.excel.ExcelUtil;
import cn.hutool.poi.excel.ExcelWriter;

@ -1,4 +1,4 @@
package com.sztzjy.financial_bigdata.util.excel;
package com.sztzjy.util.excel;
import com.github.xiaoymin.knife4j.core.util.CollectionUtils;
import org.apache.commons.lang3.time.DateFormatUtils;

@ -1,4 +1,4 @@
package com.sztzjy.financial_bigdata.util.file;
package com.sztzjy.util.file;
import org.springframework.web.multipart.MultipartFile;

@ -1,4 +1,4 @@
package com.sztzjy.financial_bigdata.util.file;
package com.sztzjy.util.file;
import cn.hutool.core.util.CharsetUtil;
import cn.hutool.core.util.IdUtil;

@ -1,4 +1,4 @@
package com.sztzjy.financial_bigdata.util.pdfUtils;
package com.sztzjy.util.pdfUtils;
import com.itextpdf.text.*;
import com.itextpdf.text.Font;

@ -1,4 +1,4 @@
package com.sztzjy.financial_bigdata.util.seal;
package com.sztzjy.util.seal;
import lombok.Builder;

@ -1,4 +1,4 @@
package com.sztzjy.financial_bigdata.util.seal;/**
package com.sztzjy.util.seal;/**
* @author 17803
* @date 2023-12-05 15:01
*/

@ -1,4 +1,4 @@
package com.sztzjy.financial_bigdata.util.seal;
package com.sztzjy.util.seal;
import lombok.Builder;
import lombok.Getter;
@ -14,8 +14,7 @@ import java.io.File;
/**
*
*/
import lombok.Builder;
import lombok.Getter;
@Builder
@Getter
public class SealUtil {

@ -3,71 +3,66 @@
"http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd">
<generatorConfiguration>
<context id="DB2Tables" targetRuntime="MyBatis3">
<commentGenerator>
<!-- <commentGenerator>-->
<!-- <property name="suppressAllComments" value="true"/>-->
<!-- </commentGenerator>-->
<!-- type值为自定义的MyCommentGenerator-->
<commentGenerator type="com.sztzjy.util.MyCommentGenerator">
<!-- 是否去除自动生成的注释 true false:否 -->
<property name="suppressAllComments" value="true"/>
<!-- 抑制警告 -->
<property name="suppressTypeWarnings" value="true" />
<property name="suppressDate" value="true"/>
<!-- 注释是否包含数据库表字段的注释信息 true false:否 -->
<property name="suppressAllComments" value="false"/>
<property name="suppressDate" value="false"/>
<!-- 是否添加数据表中字段的注释 true false:否 -->
<property name="addRemarkComments" value="true"/>
</commentGenerator>
<jdbcConnection driverClass="com.mysql.cj.jdbc.Driver" connectionURL="jdbc:mysql://118.31.7.2:3306/tz_finance_supply" userId="root" password="sztzjy2017" >
<property name="nullCatalogMeansCurrent" value="true"/>
<!-- 配置数据库连接信息 -->
<jdbcConnection driverClass="com.mysql.cj.jdbc.Driver"
connectionURL="jdbc:mysql://118.31.7.2:3306/tz_digital_credit" userId="root"
password="sztzjy2017">
<property name="useInformationSchema" value="true"/> <!--useInformationSchema 实体类上添加数据表的注释 -->
</jdbcConnection>
<!-- 配置实体类的位置 -->
<javaModelGenerator targetPackage="com.sztzjy.block_finance.entity" targetProject="BlockFinanceCentral/src/main/java">
<javaModelGenerator targetPackage="com.sztzjy.entity" targetProject="src/main/java">
<!-- 生成的Java模型是否支持序列化 -->
<property name="enableSubPackages" value="true" />
<property name="trimStrings" value="true" />
</javaModelGenerator>
<!-- 配置Mapper XML文件的位置-->
<sqlMapGenerator targetPackage="mappers" targetProject="BlockFinanceCentral/src/main/resources">
<property name="enableSubPackages" value="true" />
<sqlMapGenerator targetPackage="mapper" targetProject="src/main/resources">
<property name="enableSubPackages" value="true"/>
</sqlMapGenerator>
<!-- 配置Mapper接口的位置 -->
<javaClientGenerator type="XMLMAPPER" targetPackage="com.sztzjy.block_finance.mappers" targetProject="BlockFinanceCentral/src/main/java">
<javaClientGenerator type="XMLMAPPER" targetPackage="com.sztzjy.mappers" targetProject="src/main/java">
<property name="enableSubPackages" value="true" />
</javaClientGenerator>
<!-- 需要生成的表 -->
<!-- <table tableName="stu_redemption_red_packet_record" domainObjectName="StuRedemptionRedPacketRecord" />-->
<!-- <table tableName="stu_learning_assessment" domainObjectName="StuLearningAssessment" />-->
<!-- <table tableName="stu_business_asset_info" domainObjectName="StuBusinessAssetInfo" />-->
<!-- <table tableName="stu_business_bank_asset_info" domainObjectName="StuBusinessBankAssetInfo" />-->
<!-- <table tableName="stu_business_bank_red_packet_info" domainObjectName="StuBusinessBankRedPacketInfo" />-->
<!-- <table tableName="stu_business_product" domainObjectName="StuBusinessProduct" />-->
<!-- <table tableName="stu_business_user_info" domainObjectName="StuBusinessUserInfo" />-->
<!-- <table tableName="stu_central_bank_asset_info" domainObjectName="StuCentralBankAssetInfo" />-->
<!-- <table tableName="stu_central_bank_control_bits" domainObjectName="StuCentralBankControlBits" />-->
<!-- <table tableName="stu_cryptocurrency" domainObjectName="StuCryptocurrency" />-->
<!-- <table tableName="stu_cryptocurrency_transaction_record" domainObjectName="StuCryptocurrencyTransactionRecord" />-->
<!-- <table tableName="stu_digital_currency_exchange_detail" domainObjectName="StuDigitalCurrencyExchangeDetail" />-->
<!-- <table tableName="stu_digital_wallet_activation_record" domainObjectName="StuDigitalWalletActivationRecord" />-->
<!-- <table tableName="stu_evaluation" domainObjectName="StuEvaluation" />-->
<!-- <table tableName="stu_knowledge_notes" domainObjectName="StuKnowledgeNotes" />-->
<!-- <table tableName="stu_concept_navigation" domainObjectName="StuConceptNavigation" />-->
<table tableName="stu_learning_assessment" domainObjectName="StuLearningAssessment"/>
<!-- 需要生成的表 -->
<!-- <table tableName="stu_class" domainObjectName="StuClass" />-->
<!-- <table tableName="stu_error" domainObjectName="StuError" />-->
<!-- <table tableName="stu_exam_case" domainObjectName="StuExamCase" />-->
<!-- <table tableName="stu_student_exam" domainObjectName="StuStudentExam" />-->
<!-- <table tableName="stu_theory_exam" domainObjectName="StuTheoryExam" />-->
<!-- <table tableName="stu_theory_record" domainObjectName="StuTheoryRecord" />-->
<!-- <table tableName="stu_training" domainObjectName="StuTraining" />-->
<!-- <table tableName="stu_user" domainObjectName="StuUser" />-->
<!-- <table tableName="sys_case_question_bank" domainObjectName="SysCaseQuestionBank" />-->
<!-- <table tableName="sys_course" domainObjectName="SysCourse" />-->
<!-- <table tableName="sys_course_chapter" domainObjectName="SysCourseChapter" />-->
<!-- <table tableName="sys_log" domainObjectName="SysLog" />-->
<!-- <table tableName="sys_objective_question" domainObjectName="SysObjectiveQuestion" />-->
<!-- <table tableName="tea_exam_manage" domainObjectName="TeaExamManage" />-->
<!-- <table tableName="tea_learning_statistics" domainObjectName="TeaLearningStatistics" />-->
<table tableName="stu_user" domainObjectName="StuUser" />
<!-- <table tableName="stu_hash_training_signature" domainObjectName="StuHashTrainingSignature" />-->
<!-- <table tableName="stu_knowledge_summary" domainObjectName="StuKnowledgeSummary" />-->
<!-- <table tableName="stu_personal_red_packet_record" domainObjectName="StuPersonalRedPacketRecord" />-->
<!-- <table tableName="stu_personal_user_info" domainObjectName="StuPersonalUserInfo" />-->
<!-- <table tableName="stu_practical_training" domainObjectName="StuPracticalTraining" />-->
<!-- <table tableName="stu_practical_training_task" domainObjectName="StuPracticalTrainingTask" />-->
<!-- <table tableName="stu_product_transaction_record" domainObjectName="StuProductTransactionRecord" />-->
<!-- <table tableName="stu_redemption_red_packet_record" domainObjectName="StuRedemptionRedPacketRecord" />-->
<!-- <table tableName="stu_resources" domainObjectName="StuResources" />-->
<!-- <table tableName="stu_score_details" domainObjectName="StuScoreDetails" />-->
<!-- <table tableName="stu_user" domainObjectName="StuUser" />-->
<!-- <table tableName="stu_wallet_level" domainObjectName="StuWalletLevel" />-->
<!-- <table tableName="training_report" domainObjectName="TrainingReport" />-->
</context>

@ -73,7 +73,7 @@
<!-- Level: FATAL 0 ERROR 3 WARN 4 INFO 6 DEBUG 7 -->
<root level="info">
<appender-ref ref="console"/>
<appender-ref ref="info"/>
<appender-ref ref="error"/>
<!-- <appender-ref ref="info"/>-->
<!-- <appender-ref ref="error"/>-->
</root>
</configuration>

@ -0,0 +1,645 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.sztzjy.mappers.StuBaseInfoMapper">
<resultMap id="BaseResultMap" type="com.sztzjy.entity.StuBaseInfo">
<id column="id" jdbcType="INTEGER" property="id" />
<result column="corp_name" jdbcType="VARCHAR" property="corpName" />
<result column="un_social_credit_code" jdbcType="VARCHAR" property="unSocialCreditCode" />
<result column="legal_represent" jdbcType="VARCHAR" property="legalRepresent" />
<result column="bussinsss_state" jdbcType="VARCHAR" property="bussinsssState" />
<result column="date_of_establish" jdbcType="TIMESTAMP" property="dateOfEstablish" />
<result column="admin_division" jdbcType="VARCHAR" property="adminDivision" />
<result column="reg_capital" jdbcType="VARCHAR" property="regCapital" />
<result column="paid_up_capital" jdbcType="VARCHAR" property="paidUpCapital" />
<result column="enter_type" jdbcType="VARCHAR" property="enterType" />
<result column="industry" jdbcType="VARCHAR" property="industry" />
<result column="buss_reg_number" jdbcType="VARCHAR" property="bussRegNumber" />
<result column="org_code" jdbcType="VARCHAR" property="orgCode" />
<result column="tex_identifi_number" jdbcType="VARCHAR" property="texIdentifiNumber" />
<result column="tax_qualification" jdbcType="VARCHAR" property="taxQualification" />
<result column="business_term" jdbcType="VARCHAR" property="businessTerm" />
<result column="date_of_approval" jdbcType="TIMESTAMP" property="dateOfApproval" />
<result column="reg_auth" jdbcType="VARCHAR" property="regAuth" />
<result column="number_of_insure_person" jdbcType="VARCHAR" property="numberOfInsurePerson" />
<result column="company_reg_address" jdbcType="VARCHAR" property="companyRegAddress" />
<result column="business_scope" jdbcType="VARCHAR" property="businessScope" />
<result column="shareholder_name" jdbcType="VARCHAR" property="shareholderName" />
<result column="sharehold_ratio" jdbcType="VARCHAR" property="shareholdRatio" />
<result column="user_id" jdbcType="VARCHAR" property="userId" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
</resultMap>
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.sztzjy.entity.StuBaseInfo">
<result column="case_detail" jdbcType="LONGVARCHAR" property="caseDetail" />
</resultMap>
<sql id="Example_Where_Clause">
<where>
<foreach collection="oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, corp_name, un_social_credit_code, legal_represent, bussinsss_state, date_of_establish,
admin_division, reg_capital, paid_up_capital, enter_type, industry, buss_reg_number,
org_code, tex_identifi_number, tax_qualification, business_term, date_of_approval,
reg_auth, number_of_insure_person, company_reg_address, business_scope, shareholder_name,
sharehold_ratio, user_id, create_time, update_time
</sql>
<sql id="Blob_Column_List">
case_detail
</sql>
<select id="selectByExampleWithBLOBs" parameterType="com.sztzjy.entity.StuBaseInfoExample" resultMap="ResultMapWithBLOBs">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from stu_base_info
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByExample" parameterType="com.sztzjy.entity.StuBaseInfoExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from stu_base_info
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="ResultMapWithBLOBs">
select
<include refid="Base_Column_List" />
,
<include refid="Blob_Column_List" />
from stu_base_info
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from stu_base_info
where id = #{id,jdbcType=INTEGER}
</delete>
<delete id="deleteByExample" parameterType="com.sztzjy.entity.StuBaseInfoExample">
delete from stu_base_info
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.sztzjy.entity.StuBaseInfo">
insert into stu_base_info (id, corp_name, un_social_credit_code,
legal_represent, bussinsss_state, date_of_establish,
admin_division, reg_capital, paid_up_capital,
enter_type, industry, buss_reg_number,
org_code, tex_identifi_number, tax_qualification,
business_term, date_of_approval, reg_auth,
number_of_insure_person, company_reg_address,
business_scope, shareholder_name, sharehold_ratio,
user_id, create_time, update_time,
case_detail)
values (#{id,jdbcType=INTEGER}, #{corpName,jdbcType=VARCHAR}, #{unSocialCreditCode,jdbcType=VARCHAR},
#{legalRepresent,jdbcType=VARCHAR}, #{bussinsssState,jdbcType=VARCHAR}, #{dateOfEstablish,jdbcType=TIMESTAMP},
#{adminDivision,jdbcType=VARCHAR}, #{regCapital,jdbcType=VARCHAR}, #{paidUpCapital,jdbcType=VARCHAR},
#{enterType,jdbcType=VARCHAR}, #{industry,jdbcType=VARCHAR}, #{bussRegNumber,jdbcType=VARCHAR},
#{orgCode,jdbcType=VARCHAR}, #{texIdentifiNumber,jdbcType=VARCHAR}, #{taxQualification,jdbcType=VARCHAR},
#{businessTerm,jdbcType=VARCHAR}, #{dateOfApproval,jdbcType=TIMESTAMP}, #{regAuth,jdbcType=VARCHAR},
#{numberOfInsurePerson,jdbcType=VARCHAR}, #{companyRegAddress,jdbcType=VARCHAR},
#{businessScope,jdbcType=VARCHAR}, #{shareholderName,jdbcType=VARCHAR}, #{shareholdRatio,jdbcType=VARCHAR},
#{userId,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
#{caseDetail,jdbcType=LONGVARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.sztzjy.entity.StuBaseInfo">
insert into stu_base_info
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="corpName != null">
corp_name,
</if>
<if test="unSocialCreditCode != null">
un_social_credit_code,
</if>
<if test="legalRepresent != null">
legal_represent,
</if>
<if test="bussinsssState != null">
bussinsss_state,
</if>
<if test="dateOfEstablish != null">
date_of_establish,
</if>
<if test="adminDivision != null">
admin_division,
</if>
<if test="regCapital != null">
reg_capital,
</if>
<if test="paidUpCapital != null">
paid_up_capital,
</if>
<if test="enterType != null">
enter_type,
</if>
<if test="industry != null">
industry,
</if>
<if test="bussRegNumber != null">
buss_reg_number,
</if>
<if test="orgCode != null">
org_code,
</if>
<if test="texIdentifiNumber != null">
tex_identifi_number,
</if>
<if test="taxQualification != null">
tax_qualification,
</if>
<if test="businessTerm != null">
business_term,
</if>
<if test="dateOfApproval != null">
date_of_approval,
</if>
<if test="regAuth != null">
reg_auth,
</if>
<if test="numberOfInsurePerson != null">
number_of_insure_person,
</if>
<if test="companyRegAddress != null">
company_reg_address,
</if>
<if test="businessScope != null">
business_scope,
</if>
<if test="shareholderName != null">
shareholder_name,
</if>
<if test="shareholdRatio != null">
sharehold_ratio,
</if>
<if test="userId != null">
user_id,
</if>
<if test="createTime != null">
create_time,
</if>
<if test="updateTime != null">
update_time,
</if>
<if test="caseDetail != null">
case_detail,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=INTEGER},
</if>
<if test="corpName != null">
#{corpName,jdbcType=VARCHAR},
</if>
<if test="unSocialCreditCode != null">
#{unSocialCreditCode,jdbcType=VARCHAR},
</if>
<if test="legalRepresent != null">
#{legalRepresent,jdbcType=VARCHAR},
</if>
<if test="bussinsssState != null">
#{bussinsssState,jdbcType=VARCHAR},
</if>
<if test="dateOfEstablish != null">
#{dateOfEstablish,jdbcType=TIMESTAMP},
</if>
<if test="adminDivision != null">
#{adminDivision,jdbcType=VARCHAR},
</if>
<if test="regCapital != null">
#{regCapital,jdbcType=VARCHAR},
</if>
<if test="paidUpCapital != null">
#{paidUpCapital,jdbcType=VARCHAR},
</if>
<if test="enterType != null">
#{enterType,jdbcType=VARCHAR},
</if>
<if test="industry != null">
#{industry,jdbcType=VARCHAR},
</if>
<if test="bussRegNumber != null">
#{bussRegNumber,jdbcType=VARCHAR},
</if>
<if test="orgCode != null">
#{orgCode,jdbcType=VARCHAR},
</if>
<if test="texIdentifiNumber != null">
#{texIdentifiNumber,jdbcType=VARCHAR},
</if>
<if test="taxQualification != null">
#{taxQualification,jdbcType=VARCHAR},
</if>
<if test="businessTerm != null">
#{businessTerm,jdbcType=VARCHAR},
</if>
<if test="dateOfApproval != null">
#{dateOfApproval,jdbcType=TIMESTAMP},
</if>
<if test="regAuth != null">
#{regAuth,jdbcType=VARCHAR},
</if>
<if test="numberOfInsurePerson != null">
#{numberOfInsurePerson,jdbcType=VARCHAR},
</if>
<if test="companyRegAddress != null">
#{companyRegAddress,jdbcType=VARCHAR},
</if>
<if test="businessScope != null">
#{businessScope,jdbcType=VARCHAR},
</if>
<if test="shareholderName != null">
#{shareholderName,jdbcType=VARCHAR},
</if>
<if test="shareholdRatio != null">
#{shareholdRatio,jdbcType=VARCHAR},
</if>
<if test="userId != null">
#{userId,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
#{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="caseDetail != null">
#{caseDetail,jdbcType=LONGVARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.sztzjy.entity.StuBaseInfoExample" resultType="java.lang.Long">
select count(*) from stu_base_info
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update stu_base_info
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=INTEGER},
</if>
<if test="record.corpName != null">
corp_name = #{record.corpName,jdbcType=VARCHAR},
</if>
<if test="record.unSocialCreditCode != null">
un_social_credit_code = #{record.unSocialCreditCode,jdbcType=VARCHAR},
</if>
<if test="record.legalRepresent != null">
legal_represent = #{record.legalRepresent,jdbcType=VARCHAR},
</if>
<if test="record.bussinsssState != null">
bussinsss_state = #{record.bussinsssState,jdbcType=VARCHAR},
</if>
<if test="record.dateOfEstablish != null">
date_of_establish = #{record.dateOfEstablish,jdbcType=TIMESTAMP},
</if>
<if test="record.adminDivision != null">
admin_division = #{record.adminDivision,jdbcType=VARCHAR},
</if>
<if test="record.regCapital != null">
reg_capital = #{record.regCapital,jdbcType=VARCHAR},
</if>
<if test="record.paidUpCapital != null">
paid_up_capital = #{record.paidUpCapital,jdbcType=VARCHAR},
</if>
<if test="record.enterType != null">
enter_type = #{record.enterType,jdbcType=VARCHAR},
</if>
<if test="record.industry != null">
industry = #{record.industry,jdbcType=VARCHAR},
</if>
<if test="record.bussRegNumber != null">
buss_reg_number = #{record.bussRegNumber,jdbcType=VARCHAR},
</if>
<if test="record.orgCode != null">
org_code = #{record.orgCode,jdbcType=VARCHAR},
</if>
<if test="record.texIdentifiNumber != null">
tex_identifi_number = #{record.texIdentifiNumber,jdbcType=VARCHAR},
</if>
<if test="record.taxQualification != null">
tax_qualification = #{record.taxQualification,jdbcType=VARCHAR},
</if>
<if test="record.businessTerm != null">
business_term = #{record.businessTerm,jdbcType=VARCHAR},
</if>
<if test="record.dateOfApproval != null">
date_of_approval = #{record.dateOfApproval,jdbcType=TIMESTAMP},
</if>
<if test="record.regAuth != null">
reg_auth = #{record.regAuth,jdbcType=VARCHAR},
</if>
<if test="record.numberOfInsurePerson != null">
number_of_insure_person = #{record.numberOfInsurePerson,jdbcType=VARCHAR},
</if>
<if test="record.companyRegAddress != null">
company_reg_address = #{record.companyRegAddress,jdbcType=VARCHAR},
</if>
<if test="record.businessScope != null">
business_scope = #{record.businessScope,jdbcType=VARCHAR},
</if>
<if test="record.shareholderName != null">
shareholder_name = #{record.shareholderName,jdbcType=VARCHAR},
</if>
<if test="record.shareholdRatio != null">
sharehold_ratio = #{record.shareholdRatio,jdbcType=VARCHAR},
</if>
<if test="record.userId != null">
user_id = #{record.userId,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.updateTime != null">
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if test="record.caseDetail != null">
case_detail = #{record.caseDetail,jdbcType=LONGVARCHAR},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExampleWithBLOBs" parameterType="map">
update stu_base_info
set id = #{record.id,jdbcType=INTEGER},
corp_name = #{record.corpName,jdbcType=VARCHAR},
un_social_credit_code = #{record.unSocialCreditCode,jdbcType=VARCHAR},
legal_represent = #{record.legalRepresent,jdbcType=VARCHAR},
bussinsss_state = #{record.bussinsssState,jdbcType=VARCHAR},
date_of_establish = #{record.dateOfEstablish,jdbcType=TIMESTAMP},
admin_division = #{record.adminDivision,jdbcType=VARCHAR},
reg_capital = #{record.regCapital,jdbcType=VARCHAR},
paid_up_capital = #{record.paidUpCapital,jdbcType=VARCHAR},
enter_type = #{record.enterType,jdbcType=VARCHAR},
industry = #{record.industry,jdbcType=VARCHAR},
buss_reg_number = #{record.bussRegNumber,jdbcType=VARCHAR},
org_code = #{record.orgCode,jdbcType=VARCHAR},
tex_identifi_number = #{record.texIdentifiNumber,jdbcType=VARCHAR},
tax_qualification = #{record.taxQualification,jdbcType=VARCHAR},
business_term = #{record.businessTerm,jdbcType=VARCHAR},
date_of_approval = #{record.dateOfApproval,jdbcType=TIMESTAMP},
reg_auth = #{record.regAuth,jdbcType=VARCHAR},
number_of_insure_person = #{record.numberOfInsurePerson,jdbcType=VARCHAR},
company_reg_address = #{record.companyRegAddress,jdbcType=VARCHAR},
business_scope = #{record.businessScope,jdbcType=VARCHAR},
shareholder_name = #{record.shareholderName,jdbcType=VARCHAR},
sharehold_ratio = #{record.shareholdRatio,jdbcType=VARCHAR},
user_id = #{record.userId,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
case_detail = #{record.caseDetail,jdbcType=LONGVARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update stu_base_info
set id = #{record.id,jdbcType=INTEGER},
corp_name = #{record.corpName,jdbcType=VARCHAR},
un_social_credit_code = #{record.unSocialCreditCode,jdbcType=VARCHAR},
legal_represent = #{record.legalRepresent,jdbcType=VARCHAR},
bussinsss_state = #{record.bussinsssState,jdbcType=VARCHAR},
date_of_establish = #{record.dateOfEstablish,jdbcType=TIMESTAMP},
admin_division = #{record.adminDivision,jdbcType=VARCHAR},
reg_capital = #{record.regCapital,jdbcType=VARCHAR},
paid_up_capital = #{record.paidUpCapital,jdbcType=VARCHAR},
enter_type = #{record.enterType,jdbcType=VARCHAR},
industry = #{record.industry,jdbcType=VARCHAR},
buss_reg_number = #{record.bussRegNumber,jdbcType=VARCHAR},
org_code = #{record.orgCode,jdbcType=VARCHAR},
tex_identifi_number = #{record.texIdentifiNumber,jdbcType=VARCHAR},
tax_qualification = #{record.taxQualification,jdbcType=VARCHAR},
business_term = #{record.businessTerm,jdbcType=VARCHAR},
date_of_approval = #{record.dateOfApproval,jdbcType=TIMESTAMP},
reg_auth = #{record.regAuth,jdbcType=VARCHAR},
number_of_insure_person = #{record.numberOfInsurePerson,jdbcType=VARCHAR},
company_reg_address = #{record.companyRegAddress,jdbcType=VARCHAR},
business_scope = #{record.businessScope,jdbcType=VARCHAR},
shareholder_name = #{record.shareholderName,jdbcType=VARCHAR},
sharehold_ratio = #{record.shareholdRatio,jdbcType=VARCHAR},
user_id = #{record.userId,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.sztzjy.entity.StuBaseInfo">
update stu_base_info
<set>
<if test="corpName != null">
corp_name = #{corpName,jdbcType=VARCHAR},
</if>
<if test="unSocialCreditCode != null">
un_social_credit_code = #{unSocialCreditCode,jdbcType=VARCHAR},
</if>
<if test="legalRepresent != null">
legal_represent = #{legalRepresent,jdbcType=VARCHAR},
</if>
<if test="bussinsssState != null">
bussinsss_state = #{bussinsssState,jdbcType=VARCHAR},
</if>
<if test="dateOfEstablish != null">
date_of_establish = #{dateOfEstablish,jdbcType=TIMESTAMP},
</if>
<if test="adminDivision != null">
admin_division = #{adminDivision,jdbcType=VARCHAR},
</if>
<if test="regCapital != null">
reg_capital = #{regCapital,jdbcType=VARCHAR},
</if>
<if test="paidUpCapital != null">
paid_up_capital = #{paidUpCapital,jdbcType=VARCHAR},
</if>
<if test="enterType != null">
enter_type = #{enterType,jdbcType=VARCHAR},
</if>
<if test="industry != null">
industry = #{industry,jdbcType=VARCHAR},
</if>
<if test="bussRegNumber != null">
buss_reg_number = #{bussRegNumber,jdbcType=VARCHAR},
</if>
<if test="orgCode != null">
org_code = #{orgCode,jdbcType=VARCHAR},
</if>
<if test="texIdentifiNumber != null">
tex_identifi_number = #{texIdentifiNumber,jdbcType=VARCHAR},
</if>
<if test="taxQualification != null">
tax_qualification = #{taxQualification,jdbcType=VARCHAR},
</if>
<if test="businessTerm != null">
business_term = #{businessTerm,jdbcType=VARCHAR},
</if>
<if test="dateOfApproval != null">
date_of_approval = #{dateOfApproval,jdbcType=TIMESTAMP},
</if>
<if test="regAuth != null">
reg_auth = #{regAuth,jdbcType=VARCHAR},
</if>
<if test="numberOfInsurePerson != null">
number_of_insure_person = #{numberOfInsurePerson,jdbcType=VARCHAR},
</if>
<if test="companyRegAddress != null">
company_reg_address = #{companyRegAddress,jdbcType=VARCHAR},
</if>
<if test="businessScope != null">
business_scope = #{businessScope,jdbcType=VARCHAR},
</if>
<if test="shareholderName != null">
shareholder_name = #{shareholderName,jdbcType=VARCHAR},
</if>
<if test="shareholdRatio != null">
sharehold_ratio = #{shareholdRatio,jdbcType=VARCHAR},
</if>
<if test="userId != null">
user_id = #{userId,jdbcType=VARCHAR},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null">
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
<if test="caseDetail != null">
case_detail = #{caseDetail,jdbcType=LONGVARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.sztzjy.entity.StuBaseInfo">
update stu_base_info
set corp_name = #{corpName,jdbcType=VARCHAR},
un_social_credit_code = #{unSocialCreditCode,jdbcType=VARCHAR},
legal_represent = #{legalRepresent,jdbcType=VARCHAR},
bussinsss_state = #{bussinsssState,jdbcType=VARCHAR},
date_of_establish = #{dateOfEstablish,jdbcType=TIMESTAMP},
admin_division = #{adminDivision,jdbcType=VARCHAR},
reg_capital = #{regCapital,jdbcType=VARCHAR},
paid_up_capital = #{paidUpCapital,jdbcType=VARCHAR},
enter_type = #{enterType,jdbcType=VARCHAR},
industry = #{industry,jdbcType=VARCHAR},
buss_reg_number = #{bussRegNumber,jdbcType=VARCHAR},
org_code = #{orgCode,jdbcType=VARCHAR},
tex_identifi_number = #{texIdentifiNumber,jdbcType=VARCHAR},
tax_qualification = #{taxQualification,jdbcType=VARCHAR},
business_term = #{businessTerm,jdbcType=VARCHAR},
date_of_approval = #{dateOfApproval,jdbcType=TIMESTAMP},
reg_auth = #{regAuth,jdbcType=VARCHAR},
number_of_insure_person = #{numberOfInsurePerson,jdbcType=VARCHAR},
company_reg_address = #{companyRegAddress,jdbcType=VARCHAR},
business_scope = #{businessScope,jdbcType=VARCHAR},
shareholder_name = #{shareholderName,jdbcType=VARCHAR},
sharehold_ratio = #{shareholdRatio,jdbcType=VARCHAR},
user_id = #{userId,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
case_detail = #{caseDetail,jdbcType=LONGVARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.sztzjy.entity.StuBaseInfo">
update stu_base_info
set corp_name = #{corpName,jdbcType=VARCHAR},
un_social_credit_code = #{unSocialCreditCode,jdbcType=VARCHAR},
legal_represent = #{legalRepresent,jdbcType=VARCHAR},
bussinsss_state = #{bussinsssState,jdbcType=VARCHAR},
date_of_establish = #{dateOfEstablish,jdbcType=TIMESTAMP},
admin_division = #{adminDivision,jdbcType=VARCHAR},
reg_capital = #{regCapital,jdbcType=VARCHAR},
paid_up_capital = #{paidUpCapital,jdbcType=VARCHAR},
enter_type = #{enterType,jdbcType=VARCHAR},
industry = #{industry,jdbcType=VARCHAR},
buss_reg_number = #{bussRegNumber,jdbcType=VARCHAR},
org_code = #{orgCode,jdbcType=VARCHAR},
tex_identifi_number = #{texIdentifiNumber,jdbcType=VARCHAR},
tax_qualification = #{taxQualification,jdbcType=VARCHAR},
business_term = #{businessTerm,jdbcType=VARCHAR},
date_of_approval = #{dateOfApproval,jdbcType=TIMESTAMP},
reg_auth = #{regAuth,jdbcType=VARCHAR},
number_of_insure_person = #{numberOfInsurePerson,jdbcType=VARCHAR},
company_reg_address = #{companyRegAddress,jdbcType=VARCHAR},
business_scope = #{businessScope,jdbcType=VARCHAR},
shareholder_name = #{shareholderName,jdbcType=VARCHAR},
sharehold_ratio = #{shareholdRatio,jdbcType=VARCHAR},
user_id = #{userId,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save