逆向生成修复
parent
9a18141d18
commit
5d67a614dc
@ -1,4 +1,4 @@
|
||||
package com.sztzjy;
|
||||
package com.sztzjy.digital_credit;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
@ -1,4 +1,4 @@
|
||||
package com.sztzjy.annotation;
|
||||
package com.sztzjy.digital_credit.annotation;
|
||||
|
||||
import java.lang.annotation.*;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.sztzjy.annotation;
|
||||
package com.sztzjy.digital_credit.annotation;
|
||||
|
||||
import java.lang.annotation.*;
|
||||
|
@ -1,8 +1,8 @@
|
||||
package com.sztzjy.annotation;
|
||||
package com.sztzjy.digital_credit.annotation;
|
||||
|
||||
|
||||
|
||||
import com.sztzjy.annotation.aspect.PermissionType;
|
||||
import com.sztzjy.digital_credit.annotation.aspect.PermissionType;
|
||||
|
||||
import java.lang.annotation.*;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.sztzjy.annotation.aspect;
|
||||
package com.sztzjy.digital_credit.annotation.aspect;
|
||||
|
||||
|
||||
/**
|
@ -1,4 +1,4 @@
|
||||
package com.sztzjy.config;
|
||||
package com.sztzjy.digital_credit.config;
|
||||
|
||||
import org.springframework.stereotype.Component;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.sztzjy.config;
|
||||
package com.sztzjy.digital_credit.config;
|
||||
|
||||
import com.fasterxml.jackson.core.JsonGenerator;
|
||||
import com.fasterxml.jackson.databind.JsonSerializer;
|
@ -1,4 +1,4 @@
|
||||
package com.sztzjy.config;
|
||||
package com.sztzjy.digital_credit.config;
|
||||
|
||||
import org.springframework.context.ApplicationEvent;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.sztzjy.config;
|
||||
package com.sztzjy.digital_credit.config;
|
||||
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.BeansException;
|
@ -1,4 +1,4 @@
|
||||
package com.sztzjy.config.exception;
|
||||
package com.sztzjy.digital_credit.config.exception;
|
||||
|
||||
/**
|
||||
* 当用户访问受保护资源但不提供任何凭据时将抛出此异常
|
@ -1,4 +1,4 @@
|
||||
package com.sztzjy.config.exception.handler;
|
||||
package com.sztzjy.digital_credit.config.exception.handler;
|
||||
|
||||
import org.springframework.http.HttpStatus;
|
||||
import org.springframework.security.access.AccessDeniedException;
|
@ -1,4 +1,4 @@
|
||||
package com.sztzjy.config.exception.handler;
|
||||
package com.sztzjy.digital_credit.config.exception.handler;
|
||||
|
||||
import org.springframework.http.HttpStatus;
|
||||
import org.springframework.security.core.AuthenticationException;
|
@ -1,8 +1,8 @@
|
||||
package com.sztzjy.config.exception.handler;
|
||||
package com.sztzjy.digital_credit.config.exception.handler;
|
||||
|
||||
import com.sztzjy.config.exception.UnAuthorizedException;
|
||||
import com.sztzjy.util.ResultEntity;
|
||||
import com.sztzjy.util.ThrowableUtil;
|
||||
import com.sztzjy.digital_credit.config.exception.UnAuthorizedException;
|
||||
import com.sztzjy.digital_credit.util.ResultEntity;
|
||||
import com.sztzjy.digital_credit.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.config.redis;
|
||||
package com.sztzjy.digital_credit.config.redis;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonAutoDetect;
|
||||
import com.fasterxml.jackson.annotation.PropertyAccessor;
|
@ -1,8 +1,8 @@
|
||||
package com.sztzjy.config.security;
|
||||
package com.sztzjy.digital_credit.config.security;
|
||||
|
||||
import cn.hutool.extra.servlet.ServletUtil;
|
||||
import com.sztzjy.config.Constant;
|
||||
import com.sztzjy.config.exception.UnAuthorizedException;
|
||||
import com.sztzjy.digital_credit.config.Constant;
|
||||
import com.sztzjy.digital_credit.config.exception.UnAuthorizedException;
|
||||
import io.jsonwebtoken.ExpiredJwtException;
|
||||
import io.jsonwebtoken.MalformedJwtException;
|
||||
import io.jsonwebtoken.UnsupportedJwtException;
|
@ -1,4 +1,4 @@
|
||||
//package com.sztzjy.config.security;
|
||||
//package com.sztzjy.digital_credit.config.security;
|
||||
//
|
||||
//import com.sztzjy.financial_bigdata.entity.User;
|
||||
//import com.sztzjy.financial_bigdata.service.IUserService;
|
@ -1,4 +1,4 @@
|
||||
package com.sztzjy.config.security;
|
||||
package com.sztzjy.digital_credit.config.security;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
@ -1,4 +1,4 @@
|
||||
package com.sztzjy.config.security;
|
||||
package com.sztzjy.digital_credit.config.security;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
@ -1,4 +1,4 @@
|
||||
package com.sztzjy.config.security;
|
||||
package com.sztzjy.digital_credit.config.security;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
@ -1,8 +1,8 @@
|
||||
package com.sztzjy.config.security;
|
||||
package com.sztzjy.digital_credit.config.security;
|
||||
|
||||
|
||||
import com.sztzjy.config.Constant;
|
||||
import com.sztzjy.config.exception.UnAuthorizedException;
|
||||
import com.sztzjy.digital_credit.config.Constant;
|
||||
import com.sztzjy.digital_credit.config.exception.UnAuthorizedException;
|
||||
import io.jsonwebtoken.*;
|
||||
import io.jsonwebtoken.security.Keys;
|
||||
import io.jsonwebtoken.security.SignatureException;
|
@ -1,7 +1,7 @@
|
||||
package com.sztzjy.config.security;
|
||||
package com.sztzjy.digital_credit.config.security;
|
||||
|
||||
import com.sztzjy.util.file.IFileUtil;
|
||||
import com.sztzjy.util.file.LocalFileUtil;
|
||||
import com.sztzjy.digital_credit.util.file.IFileUtil;
|
||||
import com.sztzjy.digital_credit.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.config.security;
|
||||
package com.sztzjy.digital_credit.config.security;
|
||||
|
||||
|
||||
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 com.sztzjy.digital_credit.annotation.AnonymousAccess;
|
||||
import com.sztzjy.digital_credit.config.SpringContextHolder;
|
||||
import com.sztzjy.digital_credit.config.exception.handler.CustomAccessDeniedHandler;
|
||||
import com.sztzjy.digital_credit.config.exception.handler.CustomAuthenticationEntryPoint;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.security.authentication.AuthenticationManager;
|
@ -1,4 +1,4 @@
|
||||
package com.sztzjy.config.swagger;
|
||||
package com.sztzjy.digital_credit.config.swagger;
|
||||
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
@ -1,4 +1,4 @@
|
||||
package com.sztzjy.config.swagger;
|
||||
package com.sztzjy.digital_credit.config.swagger;
|
||||
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
import org.springframework.stereotype.Component;
|
@ -0,0 +1,44 @@
|
||||
package com.sztzjy.digital_credit.controller;
|
||||
|
||||
import com.sztzjy.digital_credit.annotation.AnonymousAccess;
|
||||
import com.sztzjy.digital_credit.service.StuEnterPriseByInfoEntryService;
|
||||
import com.sztzjy.digital_credit.util.ResultEntity;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
|
||||
/**
|
||||
* @author 17803
|
||||
* @date 2024-04-11 14:57
|
||||
*/
|
||||
@Api(tags = "企业征信:信息录入")
|
||||
@RestController
|
||||
@RequestMapping("api/stu/infoEntry")
|
||||
public class StuEnterPriseByInfoEntryController {
|
||||
|
||||
|
||||
@Autowired
|
||||
private StuEnterPriseByInfoEntryService infoEntryService;
|
||||
|
||||
|
||||
@ApiOperation("基本信息查询")
|
||||
@AnonymousAccess
|
||||
@GetMapping("/getBaseInfo")
|
||||
public ResultEntity getBaseInfo(@NotBlank String userId){
|
||||
return infoEntryService.getBaseInfo(userId);
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
@ -1,11 +1,11 @@
|
||||
package com.sztzjy.entity;
|
||||
package com.sztzjy.digital_credit.entity;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
/**
|
||||
*
|
||||
* @author whb
|
||||
* @author tz
|
||||
* stu_base_info
|
||||
*/
|
||||
public class StuBaseInfo {
|
@ -1,4 +1,4 @@
|
||||
package com.sztzjy.entity;
|
||||
package com.sztzjy.digital_credit.entity;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
@ -0,0 +1,142 @@
|
||||
package com.sztzjy.digital_credit.entity;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
/**
|
||||
*
|
||||
* @author tz
|
||||
* stu_practical_training_report
|
||||
*/
|
||||
public class StuPracticalTrainingReport {
|
||||
@ApiModelProperty("ID")
|
||||
private Integer id;
|
||||
|
||||
@ApiModelProperty("报告名称")
|
||||
private String reportName;
|
||||
|
||||
@ApiModelProperty("上传时间")
|
||||
private Date uploadTime;
|
||||
|
||||
@ApiModelProperty("报告大小")
|
||||
private Integer size;
|
||||
|
||||
@ApiModelProperty("教师评分")
|
||||
private Double rating;
|
||||
|
||||
@ApiModelProperty("归属模块")
|
||||
private String module;
|
||||
|
||||
@ApiModelProperty("用户id")
|
||||
private String userid;
|
||||
|
||||
@ApiModelProperty("上传路径")
|
||||
private String url;
|
||||
|
||||
@ApiModelProperty("成绩id")
|
||||
private Integer socreId;
|
||||
|
||||
@ApiModelProperty("教师评语")
|
||||
private String teacherComments;
|
||||
|
||||
@ApiModelProperty("学校ID")
|
||||
private String schoolId;
|
||||
|
||||
private Integer status;
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getReportName() {
|
||||
return reportName;
|
||||
}
|
||||
|
||||
public void setReportName(String reportName) {
|
||||
this.reportName = reportName == null ? null : reportName.trim();
|
||||
}
|
||||
|
||||
public Date getUploadTime() {
|
||||
return uploadTime;
|
||||
}
|
||||
|
||||
public void setUploadTime(Date uploadTime) {
|
||||
this.uploadTime = uploadTime;
|
||||
}
|
||||
|
||||
public Integer getSize() {
|
||||
return size;
|
||||
}
|
||||
|
||||
public void setSize(Integer size) {
|
||||
this.size = size;
|
||||
}
|
||||
|
||||
public Double getRating() {
|
||||
return rating;
|
||||
}
|
||||
|
||||
public void setRating(Double rating) {
|
||||
this.rating = rating;
|
||||
}
|
||||
|
||||
public String getModule() {
|
||||
return module;
|
||||
}
|
||||
|
||||
public void setModule(String module) {
|
||||
this.module = module == null ? null : module.trim();
|
||||
}
|
||||
|
||||
public String getUserid() {
|
||||
return userid;
|
||||
}
|
||||
|
||||
public void setUserid(String userid) {
|
||||
this.userid = userid == null ? null : userid.trim();
|
||||
}
|
||||
|
||||
public String getUrl() {
|
||||
return url;
|
||||
}
|
||||
|
||||
public void setUrl(String url) {
|
||||
this.url = url == null ? null : url.trim();
|
||||
}
|
||||
|
||||
public Integer getSocreId() {
|
||||
return socreId;
|
||||
}
|
||||
|
||||
public void setSocreId(Integer socreId) {
|
||||
this.socreId = socreId;
|
||||
}
|
||||
|
||||
public String getTeacherComments() {
|
||||
return teacherComments;
|
||||
}
|
||||
|
||||
public void setTeacherComments(String teacherComments) {
|
||||
this.teacherComments = teacherComments == null ? null : teacherComments.trim();
|
||||
}
|
||||
|
||||
public String getSchoolId() {
|
||||
return schoolId;
|
||||
}
|
||||
|
||||
public void setSchoolId(String schoolId) {
|
||||
this.schoolId = schoolId == null ? null : schoolId.trim();
|
||||
}
|
||||
|
||||
public Integer getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(Integer status) {
|
||||
this.status = status;
|
||||
}
|
||||
}
|
@ -0,0 +1,980 @@
|
||||
package com.sztzjy.digital_credit.entity;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
public class StuPracticalTrainingReportExample {
|
||||
protected String orderByClause;
|
||||
|
||||
protected boolean distinct;
|
||||
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
public StuPracticalTrainingReportExample() {
|
||||
oredCriteria = new ArrayList<>();
|
||||
}
|
||||
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
protected abstract static class GeneratedCriteria {
|
||||
protected List<Criterion> criteria;
|
||||
|
||||
protected GeneratedCriteria() {
|
||||
super();
|
||||
criteria = new ArrayList<>();
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return criteria.size() > 0;
|
||||
}
|
||||
|
||||
public List<Criterion> getAllCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public List<Criterion> getCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition) {
|
||||
if (condition == null) {
|
||||
throw new RuntimeException("Value for condition cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value, String property) {
|
||||
if (value == null) {
|
||||
throw new RuntimeException("Value for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
||||
if (value1 == null || value2 == null) {
|
||||
throw new RuntimeException("Between values for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value1, value2));
|
||||
}
|
||||
|
||||
public Criteria andIdIsNull() {
|
||||
addCriterion("id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIsNotNull() {
|
||||
addCriterion("id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdEqualTo(Integer value) {
|
||||
addCriterion("id =", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotEqualTo(Integer value) {
|
||||
addCriterion("id <>", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThan(Integer value) {
|
||||
addCriterion("id >", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("id >=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThan(Integer value) {
|
||||
addCriterion("id <", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("id <=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIn(List<Integer> values) {
|
||||
addCriterion("id in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotIn(List<Integer> values) {
|
||||
addCriterion("id not in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id not between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReportNameIsNull() {
|
||||
addCriterion("report_name is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReportNameIsNotNull() {
|
||||
addCriterion("report_name is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReportNameEqualTo(String value) {
|
||||
addCriterion("report_name =", value, "reportName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReportNameNotEqualTo(String value) {
|
||||
addCriterion("report_name <>", value, "reportName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReportNameGreaterThan(String value) {
|
||||
addCriterion("report_name >", value, "reportName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReportNameGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("report_name >=", value, "reportName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReportNameLessThan(String value) {
|
||||
addCriterion("report_name <", value, "reportName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReportNameLessThanOrEqualTo(String value) {
|
||||
addCriterion("report_name <=", value, "reportName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReportNameLike(String value) {
|
||||
addCriterion("report_name like", value, "reportName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReportNameNotLike(String value) {
|
||||
addCriterion("report_name not like", value, "reportName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReportNameIn(List<String> values) {
|
||||
addCriterion("report_name in", values, "reportName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReportNameNotIn(List<String> values) {
|
||||
addCriterion("report_name not in", values, "reportName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReportNameBetween(String value1, String value2) {
|
||||
addCriterion("report_name between", value1, value2, "reportName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReportNameNotBetween(String value1, String value2) {
|
||||
addCriterion("report_name not between", value1, value2, "reportName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUploadTimeIsNull() {
|
||||
addCriterion("upload_time is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUploadTimeIsNotNull() {
|
||||
addCriterion("upload_time is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUploadTimeEqualTo(Date value) {
|
||||
addCriterion("upload_time =", value, "uploadTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUploadTimeNotEqualTo(Date value) {
|
||||
addCriterion("upload_time <>", value, "uploadTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUploadTimeGreaterThan(Date value) {
|
||||
addCriterion("upload_time >", value, "uploadTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUploadTimeGreaterThanOrEqualTo(Date value) {
|
||||
addCriterion("upload_time >=", value, "uploadTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUploadTimeLessThan(Date value) {
|
||||
addCriterion("upload_time <", value, "uploadTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUploadTimeLessThanOrEqualTo(Date value) {
|
||||
addCriterion("upload_time <=", value, "uploadTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUploadTimeIn(List<Date> values) {
|
||||
addCriterion("upload_time in", values, "uploadTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUploadTimeNotIn(List<Date> values) {
|
||||
addCriterion("upload_time not in", values, "uploadTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUploadTimeBetween(Date value1, Date value2) {
|
||||
addCriterion("upload_time between", value1, value2, "uploadTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUploadTimeNotBetween(Date value1, Date value2) {
|
||||
addCriterion("upload_time not between", value1, value2, "uploadTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSizeIsNull() {
|
||||
addCriterion("size is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSizeIsNotNull() {
|
||||
addCriterion("size is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSizeEqualTo(Integer value) {
|
||||
addCriterion("size =", value, "size");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSizeNotEqualTo(Integer value) {
|
||||
addCriterion("size <>", value, "size");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSizeGreaterThan(Integer value) {
|
||||
addCriterion("size >", value, "size");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSizeGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("size >=", value, "size");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSizeLessThan(Integer value) {
|
||||
addCriterion("size <", value, "size");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSizeLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("size <=", value, "size");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSizeIn(List<Integer> values) {
|
||||
addCriterion("size in", values, "size");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSizeNotIn(List<Integer> values) {
|
||||
addCriterion("size not in", values, "size");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSizeBetween(Integer value1, Integer value2) {
|
||||
addCriterion("size between", value1, value2, "size");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSizeNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("size not between", value1, value2, "size");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRatingIsNull() {
|
||||
addCriterion("rating is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRatingIsNotNull() {
|
||||
addCriterion("rating is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRatingEqualTo(Double value) {
|
||||
addCriterion("rating =", value, "rating");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRatingNotEqualTo(Double value) {
|
||||
addCriterion("rating <>", value, "rating");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRatingGreaterThan(Double value) {
|
||||
addCriterion("rating >", value, "rating");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRatingGreaterThanOrEqualTo(Double value) {
|
||||
addCriterion("rating >=", value, "rating");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRatingLessThan(Double value) {
|
||||
addCriterion("rating <", value, "rating");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRatingLessThanOrEqualTo(Double value) {
|
||||
addCriterion("rating <=", value, "rating");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRatingIn(List<Double> values) {
|
||||
addCriterion("rating in", values, "rating");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRatingNotIn(List<Double> values) {
|
||||
addCriterion("rating not in", values, "rating");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRatingBetween(Double value1, Double value2) {
|
||||
addCriterion("rating between", value1, value2, "rating");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRatingNotBetween(Double value1, Double value2) {
|
||||
addCriterion("rating not between", value1, value2, "rating");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andModuleIsNull() {
|
||||
addCriterion("module is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andModuleIsNotNull() {
|
||||
addCriterion("module is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andModuleEqualTo(String value) {
|
||||
addCriterion("module =", value, "module");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andModuleNotEqualTo(String value) {
|
||||
addCriterion("module <>", value, "module");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andModuleGreaterThan(String value) {
|
||||
addCriterion("module >", value, "module");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andModuleGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("module >=", value, "module");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andModuleLessThan(String value) {
|
||||
addCriterion("module <", value, "module");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andModuleLessThanOrEqualTo(String value) {
|
||||
addCriterion("module <=", value, "module");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andModuleLike(String value) {
|
||||
addCriterion("module like", value, "module");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andModuleNotLike(String value) {
|
||||
addCriterion("module not like", value, "module");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andModuleIn(List<String> values) {
|
||||
addCriterion("module in", values, "module");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andModuleNotIn(List<String> values) {
|
||||
addCriterion("module not in", values, "module");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andModuleBetween(String value1, String value2) {
|
||||
addCriterion("module between", value1, value2, "module");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andModuleNotBetween(String value1, String value2) {
|
||||
addCriterion("module not between", value1, value2, "module");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUseridIsNull() {
|
||||
addCriterion("userId is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUseridIsNotNull() {
|
||||
addCriterion("userId is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUseridEqualTo(String value) {
|
||||
addCriterion("userId =", value, "userid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUseridNotEqualTo(String value) {
|
||||
addCriterion("userId <>", value, "userid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUseridGreaterThan(String value) {
|
||||
addCriterion("userId >", value, "userid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUseridGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("userId >=", value, "userid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUseridLessThan(String value) {
|
||||
addCriterion("userId <", value, "userid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUseridLessThanOrEqualTo(String value) {
|
||||
addCriterion("userId <=", value, "userid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUseridLike(String value) {
|
||||
addCriterion("userId like", value, "userid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUseridNotLike(String value) {
|
||||
addCriterion("userId not like", value, "userid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUseridIn(List<String> values) {
|
||||
addCriterion("userId in", values, "userid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUseridNotIn(List<String> values) {
|
||||
addCriterion("userId not in", values, "userid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUseridBetween(String value1, String value2) {
|
||||
addCriterion("userId between", value1, value2, "userid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUseridNotBetween(String value1, String value2) {
|
||||
addCriterion("userId not between", value1, value2, "userid");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUrlIsNull() {
|
||||
addCriterion("url is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUrlIsNotNull() {
|
||||
addCriterion("url is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUrlEqualTo(String value) {
|
||||
addCriterion("url =", value, "url");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUrlNotEqualTo(String value) {
|
||||
addCriterion("url <>", value, "url");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUrlGreaterThan(String value) {
|
||||
addCriterion("url >", value, "url");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUrlGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("url >=", value, "url");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUrlLessThan(String value) {
|
||||
addCriterion("url <", value, "url");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUrlLessThanOrEqualTo(String value) {
|
||||
addCriterion("url <=", value, "url");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUrlLike(String value) {
|
||||
addCriterion("url like", value, "url");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUrlNotLike(String value) {
|
||||
addCriterion("url not like", value, "url");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUrlIn(List<String> values) {
|
||||
addCriterion("url in", values, "url");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUrlNotIn(List<String> values) {
|
||||
addCriterion("url not in", values, "url");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUrlBetween(String value1, String value2) {
|
||||
addCriterion("url between", value1, value2, "url");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUrlNotBetween(String value1, String value2) {
|
||||
addCriterion("url not between", value1, value2, "url");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSocreIdIsNull() {
|
||||
addCriterion("socre_id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSocreIdIsNotNull() {
|
||||
addCriterion("socre_id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSocreIdEqualTo(Integer value) {
|
||||
addCriterion("socre_id =", value, "socreId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSocreIdNotEqualTo(Integer value) {
|
||||
addCriterion("socre_id <>", value, "socreId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSocreIdGreaterThan(Integer value) {
|
||||
addCriterion("socre_id >", value, "socreId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSocreIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("socre_id >=", value, "socreId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSocreIdLessThan(Integer value) {
|
||||
addCriterion("socre_id <", value, "socreId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSocreIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("socre_id <=", value, "socreId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSocreIdIn(List<Integer> values) {
|
||||
addCriterion("socre_id in", values, "socreId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSocreIdNotIn(List<Integer> values) {
|
||||
addCriterion("socre_id not in", values, "socreId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSocreIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("socre_id between", value1, value2, "socreId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSocreIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("socre_id not between", value1, value2, "socreId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTeacherCommentsIsNull() {
|
||||
addCriterion("teacher_comments is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTeacherCommentsIsNotNull() {
|
||||
addCriterion("teacher_comments is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTeacherCommentsEqualTo(String value) {
|
||||
addCriterion("teacher_comments =", value, "teacherComments");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTeacherCommentsNotEqualTo(String value) {
|
||||
addCriterion("teacher_comments <>", value, "teacherComments");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTeacherCommentsGreaterThan(String value) {
|
||||
addCriterion("teacher_comments >", value, "teacherComments");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTeacherCommentsGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("teacher_comments >=", value, "teacherComments");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTeacherCommentsLessThan(String value) {
|
||||
addCriterion("teacher_comments <", value, "teacherComments");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTeacherCommentsLessThanOrEqualTo(String value) {
|
||||
addCriterion("teacher_comments <=", value, "teacherComments");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTeacherCommentsLike(String value) {
|
||||
addCriterion("teacher_comments like", value, "teacherComments");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTeacherCommentsNotLike(String value) {
|
||||
addCriterion("teacher_comments not like", value, "teacherComments");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTeacherCommentsIn(List<String> values) {
|
||||
addCriterion("teacher_comments in", values, "teacherComments");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTeacherCommentsNotIn(List<String> values) {
|
||||
addCriterion("teacher_comments not in", values, "teacherComments");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTeacherCommentsBetween(String value1, String value2) {
|
||||
addCriterion("teacher_comments between", value1, value2, "teacherComments");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andTeacherCommentsNotBetween(String value1, String value2) {
|
||||
addCriterion("teacher_comments not between", value1, value2, "teacherComments");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSchoolIdIsNull() {
|
||||
addCriterion("school_id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSchoolIdIsNotNull() {
|
||||
addCriterion("school_id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSchoolIdEqualTo(String value) {
|
||||
addCriterion("school_id =", value, "schoolId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSchoolIdNotEqualTo(String value) {
|
||||
addCriterion("school_id <>", value, "schoolId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSchoolIdGreaterThan(String value) {
|
||||
addCriterion("school_id >", value, "schoolId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSchoolIdGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("school_id >=", value, "schoolId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSchoolIdLessThan(String value) {
|
||||
addCriterion("school_id <", value, "schoolId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSchoolIdLessThanOrEqualTo(String value) {
|
||||
addCriterion("school_id <=", value, "schoolId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSchoolIdLike(String value) {
|
||||
addCriterion("school_id like", value, "schoolId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSchoolIdNotLike(String value) {
|
||||
addCriterion("school_id not like", value, "schoolId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSchoolIdIn(List<String> values) {
|
||||
addCriterion("school_id in", values, "schoolId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSchoolIdNotIn(List<String> values) {
|
||||
addCriterion("school_id not in", values, "schoolId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSchoolIdBetween(String value1, String value2) {
|
||||
addCriterion("school_id between", value1, value2, "schoolId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andSchoolIdNotBetween(String value1, String value2) {
|
||||
addCriterion("school_id not between", value1, value2, "schoolId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusIsNull() {
|
||||
addCriterion("status is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusIsNotNull() {
|
||||
addCriterion("status is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusEqualTo(Integer value) {
|
||||
addCriterion("status =", value, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusNotEqualTo(Integer value) {
|
||||
addCriterion("status <>", value, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusGreaterThan(Integer value) {
|
||||
addCriterion("status >", value, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("status >=", value, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusLessThan(Integer value) {
|
||||
addCriterion("status <", value, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("status <=", value, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusIn(List<Integer> values) {
|
||||
addCriterion("status in", values, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusNotIn(List<Integer> values) {
|
||||
addCriterion("status not in", values, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusBetween(Integer value1, Integer value2) {
|
||||
addCriterion("status between", value1, value2, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStatusNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("status not between", value1, value2, "status");
|
||||
return (Criteria) this;
|
||||
}
|
||||
}
|
||||
|
||||
public static class Criteria extends GeneratedCriteria {
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
public static class Criterion {
|
||||
private String condition;
|
||||
|
||||
private Object value;
|
||||
|
||||
private Object secondValue;
|
||||
|
||||
private boolean noValue;
|
||||
|
||||
private boolean singleValue;
|
||||
|
||||
private boolean betweenValue;
|
||||
|
||||
private boolean listValue;
|
||||
|
||||
private String typeHandler;
|
||||
|
||||
public String getCondition() {
|
||||
return condition;
|
||||
}
|
||||
|
||||
public Object getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object getSecondValue() {
|
||||
return secondValue;
|
||||
}
|
||||
|
||||
public boolean isNoValue() {
|
||||
return noValue;
|
||||
}
|
||||
|
||||
public boolean isSingleValue() {
|
||||
return singleValue;
|
||||
}
|
||||
|
||||
public boolean isBetweenValue() {
|
||||
return betweenValue;
|
||||
}
|
||||
|
||||
public boolean isListValue() {
|
||||
return listValue;
|
||||
}
|
||||
|
||||
public String getTypeHandler() {
|
||||
return typeHandler;
|
||||
}
|
||||
|
||||
protected Criterion(String condition) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.typeHandler = null;
|
||||
this.noValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.typeHandler = typeHandler;
|
||||
if (value instanceof List<?>) {
|
||||
this.listValue = true;
|
||||
} else {
|
||||
this.singleValue = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value) {
|
||||
this(condition, value, null);
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.secondValue = secondValue;
|
||||
this.typeHandler = typeHandler;
|
||||
this.betweenValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue) {
|
||||
this(condition, value, secondValue, null);
|
||||
}
|
||||
}
|
||||
}
|
@ -1,11 +1,11 @@
|
||||
package com.sztzjy.entity;
|
||||
package com.sztzjy.digital_credit.entity;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
/**
|
||||
*
|
||||
* @author whb
|
||||
* @author tz
|
||||
* stu_user
|
||||
*/
|
||||
public class StuUser {
|
@ -1,4 +1,4 @@
|
||||
package com.sztzjy.entity;
|
||||
package com.sztzjy.digital_credit.entity;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.ArrayList;
|
@ -1,9 +1,12 @@
|
||||
package com.sztzjy.mappers;
|
||||
package com.sztzjy.digital_credit.mapper;
|
||||
|
||||
import com.sztzjy.entity.StuBaseInfo;
|
||||
import com.sztzjy.entity.StuBaseInfoExample;
|
||||
import com.sztzjy.digital_credit.entity.StuBaseInfo;
|
||||
import com.sztzjy.digital_credit.entity.StuBaseInfoExample;
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
@Mapper
|
||||
|
||||
public interface StuBaseInfoMapper {
|
||||
long countByExample(StuBaseInfoExample example);
|
@ -0,0 +1,30 @@
|
||||
package com.sztzjy.digital_credit.mapper;
|
||||
|
||||
import com.sztzjy.digital_credit.entity.StuPracticalTrainingReport;
|
||||
import com.sztzjy.digital_credit.entity.StuPracticalTrainingReportExample;
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
public interface StuPracticalTrainingReportMapper {
|
||||
long countByExample(StuPracticalTrainingReportExample example);
|
||||
|
||||
int deleteByExample(StuPracticalTrainingReportExample example);
|
||||
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
int insert(StuPracticalTrainingReport record);
|
||||
|
||||
int insertSelective(StuPracticalTrainingReport record);
|
||||
|
||||
List<StuPracticalTrainingReport> selectByExample(StuPracticalTrainingReportExample example);
|
||||
|
||||
StuPracticalTrainingReport selectByPrimaryKey(Integer id);
|
||||
|
||||
int updateByExampleSelective(@Param("record") StuPracticalTrainingReport record, @Param("example") StuPracticalTrainingReportExample example);
|
||||
|
||||
int updateByExample(@Param("record") StuPracticalTrainingReport record, @Param("example") StuPracticalTrainingReportExample example);
|
||||
|
||||
int updateByPrimaryKeySelective(StuPracticalTrainingReport record);
|
||||
|
||||
int updateByPrimaryKey(StuPracticalTrainingReport record);
|
||||
}
|
@ -1,7 +1,7 @@
|
||||
package com.sztzjy.mappers;
|
||||
package com.sztzjy.digital_credit.mapper;
|
||||
|
||||
import com.sztzjy.entity.StuUser;
|
||||
import com.sztzjy.entity.StuUserExample;
|
||||
import com.sztzjy.digital_credit.entity.StuUser;
|
||||
import com.sztzjy.digital_credit.entity.StuUserExample;
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
@ -0,0 +1,18 @@
|
||||
package com.sztzjy.digital_credit.service;
|
||||
|
||||
import com.sztzjy.digital_credit.util.ResultEntity;
|
||||
|
||||
/**
|
||||
* @author 17803
|
||||
* @date 2024-04-11 15:02
|
||||
*/
|
||||
public interface StuEnterPriseByInfoEntryService {
|
||||
|
||||
/**
|
||||
* 基本信息查询
|
||||
* @param userId
|
||||
* @return
|
||||
*/
|
||||
|
||||
ResultEntity getBaseInfo(String userId);
|
||||
}
|
@ -0,0 +1,45 @@
|
||||
package com.sztzjy.digital_credit.service.impl;
|
||||
/**
|
||||
* @author 17803
|
||||
* @date 2024-04-11 15:02
|
||||
*/
|
||||
|
||||
import com.sztzjy.digital_credit.entity.StuBaseInfo;
|
||||
import com.sztzjy.digital_credit.entity.StuBaseInfoExample;
|
||||
import com.sztzjy.digital_credit.mapper.StuBaseInfoMapper;
|
||||
import com.sztzjy.digital_credit.service.StuEnterPriseByInfoEntryService;
|
||||
import com.sztzjy.digital_credit.util.ResultEntity;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.http.HttpStatus;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Service
|
||||
public class StuEnterPriseByInfoEntryServiceImpl implements StuEnterPriseByInfoEntryService {
|
||||
|
||||
|
||||
@Autowired
|
||||
private StuBaseInfoMapper stuBaseInfoMapper;
|
||||
|
||||
|
||||
/**
|
||||
* 基本信息查询
|
||||
* @param userId
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public ResultEntity getBaseInfo(String userId) {
|
||||
|
||||
StuBaseInfoExample infoExample = new StuBaseInfoExample();
|
||||
infoExample.createCriteria().andUserIdEqualTo(userId);
|
||||
List<StuBaseInfo> stuBaseInfoList = stuBaseInfoMapper.selectByExample(infoExample);
|
||||
|
||||
if (!stuBaseInfoList.isEmpty()){
|
||||
|
||||
return new ResultEntity<>(HttpStatus.OK,"获取成功",stuBaseInfoList.get(0));
|
||||
}
|
||||
|
||||
return new ResultEntity<>(HttpStatus.OK,"获取成功");
|
||||
}
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
package com.sztzjy.util;
|
||||
package com.sztzjy.digital_credit.util;
|
||||
|
||||
import org.springframework.stereotype.Component;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.sztzjy.util;
|
||||
package com.sztzjy.digital_credit.util;
|
||||
|
||||
import com.github.benmanes.caffeine.cache.Cache;
|
||||
import com.github.benmanes.caffeine.cache.Caffeine;
|
@ -1,4 +1,4 @@
|
||||
package com.sztzjy.util;
|
||||
package com.sztzjy.digital_credit.util;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
@ -1,4 +1,4 @@
|
||||
package com.sztzjy.util;
|
||||
package com.sztzjy.digital_credit.util;
|
||||
import cn.hutool.core.date.DateUtil;
|
||||
|
||||
import java.text.SimpleDateFormat;
|
@ -0,0 +1,39 @@
|
||||
package com.sztzjy.digital_credit.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();
|
||||
}
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
package com.sztzjy.util;
|
||||
package com.sztzjy.digital_credit.util;
|
||||
|
||||
import cn.hutool.json.JSONObject;
|
||||
import lombok.extern.slf4j.Slf4j;
|
@ -1,4 +1,4 @@
|
||||
package com.sztzjy.util;
|
||||
package com.sztzjy.digital_credit.util;
|
||||
|
||||
import com.github.pagehelper.Page;
|
||||
import com.github.pagehelper.PageInfo;
|
@ -1,4 +1,4 @@
|
||||
package com.sztzjy.util;
|
||||
package com.sztzjy.digital_credit.util;
|
||||
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
@ -1,4 +1,4 @@
|
||||
package com.sztzjy.util;
|
||||
package com.sztzjy.digital_credit.util;
|
||||
|
||||
import lombok.Getter;
|
||||
import org.springframework.http.HttpStatus;
|
@ -1,4 +1,4 @@
|
||||
package com.sztzjy.util;
|
||||
package com.sztzjy.digital_credit.util;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import lombok.Getter;
|
@ -1,4 +1,4 @@
|
||||
package com.sztzjy.util;
|
||||
package com.sztzjy.digital_credit.util;
|
||||
|
||||
import org.apache.commons.codec.binary.Base64;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.sztzjy.util;
|
||||
package com.sztzjy.digital_credit.util;
|
||||
|
||||
import java.io.PrintWriter;
|
||||
import java.io.StringWriter;
|
@ -1,12 +1,12 @@
|
||||
package com.sztzjy.util;
|
||||
package com.sztzjy.digital_credit.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.config.security.JwtUser;
|
||||
import com.sztzjy.config.security.TokenProvider;
|
||||
import com.sztzjy.digital_credit.config.security.JwtUser;
|
||||
import com.sztzjy.digital_credit.config.security.TokenProvider;
|
||||
import org.springframework.util.StringUtils;
|
||||
|
||||
import java.io.UnsupportedEncodingException;
|
@ -1,4 +1,4 @@
|
||||
package com.sztzjy.util.excel;
|
||||
package com.sztzjy.digital_credit.util.excel;
|
||||
|
||||
import lombok.Getter;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.sztzjy.util.excel;
|
||||
package com.sztzjy.digital_credit.util.excel;
|
||||
|
||||
import cn.hutool.poi.excel.ExcelUtil;
|
||||
import cn.hutool.poi.excel.ExcelWriter;
|
@ -1,4 +1,4 @@
|
||||
package com.sztzjy.util.excel;
|
||||
package com.sztzjy.digital_credit.util.excel;
|
||||
|
||||
import com.github.xiaoymin.knife4j.core.util.CollectionUtils;
|
||||
import org.apache.commons.lang3.time.DateFormatUtils;
|
@ -1,4 +1,4 @@
|
||||
package com.sztzjy.util.file;
|
||||
package com.sztzjy.digital_credit.util.file;
|
||||
|
||||
|
||||
import org.springframework.web.multipart.MultipartFile;
|
@ -1,4 +1,4 @@
|
||||
package com.sztzjy.util.file;
|
||||
package com.sztzjy.digital_credit.util.file;
|
||||
|
||||
import cn.hutool.core.util.CharsetUtil;
|
||||
import cn.hutool.core.util.IdUtil;
|
@ -1,4 +1,4 @@
|
||||
package com.sztzjy.util.pdfUtils;
|
||||
package com.sztzjy.digital_credit.util.pdfUtils;
|
||||
|
||||
import com.itextpdf.text.*;
|
||||
import com.itextpdf.text.Font;
|
@ -1,4 +1,4 @@
|
||||
package com.sztzjy.util.seal;
|
||||
package com.sztzjy.digital_credit.util.seal;
|
||||
|
||||
|
||||
import lombok.Builder;
|
@ -1,4 +1,4 @@
|
||||
package com.sztzjy.util.seal;/**
|
||||
package com.sztzjy.digital_credit.util.seal;/**
|
||||
* @author 17803
|
||||
* @date 2023-12-05 15:01
|
||||
*/
|
@ -1,4 +1,4 @@
|
||||
package com.sztzjy.util.seal;
|
||||
package com.sztzjy.digital_credit.util.seal;
|
||||
|
||||
import lombok.Builder;
|
||||
import lombok.Getter;
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,324 @@
|
||||
<?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.digital_credit.mapper.StuPracticalTrainingReportMapper">
|
||||
<resultMap id="BaseResultMap" type="com.sztzjy.digital_credit.entity.StuPracticalTrainingReport">
|
||||
<id column="id" jdbcType="INTEGER" property="id" />
|
||||
<result column="report_name" jdbcType="VARCHAR" property="reportName" />
|
||||
<result column="upload_time" jdbcType="TIMESTAMP" property="uploadTime" />
|
||||
<result column="size" jdbcType="INTEGER" property="size" />
|
||||
<result column="rating" jdbcType="DOUBLE" property="rating" />
|
||||
<result column="module" jdbcType="VARCHAR" property="module" />
|
||||
<result column="userId" jdbcType="VARCHAR" property="userid" />
|
||||
<result column="url" jdbcType="VARCHAR" property="url" />
|
||||
<result column="socre_id" jdbcType="INTEGER" property="socreId" />
|
||||
<result column="teacher_comments" jdbcType="VARCHAR" property="teacherComments" />
|
||||
<result column="school_id" jdbcType="VARCHAR" property="schoolId" />
|
||||
<result column="status" jdbcType="INTEGER" property="status" />
|
||||
</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, report_name, upload_time, size, rating, module, userId, url, socre_id, teacher_comments,
|
||||
school_id, status
|
||||
</sql>
|
||||
<select id="selectByExample" parameterType="com.sztzjy.digital_credit.entity.StuPracticalTrainingReportExample" resultMap="BaseResultMap">
|
||||
select
|
||||
<if test="distinct">
|
||||
distinct
|
||||
</if>
|
||||
<include refid="Base_Column_List" />
|
||||
from stu_practical_training_report
|
||||
<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="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from stu_practical_training_report
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
||||
delete from stu_practical_training_report
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</delete>
|
||||
<delete id="deleteByExample" parameterType="com.sztzjy.digital_credit.entity.StuPracticalTrainingReportExample">
|
||||
delete from stu_practical_training_report
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.sztzjy.digital_credit.entity.StuPracticalTrainingReport">
|
||||
insert into stu_practical_training_report (id, report_name, upload_time,
|
||||
size, rating, module,
|
||||
userId, url, socre_id,
|
||||
teacher_comments, school_id, status
|
||||
)
|
||||
values (#{id,jdbcType=INTEGER}, #{reportName,jdbcType=VARCHAR}, #{uploadTime,jdbcType=TIMESTAMP},
|
||||
#{size,jdbcType=INTEGER}, #{rating,jdbcType=DOUBLE}, #{module,jdbcType=VARCHAR},
|
||||
#{userid,jdbcType=VARCHAR}, #{url,jdbcType=VARCHAR}, #{socreId,jdbcType=INTEGER},
|
||||
#{teacherComments,jdbcType=VARCHAR}, #{schoolId,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}
|
||||
)
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.sztzjy.digital_credit.entity.StuPracticalTrainingReport">
|
||||
insert into stu_practical_training_report
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
<if test="reportName != null">
|
||||
report_name,
|
||||
</if>
|
||||
<if test="uploadTime != null">
|
||||
upload_time,
|
||||
</if>
|
||||
<if test="size != null">
|
||||
size,
|
||||
</if>
|
||||
<if test="rating != null">
|
||||
rating,
|
||||
</if>
|
||||
<if test="module != null">
|
||||
module,
|
||||
</if>
|
||||
<if test="userid != null">
|
||||
userId,
|
||||
</if>
|
||||
<if test="url != null">
|
||||
url,
|
||||
</if>
|
||||
<if test="socreId != null">
|
||||
socre_id,
|
||||
</if>
|
||||
<if test="teacherComments != null">
|
||||
teacher_comments,
|
||||
</if>
|
||||
<if test="schoolId != null">
|
||||
school_id,
|
||||
</if>
|
||||
<if test="status != null">
|
||||
status,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
#{id,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="reportName != null">
|
||||
#{reportName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="uploadTime != null">
|
||||
#{uploadTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="size != null">
|
||||
#{size,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="rating != null">
|
||||
#{rating,jdbcType=DOUBLE},
|
||||
</if>
|
||||
<if test="module != null">
|
||||
#{module,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="userid != null">
|
||||
#{userid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="url != null">
|
||||
#{url,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="socreId != null">
|
||||
#{socreId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="teacherComments != null">
|
||||
#{teacherComments,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="schoolId != null">
|
||||
#{schoolId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="status != null">
|
||||
#{status,jdbcType=INTEGER},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<select id="countByExample" parameterType="com.sztzjy.digital_credit.entity.StuPracticalTrainingReportExample" resultType="java.lang.Long">
|
||||
select count(*) from stu_practical_training_report
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
</select>
|
||||
<update id="updateByExampleSelective" parameterType="map">
|
||||
update stu_practical_training_report
|
||||
<set>
|
||||
<if test="record.id != null">
|
||||
id = #{record.id,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.reportName != null">
|
||||
report_name = #{record.reportName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.uploadTime != null">
|
||||
upload_time = #{record.uploadTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="record.size != null">
|
||||
size = #{record.size,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.rating != null">
|
||||
rating = #{record.rating,jdbcType=DOUBLE},
|
||||
</if>
|
||||
<if test="record.module != null">
|
||||
module = #{record.module,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.userid != null">
|
||||
userId = #{record.userid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.url != null">
|
||||
url = #{record.url,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.socreId != null">
|
||||
socre_id = #{record.socreId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.teacherComments != null">
|
||||
teacher_comments = #{record.teacherComments,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.schoolId != null">
|
||||
school_id = #{record.schoolId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.status != null">
|
||||
status = #{record.status,jdbcType=INTEGER},
|
||||
</if>
|
||||
</set>
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByExample" parameterType="map">
|
||||
update stu_practical_training_report
|
||||
set id = #{record.id,jdbcType=INTEGER},
|
||||
report_name = #{record.reportName,jdbcType=VARCHAR},
|
||||
upload_time = #{record.uploadTime,jdbcType=TIMESTAMP},
|
||||
size = #{record.size,jdbcType=INTEGER},
|
||||
rating = #{record.rating,jdbcType=DOUBLE},
|
||||
module = #{record.module,jdbcType=VARCHAR},
|
||||
userId = #{record.userid,jdbcType=VARCHAR},
|
||||
url = #{record.url,jdbcType=VARCHAR},
|
||||
socre_id = #{record.socreId,jdbcType=INTEGER},
|
||||
teacher_comments = #{record.teacherComments,jdbcType=VARCHAR},
|
||||
school_id = #{record.schoolId,jdbcType=VARCHAR},
|
||||
status = #{record.status,jdbcType=INTEGER}
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.sztzjy.digital_credit.entity.StuPracticalTrainingReport">
|
||||
update stu_practical_training_report
|
||||
<set>
|
||||
<if test="reportName != null">
|
||||
report_name = #{reportName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="uploadTime != null">
|
||||
upload_time = #{uploadTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="size != null">
|
||||
size = #{size,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="rating != null">
|
||||
rating = #{rating,jdbcType=DOUBLE},
|
||||
</if>
|
||||
<if test="module != null">
|
||||
module = #{module,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="userid != null">
|
||||
userId = #{userid,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="url != null">
|
||||
url = #{url,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="socreId != null">
|
||||
socre_id = #{socreId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="teacherComments != null">
|
||||
teacher_comments = #{teacherComments,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="schoolId != null">
|
||||
school_id = #{schoolId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="status != null">
|
||||
status = #{status,jdbcType=INTEGER},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.sztzjy.digital_credit.entity.StuPracticalTrainingReport">
|
||||
update stu_practical_training_report
|
||||
set report_name = #{reportName,jdbcType=VARCHAR},
|
||||
upload_time = #{uploadTime,jdbcType=TIMESTAMP},
|
||||
size = #{size,jdbcType=INTEGER},
|
||||
rating = #{rating,jdbcType=DOUBLE},
|
||||
module = #{module,jdbcType=VARCHAR},
|
||||
userId = #{userid,jdbcType=VARCHAR},
|
||||
url = #{url,jdbcType=VARCHAR},
|
||||
socre_id = #{socreId,jdbcType=INTEGER},
|
||||
teacher_comments = #{teacherComments,jdbcType=VARCHAR},
|
||||
school_id = #{schoolId,jdbcType=VARCHAR},
|
||||
status = #{status,jdbcType=INTEGER}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
|
||||
</mapper>
|
@ -0,0 +1,690 @@
|
||||
<?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.digital_credit.mapper.StuUserMapper">
|
||||
<resultMap id="BaseResultMap" type="com.sztzjy.digital_credit.entity.StuUser">
|
||||
<id column="user_id" jdbcType="VARCHAR" property="userId" />
|
||||
<result column="username" jdbcType="VARCHAR" property="username" />
|
||||
<result column="password" jdbcType="VARCHAR" property="password" />
|
||||
<result column="name" jdbcType="VARCHAR" property="name" />
|
||||
<result column="role_id" jdbcType="VARCHAR" property="roleId" />
|
||||
<result column="school_id" jdbcType="VARCHAR" property="schoolId" />
|
||||
<result column="school_name" jdbcType="VARCHAR" property="schoolName" />
|
||||
<result column="class_id" jdbcType="VARCHAR" property="classId" />
|
||||
<result column="class_name" jdbcType="VARCHAR" property="className" />
|
||||
<result column="phone" jdbcType="VARCHAR" property="phone" />
|
||||
<result column="college_id" jdbcType="VARCHAR" property="collegeId" />
|
||||
<result column="college_name" jdbcType="VARCHAR" property="collegeName" />
|
||||
<result column="student_id" jdbcType="VARCHAR" property="studentId" />
|
||||
<result column="major" jdbcType="VARCHAR" property="major" />
|
||||
<result column="major_id" jdbcType="VARCHAR" property="majorId" />
|
||||
<result column="major_name" jdbcType="VARCHAR" property="majorName" />
|
||||
<result column="five_score" jdbcType="DECIMAL" property="fiveScore" />
|
||||
<result column="artificial_intelligence_score" jdbcType="DECIMAL" property="artificialIntelligenceScore" />
|
||||
<result column="big_data_score" jdbcType="DECIMAL" property="bigDataScore" />
|
||||
<result column="cloud_compute_score" jdbcType="DECIMAL" property="cloudComputeScore" />
|
||||
<result column="internet_of_things_socre" jdbcType="DECIMAL" property="internetOfThingsSocre" />
|
||||
<result column="virtual_reality_socre" jdbcType="DECIMAL" property="virtualRealitySocre" />
|
||||
<result column="industrial_internet_socre" jdbcType="DECIMAL" property="industrialInternetSocre" />
|
||||
<result column="digital_industry_score" jdbcType="DECIMAL" property="digitalIndustryScore" />
|
||||
<result column="digital_industry_rank" jdbcType="INTEGER" property="digitalIndustryRank" />
|
||||
<result column="digital_gover_socre" jdbcType="DECIMAL" property="digitalGoverSocre" />
|
||||
<result column="digital_gover_rank" jdbcType="INTEGER" property="digitalGoverRank" />
|
||||
<result column="digital_trade_score" jdbcType="DECIMAL" property="digitalTradeScore" />
|
||||
<result column="digital_finance_score" jdbcType="DECIMAL" property="digitalFinanceScore" />
|
||||
<result column="value_data_score" jdbcType="DECIMAL" property="valueDataScore" />
|
||||
<result column="value_data_rank" jdbcType="INTEGER" property="valueDataRank" />
|
||||
<result column="industry_digital_score" jdbcType="DECIMAL" property="industryDigitalScore" />
|
||||
<result column="industry_digital_rank" jdbcType="INTEGER" property="industryDigitalRank" />
|
||||
<result column="total_rank" jdbcType="INTEGER" property="totalRank" />
|
||||
<result column="total_score" jdbcType="DECIMAL" property="totalScore" />
|
||||
</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">
|
||||
user_id, username, password, name, role_id, school_id, school_name, class_id, class_name,
|
||||
phone, college_id, college_name, student_id, major, major_id, major_name, five_score,
|
||||
artificial_intelligence_score, big_data_score, cloud_compute_score, internet_of_things_socre,
|
||||
virtual_reality_socre, industrial_internet_socre, digital_industry_score, digital_industry_rank,
|
||||
digital_gover_socre, digital_gover_rank, digital_trade_score, digital_finance_score,
|
||||
value_data_score, value_data_rank, industry_digital_score, industry_digital_rank,
|
||||
total_rank, total_score
|
||||
</sql>
|
||||
<select id="selectByExample" parameterType="com.sztzjy.digital_credit.entity.StuUserExample" resultMap="BaseResultMap">
|
||||
select
|
||||
<if test="distinct">
|
||||
distinct
|
||||
</if>
|
||||
<include refid="Base_Column_List" />
|
||||
from stu_user
|
||||
<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.String" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from stu_user
|
||||
where user_id = #{userId,jdbcType=VARCHAR}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
||||
delete from stu_user
|
||||
where user_id = #{userId,jdbcType=VARCHAR}
|
||||
</delete>
|
||||
<delete id="deleteByExample" parameterType="com.sztzjy.digital_credit.entity.StuUserExample">
|
||||
delete from stu_user
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.sztzjy.digital_credit.entity.StuUser">
|
||||
insert into stu_user (user_id, username, password,
|
||||
name, role_id, school_id,
|
||||
school_name, class_id, class_name,
|
||||
phone, college_id, college_name,
|
||||
student_id, major, major_id,
|
||||
major_name, five_score, artificial_intelligence_score,
|
||||
big_data_score, cloud_compute_score, internet_of_things_socre,
|
||||
virtual_reality_socre, industrial_internet_socre,
|
||||
digital_industry_score, digital_industry_rank,
|
||||
digital_gover_socre, digital_gover_rank, digital_trade_score,
|
||||
digital_finance_score, value_data_score, value_data_rank,
|
||||
industry_digital_score, industry_digital_rank,
|
||||
total_rank, total_score)
|
||||
values (#{userId,jdbcType=VARCHAR}, #{username,jdbcType=VARCHAR}, #{password,jdbcType=VARCHAR},
|
||||
#{name,jdbcType=VARCHAR}, #{roleId,jdbcType=VARCHAR}, #{schoolId,jdbcType=VARCHAR},
|
||||
#{schoolName,jdbcType=VARCHAR}, #{classId,jdbcType=VARCHAR}, #{className,jdbcType=VARCHAR},
|
||||
#{phone,jdbcType=VARCHAR}, #{collegeId,jdbcType=VARCHAR}, #{collegeName,jdbcType=VARCHAR},
|
||||
#{studentId,jdbcType=VARCHAR}, #{major,jdbcType=VARCHAR}, #{majorId,jdbcType=VARCHAR},
|
||||
#{majorName,jdbcType=VARCHAR}, #{fiveScore,jdbcType=DECIMAL}, #{artificialIntelligenceScore,jdbcType=DECIMAL},
|
||||
#{bigDataScore,jdbcType=DECIMAL}, #{cloudComputeScore,jdbcType=DECIMAL}, #{internetOfThingsSocre,jdbcType=DECIMAL},
|
||||
#{virtualRealitySocre,jdbcType=DECIMAL}, #{industrialInternetSocre,jdbcType=DECIMAL},
|
||||
#{digitalIndustryScore,jdbcType=DECIMAL}, #{digitalIndustryRank,jdbcType=INTEGER},
|
||||
#{digitalGoverSocre,jdbcType=DECIMAL}, #{digitalGoverRank,jdbcType=INTEGER}, #{digitalTradeScore,jdbcType=DECIMAL},
|
||||
#{digitalFinanceScore,jdbcType=DECIMAL}, #{valueDataScore,jdbcType=DECIMAL}, #{valueDataRank,jdbcType=INTEGER},
|
||||
#{industryDigitalScore,jdbcType=DECIMAL}, #{industryDigitalRank,jdbcType=INTEGER},
|
||||
#{totalRank,jdbcType=INTEGER}, #{totalScore,jdbcType=DECIMAL})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.sztzjy.digital_credit.entity.StuUser">
|
||||
insert into stu_user
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="userId != null">
|
||||
user_id,
|
||||
</if>
|
||||
<if test="username != null">
|
||||
username,
|
||||
</if>
|
||||
<if test="password != null">
|
||||
password,
|
||||
</if>
|
||||
<if test="name != null">
|
||||
name,
|
||||
</if>
|
||||
<if test="roleId != null">
|
||||
role_id,
|
||||
</if>
|
||||
<if test="schoolId != null">
|
||||
school_id,
|
||||
</if>
|
||||
<if test="schoolName != null">
|
||||
school_name,
|
||||
</if>
|
||||
<if test="classId != null">
|
||||
class_id,
|
||||
</if>
|
||||
<if test="className != null">
|
||||
class_name,
|
||||
</if>
|
||||
<if test="phone != null">
|
||||
phone,
|
||||
</if>
|
||||
<if test="collegeId != null">
|
||||
college_id,
|
||||
</if>
|
||||
<if test="collegeName != null">
|
||||
college_name,
|
||||
</if>
|
||||
<if test="studentId != null">
|
||||
student_id,
|
||||
</if>
|
||||
<if test="major != null">
|
||||
major,
|
||||
</if>
|
||||
<if test="majorId != null">
|
||||
major_id,
|
||||
</if>
|
||||
<if test="majorName != null">
|
||||
major_name,
|
||||
</if>
|
||||
<if test="fiveScore != null">
|
||||
five_score,
|
||||
</if>
|
||||
<if test="artificialIntelligenceScore != null">
|
||||
artificial_intelligence_score,
|
||||
</if>
|
||||
<if test="bigDataScore != null">
|
||||
big_data_score,
|
||||
</if>
|
||||
<if test="cloudComputeScore != null">
|
||||
cloud_compute_score,
|
||||
</if>
|
||||
<if test="internetOfThingsSocre != null">
|
||||
internet_of_things_socre,
|
||||
</if>
|
||||
<if test="virtualRealitySocre != null">
|
||||
virtual_reality_socre,
|
||||
</if>
|
||||
<if test="industrialInternetSocre != null">
|
||||
industrial_internet_socre,
|
||||
</if>
|
||||
<if test="digitalIndustryScore != null">
|
||||
digital_industry_score,
|
||||
</if>
|
||||
<if test="digitalIndustryRank != null">
|
||||
digital_industry_rank,
|
||||
</if>
|
||||
<if test="digitalGoverSocre != null">
|
||||
digital_gover_socre,
|
||||
</if>
|
||||
<if test="digitalGoverRank != null">
|
||||
digital_gover_rank,
|
||||
</if>
|
||||
<if test="digitalTradeScore != null">
|
||||
digital_trade_score,
|
||||
</if>
|
||||
<if test="digitalFinanceScore != null">
|
||||
digital_finance_score,
|
||||
</if>
|
||||
<if test="valueDataScore != null">
|
||||
value_data_score,
|
||||
</if>
|
||||
<if test="valueDataRank != null">
|
||||
value_data_rank,
|
||||
</if>
|
||||
<if test="industryDigitalScore != null">
|
||||
industry_digital_score,
|
||||
</if>
|
||||
<if test="industryDigitalRank != null">
|
||||
industry_digital_rank,
|
||||
</if>
|
||||
<if test="totalRank != null">
|
||||
total_rank,
|
||||
</if>
|
||||
<if test="totalScore != null">
|
||||
total_score,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="userId != null">
|
||||
#{userId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="username != null">
|
||||
#{username,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="password != null">
|
||||
#{password,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="name != null">
|
||||
#{name,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="roleId != null">
|
||||
#{roleId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="schoolId != null">
|
||||
#{schoolId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="schoolName != null">
|
||||
#{schoolName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="classId != null">
|
||||
#{classId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="className != null">
|
||||
#{className,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="phone != null">
|
||||
#{phone,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="collegeId != null">
|
||||
#{collegeId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="collegeName != null">
|
||||
#{collegeName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="studentId != null">
|
||||
#{studentId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="major != null">
|
||||
#{major,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="majorId != null">
|
||||
#{majorId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="majorName != null">
|
||||
#{majorName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fiveScore != null">
|
||||
#{fiveScore,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="artificialIntelligenceScore != null">
|
||||
#{artificialIntelligenceScore,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="bigDataScore != null">
|
||||
#{bigDataScore,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="cloudComputeScore != null">
|
||||
#{cloudComputeScore,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="internetOfThingsSocre != null">
|
||||
#{internetOfThingsSocre,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="virtualRealitySocre != null">
|
||||
#{virtualRealitySocre,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="industrialInternetSocre != null">
|
||||
#{industrialInternetSocre,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="digitalIndustryScore != null">
|
||||
#{digitalIndustryScore,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="digitalIndustryRank != null">
|
||||
#{digitalIndustryRank,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="digitalGoverSocre != null">
|
||||
#{digitalGoverSocre,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="digitalGoverRank != null">
|
||||
#{digitalGoverRank,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="digitalTradeScore != null">
|
||||
#{digitalTradeScore,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="digitalFinanceScore != null">
|
||||
#{digitalFinanceScore,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="valueDataScore != null">
|
||||
#{valueDataScore,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="valueDataRank != null">
|
||||
#{valueDataRank,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="industryDigitalScore != null">
|
||||
#{industryDigitalScore,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="industryDigitalRank != null">
|
||||
#{industryDigitalRank,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="totalRank != null">
|
||||
#{totalRank,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="totalScore != null">
|
||||
#{totalScore,jdbcType=DECIMAL},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<select id="countByExample" parameterType="com.sztzjy.digital_credit.entity.StuUserExample" resultType="java.lang.Long">
|
||||
select count(*) from stu_user
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
</select>
|
||||
<update id="updateByExampleSelective" parameterType="map">
|
||||
update stu_user
|
||||
<set>
|
||||
<if test="record.userId != null">
|
||||
user_id = #{record.userId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.username != null">
|
||||
username = #{record.username,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.password != null">
|
||||
password = #{record.password,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.name != null">
|
||||
name = #{record.name,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.roleId != null">
|
||||
role_id = #{record.roleId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.schoolId != null">
|
||||
school_id = #{record.schoolId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.schoolName != null">
|
||||
school_name = #{record.schoolName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.classId != null">
|
||||
class_id = #{record.classId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.className != null">
|
||||
class_name = #{record.className,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.phone != null">
|
||||
phone = #{record.phone,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.collegeId != null">
|
||||
college_id = #{record.collegeId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.collegeName != null">
|
||||
college_name = #{record.collegeName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.studentId != null">
|
||||
student_id = #{record.studentId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.major != null">
|
||||
major = #{record.major,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.majorId != null">
|
||||
major_id = #{record.majorId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.majorName != null">
|
||||
major_name = #{record.majorName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.fiveScore != null">
|
||||
five_score = #{record.fiveScore,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="record.artificialIntelligenceScore != null">
|
||||
artificial_intelligence_score = #{record.artificialIntelligenceScore,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="record.bigDataScore != null">
|
||||
big_data_score = #{record.bigDataScore,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="record.cloudComputeScore != null">
|
||||
cloud_compute_score = #{record.cloudComputeScore,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="record.internetOfThingsSocre != null">
|
||||
internet_of_things_socre = #{record.internetOfThingsSocre,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="record.virtualRealitySocre != null">
|
||||
virtual_reality_socre = #{record.virtualRealitySocre,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="record.industrialInternetSocre != null">
|
||||
industrial_internet_socre = #{record.industrialInternetSocre,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="record.digitalIndustryScore != null">
|
||||
digital_industry_score = #{record.digitalIndustryScore,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="record.digitalIndustryRank != null">
|
||||
digital_industry_rank = #{record.digitalIndustryRank,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.digitalGoverSocre != null">
|
||||
digital_gover_socre = #{record.digitalGoverSocre,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="record.digitalGoverRank != null">
|
||||
digital_gover_rank = #{record.digitalGoverRank,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.digitalTradeScore != null">
|
||||
digital_trade_score = #{record.digitalTradeScore,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="record.digitalFinanceScore != null">
|
||||
digital_finance_score = #{record.digitalFinanceScore,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="record.valueDataScore != null">
|
||||
value_data_score = #{record.valueDataScore,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="record.valueDataRank != null">
|
||||
value_data_rank = #{record.valueDataRank,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.industryDigitalScore != null">
|
||||
industry_digital_score = #{record.industryDigitalScore,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="record.industryDigitalRank != null">
|
||||
industry_digital_rank = #{record.industryDigitalRank,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.totalRank != null">
|
||||
total_rank = #{record.totalRank,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.totalScore != null">
|
||||
total_score = #{record.totalScore,jdbcType=DECIMAL},
|
||||
</if>
|
||||
</set>
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByExample" parameterType="map">
|
||||
update stu_user
|
||||
set user_id = #{record.userId,jdbcType=VARCHAR},
|
||||
username = #{record.username,jdbcType=VARCHAR},
|
||||
password = #{record.password,jdbcType=VARCHAR},
|
||||
name = #{record.name,jdbcType=VARCHAR},
|
||||
role_id = #{record.roleId,jdbcType=VARCHAR},
|
||||
school_id = #{record.schoolId,jdbcType=VARCHAR},
|
||||
school_name = #{record.schoolName,jdbcType=VARCHAR},
|
||||
class_id = #{record.classId,jdbcType=VARCHAR},
|
||||
class_name = #{record.className,jdbcType=VARCHAR},
|
||||
phone = #{record.phone,jdbcType=VARCHAR},
|
||||
college_id = #{record.collegeId,jdbcType=VARCHAR},
|
||||
college_name = #{record.collegeName,jdbcType=VARCHAR},
|
||||
student_id = #{record.studentId,jdbcType=VARCHAR},
|
||||
major = #{record.major,jdbcType=VARCHAR},
|
||||
major_id = #{record.majorId,jdbcType=VARCHAR},
|
||||
major_name = #{record.majorName,jdbcType=VARCHAR},
|
||||
five_score = #{record.fiveScore,jdbcType=DECIMAL},
|
||||
artificial_intelligence_score = #{record.artificialIntelligenceScore,jdbcType=DECIMAL},
|
||||
big_data_score = #{record.bigDataScore,jdbcType=DECIMAL},
|
||||
cloud_compute_score = #{record.cloudComputeScore,jdbcType=DECIMAL},
|
||||
internet_of_things_socre = #{record.internetOfThingsSocre,jdbcType=DECIMAL},
|
||||
virtual_reality_socre = #{record.virtualRealitySocre,jdbcType=DECIMAL},
|
||||
industrial_internet_socre = #{record.industrialInternetSocre,jdbcType=DECIMAL},
|
||||
digital_industry_score = #{record.digitalIndustryScore,jdbcType=DECIMAL},
|
||||
digital_industry_rank = #{record.digitalIndustryRank,jdbcType=INTEGER},
|
||||
digital_gover_socre = #{record.digitalGoverSocre,jdbcType=DECIMAL},
|
||||
digital_gover_rank = #{record.digitalGoverRank,jdbcType=INTEGER},
|
||||
digital_trade_score = #{record.digitalTradeScore,jdbcType=DECIMAL},
|
||||
digital_finance_score = #{record.digitalFinanceScore,jdbcType=DECIMAL},
|
||||
value_data_score = #{record.valueDataScore,jdbcType=DECIMAL},
|
||||
value_data_rank = #{record.valueDataRank,jdbcType=INTEGER},
|
||||
industry_digital_score = #{record.industryDigitalScore,jdbcType=DECIMAL},
|
||||
industry_digital_rank = #{record.industryDigitalRank,jdbcType=INTEGER},
|
||||
total_rank = #{record.totalRank,jdbcType=INTEGER},
|
||||
total_score = #{record.totalScore,jdbcType=DECIMAL}
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.sztzjy.digital_credit.entity.StuUser">
|
||||
update stu_user
|
||||
<set>
|
||||
<if test="username != null">
|
||||
username = #{username,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="password != null">
|
||||
password = #{password,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="name != null">
|
||||
name = #{name,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="roleId != null">
|
||||
role_id = #{roleId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="schoolId != null">
|
||||
school_id = #{schoolId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="schoolName != null">
|
||||
school_name = #{schoolName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="classId != null">
|
||||
class_id = #{classId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="className != null">
|
||||
class_name = #{className,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="phone != null">
|
||||
phone = #{phone,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="collegeId != null">
|
||||
college_id = #{collegeId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="collegeName != null">
|
||||
college_name = #{collegeName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="studentId != null">
|
||||
student_id = #{studentId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="major != null">
|
||||
major = #{major,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="majorId != null">
|
||||
major_id = #{majorId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="majorName != null">
|
||||
major_name = #{majorName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fiveScore != null">
|
||||
five_score = #{fiveScore,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="artificialIntelligenceScore != null">
|
||||
artificial_intelligence_score = #{artificialIntelligenceScore,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="bigDataScore != null">
|
||||
big_data_score = #{bigDataScore,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="cloudComputeScore != null">
|
||||
cloud_compute_score = #{cloudComputeScore,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="internetOfThingsSocre != null">
|
||||
internet_of_things_socre = #{internetOfThingsSocre,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="virtualRealitySocre != null">
|
||||
virtual_reality_socre = #{virtualRealitySocre,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="industrialInternetSocre != null">
|
||||
industrial_internet_socre = #{industrialInternetSocre,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="digitalIndustryScore != null">
|
||||
digital_industry_score = #{digitalIndustryScore,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="digitalIndustryRank != null">
|
||||
digital_industry_rank = #{digitalIndustryRank,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="digitalGoverSocre != null">
|
||||
digital_gover_socre = #{digitalGoverSocre,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="digitalGoverRank != null">
|
||||
digital_gover_rank = #{digitalGoverRank,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="digitalTradeScore != null">
|
||||
digital_trade_score = #{digitalTradeScore,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="digitalFinanceScore != null">
|
||||
digital_finance_score = #{digitalFinanceScore,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="valueDataScore != null">
|
||||
value_data_score = #{valueDataScore,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="valueDataRank != null">
|
||||
value_data_rank = #{valueDataRank,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="industryDigitalScore != null">
|
||||
industry_digital_score = #{industryDigitalScore,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="industryDigitalRank != null">
|
||||
industry_digital_rank = #{industryDigitalRank,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="totalRank != null">
|
||||
total_rank = #{totalRank,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="totalScore != null">
|
||||
total_score = #{totalScore,jdbcType=DECIMAL},
|
||||
</if>
|
||||
</set>
|
||||
where user_id = #{userId,jdbcType=VARCHAR}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.sztzjy.digital_credit.entity.StuUser">
|
||||
update stu_user
|
||||
set username = #{username,jdbcType=VARCHAR},
|
||||
password = #{password,jdbcType=VARCHAR},
|
||||
name = #{name,jdbcType=VARCHAR},
|
||||
role_id = #{roleId,jdbcType=VARCHAR},
|
||||
school_id = #{schoolId,jdbcType=VARCHAR},
|
||||
school_name = #{schoolName,jdbcType=VARCHAR},
|
||||
class_id = #{classId,jdbcType=VARCHAR},
|
||||
class_name = #{className,jdbcType=VARCHAR},
|
||||
phone = #{phone,jdbcType=VARCHAR},
|
||||
college_id = #{collegeId,jdbcType=VARCHAR},
|
||||
college_name = #{collegeName,jdbcType=VARCHAR},
|
||||
student_id = #{studentId,jdbcType=VARCHAR},
|
||||
major = #{major,jdbcType=VARCHAR},
|
||||
major_id = #{majorId,jdbcType=VARCHAR},
|
||||
major_name = #{majorName,jdbcType=VARCHAR},
|
||||
five_score = #{fiveScore,jdbcType=DECIMAL},
|
||||
artificial_intelligence_score = #{artificialIntelligenceScore,jdbcType=DECIMAL},
|
||||
big_data_score = #{bigDataScore,jdbcType=DECIMAL},
|
||||
cloud_compute_score = #{cloudComputeScore,jdbcType=DECIMAL},
|
||||
internet_of_things_socre = #{internetOfThingsSocre,jdbcType=DECIMAL},
|
||||
virtual_reality_socre = #{virtualRealitySocre,jdbcType=DECIMAL},
|
||||
industrial_internet_socre = #{industrialInternetSocre,jdbcType=DECIMAL},
|
||||
digital_industry_score = #{digitalIndustryScore,jdbcType=DECIMAL},
|
||||
digital_industry_rank = #{digitalIndustryRank,jdbcType=INTEGER},
|
||||
digital_gover_socre = #{digitalGoverSocre,jdbcType=DECIMAL},
|
||||
digital_gover_rank = #{digitalGoverRank,jdbcType=INTEGER},
|
||||
digital_trade_score = #{digitalTradeScore,jdbcType=DECIMAL},
|
||||
digital_finance_score = #{digitalFinanceScore,jdbcType=DECIMAL},
|
||||
value_data_score = #{valueDataScore,jdbcType=DECIMAL},
|
||||
value_data_rank = #{valueDataRank,jdbcType=INTEGER},
|
||||
industry_digital_score = #{industryDigitalScore,jdbcType=DECIMAL},
|
||||
industry_digital_rank = #{industryDigitalRank,jdbcType=INTEGER},
|
||||
total_rank = #{totalRank,jdbcType=INTEGER},
|
||||
total_score = #{totalScore,jdbcType=DECIMAL}
|
||||
where user_id = #{userId,jdbcType=VARCHAR}
|
||||
</update>
|
||||
|
||||
</mapper>
|
Loading…
Reference in New Issue