From 5891fef705337926c98b835fa40c6f079c557077 Mon Sep 17 00:00:00 2001 From: yz <3614508250@qq.com> Date: Thu, 9 May 2024 15:04:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E7=94=A8=E6=88=B7=E8=A1=A8?= =?UTF-8?q?=E5=AE=9E=E4=BD=93=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../forex/trading_trading/entity/StuUser.java | 333 ++++++ .../entity/StuUserExample.java | 991 ++++++++++++++++++ .../mappers/StuUserMapper.java | 96 ++ .../service/ScheduledTask.java | 4 +- src/main/resources/mappers/StuUserMapper.xml | 366 +++++++ 5 files changed, 1788 insertions(+), 2 deletions(-) create mode 100644 src/main/java/com/sztzjy/forex/trading_trading/entity/StuUser.java create mode 100644 src/main/java/com/sztzjy/forex/trading_trading/entity/StuUserExample.java create mode 100644 src/main/java/com/sztzjy/forex/trading_trading/mappers/StuUserMapper.java create mode 100644 src/main/resources/mappers/StuUserMapper.xml diff --git a/src/main/java/com/sztzjy/forex/trading_trading/entity/StuUser.java b/src/main/java/com/sztzjy/forex/trading_trading/entity/StuUser.java new file mode 100644 index 0000000..ecae81a --- /dev/null +++ b/src/main/java/com/sztzjy/forex/trading_trading/entity/StuUser.java @@ -0,0 +1,333 @@ +package com.sztzjy.forex.trading_trading.entity; + +public class StuUser { + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column stu_user.user_id + * + * @mbg.generated Thu May 09 15:03:21 CST 2024 + */ + private String userId; + + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column stu_user.username + * + * @mbg.generated Thu May 09 15:03:21 CST 2024 + */ + private String username; + + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column stu_user.name + * + * @mbg.generated Thu May 09 15:03:21 CST 2024 + */ + private String name; + + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column stu_user.password + * + * @mbg.generated Thu May 09 15:03:21 CST 2024 + */ + private String password; + + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column stu_user.role_id + * + * @mbg.generated Thu May 09 15:03:21 CST 2024 + */ + private Integer roleId; + + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column stu_user.class_id + * + * @mbg.generated Thu May 09 15:03:21 CST 2024 + */ + private String classId; + + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column stu_user.class_name + * + * @mbg.generated Thu May 09 15:03:21 CST 2024 + */ + private String className; + + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column stu_user.major + * + * @mbg.generated Thu May 09 15:03:21 CST 2024 + */ + private String major; + + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column stu_user.school_id + * + * @mbg.generated Thu May 09 15:03:21 CST 2024 + */ + private String schoolId; + + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column stu_user.school_name + * + * @mbg.generated Thu May 09 15:03:21 CST 2024 + */ + private String schoolName; + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column stu_user.user_id + * + * @return the value of stu_user.user_id + * + * @mbg.generated Thu May 09 15:03:21 CST 2024 + */ + public String getUserId() { + return userId; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column stu_user.user_id + * + * @param userId the value for stu_user.user_id + * + * @mbg.generated Thu May 09 15:03:21 CST 2024 + */ + public void setUserId(String userId) { + this.userId = userId == null ? null : userId.trim(); + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column stu_user.username + * + * @return the value of stu_user.username + * + * @mbg.generated Thu May 09 15:03:21 CST 2024 + */ + public String getUsername() { + return username; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column stu_user.username + * + * @param username the value for stu_user.username + * + * @mbg.generated Thu May 09 15:03:21 CST 2024 + */ + public void setUsername(String username) { + this.username = username == null ? null : username.trim(); + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column stu_user.name + * + * @return the value of stu_user.name + * + * @mbg.generated Thu May 09 15:03:21 CST 2024 + */ + public String getName() { + return name; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column stu_user.name + * + * @param name the value for stu_user.name + * + * @mbg.generated Thu May 09 15:03:21 CST 2024 + */ + public void setName(String name) { + this.name = name == null ? null : name.trim(); + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column stu_user.password + * + * @return the value of stu_user.password + * + * @mbg.generated Thu May 09 15:03:21 CST 2024 + */ + public String getPassword() { + return password; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column stu_user.password + * + * @param password the value for stu_user.password + * + * @mbg.generated Thu May 09 15:03:21 CST 2024 + */ + public void setPassword(String password) { + this.password = password == null ? null : password.trim(); + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column stu_user.role_id + * + * @return the value of stu_user.role_id + * + * @mbg.generated Thu May 09 15:03:21 CST 2024 + */ + public Integer getRoleId() { + return roleId; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column stu_user.role_id + * + * @param roleId the value for stu_user.role_id + * + * @mbg.generated Thu May 09 15:03:21 CST 2024 + */ + public void setRoleId(Integer roleId) { + this.roleId = roleId; + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column stu_user.class_id + * + * @return the value of stu_user.class_id + * + * @mbg.generated Thu May 09 15:03:21 CST 2024 + */ + public String getClassId() { + return classId; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column stu_user.class_id + * + * @param classId the value for stu_user.class_id + * + * @mbg.generated Thu May 09 15:03:21 CST 2024 + */ + public void setClassId(String classId) { + this.classId = classId == null ? null : classId.trim(); + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column stu_user.class_name + * + * @return the value of stu_user.class_name + * + * @mbg.generated Thu May 09 15:03:21 CST 2024 + */ + public String getClassName() { + return className; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column stu_user.class_name + * + * @param className the value for stu_user.class_name + * + * @mbg.generated Thu May 09 15:03:21 CST 2024 + */ + public void setClassName(String className) { + this.className = className == null ? null : className.trim(); + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column stu_user.major + * + * @return the value of stu_user.major + * + * @mbg.generated Thu May 09 15:03:21 CST 2024 + */ + public String getMajor() { + return major; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column stu_user.major + * + * @param major the value for stu_user.major + * + * @mbg.generated Thu May 09 15:03:21 CST 2024 + */ + public void setMajor(String major) { + this.major = major == null ? null : major.trim(); + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column stu_user.school_id + * + * @return the value of stu_user.school_id + * + * @mbg.generated Thu May 09 15:03:21 CST 2024 + */ + public String getSchoolId() { + return schoolId; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column stu_user.school_id + * + * @param schoolId the value for stu_user.school_id + * + * @mbg.generated Thu May 09 15:03:21 CST 2024 + */ + public void setSchoolId(String schoolId) { + this.schoolId = schoolId == null ? null : schoolId.trim(); + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column stu_user.school_name + * + * @return the value of stu_user.school_name + * + * @mbg.generated Thu May 09 15:03:21 CST 2024 + */ + public String getSchoolName() { + return schoolName; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column stu_user.school_name + * + * @param schoolName the value for stu_user.school_name + * + * @mbg.generated Thu May 09 15:03:21 CST 2024 + */ + public void setSchoolName(String schoolName) { + this.schoolName = schoolName == null ? null : schoolName.trim(); + } +} \ No newline at end of file diff --git a/src/main/java/com/sztzjy/forex/trading_trading/entity/StuUserExample.java b/src/main/java/com/sztzjy/forex/trading_trading/entity/StuUserExample.java new file mode 100644 index 0000000..eaef397 --- /dev/null +++ b/src/main/java/com/sztzjy/forex/trading_trading/entity/StuUserExample.java @@ -0,0 +1,991 @@ +package com.sztzjy.forex.trading_trading.entity; + +import java.util.ArrayList; +import java.util.List; + +public class StuUserExample { + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table stu_user + * + * @mbg.generated Thu May 09 15:03:21 CST 2024 + */ + protected String orderByClause; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table stu_user + * + * @mbg.generated Thu May 09 15:03:21 CST 2024 + */ + protected boolean distinct; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table stu_user + * + * @mbg.generated Thu May 09 15:03:21 CST 2024 + */ + protected List oredCriteria; + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table stu_user + * + * @mbg.generated Thu May 09 15:03:21 CST 2024 + */ + public StuUserExample() { + oredCriteria = new ArrayList<>(); + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table stu_user + * + * @mbg.generated Thu May 09 15:03:21 CST 2024 + */ + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table stu_user + * + * @mbg.generated Thu May 09 15:03:21 CST 2024 + */ + public String getOrderByClause() { + return orderByClause; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table stu_user + * + * @mbg.generated Thu May 09 15:03:21 CST 2024 + */ + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table stu_user + * + * @mbg.generated Thu May 09 15:03:21 CST 2024 + */ + public boolean isDistinct() { + return distinct; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table stu_user + * + * @mbg.generated Thu May 09 15:03:21 CST 2024 + */ + public List getOredCriteria() { + return oredCriteria; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table stu_user + * + * @mbg.generated Thu May 09 15:03:21 CST 2024 + */ + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table stu_user + * + * @mbg.generated Thu May 09 15:03:21 CST 2024 + */ + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table stu_user + * + * @mbg.generated Thu May 09 15:03:21 CST 2024 + */ + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table stu_user + * + * @mbg.generated Thu May 09 15:03:21 CST 2024 + */ + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table stu_user + * + * @mbg.generated Thu May 09 15:03:21 CST 2024 + */ + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + /** + * This class was generated by MyBatis Generator. + * This class corresponds to the database table stu_user + * + * @mbg.generated Thu May 09 15:03:21 CST 2024 + */ + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 andUserIdIsNull() { + addCriterion("user_id is null"); + return (Criteria) this; + } + + public Criteria andUserIdIsNotNull() { + addCriterion("user_id is not null"); + return (Criteria) this; + } + + public Criteria andUserIdEqualTo(String value) { + addCriterion("user_id =", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdNotEqualTo(String value) { + addCriterion("user_id <>", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdGreaterThan(String value) { + addCriterion("user_id >", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdGreaterThanOrEqualTo(String value) { + addCriterion("user_id >=", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdLessThan(String value) { + addCriterion("user_id <", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdLessThanOrEqualTo(String value) { + addCriterion("user_id <=", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdLike(String value) { + addCriterion("user_id like", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdNotLike(String value) { + addCriterion("user_id not like", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdIn(List values) { + addCriterion("user_id in", values, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdNotIn(List values) { + addCriterion("user_id not in", values, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdBetween(String value1, String value2) { + addCriterion("user_id between", value1, value2, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdNotBetween(String value1, String value2) { + addCriterion("user_id not between", value1, value2, "userId"); + return (Criteria) this; + } + + public Criteria andUsernameIsNull() { + addCriterion("username is null"); + return (Criteria) this; + } + + public Criteria andUsernameIsNotNull() { + addCriterion("username is not null"); + return (Criteria) this; + } + + public Criteria andUsernameEqualTo(String value) { + addCriterion("username =", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameNotEqualTo(String value) { + addCriterion("username <>", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameGreaterThan(String value) { + addCriterion("username >", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameGreaterThanOrEqualTo(String value) { + addCriterion("username >=", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameLessThan(String value) { + addCriterion("username <", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameLessThanOrEqualTo(String value) { + addCriterion("username <=", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameLike(String value) { + addCriterion("username like", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameNotLike(String value) { + addCriterion("username not like", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameIn(List values) { + addCriterion("username in", values, "username"); + return (Criteria) this; + } + + public Criteria andUsernameNotIn(List values) { + addCriterion("username not in", values, "username"); + return (Criteria) this; + } + + public Criteria andUsernameBetween(String value1, String value2) { + addCriterion("username between", value1, value2, "username"); + return (Criteria) this; + } + + public Criteria andUsernameNotBetween(String value1, String value2) { + addCriterion("username not between", value1, value2, "username"); + return (Criteria) this; + } + + public Criteria andNameIsNull() { + addCriterion("name is null"); + return (Criteria) this; + } + + public Criteria andNameIsNotNull() { + addCriterion("name is not null"); + return (Criteria) this; + } + + public Criteria andNameEqualTo(String value) { + addCriterion("name =", value, "name"); + return (Criteria) this; + } + + public Criteria andNameNotEqualTo(String value) { + addCriterion("name <>", value, "name"); + return (Criteria) this; + } + + public Criteria andNameGreaterThan(String value) { + addCriterion("name >", value, "name"); + return (Criteria) this; + } + + public Criteria andNameGreaterThanOrEqualTo(String value) { + addCriterion("name >=", value, "name"); + return (Criteria) this; + } + + public Criteria andNameLessThan(String value) { + addCriterion("name <", value, "name"); + return (Criteria) this; + } + + public Criteria andNameLessThanOrEqualTo(String value) { + addCriterion("name <=", value, "name"); + return (Criteria) this; + } + + public Criteria andNameLike(String value) { + addCriterion("name like", value, "name"); + return (Criteria) this; + } + + public Criteria andNameNotLike(String value) { + addCriterion("name not like", value, "name"); + return (Criteria) this; + } + + public Criteria andNameIn(List values) { + addCriterion("name in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameNotIn(List values) { + addCriterion("name not in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameBetween(String value1, String value2) { + addCriterion("name between", value1, value2, "name"); + return (Criteria) this; + } + + public Criteria andNameNotBetween(String value1, String value2) { + addCriterion("name not between", value1, value2, "name"); + return (Criteria) this; + } + + public Criteria andPasswordIsNull() { + addCriterion("password is null"); + return (Criteria) this; + } + + public Criteria andPasswordIsNotNull() { + addCriterion("password is not null"); + return (Criteria) this; + } + + public Criteria andPasswordEqualTo(String value) { + addCriterion("password =", value, "password"); + return (Criteria) this; + } + + public Criteria andPasswordNotEqualTo(String value) { + addCriterion("password <>", value, "password"); + return (Criteria) this; + } + + public Criteria andPasswordGreaterThan(String value) { + addCriterion("password >", value, "password"); + return (Criteria) this; + } + + public Criteria andPasswordGreaterThanOrEqualTo(String value) { + addCriterion("password >=", value, "password"); + return (Criteria) this; + } + + public Criteria andPasswordLessThan(String value) { + addCriterion("password <", value, "password"); + return (Criteria) this; + } + + public Criteria andPasswordLessThanOrEqualTo(String value) { + addCriterion("password <=", value, "password"); + return (Criteria) this; + } + + public Criteria andPasswordLike(String value) { + addCriterion("password like", value, "password"); + return (Criteria) this; + } + + public Criteria andPasswordNotLike(String value) { + addCriterion("password not like", value, "password"); + return (Criteria) this; + } + + public Criteria andPasswordIn(List values) { + addCriterion("password in", values, "password"); + return (Criteria) this; + } + + public Criteria andPasswordNotIn(List values) { + addCriterion("password not in", values, "password"); + return (Criteria) this; + } + + public Criteria andPasswordBetween(String value1, String value2) { + addCriterion("password between", value1, value2, "password"); + return (Criteria) this; + } + + public Criteria andPasswordNotBetween(String value1, String value2) { + addCriterion("password not between", value1, value2, "password"); + return (Criteria) this; + } + + public Criteria andRoleIdIsNull() { + addCriterion("role_id is null"); + return (Criteria) this; + } + + public Criteria andRoleIdIsNotNull() { + addCriterion("role_id is not null"); + return (Criteria) this; + } + + public Criteria andRoleIdEqualTo(Integer value) { + addCriterion("role_id =", value, "roleId"); + return (Criteria) this; + } + + public Criteria andRoleIdNotEqualTo(Integer value) { + addCriterion("role_id <>", value, "roleId"); + return (Criteria) this; + } + + public Criteria andRoleIdGreaterThan(Integer value) { + addCriterion("role_id >", value, "roleId"); + return (Criteria) this; + } + + public Criteria andRoleIdGreaterThanOrEqualTo(Integer value) { + addCriterion("role_id >=", value, "roleId"); + return (Criteria) this; + } + + public Criteria andRoleIdLessThan(Integer value) { + addCriterion("role_id <", value, "roleId"); + return (Criteria) this; + } + + public Criteria andRoleIdLessThanOrEqualTo(Integer value) { + addCriterion("role_id <=", value, "roleId"); + return (Criteria) this; + } + + public Criteria andRoleIdIn(List values) { + addCriterion("role_id in", values, "roleId"); + return (Criteria) this; + } + + public Criteria andRoleIdNotIn(List values) { + addCriterion("role_id not in", values, "roleId"); + return (Criteria) this; + } + + public Criteria andRoleIdBetween(Integer value1, Integer value2) { + addCriterion("role_id between", value1, value2, "roleId"); + return (Criteria) this; + } + + public Criteria andRoleIdNotBetween(Integer value1, Integer value2) { + addCriterion("role_id not between", value1, value2, "roleId"); + return (Criteria) this; + } + + public Criteria andClassIdIsNull() { + addCriterion("class_id is null"); + return (Criteria) this; + } + + public Criteria andClassIdIsNotNull() { + addCriterion("class_id is not null"); + return (Criteria) this; + } + + public Criteria andClassIdEqualTo(String value) { + addCriterion("class_id =", value, "classId"); + return (Criteria) this; + } + + public Criteria andClassIdNotEqualTo(String value) { + addCriterion("class_id <>", value, "classId"); + return (Criteria) this; + } + + public Criteria andClassIdGreaterThan(String value) { + addCriterion("class_id >", value, "classId"); + return (Criteria) this; + } + + public Criteria andClassIdGreaterThanOrEqualTo(String value) { + addCriterion("class_id >=", value, "classId"); + return (Criteria) this; + } + + public Criteria andClassIdLessThan(String value) { + addCriterion("class_id <", value, "classId"); + return (Criteria) this; + } + + public Criteria andClassIdLessThanOrEqualTo(String value) { + addCriterion("class_id <=", value, "classId"); + return (Criteria) this; + } + + public Criteria andClassIdLike(String value) { + addCriterion("class_id like", value, "classId"); + return (Criteria) this; + } + + public Criteria andClassIdNotLike(String value) { + addCriterion("class_id not like", value, "classId"); + return (Criteria) this; + } + + public Criteria andClassIdIn(List values) { + addCriterion("class_id in", values, "classId"); + return (Criteria) this; + } + + public Criteria andClassIdNotIn(List values) { + addCriterion("class_id not in", values, "classId"); + return (Criteria) this; + } + + public Criteria andClassIdBetween(String value1, String value2) { + addCriterion("class_id between", value1, value2, "classId"); + return (Criteria) this; + } + + public Criteria andClassIdNotBetween(String value1, String value2) { + addCriterion("class_id not between", value1, value2, "classId"); + return (Criteria) this; + } + + public Criteria andClassNameIsNull() { + addCriterion("class_name is null"); + return (Criteria) this; + } + + public Criteria andClassNameIsNotNull() { + addCriterion("class_name is not null"); + return (Criteria) this; + } + + public Criteria andClassNameEqualTo(String value) { + addCriterion("class_name =", value, "className"); + return (Criteria) this; + } + + public Criteria andClassNameNotEqualTo(String value) { + addCriterion("class_name <>", value, "className"); + return (Criteria) this; + } + + public Criteria andClassNameGreaterThan(String value) { + addCriterion("class_name >", value, "className"); + return (Criteria) this; + } + + public Criteria andClassNameGreaterThanOrEqualTo(String value) { + addCriterion("class_name >=", value, "className"); + return (Criteria) this; + } + + public Criteria andClassNameLessThan(String value) { + addCriterion("class_name <", value, "className"); + return (Criteria) this; + } + + public Criteria andClassNameLessThanOrEqualTo(String value) { + addCriterion("class_name <=", value, "className"); + return (Criteria) this; + } + + public Criteria andClassNameLike(String value) { + addCriterion("class_name like", value, "className"); + return (Criteria) this; + } + + public Criteria andClassNameNotLike(String value) { + addCriterion("class_name not like", value, "className"); + return (Criteria) this; + } + + public Criteria andClassNameIn(List values) { + addCriterion("class_name in", values, "className"); + return (Criteria) this; + } + + public Criteria andClassNameNotIn(List values) { + addCriterion("class_name not in", values, "className"); + return (Criteria) this; + } + + public Criteria andClassNameBetween(String value1, String value2) { + addCriterion("class_name between", value1, value2, "className"); + return (Criteria) this; + } + + public Criteria andClassNameNotBetween(String value1, String value2) { + addCriterion("class_name not between", value1, value2, "className"); + return (Criteria) this; + } + + public Criteria andMajorIsNull() { + addCriterion("major is null"); + return (Criteria) this; + } + + public Criteria andMajorIsNotNull() { + addCriterion("major is not null"); + return (Criteria) this; + } + + public Criteria andMajorEqualTo(String value) { + addCriterion("major =", value, "major"); + return (Criteria) this; + } + + public Criteria andMajorNotEqualTo(String value) { + addCriterion("major <>", value, "major"); + return (Criteria) this; + } + + public Criteria andMajorGreaterThan(String value) { + addCriterion("major >", value, "major"); + return (Criteria) this; + } + + public Criteria andMajorGreaterThanOrEqualTo(String value) { + addCriterion("major >=", value, "major"); + return (Criteria) this; + } + + public Criteria andMajorLessThan(String value) { + addCriterion("major <", value, "major"); + return (Criteria) this; + } + + public Criteria andMajorLessThanOrEqualTo(String value) { + addCriterion("major <=", value, "major"); + return (Criteria) this; + } + + public Criteria andMajorLike(String value) { + addCriterion("major like", value, "major"); + return (Criteria) this; + } + + public Criteria andMajorNotLike(String value) { + addCriterion("major not like", value, "major"); + return (Criteria) this; + } + + public Criteria andMajorIn(List values) { + addCriterion("major in", values, "major"); + return (Criteria) this; + } + + public Criteria andMajorNotIn(List values) { + addCriterion("major not in", values, "major"); + return (Criteria) this; + } + + public Criteria andMajorBetween(String value1, String value2) { + addCriterion("major between", value1, value2, "major"); + return (Criteria) this; + } + + public Criteria andMajorNotBetween(String value1, String value2) { + addCriterion("major not between", value1, value2, "major"); + 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 values) { + addCriterion("school_id in", values, "schoolId"); + return (Criteria) this; + } + + public Criteria andSchoolIdNotIn(List 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 andSchoolNameIsNull() { + addCriterion("school_name is null"); + return (Criteria) this; + } + + public Criteria andSchoolNameIsNotNull() { + addCriterion("school_name is not null"); + return (Criteria) this; + } + + public Criteria andSchoolNameEqualTo(String value) { + addCriterion("school_name =", value, "schoolName"); + return (Criteria) this; + } + + public Criteria andSchoolNameNotEqualTo(String value) { + addCriterion("school_name <>", value, "schoolName"); + return (Criteria) this; + } + + public Criteria andSchoolNameGreaterThan(String value) { + addCriterion("school_name >", value, "schoolName"); + return (Criteria) this; + } + + public Criteria andSchoolNameGreaterThanOrEqualTo(String value) { + addCriterion("school_name >=", value, "schoolName"); + return (Criteria) this; + } + + public Criteria andSchoolNameLessThan(String value) { + addCriterion("school_name <", value, "schoolName"); + return (Criteria) this; + } + + public Criteria andSchoolNameLessThanOrEqualTo(String value) { + addCriterion("school_name <=", value, "schoolName"); + return (Criteria) this; + } + + public Criteria andSchoolNameLike(String value) { + addCriterion("school_name like", value, "schoolName"); + return (Criteria) this; + } + + public Criteria andSchoolNameNotLike(String value) { + addCriterion("school_name not like", value, "schoolName"); + return (Criteria) this; + } + + public Criteria andSchoolNameIn(List values) { + addCriterion("school_name in", values, "schoolName"); + return (Criteria) this; + } + + public Criteria andSchoolNameNotIn(List values) { + addCriterion("school_name not in", values, "schoolName"); + return (Criteria) this; + } + + public Criteria andSchoolNameBetween(String value1, String value2) { + addCriterion("school_name between", value1, value2, "schoolName"); + return (Criteria) this; + } + + public Criteria andSchoolNameNotBetween(String value1, String value2) { + addCriterion("school_name not between", value1, value2, "schoolName"); + return (Criteria) this; + } + } + + /** + * This class was generated by MyBatis Generator. + * This class corresponds to the database table stu_user + * + * @mbg.generated do_not_delete_during_merge Thu May 09 15:03:21 CST 2024 + */ + public static class Criteria extends GeneratedCriteria { + protected Criteria() { + super(); + } + } + + /** + * This class was generated by MyBatis Generator. + * This class corresponds to the database table stu_user + * + * @mbg.generated Thu May 09 15:03:21 CST 2024 + */ + 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); + } + } +} \ No newline at end of file diff --git a/src/main/java/com/sztzjy/forex/trading_trading/mappers/StuUserMapper.java b/src/main/java/com/sztzjy/forex/trading_trading/mappers/StuUserMapper.java new file mode 100644 index 0000000..f2aa33d --- /dev/null +++ b/src/main/java/com/sztzjy/forex/trading_trading/mappers/StuUserMapper.java @@ -0,0 +1,96 @@ +package com.sztzjy.forex.trading_trading.mappers; + +import com.sztzjy.forex.trading_trading.entity.StuUser; +import com.sztzjy.forex.trading_trading.entity.StuUserExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface StuUserMapper { + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table stu_user + * + * @mbg.generated Thu May 09 15:03:21 CST 2024 + */ + long countByExample(StuUserExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table stu_user + * + * @mbg.generated Thu May 09 15:03:21 CST 2024 + */ + int deleteByExample(StuUserExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table stu_user + * + * @mbg.generated Thu May 09 15:03:21 CST 2024 + */ + int deleteByPrimaryKey(String userId); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table stu_user + * + * @mbg.generated Thu May 09 15:03:21 CST 2024 + */ + int insert(StuUser record); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table stu_user + * + * @mbg.generated Thu May 09 15:03:21 CST 2024 + */ + int insertSelective(StuUser record); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table stu_user + * + * @mbg.generated Thu May 09 15:03:21 CST 2024 + */ + List selectByExample(StuUserExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table stu_user + * + * @mbg.generated Thu May 09 15:03:21 CST 2024 + */ + StuUser selectByPrimaryKey(String userId); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table stu_user + * + * @mbg.generated Thu May 09 15:03:21 CST 2024 + */ + int updateByExampleSelective(@Param("record") StuUser record, @Param("example") StuUserExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table stu_user + * + * @mbg.generated Thu May 09 15:03:21 CST 2024 + */ + int updateByExample(@Param("record") StuUser record, @Param("example") StuUserExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table stu_user + * + * @mbg.generated Thu May 09 15:03:21 CST 2024 + */ + int updateByPrimaryKeySelective(StuUser record); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table stu_user + * + * @mbg.generated Thu May 09 15:03:21 CST 2024 + */ + int updateByPrimaryKey(StuUser record); +} \ No newline at end of file diff --git a/src/main/java/com/sztzjy/forex/trading_trading/service/ScheduledTask.java b/src/main/java/com/sztzjy/forex/trading_trading/service/ScheduledTask.java index 1b5d1c4..75bf1c1 100644 --- a/src/main/java/com/sztzjy/forex/trading_trading/service/ScheduledTask.java +++ b/src/main/java/com/sztzjy/forex/trading_trading/service/ScheduledTask.java @@ -94,13 +94,13 @@ public class ScheduledTask { Mql5API api = new Mql5API(); List forexData = api.getMarketQuotation(); List forexMarketDataList = ForexMarketData.copyToForexData(forexData); - forexMarketDataService.insertAll(forexMarketDataList); +// forexMarketDataService.insertAll(forexMarketDataList); redisUtil.set("ForexDateList", forexMarketDataList); log.info("--------真实数据插入成功------"); } //每10秒执行一次 根据真实汇率数据生成模拟汇率数据 - @Scheduled(cron = "0/5 * * * * ?") + @Scheduled(cron = "0/1 * * * * ?") public void insertSimulatedForexMarketData() { //获取batchId相同的最后入库的数据 List forexMarketDataList=redisUtil.get("ForexDateList"); diff --git a/src/main/resources/mappers/StuUserMapper.xml b/src/main/resources/mappers/StuUserMapper.xml new file mode 100644 index 0000000..f04ff1e --- /dev/null +++ b/src/main/resources/mappers/StuUserMapper.xml @@ -0,0 +1,366 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + user_id, username, name, password, role_id, class_id, class_name, major, school_id, + school_name + + + + + + delete from stu_user + where user_id = #{userId,jdbcType=VARCHAR} + + + + delete from stu_user + + + + + + + insert into stu_user (user_id, username, name, + password, role_id, class_id, + class_name, major, school_id, + school_name) + values (#{userId,jdbcType=VARCHAR}, #{username,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, + #{password,jdbcType=VARCHAR}, #{roleId,jdbcType=INTEGER}, #{classId,jdbcType=VARCHAR}, + #{className,jdbcType=VARCHAR}, #{major,jdbcType=VARCHAR}, #{schoolId,jdbcType=VARCHAR}, + #{schoolName,jdbcType=VARCHAR}) + + + + insert into stu_user + + + user_id, + + + username, + + + name, + + + password, + + + role_id, + + + class_id, + + + class_name, + + + major, + + + school_id, + + + school_name, + + + + + #{userId,jdbcType=VARCHAR}, + + + #{username,jdbcType=VARCHAR}, + + + #{name,jdbcType=VARCHAR}, + + + #{password,jdbcType=VARCHAR}, + + + #{roleId,jdbcType=INTEGER}, + + + #{classId,jdbcType=VARCHAR}, + + + #{className,jdbcType=VARCHAR}, + + + #{major,jdbcType=VARCHAR}, + + + #{schoolId,jdbcType=VARCHAR}, + + + #{schoolName,jdbcType=VARCHAR}, + + + + + + + update stu_user + + + user_id = #{record.userId,jdbcType=VARCHAR}, + + + username = #{record.username,jdbcType=VARCHAR}, + + + name = #{record.name,jdbcType=VARCHAR}, + + + password = #{record.password,jdbcType=VARCHAR}, + + + role_id = #{record.roleId,jdbcType=INTEGER}, + + + class_id = #{record.classId,jdbcType=VARCHAR}, + + + class_name = #{record.className,jdbcType=VARCHAR}, + + + major = #{record.major,jdbcType=VARCHAR}, + + + school_id = #{record.schoolId,jdbcType=VARCHAR}, + + + school_name = #{record.schoolName,jdbcType=VARCHAR}, + + + + + + + + + update stu_user + set user_id = #{record.userId,jdbcType=VARCHAR}, + username = #{record.username,jdbcType=VARCHAR}, + name = #{record.name,jdbcType=VARCHAR}, + password = #{record.password,jdbcType=VARCHAR}, + role_id = #{record.roleId,jdbcType=INTEGER}, + class_id = #{record.classId,jdbcType=VARCHAR}, + class_name = #{record.className,jdbcType=VARCHAR}, + major = #{record.major,jdbcType=VARCHAR}, + school_id = #{record.schoolId,jdbcType=VARCHAR}, + school_name = #{record.schoolName,jdbcType=VARCHAR} + + + + + + + update stu_user + + + username = #{username,jdbcType=VARCHAR}, + + + name = #{name,jdbcType=VARCHAR}, + + + password = #{password,jdbcType=VARCHAR}, + + + role_id = #{roleId,jdbcType=INTEGER}, + + + class_id = #{classId,jdbcType=VARCHAR}, + + + class_name = #{className,jdbcType=VARCHAR}, + + + major = #{major,jdbcType=VARCHAR}, + + + school_id = #{schoolId,jdbcType=VARCHAR}, + + + school_name = #{schoolName,jdbcType=VARCHAR}, + + + where user_id = #{userId,jdbcType=VARCHAR} + + + + update stu_user + set username = #{username,jdbcType=VARCHAR}, + name = #{name,jdbcType=VARCHAR}, + password = #{password,jdbcType=VARCHAR}, + role_id = #{roleId,jdbcType=INTEGER}, + class_id = #{classId,jdbcType=VARCHAR}, + class_name = #{className,jdbcType=VARCHAR}, + major = #{major,jdbcType=VARCHAR}, + school_id = #{schoolId,jdbcType=VARCHAR}, + school_name = #{schoolName,jdbcType=VARCHAR} + where user_id = #{userId,jdbcType=VARCHAR} + + \ No newline at end of file