From 5d67a614dc13d9154a90e14fa6798f23a8b324f4 Mon Sep 17 00:00:00 2001 From: whb <17803890193@163.com> Date: Thu, 11 Apr 2024 17:40:25 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=86=E5=90=91=E7=94=9F=E6=88=90=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + pom.xml | 5 + .../FinancialBigDataApplication.java | 2 +- .../annotation/AnonymousAccess.java | 2 +- .../annotation/OperateLog.java | 2 +- .../annotation/Permission.java | 4 +- .../annotation/aspect/PermissionType.java | 2 +- .../{ => digital_credit}/config/Constant.java | 2 +- .../config/DateToLongSerialized.java | 2 +- .../config/LogRecordEvent.java | 2 +- .../config/SpringContextHolder.java | 2 +- .../exception/UnAuthorizedException.java | 2 +- .../handler/CustomAccessDeniedHandler.java | 2 +- .../CustomAuthenticationEntryPoint.java | 2 +- .../handler/GlobalExceptionHandler.java | 8 +- .../config/redis/RedisConfig.java | 2 +- .../config/security/AuthenticationFilter.java | 6 +- .../security/AuthenticationService.java | 2 +- .../security/CustomSessionRegistry.java | 2 +- .../config/security/JwtUser.java | 2 +- .../config/security/LoginResult.java | 2 +- .../config/security/TokenProvider.java | 6 +- .../config/security/WebConfigurerAdapter.java | 6 +- .../config/security/WebSecurityConfig.java | 10 +- .../config/swagger/Swagger2Config.java | 2 +- .../config/swagger/SwaggerProperties.java | 2 +- .../StuEnterPriseByInfoEntryController.java | 44 + .../entity/StuBaseInfo.java | 4 +- .../entity/StuBaseInfoExample.java | 2 +- .../entity/StuPracticalTrainingReport.java | 142 + .../StuPracticalTrainingReportExample.java | 980 +++++++ .../{ => digital_credit}/entity/StuUser.java | 4 +- .../entity/StuUserExample.java | 2 +- .../mapper}/StuBaseInfoMapper.java | 9 +- .../StuPracticalTrainingReportMapper.java | 30 + .../mapper}/StuUserMapper.java | 6 +- .../StuEnterPriseByInfoEntryService.java | 18 + .../StuEnterPriseByInfoEntryServiceImpl.java | 45 + .../util/BigDecimalUtils.java | 2 +- .../util/CacheProvider.java | 2 +- .../util/ConvertUtil.java | 2 +- .../util/DateToUpperChinese.java | 2 +- .../digital_credit/util/GeneratorUtil.java | 39 + .../{ => digital_credit}/util/HttpUtils.java | 2 +- .../util/MyCommentGenerator.java | 6 +- .../{ => digital_credit}/util/PageUtil.java | 2 +- .../{ => digital_credit}/util/RedisUtil.java | 2 +- .../util/ResultDataEntity.java | 2 +- .../util/ResultEntity.java | 2 +- .../{ => digital_credit}/util/RsaUtil.java | 2 +- .../{ => digital_credit}/util/SealUtil.java | 12 +- .../util/ThrowableUtil.java | 2 +- .../{ => digital_credit}/util/TzApi.java | 6 +- .../util/excel/ExcelData.java | 2 +- .../util/excel/ExcelProvider.java | 2 +- .../util/excel/FilePortUtil.java | 2 +- .../util/file/IFileUtil.java | 2 +- .../util/file/LocalFileUtil.java | 2 +- .../util/pdfUtils/HeaderAndFooterEvent.java | 2 +- .../util/seal/SealCircle.java | 2 +- .../util/seal/SealFont.java | 2 +- .../util/seal/SealUtil.java | 2 +- src/main/resources/application-dev.yml | 5 +- src/main/resources/application.yml | 2 +- src/main/resources/generatorConfig.xml | 49 +- src/main/resources/mapper/StuUserMapper.xml | 2510 ----------------- .../{mapper => mappers}/StuBaseInfoMapper.xml | 24 +- .../StuPracticalTrainingReportMapper.xml | 324 +++ src/main/resources/mappers/StuUserMapper.xml | 690 +++++ 69 files changed, 2444 insertions(+), 2631 deletions(-) rename src/main/java/com/sztzjy/{ => digital_credit}/FinancialBigDataApplication.java (91%) rename src/main/java/com/sztzjy/{ => digital_credit}/annotation/AnonymousAccess.java (87%) rename src/main/java/com/sztzjy/{ => digital_credit}/annotation/OperateLog.java (90%) rename src/main/java/com/sztzjy/{ => digital_credit}/annotation/Permission.java (81%) rename src/main/java/com/sztzjy/{ => digital_credit}/annotation/aspect/PermissionType.java (95%) rename src/main/java/com/sztzjy/{ => digital_credit}/config/Constant.java (91%) rename src/main/java/com/sztzjy/{ => digital_credit}/config/DateToLongSerialized.java (94%) rename src/main/java/com/sztzjy/{ => digital_credit}/config/LogRecordEvent.java (87%) rename src/main/java/com/sztzjy/{ => digital_credit}/config/SpringContextHolder.java (98%) rename src/main/java/com/sztzjy/{ => digital_credit}/config/exception/UnAuthorizedException.java (96%) rename src/main/java/com/sztzjy/{ => digital_credit}/config/exception/handler/CustomAccessDeniedHandler.java (95%) rename src/main/java/com/sztzjy/{ => digital_credit}/config/exception/handler/CustomAuthenticationEntryPoint.java (96%) rename src/main/java/com/sztzjy/{ => digital_credit}/config/exception/handler/GlobalExceptionHandler.java (92%) rename src/main/java/com/sztzjy/{ => digital_credit}/config/redis/RedisConfig.java (97%) rename src/main/java/com/sztzjy/{ => digital_credit}/config/security/AuthenticationFilter.java (96%) rename src/main/java/com/sztzjy/{ => digital_credit}/config/security/AuthenticationService.java (95%) rename src/main/java/com/sztzjy/{ => digital_credit}/config/security/CustomSessionRegistry.java (99%) rename src/main/java/com/sztzjy/{ => digital_credit}/config/security/JwtUser.java (96%) rename src/main/java/com/sztzjy/{ => digital_credit}/config/security/LoginResult.java (98%) rename src/main/java/com/sztzjy/{ => digital_credit}/config/security/TokenProvider.java (98%) rename src/main/java/com/sztzjy/{ => digital_credit}/config/security/WebConfigurerAdapter.java (94%) rename src/main/java/com/sztzjy/{ => digital_credit}/config/security/WebSecurityConfig.java (93%) rename src/main/java/com/sztzjy/{ => digital_credit}/config/swagger/Swagger2Config.java (98%) rename src/main/java/com/sztzjy/{ => digital_credit}/config/swagger/SwaggerProperties.java (97%) create mode 100644 src/main/java/com/sztzjy/digital_credit/controller/StuEnterPriseByInfoEntryController.java rename src/main/java/com/sztzjy/{ => digital_credit}/entity/StuBaseInfo.java (99%) rename src/main/java/com/sztzjy/{ => digital_credit}/entity/StuBaseInfoExample.java (99%) create mode 100644 src/main/java/com/sztzjy/digital_credit/entity/StuPracticalTrainingReport.java create mode 100644 src/main/java/com/sztzjy/digital_credit/entity/StuPracticalTrainingReportExample.java rename src/main/java/com/sztzjy/{ => digital_credit}/entity/StuUser.java (99%) rename src/main/java/com/sztzjy/{ => digital_credit}/entity/StuUserExample.java (99%) rename src/main/java/com/sztzjy/{mappers => digital_credit/mapper}/StuBaseInfoMapper.java (83%) create mode 100644 src/main/java/com/sztzjy/digital_credit/mapper/StuPracticalTrainingReportMapper.java rename src/main/java/com/sztzjy/{mappers => digital_credit/mapper}/StuUserMapper.java (83%) create mode 100644 src/main/java/com/sztzjy/digital_credit/service/StuEnterPriseByInfoEntryService.java create mode 100644 src/main/java/com/sztzjy/digital_credit/service/impl/StuEnterPriseByInfoEntryServiceImpl.java rename src/main/java/com/sztzjy/{ => digital_credit}/util/BigDecimalUtils.java (99%) rename src/main/java/com/sztzjy/{ => digital_credit}/util/CacheProvider.java (97%) rename src/main/java/com/sztzjy/{ => digital_credit}/util/ConvertUtil.java (98%) rename src/main/java/com/sztzjy/{ => digital_credit}/util/DateToUpperChinese.java (98%) create mode 100644 src/main/java/com/sztzjy/digital_credit/util/GeneratorUtil.java rename src/main/java/com/sztzjy/{ => digital_credit}/util/HttpUtils.java (99%) rename src/main/java/com/sztzjy/{ => digital_credit}/util/MyCommentGenerator.java (98%) rename src/main/java/com/sztzjy/{ => digital_credit}/util/PageUtil.java (98%) rename src/main/java/com/sztzjy/{ => digital_credit}/util/RedisUtil.java (99%) rename src/main/java/com/sztzjy/{ => digital_credit}/util/ResultDataEntity.java (96%) rename src/main/java/com/sztzjy/{ => digital_credit}/util/ResultEntity.java (96%) rename src/main/java/com/sztzjy/{ => digital_credit}/util/RsaUtil.java (99%) rename src/main/java/com/sztzjy/{ => digital_credit}/util/SealUtil.java (86%) rename src/main/java/com/sztzjy/{ => digital_credit}/util/ThrowableUtil.java (91%) rename src/main/java/com/sztzjy/{ => digital_credit}/util/TzApi.java (98%) rename src/main/java/com/sztzjy/{ => digital_credit}/util/excel/ExcelData.java (95%) rename src/main/java/com/sztzjy/{ => digital_credit}/util/excel/ExcelProvider.java (96%) rename src/main/java/com/sztzjy/{ => digital_credit}/util/excel/FilePortUtil.java (98%) rename src/main/java/com/sztzjy/{ => digital_credit}/util/file/IFileUtil.java (97%) rename src/main/java/com/sztzjy/{ => digital_credit}/util/file/LocalFileUtil.java (99%) rename src/main/java/com/sztzjy/{ => digital_credit}/util/pdfUtils/HeaderAndFooterEvent.java (99%) rename src/main/java/com/sztzjy/{ => digital_credit}/util/seal/SealCircle.java (79%) rename src/main/java/com/sztzjy/{ => digital_credit}/util/seal/SealFont.java (92%) rename src/main/java/com/sztzjy/{ => digital_credit}/util/seal/SealUtil.java (99%) delete mode 100644 src/main/resources/mapper/StuUserMapper.xml rename src/main/resources/{mapper => mappers}/StuBaseInfoMapper.xml (96%) create mode 100644 src/main/resources/mappers/StuPracticalTrainingReportMapper.xml create mode 100644 src/main/resources/mappers/StuUserMapper.xml diff --git a/.gitignore b/.gitignore index 9599dab..d7eaa1e 100644 --- a/.gitignore +++ b/.gitignore @@ -34,3 +34,4 @@ build/ .vscode/ logs/ + diff --git a/pom.xml b/pom.xml index 807fd66..4160cbc 100644 --- a/pom.xml +++ b/pom.xml @@ -183,6 +183,11 @@ <artifactId>easyexcel</artifactId> <version>3.2.1</version> </dependency> + + + + + </dependencies> <build> diff --git a/src/main/java/com/sztzjy/FinancialBigDataApplication.java b/src/main/java/com/sztzjy/digital_credit/FinancialBigDataApplication.java similarity index 91% rename from src/main/java/com/sztzjy/FinancialBigDataApplication.java rename to src/main/java/com/sztzjy/digital_credit/FinancialBigDataApplication.java index 42747fb..587bc02 100644 --- a/src/main/java/com/sztzjy/FinancialBigDataApplication.java +++ b/src/main/java/com/sztzjy/digital_credit/FinancialBigDataApplication.java @@ -1,4 +1,4 @@ -package com.sztzjy; +package com.sztzjy.digital_credit; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; diff --git a/src/main/java/com/sztzjy/annotation/AnonymousAccess.java b/src/main/java/com/sztzjy/digital_credit/annotation/AnonymousAccess.java similarity index 87% rename from src/main/java/com/sztzjy/annotation/AnonymousAccess.java rename to src/main/java/com/sztzjy/digital_credit/annotation/AnonymousAccess.java index 61d554d..8a595f2 100644 --- a/src/main/java/com/sztzjy/annotation/AnonymousAccess.java +++ b/src/main/java/com/sztzjy/digital_credit/annotation/AnonymousAccess.java @@ -1,4 +1,4 @@ -package com.sztzjy.annotation; +package com.sztzjy.digital_credit.annotation; import java.lang.annotation.*; diff --git a/src/main/java/com/sztzjy/annotation/OperateLog.java b/src/main/java/com/sztzjy/digital_credit/annotation/OperateLog.java similarity index 90% rename from src/main/java/com/sztzjy/annotation/OperateLog.java rename to src/main/java/com/sztzjy/digital_credit/annotation/OperateLog.java index 9ffffa8..6215404 100644 --- a/src/main/java/com/sztzjy/annotation/OperateLog.java +++ b/src/main/java/com/sztzjy/digital_credit/annotation/OperateLog.java @@ -1,4 +1,4 @@ -package com.sztzjy.annotation; +package com.sztzjy.digital_credit.annotation; import java.lang.annotation.*; diff --git a/src/main/java/com/sztzjy/annotation/Permission.java b/src/main/java/com/sztzjy/digital_credit/annotation/Permission.java similarity index 81% rename from src/main/java/com/sztzjy/annotation/Permission.java rename to src/main/java/com/sztzjy/digital_credit/annotation/Permission.java index 0d3572c..8c11f2c 100644 --- a/src/main/java/com/sztzjy/annotation/Permission.java +++ b/src/main/java/com/sztzjy/digital_credit/annotation/Permission.java @@ -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.*; diff --git a/src/main/java/com/sztzjy/annotation/aspect/PermissionType.java b/src/main/java/com/sztzjy/digital_credit/annotation/aspect/PermissionType.java similarity index 95% rename from src/main/java/com/sztzjy/annotation/aspect/PermissionType.java rename to src/main/java/com/sztzjy/digital_credit/annotation/aspect/PermissionType.java index c2aa3a6..d2dc36b 100644 --- a/src/main/java/com/sztzjy/annotation/aspect/PermissionType.java +++ b/src/main/java/com/sztzjy/digital_credit/annotation/aspect/PermissionType.java @@ -1,4 +1,4 @@ -package com.sztzjy.annotation.aspect; +package com.sztzjy.digital_credit.annotation.aspect; /** diff --git a/src/main/java/com/sztzjy/config/Constant.java b/src/main/java/com/sztzjy/digital_credit/config/Constant.java similarity index 91% rename from src/main/java/com/sztzjy/config/Constant.java rename to src/main/java/com/sztzjy/digital_credit/config/Constant.java index 2feac78..67c120f 100644 --- a/src/main/java/com/sztzjy/config/Constant.java +++ b/src/main/java/com/sztzjy/digital_credit/config/Constant.java @@ -1,4 +1,4 @@ -package com.sztzjy.config; +package com.sztzjy.digital_credit.config; import org.springframework.stereotype.Component; diff --git a/src/main/java/com/sztzjy/config/DateToLongSerialized.java b/src/main/java/com/sztzjy/digital_credit/config/DateToLongSerialized.java similarity index 94% rename from src/main/java/com/sztzjy/config/DateToLongSerialized.java rename to src/main/java/com/sztzjy/digital_credit/config/DateToLongSerialized.java index 36d0372..3e0b257 100644 --- a/src/main/java/com/sztzjy/config/DateToLongSerialized.java +++ b/src/main/java/com/sztzjy/digital_credit/config/DateToLongSerialized.java @@ -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; diff --git a/src/main/java/com/sztzjy/config/LogRecordEvent.java b/src/main/java/com/sztzjy/digital_credit/config/LogRecordEvent.java similarity index 87% rename from src/main/java/com/sztzjy/config/LogRecordEvent.java rename to src/main/java/com/sztzjy/digital_credit/config/LogRecordEvent.java index e4e31b2..3670d8e 100644 --- a/src/main/java/com/sztzjy/config/LogRecordEvent.java +++ b/src/main/java/com/sztzjy/digital_credit/config/LogRecordEvent.java @@ -1,4 +1,4 @@ -package com.sztzjy.config; +package com.sztzjy.digital_credit.config; import org.springframework.context.ApplicationEvent; diff --git a/src/main/java/com/sztzjy/config/SpringContextHolder.java b/src/main/java/com/sztzjy/digital_credit/config/SpringContextHolder.java similarity index 98% rename from src/main/java/com/sztzjy/config/SpringContextHolder.java rename to src/main/java/com/sztzjy/digital_credit/config/SpringContextHolder.java index 33fa11d..ec560b7 100644 --- a/src/main/java/com/sztzjy/config/SpringContextHolder.java +++ b/src/main/java/com/sztzjy/digital_credit/config/SpringContextHolder.java @@ -1,4 +1,4 @@ -package com.sztzjy.config; +package com.sztzjy.digital_credit.config; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.BeansException; diff --git a/src/main/java/com/sztzjy/config/exception/UnAuthorizedException.java b/src/main/java/com/sztzjy/digital_credit/config/exception/UnAuthorizedException.java similarity index 96% rename from src/main/java/com/sztzjy/config/exception/UnAuthorizedException.java rename to src/main/java/com/sztzjy/digital_credit/config/exception/UnAuthorizedException.java index 86f8866..281aa35 100644 --- a/src/main/java/com/sztzjy/config/exception/UnAuthorizedException.java +++ b/src/main/java/com/sztzjy/digital_credit/config/exception/UnAuthorizedException.java @@ -1,4 +1,4 @@ -package com.sztzjy.config.exception; +package com.sztzjy.digital_credit.config.exception; /** * 当用户访问受保护资源但不提供任何凭据时将抛出此异常 diff --git a/src/main/java/com/sztzjy/config/exception/handler/CustomAccessDeniedHandler.java b/src/main/java/com/sztzjy/digital_credit/config/exception/handler/CustomAccessDeniedHandler.java similarity index 95% rename from src/main/java/com/sztzjy/config/exception/handler/CustomAccessDeniedHandler.java rename to src/main/java/com/sztzjy/digital_credit/config/exception/handler/CustomAccessDeniedHandler.java index 3a01b5b..e320b5c 100644 --- a/src/main/java/com/sztzjy/config/exception/handler/CustomAccessDeniedHandler.java +++ b/src/main/java/com/sztzjy/digital_credit/config/exception/handler/CustomAccessDeniedHandler.java @@ -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; diff --git a/src/main/java/com/sztzjy/config/exception/handler/CustomAuthenticationEntryPoint.java b/src/main/java/com/sztzjy/digital_credit/config/exception/handler/CustomAuthenticationEntryPoint.java similarity index 96% rename from src/main/java/com/sztzjy/config/exception/handler/CustomAuthenticationEntryPoint.java rename to src/main/java/com/sztzjy/digital_credit/config/exception/handler/CustomAuthenticationEntryPoint.java index 4f276fe..c8c6eb5 100644 --- a/src/main/java/com/sztzjy/config/exception/handler/CustomAuthenticationEntryPoint.java +++ b/src/main/java/com/sztzjy/digital_credit/config/exception/handler/CustomAuthenticationEntryPoint.java @@ -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; diff --git a/src/main/java/com/sztzjy/config/exception/handler/GlobalExceptionHandler.java b/src/main/java/com/sztzjy/digital_credit/config/exception/handler/GlobalExceptionHandler.java similarity index 92% rename from src/main/java/com/sztzjy/config/exception/handler/GlobalExceptionHandler.java rename to src/main/java/com/sztzjy/digital_credit/config/exception/handler/GlobalExceptionHandler.java index 9d0fb18..d51fb0d 100644 --- a/src/main/java/com/sztzjy/config/exception/handler/GlobalExceptionHandler.java +++ b/src/main/java/com/sztzjy/digital_credit/config/exception/handler/GlobalExceptionHandler.java @@ -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; diff --git a/src/main/java/com/sztzjy/config/redis/RedisConfig.java b/src/main/java/com/sztzjy/digital_credit/config/redis/RedisConfig.java similarity index 97% rename from src/main/java/com/sztzjy/config/redis/RedisConfig.java rename to src/main/java/com/sztzjy/digital_credit/config/redis/RedisConfig.java index da6b0c3..ac39a82 100644 --- a/src/main/java/com/sztzjy/config/redis/RedisConfig.java +++ b/src/main/java/com/sztzjy/digital_credit/config/redis/RedisConfig.java @@ -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; diff --git a/src/main/java/com/sztzjy/config/security/AuthenticationFilter.java b/src/main/java/com/sztzjy/digital_credit/config/security/AuthenticationFilter.java similarity index 96% rename from src/main/java/com/sztzjy/config/security/AuthenticationFilter.java rename to src/main/java/com/sztzjy/digital_credit/config/security/AuthenticationFilter.java index 872a919..7475db6 100644 --- a/src/main/java/com/sztzjy/config/security/AuthenticationFilter.java +++ b/src/main/java/com/sztzjy/digital_credit/config/security/AuthenticationFilter.java @@ -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; diff --git a/src/main/java/com/sztzjy/config/security/AuthenticationService.java b/src/main/java/com/sztzjy/digital_credit/config/security/AuthenticationService.java similarity index 95% rename from src/main/java/com/sztzjy/config/security/AuthenticationService.java rename to src/main/java/com/sztzjy/digital_credit/config/security/AuthenticationService.java index ad89a46..d350067 100644 --- a/src/main/java/com/sztzjy/config/security/AuthenticationService.java +++ b/src/main/java/com/sztzjy/digital_credit/config/security/AuthenticationService.java @@ -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; diff --git a/src/main/java/com/sztzjy/config/security/CustomSessionRegistry.java b/src/main/java/com/sztzjy/digital_credit/config/security/CustomSessionRegistry.java similarity index 99% rename from src/main/java/com/sztzjy/config/security/CustomSessionRegistry.java rename to src/main/java/com/sztzjy/digital_credit/config/security/CustomSessionRegistry.java index 4aa476b..9445061 100644 --- a/src/main/java/com/sztzjy/config/security/CustomSessionRegistry.java +++ b/src/main/java/com/sztzjy/digital_credit/config/security/CustomSessionRegistry.java @@ -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; diff --git a/src/main/java/com/sztzjy/config/security/JwtUser.java b/src/main/java/com/sztzjy/digital_credit/config/security/JwtUser.java similarity index 96% rename from src/main/java/com/sztzjy/config/security/JwtUser.java rename to src/main/java/com/sztzjy/digital_credit/config/security/JwtUser.java index 85a4353..4e9bc14 100644 --- a/src/main/java/com/sztzjy/config/security/JwtUser.java +++ b/src/main/java/com/sztzjy/digital_credit/config/security/JwtUser.java @@ -1,4 +1,4 @@ -package com.sztzjy.config.security; +package com.sztzjy.digital_credit.config.security; import lombok.Getter; import lombok.Setter; diff --git a/src/main/java/com/sztzjy/config/security/LoginResult.java b/src/main/java/com/sztzjy/digital_credit/config/security/LoginResult.java similarity index 98% rename from src/main/java/com/sztzjy/config/security/LoginResult.java rename to src/main/java/com/sztzjy/digital_credit/config/security/LoginResult.java index 0ef0942..8fa91b2 100644 --- a/src/main/java/com/sztzjy/config/security/LoginResult.java +++ b/src/main/java/com/sztzjy/digital_credit/config/security/LoginResult.java @@ -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; diff --git a/src/main/java/com/sztzjy/config/security/TokenProvider.java b/src/main/java/com/sztzjy/digital_credit/config/security/TokenProvider.java similarity index 98% rename from src/main/java/com/sztzjy/config/security/TokenProvider.java rename to src/main/java/com/sztzjy/digital_credit/config/security/TokenProvider.java index 5b3142b..196d7cb 100644 --- a/src/main/java/com/sztzjy/config/security/TokenProvider.java +++ b/src/main/java/com/sztzjy/digital_credit/config/security/TokenProvider.java @@ -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; diff --git a/src/main/java/com/sztzjy/config/security/WebConfigurerAdapter.java b/src/main/java/com/sztzjy/digital_credit/config/security/WebConfigurerAdapter.java similarity index 94% rename from src/main/java/com/sztzjy/config/security/WebConfigurerAdapter.java rename to src/main/java/com/sztzjy/digital_credit/config/security/WebConfigurerAdapter.java index d19a7e3..e773a8b 100644 --- a/src/main/java/com/sztzjy/config/security/WebConfigurerAdapter.java +++ b/src/main/java/com/sztzjy/digital_credit/config/security/WebConfigurerAdapter.java @@ -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; diff --git a/src/main/java/com/sztzjy/config/security/WebSecurityConfig.java b/src/main/java/com/sztzjy/digital_credit/config/security/WebSecurityConfig.java similarity index 93% rename from src/main/java/com/sztzjy/config/security/WebSecurityConfig.java rename to src/main/java/com/sztzjy/digital_credit/config/security/WebSecurityConfig.java index 6de6fbf..b4f9491 100644 --- a/src/main/java/com/sztzjy/config/security/WebSecurityConfig.java +++ b/src/main/java/com/sztzjy/digital_credit/config/security/WebSecurityConfig.java @@ -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; diff --git a/src/main/java/com/sztzjy/config/swagger/Swagger2Config.java b/src/main/java/com/sztzjy/digital_credit/config/swagger/Swagger2Config.java similarity index 98% rename from src/main/java/com/sztzjy/config/swagger/Swagger2Config.java rename to src/main/java/com/sztzjy/digital_credit/config/swagger/Swagger2Config.java index e56dd51..9bd74be 100644 --- a/src/main/java/com/sztzjy/config/swagger/Swagger2Config.java +++ b/src/main/java/com/sztzjy/digital_credit/config/swagger/Swagger2Config.java @@ -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; diff --git a/src/main/java/com/sztzjy/config/swagger/SwaggerProperties.java b/src/main/java/com/sztzjy/digital_credit/config/swagger/SwaggerProperties.java similarity index 97% rename from src/main/java/com/sztzjy/config/swagger/SwaggerProperties.java rename to src/main/java/com/sztzjy/digital_credit/config/swagger/SwaggerProperties.java index ad8f28d..a526f82 100644 --- a/src/main/java/com/sztzjy/config/swagger/SwaggerProperties.java +++ b/src/main/java/com/sztzjy/digital_credit/config/swagger/SwaggerProperties.java @@ -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; diff --git a/src/main/java/com/sztzjy/digital_credit/controller/StuEnterPriseByInfoEntryController.java b/src/main/java/com/sztzjy/digital_credit/controller/StuEnterPriseByInfoEntryController.java new file mode 100644 index 0000000..f092e4d --- /dev/null +++ b/src/main/java/com/sztzjy/digital_credit/controller/StuEnterPriseByInfoEntryController.java @@ -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); + + + } + + + + + + + +} diff --git a/src/main/java/com/sztzjy/entity/StuBaseInfo.java b/src/main/java/com/sztzjy/digital_credit/entity/StuBaseInfo.java similarity index 99% rename from src/main/java/com/sztzjy/entity/StuBaseInfo.java rename to src/main/java/com/sztzjy/digital_credit/entity/StuBaseInfo.java index 3233b44..2548b35 100644 --- a/src/main/java/com/sztzjy/entity/StuBaseInfo.java +++ b/src/main/java/com/sztzjy/digital_credit/entity/StuBaseInfo.java @@ -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 { diff --git a/src/main/java/com/sztzjy/entity/StuBaseInfoExample.java b/src/main/java/com/sztzjy/digital_credit/entity/StuBaseInfoExample.java similarity index 99% rename from src/main/java/com/sztzjy/entity/StuBaseInfoExample.java rename to src/main/java/com/sztzjy/digital_credit/entity/StuBaseInfoExample.java index 63a749e..96ef869 100644 --- a/src/main/java/com/sztzjy/entity/StuBaseInfoExample.java +++ b/src/main/java/com/sztzjy/digital_credit/entity/StuBaseInfoExample.java @@ -1,4 +1,4 @@ -package com.sztzjy.entity; +package com.sztzjy.digital_credit.entity; import java.util.ArrayList; import java.util.Date; diff --git a/src/main/java/com/sztzjy/digital_credit/entity/StuPracticalTrainingReport.java b/src/main/java/com/sztzjy/digital_credit/entity/StuPracticalTrainingReport.java new file mode 100644 index 0000000..c0d6a52 --- /dev/null +++ b/src/main/java/com/sztzjy/digital_credit/entity/StuPracticalTrainingReport.java @@ -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; + } +} \ No newline at end of file diff --git a/src/main/java/com/sztzjy/digital_credit/entity/StuPracticalTrainingReportExample.java b/src/main/java/com/sztzjy/digital_credit/entity/StuPracticalTrainingReportExample.java new file mode 100644 index 0000000..9bdbd96 --- /dev/null +++ b/src/main/java/com/sztzjy/digital_credit/entity/StuPracticalTrainingReportExample.java @@ -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); + } + } +} \ No newline at end of file diff --git a/src/main/java/com/sztzjy/entity/StuUser.java b/src/main/java/com/sztzjy/digital_credit/entity/StuUser.java similarity index 99% rename from src/main/java/com/sztzjy/entity/StuUser.java rename to src/main/java/com/sztzjy/digital_credit/entity/StuUser.java index e450c0b..6d457dc 100644 --- a/src/main/java/com/sztzjy/entity/StuUser.java +++ b/src/main/java/com/sztzjy/digital_credit/entity/StuUser.java @@ -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 { diff --git a/src/main/java/com/sztzjy/entity/StuUserExample.java b/src/main/java/com/sztzjy/digital_credit/entity/StuUserExample.java similarity index 99% rename from src/main/java/com/sztzjy/entity/StuUserExample.java rename to src/main/java/com/sztzjy/digital_credit/entity/StuUserExample.java index 39214d5..e5fea0b 100644 --- a/src/main/java/com/sztzjy/entity/StuUserExample.java +++ b/src/main/java/com/sztzjy/digital_credit/entity/StuUserExample.java @@ -1,4 +1,4 @@ -package com.sztzjy.entity; +package com.sztzjy.digital_credit.entity; import java.math.BigDecimal; import java.util.ArrayList; diff --git a/src/main/java/com/sztzjy/mappers/StuBaseInfoMapper.java b/src/main/java/com/sztzjy/digital_credit/mapper/StuBaseInfoMapper.java similarity index 83% rename from src/main/java/com/sztzjy/mappers/StuBaseInfoMapper.java rename to src/main/java/com/sztzjy/digital_credit/mapper/StuBaseInfoMapper.java index 5ba9969..8f91af7 100644 --- a/src/main/java/com/sztzjy/mappers/StuBaseInfoMapper.java +++ b/src/main/java/com/sztzjy/digital_credit/mapper/StuBaseInfoMapper.java @@ -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); diff --git a/src/main/java/com/sztzjy/digital_credit/mapper/StuPracticalTrainingReportMapper.java b/src/main/java/com/sztzjy/digital_credit/mapper/StuPracticalTrainingReportMapper.java new file mode 100644 index 0000000..294478e --- /dev/null +++ b/src/main/java/com/sztzjy/digital_credit/mapper/StuPracticalTrainingReportMapper.java @@ -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); +} \ No newline at end of file diff --git a/src/main/java/com/sztzjy/mappers/StuUserMapper.java b/src/main/java/com/sztzjy/digital_credit/mapper/StuUserMapper.java similarity index 83% rename from src/main/java/com/sztzjy/mappers/StuUserMapper.java rename to src/main/java/com/sztzjy/digital_credit/mapper/StuUserMapper.java index a19a0fd..4a02df7 100644 --- a/src/main/java/com/sztzjy/mappers/StuUserMapper.java +++ b/src/main/java/com/sztzjy/digital_credit/mapper/StuUserMapper.java @@ -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; diff --git a/src/main/java/com/sztzjy/digital_credit/service/StuEnterPriseByInfoEntryService.java b/src/main/java/com/sztzjy/digital_credit/service/StuEnterPriseByInfoEntryService.java new file mode 100644 index 0000000..b721da3 --- /dev/null +++ b/src/main/java/com/sztzjy/digital_credit/service/StuEnterPriseByInfoEntryService.java @@ -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); +} diff --git a/src/main/java/com/sztzjy/digital_credit/service/impl/StuEnterPriseByInfoEntryServiceImpl.java b/src/main/java/com/sztzjy/digital_credit/service/impl/StuEnterPriseByInfoEntryServiceImpl.java new file mode 100644 index 0000000..e18780f --- /dev/null +++ b/src/main/java/com/sztzjy/digital_credit/service/impl/StuEnterPriseByInfoEntryServiceImpl.java @@ -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,"获取成功"); + } +} diff --git a/src/main/java/com/sztzjy/util/BigDecimalUtils.java b/src/main/java/com/sztzjy/digital_credit/util/BigDecimalUtils.java similarity index 99% rename from src/main/java/com/sztzjy/util/BigDecimalUtils.java rename to src/main/java/com/sztzjy/digital_credit/util/BigDecimalUtils.java index f80a1eb..d9cc0fd 100644 --- a/src/main/java/com/sztzjy/util/BigDecimalUtils.java +++ b/src/main/java/com/sztzjy/digital_credit/util/BigDecimalUtils.java @@ -1,4 +1,4 @@ -package com.sztzjy.util; +package com.sztzjy.digital_credit.util; import org.springframework.stereotype.Component; diff --git a/src/main/java/com/sztzjy/util/CacheProvider.java b/src/main/java/com/sztzjy/digital_credit/util/CacheProvider.java similarity index 97% rename from src/main/java/com/sztzjy/util/CacheProvider.java rename to src/main/java/com/sztzjy/digital_credit/util/CacheProvider.java index e288153..d4dcb2c 100644 --- a/src/main/java/com/sztzjy/util/CacheProvider.java +++ b/src/main/java/com/sztzjy/digital_credit/util/CacheProvider.java @@ -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; diff --git a/src/main/java/com/sztzjy/util/ConvertUtil.java b/src/main/java/com/sztzjy/digital_credit/util/ConvertUtil.java similarity index 98% rename from src/main/java/com/sztzjy/util/ConvertUtil.java rename to src/main/java/com/sztzjy/digital_credit/util/ConvertUtil.java index f507cb9..5bb8298 100644 --- a/src/main/java/com/sztzjy/util/ConvertUtil.java +++ b/src/main/java/com/sztzjy/digital_credit/util/ConvertUtil.java @@ -1,4 +1,4 @@ -package com.sztzjy.util; +package com.sztzjy.digital_credit.util; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/src/main/java/com/sztzjy/util/DateToUpperChinese.java b/src/main/java/com/sztzjy/digital_credit/util/DateToUpperChinese.java similarity index 98% rename from src/main/java/com/sztzjy/util/DateToUpperChinese.java rename to src/main/java/com/sztzjy/digital_credit/util/DateToUpperChinese.java index 45de6b1..47cc079 100644 --- a/src/main/java/com/sztzjy/util/DateToUpperChinese.java +++ b/src/main/java/com/sztzjy/digital_credit/util/DateToUpperChinese.java @@ -1,4 +1,4 @@ -package com.sztzjy.util; +package com.sztzjy.digital_credit.util; import cn.hutool.core.date.DateUtil; import java.text.SimpleDateFormat; diff --git a/src/main/java/com/sztzjy/digital_credit/util/GeneratorUtil.java b/src/main/java/com/sztzjy/digital_credit/util/GeneratorUtil.java new file mode 100644 index 0000000..4c5a8de --- /dev/null +++ b/src/main/java/com/sztzjy/digital_credit/util/GeneratorUtil.java @@ -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(); + } +} diff --git a/src/main/java/com/sztzjy/util/HttpUtils.java b/src/main/java/com/sztzjy/digital_credit/util/HttpUtils.java similarity index 99% rename from src/main/java/com/sztzjy/util/HttpUtils.java rename to src/main/java/com/sztzjy/digital_credit/util/HttpUtils.java index e3885d5..a756b0c 100644 --- a/src/main/java/com/sztzjy/util/HttpUtils.java +++ b/src/main/java/com/sztzjy/digital_credit/util/HttpUtils.java @@ -1,4 +1,4 @@ -package com.sztzjy.util; +package com.sztzjy.digital_credit.util; import cn.hutool.json.JSONObject; import lombok.extern.slf4j.Slf4j; diff --git a/src/main/java/com/sztzjy/util/MyCommentGenerator.java b/src/main/java/com/sztzjy/digital_credit/util/MyCommentGenerator.java similarity index 98% rename from src/main/java/com/sztzjy/util/MyCommentGenerator.java rename to src/main/java/com/sztzjy/digital_credit/util/MyCommentGenerator.java index 59c03b2..1d52aa6 100644 --- a/src/main/java/com/sztzjy/util/MyCommentGenerator.java +++ b/src/main/java/com/sztzjy/digital_credit/util/MyCommentGenerator.java @@ -1,4 +1,4 @@ -package com.sztzjy.util; +package com.sztzjy.digital_credit.util; import org.mybatis.generator.api.CommentGenerator; import org.mybatis.generator.api.IntrospectedColumn; @@ -22,7 +22,7 @@ import java.util.Set; import static org.mybatis.generator.internal.util.StringUtility.isTrue; /* - * @author xcj + * @author tz * @Date 2023/11/14 */ @@ -113,7 +113,7 @@ public class MyCommentGenerator implements CommentGenerator { } } topLevelClass.addJavaDocLine(" *"); - topLevelClass.addJavaDocLine(" * @author whb"); + topLevelClass.addJavaDocLine(" * @author tz"); topLevelClass.addJavaDocLine(" * " + introspectedTable.getFullyQualifiedTable().toString()); topLevelClass.addJavaDocLine(" */"); // topLevelClass.addJavaDocLine("@Data"); diff --git a/src/main/java/com/sztzjy/util/PageUtil.java b/src/main/java/com/sztzjy/digital_credit/util/PageUtil.java similarity index 98% rename from src/main/java/com/sztzjy/util/PageUtil.java rename to src/main/java/com/sztzjy/digital_credit/util/PageUtil.java index 27eb8bf..94bc6b6 100644 --- a/src/main/java/com/sztzjy/util/PageUtil.java +++ b/src/main/java/com/sztzjy/digital_credit/util/PageUtil.java @@ -1,4 +1,4 @@ -package com.sztzjy.util; +package com.sztzjy.digital_credit.util; import com.github.pagehelper.Page; import com.github.pagehelper.PageInfo; diff --git a/src/main/java/com/sztzjy/util/RedisUtil.java b/src/main/java/com/sztzjy/digital_credit/util/RedisUtil.java similarity index 99% rename from src/main/java/com/sztzjy/util/RedisUtil.java rename to src/main/java/com/sztzjy/digital_credit/util/RedisUtil.java index e01a407..15e7f9d 100644 --- a/src/main/java/com/sztzjy/util/RedisUtil.java +++ b/src/main/java/com/sztzjy/digital_credit/util/RedisUtil.java @@ -1,4 +1,4 @@ -package com.sztzjy.util; +package com.sztzjy.digital_credit.util; import org.springframework.beans.factory.annotation.Autowired; diff --git a/src/main/java/com/sztzjy/util/ResultDataEntity.java b/src/main/java/com/sztzjy/digital_credit/util/ResultDataEntity.java similarity index 96% rename from src/main/java/com/sztzjy/util/ResultDataEntity.java rename to src/main/java/com/sztzjy/digital_credit/util/ResultDataEntity.java index d5bab06..2412c84 100644 --- a/src/main/java/com/sztzjy/util/ResultDataEntity.java +++ b/src/main/java/com/sztzjy/digital_credit/util/ResultDataEntity.java @@ -1,4 +1,4 @@ -package com.sztzjy.util; +package com.sztzjy.digital_credit.util; import lombok.Getter; import org.springframework.http.HttpStatus; diff --git a/src/main/java/com/sztzjy/util/ResultEntity.java b/src/main/java/com/sztzjy/digital_credit/util/ResultEntity.java similarity index 96% rename from src/main/java/com/sztzjy/util/ResultEntity.java rename to src/main/java/com/sztzjy/digital_credit/util/ResultEntity.java index dc37d89..680b1c6 100644 --- a/src/main/java/com/sztzjy/util/ResultEntity.java +++ b/src/main/java/com/sztzjy/digital_credit/util/ResultEntity.java @@ -1,4 +1,4 @@ -package com.sztzjy.util; +package com.sztzjy.digital_credit.util; import io.swagger.annotations.ApiModel; import lombok.Getter; diff --git a/src/main/java/com/sztzjy/util/RsaUtil.java b/src/main/java/com/sztzjy/digital_credit/util/RsaUtil.java similarity index 99% rename from src/main/java/com/sztzjy/util/RsaUtil.java rename to src/main/java/com/sztzjy/digital_credit/util/RsaUtil.java index c1429fd..1392f61 100644 --- a/src/main/java/com/sztzjy/util/RsaUtil.java +++ b/src/main/java/com/sztzjy/digital_credit/util/RsaUtil.java @@ -1,4 +1,4 @@ -package com.sztzjy.util; +package com.sztzjy.digital_credit.util; import org.apache.commons.codec.binary.Base64; diff --git a/src/main/java/com/sztzjy/util/SealUtil.java b/src/main/java/com/sztzjy/digital_credit/util/SealUtil.java similarity index 86% rename from src/main/java/com/sztzjy/util/SealUtil.java rename to src/main/java/com/sztzjy/digital_credit/util/SealUtil.java index f4a5fc8..c6f8374 100644 --- a/src/main/java/com/sztzjy/util/SealUtil.java +++ b/src/main/java/com/sztzjy/digital_credit/util/SealUtil.java @@ -1,9 +1,9 @@ -//package com.sztzjy.util; +//package com.sztzjy.digital_credit.util; // //import cn.hutool.core.util.IdUtil; -//import com.sztzjy.util.file.LocalFileUtil; -//import com.sztzjy.util.seal.SealCircle; -//import com.sztzjy.util.seal.SealFont; +//import com.sztzjy.digital_credit.util.file.LocalFileUtil; +//import com.sztzjy.digital_credit.util.seal.SealCircle; +//import com.sztzjy.digital_credit.util.seal.SealFont; //import org.springframework.beans.factory.annotation.Value; //import org.springframework.stereotype.Component; // @@ -32,7 +32,7 @@ // infoFile.mkdir(); // } // String s = IdUtil.fastSimpleUUID(); -// com.sztzjy.util.seal.SealUtil.builder() +// com.sztzjy.digital_credit.util.seal.SealUtil.builder() // .size(200) // .borderCircle(SealCircle.builder().line(4).width(95).height(95).build()) // .mainFont(SealFont.builder().text(name+"有限公司").size(22).space(30.0).margin(4).build()) @@ -51,7 +51,7 @@ // infoFile.mkdir(); // } // String s = IdUtil.fastSimpleUUID(); -// com.sztzjy.util.seal.SealUtil.builder() +// com.sztzjy.digital_credit.util.seal.SealUtil.builder() // .size(200) // .borderCircle(SealCircle.builder().line(4).width(95).height(95).build()) // .mainFont(SealFont.builder().text(name).size(22).space(30.0).margin(4).build()) diff --git a/src/main/java/com/sztzjy/util/ThrowableUtil.java b/src/main/java/com/sztzjy/digital_credit/util/ThrowableUtil.java similarity index 91% rename from src/main/java/com/sztzjy/util/ThrowableUtil.java rename to src/main/java/com/sztzjy/digital_credit/util/ThrowableUtil.java index c9838e7..edfbad5 100644 --- a/src/main/java/com/sztzjy/util/ThrowableUtil.java +++ b/src/main/java/com/sztzjy/digital_credit/util/ThrowableUtil.java @@ -1,4 +1,4 @@ -package com.sztzjy.util; +package com.sztzjy.digital_credit.util; import java.io.PrintWriter; import java.io.StringWriter; diff --git a/src/main/java/com/sztzjy/util/TzApi.java b/src/main/java/com/sztzjy/digital_credit/util/TzApi.java similarity index 98% rename from src/main/java/com/sztzjy/util/TzApi.java rename to src/main/java/com/sztzjy/digital_credit/util/TzApi.java index f6a5e92..ac1ec3f 100644 --- a/src/main/java/com/sztzjy/util/TzApi.java +++ b/src/main/java/com/sztzjy/digital_credit/util/TzApi.java @@ -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; diff --git a/src/main/java/com/sztzjy/util/excel/ExcelData.java b/src/main/java/com/sztzjy/digital_credit/util/excel/ExcelData.java similarity index 95% rename from src/main/java/com/sztzjy/util/excel/ExcelData.java rename to src/main/java/com/sztzjy/digital_credit/util/excel/ExcelData.java index 562ee1e..5991629 100644 --- a/src/main/java/com/sztzjy/util/excel/ExcelData.java +++ b/src/main/java/com/sztzjy/digital_credit/util/excel/ExcelData.java @@ -1,4 +1,4 @@ -package com.sztzjy.util.excel; +package com.sztzjy.digital_credit.util.excel; import lombok.Getter; diff --git a/src/main/java/com/sztzjy/util/excel/ExcelProvider.java b/src/main/java/com/sztzjy/digital_credit/util/excel/ExcelProvider.java similarity index 96% rename from src/main/java/com/sztzjy/util/excel/ExcelProvider.java rename to src/main/java/com/sztzjy/digital_credit/util/excel/ExcelProvider.java index 29f4a5a..aff257c 100644 --- a/src/main/java/com/sztzjy/util/excel/ExcelProvider.java +++ b/src/main/java/com/sztzjy/digital_credit/util/excel/ExcelProvider.java @@ -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; diff --git a/src/main/java/com/sztzjy/util/excel/FilePortUtil.java b/src/main/java/com/sztzjy/digital_credit/util/excel/FilePortUtil.java similarity index 98% rename from src/main/java/com/sztzjy/util/excel/FilePortUtil.java rename to src/main/java/com/sztzjy/digital_credit/util/excel/FilePortUtil.java index 6b87a81..fc0aad3 100644 --- a/src/main/java/com/sztzjy/util/excel/FilePortUtil.java +++ b/src/main/java/com/sztzjy/digital_credit/util/excel/FilePortUtil.java @@ -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; diff --git a/src/main/java/com/sztzjy/util/file/IFileUtil.java b/src/main/java/com/sztzjy/digital_credit/util/file/IFileUtil.java similarity index 97% rename from src/main/java/com/sztzjy/util/file/IFileUtil.java rename to src/main/java/com/sztzjy/digital_credit/util/file/IFileUtil.java index 78a9fe6..e7109c9 100644 --- a/src/main/java/com/sztzjy/util/file/IFileUtil.java +++ b/src/main/java/com/sztzjy/digital_credit/util/file/IFileUtil.java @@ -1,4 +1,4 @@ -package com.sztzjy.util.file; +package com.sztzjy.digital_credit.util.file; import org.springframework.web.multipart.MultipartFile; diff --git a/src/main/java/com/sztzjy/util/file/LocalFileUtil.java b/src/main/java/com/sztzjy/digital_credit/util/file/LocalFileUtil.java similarity index 99% rename from src/main/java/com/sztzjy/util/file/LocalFileUtil.java rename to src/main/java/com/sztzjy/digital_credit/util/file/LocalFileUtil.java index f55e9d7..05cfd77 100644 --- a/src/main/java/com/sztzjy/util/file/LocalFileUtil.java +++ b/src/main/java/com/sztzjy/digital_credit/util/file/LocalFileUtil.java @@ -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; diff --git a/src/main/java/com/sztzjy/util/pdfUtils/HeaderAndFooterEvent.java b/src/main/java/com/sztzjy/digital_credit/util/pdfUtils/HeaderAndFooterEvent.java similarity index 99% rename from src/main/java/com/sztzjy/util/pdfUtils/HeaderAndFooterEvent.java rename to src/main/java/com/sztzjy/digital_credit/util/pdfUtils/HeaderAndFooterEvent.java index cebd33f..8761ab0 100644 --- a/src/main/java/com/sztzjy/util/pdfUtils/HeaderAndFooterEvent.java +++ b/src/main/java/com/sztzjy/digital_credit/util/pdfUtils/HeaderAndFooterEvent.java @@ -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; diff --git a/src/main/java/com/sztzjy/util/seal/SealCircle.java b/src/main/java/com/sztzjy/digital_credit/util/seal/SealCircle.java similarity index 79% rename from src/main/java/com/sztzjy/util/seal/SealCircle.java rename to src/main/java/com/sztzjy/digital_credit/util/seal/SealCircle.java index aff68c3..facbe98 100644 --- a/src/main/java/com/sztzjy/util/seal/SealCircle.java +++ b/src/main/java/com/sztzjy/digital_credit/util/seal/SealCircle.java @@ -1,4 +1,4 @@ -package com.sztzjy.util.seal; +package com.sztzjy.digital_credit.util.seal; import lombok.Builder; diff --git a/src/main/java/com/sztzjy/util/seal/SealFont.java b/src/main/java/com/sztzjy/digital_credit/util/seal/SealFont.java similarity index 92% rename from src/main/java/com/sztzjy/util/seal/SealFont.java rename to src/main/java/com/sztzjy/digital_credit/util/seal/SealFont.java index c74ab1e..d173e80 100644 --- a/src/main/java/com/sztzjy/util/seal/SealFont.java +++ b/src/main/java/com/sztzjy/digital_credit/util/seal/SealFont.java @@ -1,4 +1,4 @@ -package com.sztzjy.util.seal;/** +package com.sztzjy.digital_credit.util.seal;/** * @author 17803 * @date 2023-12-05 15:01 */ diff --git a/src/main/java/com/sztzjy/util/seal/SealUtil.java b/src/main/java/com/sztzjy/digital_credit/util/seal/SealUtil.java similarity index 99% rename from src/main/java/com/sztzjy/util/seal/SealUtil.java rename to src/main/java/com/sztzjy/digital_credit/util/seal/SealUtil.java index 6256f04..9615152 100644 --- a/src/main/java/com/sztzjy/util/seal/SealUtil.java +++ b/src/main/java/com/sztzjy/digital_credit/util/seal/SealUtil.java @@ -1,4 +1,4 @@ -package com.sztzjy.util.seal; +package com.sztzjy.digital_credit.util.seal; import lombok.Builder; import lombok.Getter; diff --git a/src/main/resources/application-dev.yml b/src/main/resources/application-dev.yml index 0abc5c9..c9d5893 100644 --- a/src/main/resources/application-dev.yml +++ b/src/main/resources/application-dev.yml @@ -2,7 +2,7 @@ spring: datasource: druid: db-type: mysql - url: jdbc:mysql://${DB_HOST:118.31.7.2}:${DB_PORT:3306}/${DB_NAME:tz_finance_supply}?useUnicode=true&characterEncoding=UTF-8&serverTimezone=GMT%2B8&useSSL=false&useInformationSchema=true&allowPublicKeyRetrieval=true + url: jdbc:mysql://${DB_HOST:118.31.7.2}:${DB_PORT:3306}/${DB_NAME:tz_digital_credit}?useUnicode=true&characterEncoding=UTF-8&serverTimezone=GMT%2B8&useSSL=false&useInformationSchema=true&allowPublicKeyRetrieval=true username: ${DB_USER:root} password: ${DB_PWD:sztzjy2017} driver-class-name: com.mysql.cj.jdbc.Driver @@ -17,3 +17,6 @@ file: + + + diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 1f0ce25..3f7065a 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -1,5 +1,5 @@ server: - port: 7800 + port: 7899 servlet: context-path: / tomcat: diff --git a/src/main/resources/generatorConfig.xml b/src/main/resources/generatorConfig.xml index 520e0b3..1cbfa6b 100644 --- a/src/main/resources/generatorConfig.xml +++ b/src/main/resources/generatorConfig.xml @@ -7,7 +7,7 @@ <!-- <property name="suppressAllComments" value="true"/>--> <!-- </commentGenerator>--> <!-- type值为自定义的MyCommentGenerator--> - <commentGenerator type="com.sztzjy.util.MyCommentGenerator"> + <commentGenerator type="com.sztzjy.digital_credit.util.MyCommentGenerator"> <!-- 是否去除自动生成的注释 true:是 : false:否 --> <property name="suppressAllComments" value="false"/> <property name="suppressDate" value="false"/> @@ -22,47 +22,46 @@ <property name="useInformationSchema" value="true"/> <!--useInformationSchema 实体类上添加数据表的注释 --> </jdbcConnection> - <!-- 配置实体类的位置 --> - <javaModelGenerator targetPackage="com.sztzjy.entity" targetProject="src/main/java"> + <javaModelGenerator targetPackage="com.sztzjy.digital_credit.entity" targetProject="src/main/java"> <!-- 生成的Java模型是否支持序列化 --> <property name="enableSubPackages" value="true" /> <property name="trimStrings" value="true" /> </javaModelGenerator> - <!-- 配置Mapper XML文件的位置--> - <sqlMapGenerator targetPackage="mapper" targetProject="src/main/resources"> - <property name="enableSubPackages" value="true"/> + <sqlMapGenerator targetPackage="mappers" targetProject="src/main/resources"> + <property name="enableSubPackages" value="true" /> </sqlMapGenerator> - <!-- 配置Mapper接口的位置 --> - <javaClientGenerator type="XMLMAPPER" targetPackage="com.sztzjy.mappers" targetProject="src/main/java"> + <javaClientGenerator type="XMLMAPPER" targetPackage="com.sztzjy.digital_credit.mapper" targetProject="src/main/java"> <property name="enableSubPackages" value="true" /> </javaClientGenerator> <!-- 需要生成的表 --> -<!-- <table tableName="stu_class" domainObjectName="StuClass" />--> -<!-- <table tableName="stu_error" domainObjectName="StuError" />--> -<!-- <table tableName="stu_exam_case" domainObjectName="StuExamCase" />--> -<!-- <table tableName="stu_student_exam" domainObjectName="StuStudentExam" />--> -<!-- <table tableName="stu_theory_exam" domainObjectName="StuTheoryExam" />--> -<!-- <table tableName="stu_theory_record" domainObjectName="StuTheoryRecord" />--> -<!-- <table tableName="stu_training" domainObjectName="StuTraining" />--> -<!-- <table tableName="stu_user" domainObjectName="StuUser" />--> -<!-- <table tableName="sys_case_question_bank" domainObjectName="SysCaseQuestionBank" />--> -<!-- <table tableName="sys_course" domainObjectName="SysCourse" />--> -<!-- <table tableName="sys_course_chapter" domainObjectName="SysCourseChapter" />--> -<!-- <table tableName="sys_log" domainObjectName="SysLog" />--> -<!-- <table tableName="sys_objective_question" domainObjectName="SysObjectiveQuestion" />--> -<!-- <table tableName="tea_exam_manage" domainObjectName="TeaExamManage" />--> -<!-- <table tableName="tea_learning_statistics" domainObjectName="TeaLearningStatistics" />--> - <table tableName="stu_user" domainObjectName="StuUser" /> + <!-- <table tableName="stu_class" domainObjectName="StuClass" />--> + <!-- <table tableName="stu_error" domainObjectName="StuError" />--> + <!-- <table tableName="stu_exam_case" domainObjectName="StuExamCase" />--> + <!-- <table tableName="stu_student_exam" domainObjectName="StuStudentExam" />--> + <!-- <table tableName="stu_theory_exam" domainObjectName="StuTheoryExam" />--> + <!-- <table tableName="stu_theory_record" domainObjectName="StuTheoryRecord" />--> + <!-- <table tableName="stu_training" domainObjectName="StuTraining" />--> + <!-- <table tableName="stu_user" domainObjectName="StuUser" />--> + <!-- <table tableName="sys_case_question_bank" domainObjectName="SysCaseQuestionBank" />--> + <!-- <table tableName="sys_course" domainObjectName="SysCourse" />--> + <!-- <table tableName="sys_course_chapter" domainObjectName="SysCourseChapter" />--> + <!-- <table tableName="sys_log" domainObjectName="SysLog" />--> + <!-- <table tableName="sys_objective_question" domainObjectName="SysObjectiveQuestion" />--> + <!-- <table tableName="tea_exam_manage" domainObjectName="TeaExamManage" />--> + <!-- <table tableName="tea_learning_statistics" domainObjectName="TeaLearningStatistics" />--> +<!-- <table tableName="stu_base_info" domainObjectName="StuBaseInfo"/>--> +<!-- <table tableName="stu_practical_training_report" domainObjectName="StuPracticalTrainingReport"/>--> + <table tableName="stu_user" domainObjectName="StuUser"/> -<!-- <table tableName="training_report" domainObjectName="TrainingReport" />--> + <!-- <table tableName="training_report" domainObjectName="TrainingReport" />--> </context> diff --git a/src/main/resources/mapper/StuUserMapper.xml b/src/main/resources/mapper/StuUserMapper.xml deleted file mode 100644 index c8c7ce3..0000000 --- a/src/main/resources/mapper/StuUserMapper.xml +++ /dev/null @@ -1,2510 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> -<mapper namespace="com.sztzjy.mappers.StuUserMapper"> - <resultMap id="BaseResultMap" type="com.sztzjy.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.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.entity.StuUserExample"> - delete from stu_user - <if test="_parameter != null"> - <include refid="Example_Where_Clause" /> - </if> - </delete> - <insert id="insert" parameterType="com.sztzjy.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.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.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.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.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> - <resultMap id="BaseResultMap" type="com.sztzjy.entity.StuUser"> - <id column="user_id" jdbcType="VARCHAR" property="userId" /> - <result column="student_id" jdbcType="VARCHAR" property="studentId" /> - <result column="name" jdbcType="VARCHAR" property="name" /> - <result column="password" jdbcType="VARCHAR" property="password" /> - <result column="role_id" jdbcType="INTEGER" property="roleId" /> - <result column="class_id" jdbcType="VARCHAR" property="classId" /> - <result column="class_name" jdbcType="VARCHAR" property="className" /> - <result column="major" jdbcType="VARCHAR" property="major" /> - <result column="school_id" jdbcType="VARCHAR" property="schoolId" /> - <result column="school_name" jdbcType="VARCHAR" property="schoolName" /> - <result column="hash_function_score" jdbcType="DECIMAL" property="hashFunctionScore" /> - <result column="blockchain_score" jdbcType="DECIMAL" property="blockchainScore" /> - <result column="data_layer_score" jdbcType="DECIMAL" property="dataLayerScore" /> - <result column="network_layer_score" jdbcType="DECIMAL" property="networkLayerScore" /> - <result column="consensus_layer_socre" jdbcType="DECIMAL" property="consensusLayerSocre" /> - <result column="exciting_layer_socre" jdbcType="DECIMAL" property="excitingLayerSocre" /> - <result column="contract_layer_socre" jdbcType="DECIMAL" property="contractLayerSocre" /> - <result column="concept_score" jdbcType="DECIMAL" property="conceptScore" /> - <result column="concept_rank" jdbcType="INTEGER" property="conceptRank" /> - <result column="technology_socre" jdbcType="DECIMAL" property="technologySocre" /> - <result column="technology_rank" jdbcType="INTEGER" property="technologyRank" /> - <result column="digital_currency_score" jdbcType="DECIMAL" property="digitalCurrencyScore" /> - <result column="digital_currency_rank" jdbcType="INTEGER" property="digitalCurrencyRank" /> - <result column="invoice_score" jdbcType="DECIMAL" property="invoiceScore" /> - <result column="supply_chain_finance_score" jdbcType="DECIMAL" property="supplyChainFinanceScore" /> - <result column="traceability_and_anti_counterfeiting_score" jdbcType="DECIMAL" property="traceabilityAndAntiCounterfeitingScore" /> - <result column="ticket_results_score" jdbcType="DECIMAL" property="ticketResultsScore" /> - <result column="cross_border_payment_results_score" jdbcType="DECIMAL" property="crossBorderPaymentResultsScore" /> - <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, student_id, name, password, role_id, class_id, class_name, major, school_id, - school_name, hash_function_score, blockchain_score, data_layer_score, network_layer_score, - consensus_layer_socre, exciting_layer_socre, contract_layer_socre, concept_score, - concept_rank, technology_socre, technology_rank, digital_currency_score, digital_currency_rank, - invoice_score, supply_chain_finance_score, traceability_and_anti_counterfeiting_score, - ticket_results_score, cross_border_payment_results_score, total_rank, total_score - </sql> - <select id="selectByExample" parameterType="com.sztzjy.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.entity.StuUserExample"> - delete from stu_user - <if test="_parameter != null"> - <include refid="Example_Where_Clause" /> - </if> - </delete> - <insert id="insert" parameterType="com.sztzjy.entity.StuUser"> - insert into stu_user (user_id, student_id, name, - password, role_id, class_id, - class_name, major, school_id, - school_name, hash_function_score, blockchain_score, - data_layer_score, network_layer_score, consensus_layer_socre, - exciting_layer_socre, contract_layer_socre, - concept_score, concept_rank, technology_socre, - technology_rank, digital_currency_score, digital_currency_rank, - invoice_score, supply_chain_finance_score, - traceability_and_anti_counterfeiting_score, ticket_results_score, - cross_border_payment_results_score, total_rank, - total_score) - values (#{userId,jdbcType=VARCHAR}, #{studentId,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}, #{hashFunctionScore,jdbcType=DECIMAL}, #{blockchainScore,jdbcType=DECIMAL}, - #{dataLayerScore,jdbcType=DECIMAL}, #{networkLayerScore,jdbcType=DECIMAL}, #{consensusLayerSocre,jdbcType=DECIMAL}, - #{excitingLayerSocre,jdbcType=DECIMAL}, #{contractLayerSocre,jdbcType=DECIMAL}, - #{conceptScore,jdbcType=DECIMAL}, #{conceptRank,jdbcType=INTEGER}, #{technologySocre,jdbcType=DECIMAL}, - #{technologyRank,jdbcType=INTEGER}, #{digitalCurrencyScore,jdbcType=DECIMAL}, #{digitalCurrencyRank,jdbcType=INTEGER}, - #{invoiceScore,jdbcType=DECIMAL}, #{supplyChainFinanceScore,jdbcType=DECIMAL}, - #{traceabilityAndAntiCounterfeitingScore,jdbcType=DECIMAL}, #{ticketResultsScore,jdbcType=DECIMAL}, - #{crossBorderPaymentResultsScore,jdbcType=DECIMAL}, #{totalRank,jdbcType=INTEGER}, - #{totalScore,jdbcType=DECIMAL}) - </insert> - <insert id="insertSelective" parameterType="com.sztzjy.entity.StuUser"> - insert into stu_user - <trim prefix="(" suffix=")" suffixOverrides=","> - <if test="userId != null"> - user_id, - </if> - <if test="studentId != null"> - student_id, - </if> - <if test="name != null"> - name, - </if> - <if test="password != null"> - password, - </if> - <if test="roleId != null"> - role_id, - </if> - <if test="classId != null"> - class_id, - </if> - <if test="className != null"> - class_name, - </if> - <if test="major != null"> - major, - </if> - <if test="schoolId != null"> - school_id, - </if> - <if test="schoolName != null"> - school_name, - </if> - <if test="hashFunctionScore != null"> - hash_function_score, - </if> - <if test="blockchainScore != null"> - blockchain_score, - </if> - <if test="dataLayerScore != null"> - data_layer_score, - </if> - <if test="networkLayerScore != null"> - network_layer_score, - </if> - <if test="consensusLayerSocre != null"> - consensus_layer_socre, - </if> - <if test="excitingLayerSocre != null"> - exciting_layer_socre, - </if> - <if test="contractLayerSocre != null"> - contract_layer_socre, - </if> - <if test="conceptScore != null"> - concept_score, - </if> - <if test="conceptRank != null"> - concept_rank, - </if> - <if test="technologySocre != null"> - technology_socre, - </if> - <if test="technologyRank != null"> - technology_rank, - </if> - <if test="digitalCurrencyScore != null"> - digital_currency_score, - </if> - <if test="digitalCurrencyRank != null"> - digital_currency_rank, - </if> - <if test="invoiceScore != null"> - invoice_score, - </if> - <if test="supplyChainFinanceScore != null"> - supply_chain_finance_score, - </if> - <if test="traceabilityAndAntiCounterfeitingScore != null"> - traceability_and_anti_counterfeiting_score, - </if> - <if test="ticketResultsScore != null"> - ticket_results_score, - </if> - <if test="crossBorderPaymentResultsScore != null"> - cross_border_payment_results_score, - </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="studentId != null"> - #{studentId,jdbcType=VARCHAR}, - </if> - <if test="name != null"> - #{name,jdbcType=VARCHAR}, - </if> - <if test="password != null"> - #{password,jdbcType=VARCHAR}, - </if> - <if test="roleId != null"> - #{roleId,jdbcType=INTEGER}, - </if> - <if test="classId != null"> - #{classId,jdbcType=VARCHAR}, - </if> - <if test="className != null"> - #{className,jdbcType=VARCHAR}, - </if> - <if test="major != null"> - #{major,jdbcType=VARCHAR}, - </if> - <if test="schoolId != null"> - #{schoolId,jdbcType=VARCHAR}, - </if> - <if test="schoolName != null"> - #{schoolName,jdbcType=VARCHAR}, - </if> - <if test="hashFunctionScore != null"> - #{hashFunctionScore,jdbcType=DECIMAL}, - </if> - <if test="blockchainScore != null"> - #{blockchainScore,jdbcType=DECIMAL}, - </if> - <if test="dataLayerScore != null"> - #{dataLayerScore,jdbcType=DECIMAL}, - </if> - <if test="networkLayerScore != null"> - #{networkLayerScore,jdbcType=DECIMAL}, - </if> - <if test="consensusLayerSocre != null"> - #{consensusLayerSocre,jdbcType=DECIMAL}, - </if> - <if test="excitingLayerSocre != null"> - #{excitingLayerSocre,jdbcType=DECIMAL}, - </if> - <if test="contractLayerSocre != null"> - #{contractLayerSocre,jdbcType=DECIMAL}, - </if> - <if test="conceptScore != null"> - #{conceptScore,jdbcType=DECIMAL}, - </if> - <if test="conceptRank != null"> - #{conceptRank,jdbcType=INTEGER}, - </if> - <if test="technologySocre != null"> - #{technologySocre,jdbcType=DECIMAL}, - </if> - <if test="technologyRank != null"> - #{technologyRank,jdbcType=INTEGER}, - </if> - <if test="digitalCurrencyScore != null"> - #{digitalCurrencyScore,jdbcType=DECIMAL}, - </if> - <if test="digitalCurrencyRank != null"> - #{digitalCurrencyRank,jdbcType=INTEGER}, - </if> - <if test="invoiceScore != null"> - #{invoiceScore,jdbcType=DECIMAL}, - </if> - <if test="supplyChainFinanceScore != null"> - #{supplyChainFinanceScore,jdbcType=DECIMAL}, - </if> - <if test="traceabilityAndAntiCounterfeitingScore != null"> - #{traceabilityAndAntiCounterfeitingScore,jdbcType=DECIMAL}, - </if> - <if test="ticketResultsScore != null"> - #{ticketResultsScore,jdbcType=DECIMAL}, - </if> - <if test="crossBorderPaymentResultsScore != null"> - #{crossBorderPaymentResultsScore,jdbcType=DECIMAL}, - </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.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.studentId != null"> - student_id = #{record.studentId,jdbcType=VARCHAR}, - </if> - <if test="record.name != null"> - name = #{record.name,jdbcType=VARCHAR}, - </if> - <if test="record.password != null"> - password = #{record.password,jdbcType=VARCHAR}, - </if> - <if test="record.roleId != null"> - role_id = #{record.roleId,jdbcType=INTEGER}, - </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.major != null"> - major = #{record.major,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.hashFunctionScore != null"> - hash_function_score = #{record.hashFunctionScore,jdbcType=DECIMAL}, - </if> - <if test="record.blockchainScore != null"> - blockchain_score = #{record.blockchainScore,jdbcType=DECIMAL}, - </if> - <if test="record.dataLayerScore != null"> - data_layer_score = #{record.dataLayerScore,jdbcType=DECIMAL}, - </if> - <if test="record.networkLayerScore != null"> - network_layer_score = #{record.networkLayerScore,jdbcType=DECIMAL}, - </if> - <if test="record.consensusLayerSocre != null"> - consensus_layer_socre = #{record.consensusLayerSocre,jdbcType=DECIMAL}, - </if> - <if test="record.excitingLayerSocre != null"> - exciting_layer_socre = #{record.excitingLayerSocre,jdbcType=DECIMAL}, - </if> - <if test="record.contractLayerSocre != null"> - contract_layer_socre = #{record.contractLayerSocre,jdbcType=DECIMAL}, - </if> - <if test="record.conceptScore != null"> - concept_score = #{record.conceptScore,jdbcType=DECIMAL}, - </if> - <if test="record.conceptRank != null"> - concept_rank = #{record.conceptRank,jdbcType=INTEGER}, - </if> - <if test="record.technologySocre != null"> - technology_socre = #{record.technologySocre,jdbcType=DECIMAL}, - </if> - <if test="record.technologyRank != null"> - technology_rank = #{record.technologyRank,jdbcType=INTEGER}, - </if> - <if test="record.digitalCurrencyScore != null"> - digital_currency_score = #{record.digitalCurrencyScore,jdbcType=DECIMAL}, - </if> - <if test="record.digitalCurrencyRank != null"> - digital_currency_rank = #{record.digitalCurrencyRank,jdbcType=INTEGER}, - </if> - <if test="record.invoiceScore != null"> - invoice_score = #{record.invoiceScore,jdbcType=DECIMAL}, - </if> - <if test="record.supplyChainFinanceScore != null"> - supply_chain_finance_score = #{record.supplyChainFinanceScore,jdbcType=DECIMAL}, - </if> - <if test="record.traceabilityAndAntiCounterfeitingScore != null"> - traceability_and_anti_counterfeiting_score = #{record.traceabilityAndAntiCounterfeitingScore,jdbcType=DECIMAL}, - </if> - <if test="record.ticketResultsScore != null"> - ticket_results_score = #{record.ticketResultsScore,jdbcType=DECIMAL}, - </if> - <if test="record.crossBorderPaymentResultsScore != null"> - cross_border_payment_results_score = #{record.crossBorderPaymentResultsScore,jdbcType=DECIMAL}, - </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}, - student_id = #{record.studentId,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}, - hash_function_score = #{record.hashFunctionScore,jdbcType=DECIMAL}, - blockchain_score = #{record.blockchainScore,jdbcType=DECIMAL}, - data_layer_score = #{record.dataLayerScore,jdbcType=DECIMAL}, - network_layer_score = #{record.networkLayerScore,jdbcType=DECIMAL}, - consensus_layer_socre = #{record.consensusLayerSocre,jdbcType=DECIMAL}, - exciting_layer_socre = #{record.excitingLayerSocre,jdbcType=DECIMAL}, - contract_layer_socre = #{record.contractLayerSocre,jdbcType=DECIMAL}, - concept_score = #{record.conceptScore,jdbcType=DECIMAL}, - concept_rank = #{record.conceptRank,jdbcType=INTEGER}, - technology_socre = #{record.technologySocre,jdbcType=DECIMAL}, - technology_rank = #{record.technologyRank,jdbcType=INTEGER}, - digital_currency_score = #{record.digitalCurrencyScore,jdbcType=DECIMAL}, - digital_currency_rank = #{record.digitalCurrencyRank,jdbcType=INTEGER}, - invoice_score = #{record.invoiceScore,jdbcType=DECIMAL}, - supply_chain_finance_score = #{record.supplyChainFinanceScore,jdbcType=DECIMAL}, - traceability_and_anti_counterfeiting_score = #{record.traceabilityAndAntiCounterfeitingScore,jdbcType=DECIMAL}, - ticket_results_score = #{record.ticketResultsScore,jdbcType=DECIMAL}, - cross_border_payment_results_score = #{record.crossBorderPaymentResultsScore,jdbcType=DECIMAL}, - 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.entity.StuUser"> - update stu_user - <set> - <if test="studentId != null"> - student_id = #{studentId,jdbcType=VARCHAR}, - </if> - <if test="name != null"> - name = #{name,jdbcType=VARCHAR}, - </if> - <if test="password != null"> - password = #{password,jdbcType=VARCHAR}, - </if> - <if test="roleId != null"> - role_id = #{roleId,jdbcType=INTEGER}, - </if> - <if test="classId != null"> - class_id = #{classId,jdbcType=VARCHAR}, - </if> - <if test="className != null"> - class_name = #{className,jdbcType=VARCHAR}, - </if> - <if test="major != null"> - major = #{major,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="hashFunctionScore != null"> - hash_function_score = #{hashFunctionScore,jdbcType=DECIMAL}, - </if> - <if test="blockchainScore != null"> - blockchain_score = #{blockchainScore,jdbcType=DECIMAL}, - </if> - <if test="dataLayerScore != null"> - data_layer_score = #{dataLayerScore,jdbcType=DECIMAL}, - </if> - <if test="networkLayerScore != null"> - network_layer_score = #{networkLayerScore,jdbcType=DECIMAL}, - </if> - <if test="consensusLayerSocre != null"> - consensus_layer_socre = #{consensusLayerSocre,jdbcType=DECIMAL}, - </if> - <if test="excitingLayerSocre != null"> - exciting_layer_socre = #{excitingLayerSocre,jdbcType=DECIMAL}, - </if> - <if test="contractLayerSocre != null"> - contract_layer_socre = #{contractLayerSocre,jdbcType=DECIMAL}, - </if> - <if test="conceptScore != null"> - concept_score = #{conceptScore,jdbcType=DECIMAL}, - </if> - <if test="conceptRank != null"> - concept_rank = #{conceptRank,jdbcType=INTEGER}, - </if> - <if test="technologySocre != null"> - technology_socre = #{technologySocre,jdbcType=DECIMAL}, - </if> - <if test="technologyRank != null"> - technology_rank = #{technologyRank,jdbcType=INTEGER}, - </if> - <if test="digitalCurrencyScore != null"> - digital_currency_score = #{digitalCurrencyScore,jdbcType=DECIMAL}, - </if> - <if test="digitalCurrencyRank != null"> - digital_currency_rank = #{digitalCurrencyRank,jdbcType=INTEGER}, - </if> - <if test="invoiceScore != null"> - invoice_score = #{invoiceScore,jdbcType=DECIMAL}, - </if> - <if test="supplyChainFinanceScore != null"> - supply_chain_finance_score = #{supplyChainFinanceScore,jdbcType=DECIMAL}, - </if> - <if test="traceabilityAndAntiCounterfeitingScore != null"> - traceability_and_anti_counterfeiting_score = #{traceabilityAndAntiCounterfeitingScore,jdbcType=DECIMAL}, - </if> - <if test="ticketResultsScore != null"> - ticket_results_score = #{ticketResultsScore,jdbcType=DECIMAL}, - </if> - <if test="crossBorderPaymentResultsScore != null"> - cross_border_payment_results_score = #{crossBorderPaymentResultsScore,jdbcType=DECIMAL}, - </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.entity.StuUser"> - update stu_user - set student_id = #{studentId,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}, - hash_function_score = #{hashFunctionScore,jdbcType=DECIMAL}, - blockchain_score = #{blockchainScore,jdbcType=DECIMAL}, - data_layer_score = #{dataLayerScore,jdbcType=DECIMAL}, - network_layer_score = #{networkLayerScore,jdbcType=DECIMAL}, - consensus_layer_socre = #{consensusLayerSocre,jdbcType=DECIMAL}, - exciting_layer_socre = #{excitingLayerSocre,jdbcType=DECIMAL}, - contract_layer_socre = #{contractLayerSocre,jdbcType=DECIMAL}, - concept_score = #{conceptScore,jdbcType=DECIMAL}, - concept_rank = #{conceptRank,jdbcType=INTEGER}, - technology_socre = #{technologySocre,jdbcType=DECIMAL}, - technology_rank = #{technologyRank,jdbcType=INTEGER}, - digital_currency_score = #{digitalCurrencyScore,jdbcType=DECIMAL}, - digital_currency_rank = #{digitalCurrencyRank,jdbcType=INTEGER}, - invoice_score = #{invoiceScore,jdbcType=DECIMAL}, - supply_chain_finance_score = #{supplyChainFinanceScore,jdbcType=DECIMAL}, - traceability_and_anti_counterfeiting_score = #{traceabilityAndAntiCounterfeitingScore,jdbcType=DECIMAL}, - ticket_results_score = #{ticketResultsScore,jdbcType=DECIMAL}, - cross_border_payment_results_score = #{crossBorderPaymentResultsScore,jdbcType=DECIMAL}, - total_rank = #{totalRank,jdbcType=INTEGER}, - total_score = #{totalScore,jdbcType=DECIMAL} - where user_id = #{userId,jdbcType=VARCHAR} - </update> - <resultMap id="BaseResultMap" type="com.sztzjy.entity.StuUser"> - <id column="user_id" jdbcType="VARCHAR" property="userId" /> - <result column="student_id" jdbcType="VARCHAR" property="studentId" /> - <result column="name" jdbcType="VARCHAR" property="name" /> - <result column="password" jdbcType="VARCHAR" property="password" /> - <result column="role_id" jdbcType="INTEGER" property="roleId" /> - <result column="class_id" jdbcType="VARCHAR" property="classId" /> - <result column="class_name" jdbcType="VARCHAR" property="className" /> - <result column="major" jdbcType="VARCHAR" property="major" /> - <result column="school_id" jdbcType="VARCHAR" property="schoolId" /> - <result column="school_name" jdbcType="VARCHAR" property="schoolName" /> - <result column="hash_function_score" jdbcType="DECIMAL" property="hashFunctionScore" /> - <result column="blockchain_score" jdbcType="DECIMAL" property="blockchainScore" /> - <result column="data_layer_score" jdbcType="DECIMAL" property="dataLayerScore" /> - <result column="network_layer_score" jdbcType="DECIMAL" property="networkLayerScore" /> - <result column="consensus_layer_socre" jdbcType="DECIMAL" property="consensusLayerSocre" /> - <result column="exciting_layer_socre" jdbcType="DECIMAL" property="excitingLayerSocre" /> - <result column="contract_layer_socre" jdbcType="DECIMAL" property="contractLayerSocre" /> - <result column="concept_score" jdbcType="DECIMAL" property="conceptScore" /> - <result column="concept_rank" jdbcType="INTEGER" property="conceptRank" /> - <result column="technology_socre" jdbcType="DECIMAL" property="technologySocre" /> - <result column="technology_rank" jdbcType="INTEGER" property="technologyRank" /> - <result column="digital_currency_score" jdbcType="DECIMAL" property="digitalCurrencyScore" /> - <result column="digital_currency_rank" jdbcType="INTEGER" property="digitalCurrencyRank" /> - <result column="invoice_score" jdbcType="DECIMAL" property="invoiceScore" /> - <result column="supply_chain_finance_score" jdbcType="DECIMAL" property="supplyChainFinanceScore" /> - <result column="traceability_and_anti_counterfeiting_score" jdbcType="DECIMAL" property="traceabilityAndAntiCounterfeitingScore" /> - <result column="ticket_results_score" jdbcType="DECIMAL" property="ticketResultsScore" /> - <result column="cross_border_payment_results_score" jdbcType="DECIMAL" property="crossBorderPaymentResultsScore" /> - <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, student_id, name, password, role_id, class_id, class_name, major, school_id, - school_name, hash_function_score, blockchain_score, data_layer_score, network_layer_score, - consensus_layer_socre, exciting_layer_socre, contract_layer_socre, concept_score, - concept_rank, technology_socre, technology_rank, digital_currency_score, digital_currency_rank, - invoice_score, supply_chain_finance_score, traceability_and_anti_counterfeiting_score, - ticket_results_score, cross_border_payment_results_score, total_rank, total_score - </sql> - <select id="selectByExample" parameterType="com.sztzjy.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.entity.StuUserExample"> - delete from stu_user - <if test="_parameter != null"> - <include refid="Example_Where_Clause" /> - </if> - </delete> - <insert id="insert" parameterType="com.sztzjy.entity.StuUser"> - insert into stu_user (user_id, student_id, name, - password, role_id, class_id, - class_name, major, school_id, - school_name, hash_function_score, blockchain_score, - data_layer_score, network_layer_score, consensus_layer_socre, - exciting_layer_socre, contract_layer_socre, - concept_score, concept_rank, technology_socre, - technology_rank, digital_currency_score, digital_currency_rank, - invoice_score, supply_chain_finance_score, - traceability_and_anti_counterfeiting_score, ticket_results_score, - cross_border_payment_results_score, total_rank, - total_score) - values (#{userId,jdbcType=VARCHAR}, #{studentId,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}, #{hashFunctionScore,jdbcType=DECIMAL}, #{blockchainScore,jdbcType=DECIMAL}, - #{dataLayerScore,jdbcType=DECIMAL}, #{networkLayerScore,jdbcType=DECIMAL}, #{consensusLayerSocre,jdbcType=DECIMAL}, - #{excitingLayerSocre,jdbcType=DECIMAL}, #{contractLayerSocre,jdbcType=DECIMAL}, - #{conceptScore,jdbcType=DECIMAL}, #{conceptRank,jdbcType=INTEGER}, #{technologySocre,jdbcType=DECIMAL}, - #{technologyRank,jdbcType=INTEGER}, #{digitalCurrencyScore,jdbcType=DECIMAL}, #{digitalCurrencyRank,jdbcType=INTEGER}, - #{invoiceScore,jdbcType=DECIMAL}, #{supplyChainFinanceScore,jdbcType=DECIMAL}, - #{traceabilityAndAntiCounterfeitingScore,jdbcType=DECIMAL}, #{ticketResultsScore,jdbcType=DECIMAL}, - #{crossBorderPaymentResultsScore,jdbcType=DECIMAL}, #{totalRank,jdbcType=INTEGER}, - #{totalScore,jdbcType=DECIMAL}) - </insert> - <insert id="insertSelective" parameterType="com.sztzjy.entity.StuUser"> - insert into stu_user - <trim prefix="(" suffix=")" suffixOverrides=","> - <if test="userId != null"> - user_id, - </if> - <if test="studentId != null"> - student_id, - </if> - <if test="name != null"> - name, - </if> - <if test="password != null"> - password, - </if> - <if test="roleId != null"> - role_id, - </if> - <if test="classId != null"> - class_id, - </if> - <if test="className != null"> - class_name, - </if> - <if test="major != null"> - major, - </if> - <if test="schoolId != null"> - school_id, - </if> - <if test="schoolName != null"> - school_name, - </if> - <if test="hashFunctionScore != null"> - hash_function_score, - </if> - <if test="blockchainScore != null"> - blockchain_score, - </if> - <if test="dataLayerScore != null"> - data_layer_score, - </if> - <if test="networkLayerScore != null"> - network_layer_score, - </if> - <if test="consensusLayerSocre != null"> - consensus_layer_socre, - </if> - <if test="excitingLayerSocre != null"> - exciting_layer_socre, - </if> - <if test="contractLayerSocre != null"> - contract_layer_socre, - </if> - <if test="conceptScore != null"> - concept_score, - </if> - <if test="conceptRank != null"> - concept_rank, - </if> - <if test="technologySocre != null"> - technology_socre, - </if> - <if test="technologyRank != null"> - technology_rank, - </if> - <if test="digitalCurrencyScore != null"> - digital_currency_score, - </if> - <if test="digitalCurrencyRank != null"> - digital_currency_rank, - </if> - <if test="invoiceScore != null"> - invoice_score, - </if> - <if test="supplyChainFinanceScore != null"> - supply_chain_finance_score, - </if> - <if test="traceabilityAndAntiCounterfeitingScore != null"> - traceability_and_anti_counterfeiting_score, - </if> - <if test="ticketResultsScore != null"> - ticket_results_score, - </if> - <if test="crossBorderPaymentResultsScore != null"> - cross_border_payment_results_score, - </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="studentId != null"> - #{studentId,jdbcType=VARCHAR}, - </if> - <if test="name != null"> - #{name,jdbcType=VARCHAR}, - </if> - <if test="password != null"> - #{password,jdbcType=VARCHAR}, - </if> - <if test="roleId != null"> - #{roleId,jdbcType=INTEGER}, - </if> - <if test="classId != null"> - #{classId,jdbcType=VARCHAR}, - </if> - <if test="className != null"> - #{className,jdbcType=VARCHAR}, - </if> - <if test="major != null"> - #{major,jdbcType=VARCHAR}, - </if> - <if test="schoolId != null"> - #{schoolId,jdbcType=VARCHAR}, - </if> - <if test="schoolName != null"> - #{schoolName,jdbcType=VARCHAR}, - </if> - <if test="hashFunctionScore != null"> - #{hashFunctionScore,jdbcType=DECIMAL}, - </if> - <if test="blockchainScore != null"> - #{blockchainScore,jdbcType=DECIMAL}, - </if> - <if test="dataLayerScore != null"> - #{dataLayerScore,jdbcType=DECIMAL}, - </if> - <if test="networkLayerScore != null"> - #{networkLayerScore,jdbcType=DECIMAL}, - </if> - <if test="consensusLayerSocre != null"> - #{consensusLayerSocre,jdbcType=DECIMAL}, - </if> - <if test="excitingLayerSocre != null"> - #{excitingLayerSocre,jdbcType=DECIMAL}, - </if> - <if test="contractLayerSocre != null"> - #{contractLayerSocre,jdbcType=DECIMAL}, - </if> - <if test="conceptScore != null"> - #{conceptScore,jdbcType=DECIMAL}, - </if> - <if test="conceptRank != null"> - #{conceptRank,jdbcType=INTEGER}, - </if> - <if test="technologySocre != null"> - #{technologySocre,jdbcType=DECIMAL}, - </if> - <if test="technologyRank != null"> - #{technologyRank,jdbcType=INTEGER}, - </if> - <if test="digitalCurrencyScore != null"> - #{digitalCurrencyScore,jdbcType=DECIMAL}, - </if> - <if test="digitalCurrencyRank != null"> - #{digitalCurrencyRank,jdbcType=INTEGER}, - </if> - <if test="invoiceScore != null"> - #{invoiceScore,jdbcType=DECIMAL}, - </if> - <if test="supplyChainFinanceScore != null"> - #{supplyChainFinanceScore,jdbcType=DECIMAL}, - </if> - <if test="traceabilityAndAntiCounterfeitingScore != null"> - #{traceabilityAndAntiCounterfeitingScore,jdbcType=DECIMAL}, - </if> - <if test="ticketResultsScore != null"> - #{ticketResultsScore,jdbcType=DECIMAL}, - </if> - <if test="crossBorderPaymentResultsScore != null"> - #{crossBorderPaymentResultsScore,jdbcType=DECIMAL}, - </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.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.studentId != null"> - student_id = #{record.studentId,jdbcType=VARCHAR}, - </if> - <if test="record.name != null"> - name = #{record.name,jdbcType=VARCHAR}, - </if> - <if test="record.password != null"> - password = #{record.password,jdbcType=VARCHAR}, - </if> - <if test="record.roleId != null"> - role_id = #{record.roleId,jdbcType=INTEGER}, - </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.major != null"> - major = #{record.major,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.hashFunctionScore != null"> - hash_function_score = #{record.hashFunctionScore,jdbcType=DECIMAL}, - </if> - <if test="record.blockchainScore != null"> - blockchain_score = #{record.blockchainScore,jdbcType=DECIMAL}, - </if> - <if test="record.dataLayerScore != null"> - data_layer_score = #{record.dataLayerScore,jdbcType=DECIMAL}, - </if> - <if test="record.networkLayerScore != null"> - network_layer_score = #{record.networkLayerScore,jdbcType=DECIMAL}, - </if> - <if test="record.consensusLayerSocre != null"> - consensus_layer_socre = #{record.consensusLayerSocre,jdbcType=DECIMAL}, - </if> - <if test="record.excitingLayerSocre != null"> - exciting_layer_socre = #{record.excitingLayerSocre,jdbcType=DECIMAL}, - </if> - <if test="record.contractLayerSocre != null"> - contract_layer_socre = #{record.contractLayerSocre,jdbcType=DECIMAL}, - </if> - <if test="record.conceptScore != null"> - concept_score = #{record.conceptScore,jdbcType=DECIMAL}, - </if> - <if test="record.conceptRank != null"> - concept_rank = #{record.conceptRank,jdbcType=INTEGER}, - </if> - <if test="record.technologySocre != null"> - technology_socre = #{record.technologySocre,jdbcType=DECIMAL}, - </if> - <if test="record.technologyRank != null"> - technology_rank = #{record.technologyRank,jdbcType=INTEGER}, - </if> - <if test="record.digitalCurrencyScore != null"> - digital_currency_score = #{record.digitalCurrencyScore,jdbcType=DECIMAL}, - </if> - <if test="record.digitalCurrencyRank != null"> - digital_currency_rank = #{record.digitalCurrencyRank,jdbcType=INTEGER}, - </if> - <if test="record.invoiceScore != null"> - invoice_score = #{record.invoiceScore,jdbcType=DECIMAL}, - </if> - <if test="record.supplyChainFinanceScore != null"> - supply_chain_finance_score = #{record.supplyChainFinanceScore,jdbcType=DECIMAL}, - </if> - <if test="record.traceabilityAndAntiCounterfeitingScore != null"> - traceability_and_anti_counterfeiting_score = #{record.traceabilityAndAntiCounterfeitingScore,jdbcType=DECIMAL}, - </if> - <if test="record.ticketResultsScore != null"> - ticket_results_score = #{record.ticketResultsScore,jdbcType=DECIMAL}, - </if> - <if test="record.crossBorderPaymentResultsScore != null"> - cross_border_payment_results_score = #{record.crossBorderPaymentResultsScore,jdbcType=DECIMAL}, - </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}, - student_id = #{record.studentId,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}, - hash_function_score = #{record.hashFunctionScore,jdbcType=DECIMAL}, - blockchain_score = #{record.blockchainScore,jdbcType=DECIMAL}, - data_layer_score = #{record.dataLayerScore,jdbcType=DECIMAL}, - network_layer_score = #{record.networkLayerScore,jdbcType=DECIMAL}, - consensus_layer_socre = #{record.consensusLayerSocre,jdbcType=DECIMAL}, - exciting_layer_socre = #{record.excitingLayerSocre,jdbcType=DECIMAL}, - contract_layer_socre = #{record.contractLayerSocre,jdbcType=DECIMAL}, - concept_score = #{record.conceptScore,jdbcType=DECIMAL}, - concept_rank = #{record.conceptRank,jdbcType=INTEGER}, - technology_socre = #{record.technologySocre,jdbcType=DECIMAL}, - technology_rank = #{record.technologyRank,jdbcType=INTEGER}, - digital_currency_score = #{record.digitalCurrencyScore,jdbcType=DECIMAL}, - digital_currency_rank = #{record.digitalCurrencyRank,jdbcType=INTEGER}, - invoice_score = #{record.invoiceScore,jdbcType=DECIMAL}, - supply_chain_finance_score = #{record.supplyChainFinanceScore,jdbcType=DECIMAL}, - traceability_and_anti_counterfeiting_score = #{record.traceabilityAndAntiCounterfeitingScore,jdbcType=DECIMAL}, - ticket_results_score = #{record.ticketResultsScore,jdbcType=DECIMAL}, - cross_border_payment_results_score = #{record.crossBorderPaymentResultsScore,jdbcType=DECIMAL}, - 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.entity.StuUser"> - update stu_user - <set> - <if test="studentId != null"> - student_id = #{studentId,jdbcType=VARCHAR}, - </if> - <if test="name != null"> - name = #{name,jdbcType=VARCHAR}, - </if> - <if test="password != null"> - password = #{password,jdbcType=VARCHAR}, - </if> - <if test="roleId != null"> - role_id = #{roleId,jdbcType=INTEGER}, - </if> - <if test="classId != null"> - class_id = #{classId,jdbcType=VARCHAR}, - </if> - <if test="className != null"> - class_name = #{className,jdbcType=VARCHAR}, - </if> - <if test="major != null"> - major = #{major,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="hashFunctionScore != null"> - hash_function_score = #{hashFunctionScore,jdbcType=DECIMAL}, - </if> - <if test="blockchainScore != null"> - blockchain_score = #{blockchainScore,jdbcType=DECIMAL}, - </if> - <if test="dataLayerScore != null"> - data_layer_score = #{dataLayerScore,jdbcType=DECIMAL}, - </if> - <if test="networkLayerScore != null"> - network_layer_score = #{networkLayerScore,jdbcType=DECIMAL}, - </if> - <if test="consensusLayerSocre != null"> - consensus_layer_socre = #{consensusLayerSocre,jdbcType=DECIMAL}, - </if> - <if test="excitingLayerSocre != null"> - exciting_layer_socre = #{excitingLayerSocre,jdbcType=DECIMAL}, - </if> - <if test="contractLayerSocre != null"> - contract_layer_socre = #{contractLayerSocre,jdbcType=DECIMAL}, - </if> - <if test="conceptScore != null"> - concept_score = #{conceptScore,jdbcType=DECIMAL}, - </if> - <if test="conceptRank != null"> - concept_rank = #{conceptRank,jdbcType=INTEGER}, - </if> - <if test="technologySocre != null"> - technology_socre = #{technologySocre,jdbcType=DECIMAL}, - </if> - <if test="technologyRank != null"> - technology_rank = #{technologyRank,jdbcType=INTEGER}, - </if> - <if test="digitalCurrencyScore != null"> - digital_currency_score = #{digitalCurrencyScore,jdbcType=DECIMAL}, - </if> - <if test="digitalCurrencyRank != null"> - digital_currency_rank = #{digitalCurrencyRank,jdbcType=INTEGER}, - </if> - <if test="invoiceScore != null"> - invoice_score = #{invoiceScore,jdbcType=DECIMAL}, - </if> - <if test="supplyChainFinanceScore != null"> - supply_chain_finance_score = #{supplyChainFinanceScore,jdbcType=DECIMAL}, - </if> - <if test="traceabilityAndAntiCounterfeitingScore != null"> - traceability_and_anti_counterfeiting_score = #{traceabilityAndAntiCounterfeitingScore,jdbcType=DECIMAL}, - </if> - <if test="ticketResultsScore != null"> - ticket_results_score = #{ticketResultsScore,jdbcType=DECIMAL}, - </if> - <if test="crossBorderPaymentResultsScore != null"> - cross_border_payment_results_score = #{crossBorderPaymentResultsScore,jdbcType=DECIMAL}, - </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.entity.StuUser"> - update stu_user - set student_id = #{studentId,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}, - hash_function_score = #{hashFunctionScore,jdbcType=DECIMAL}, - blockchain_score = #{blockchainScore,jdbcType=DECIMAL}, - data_layer_score = #{dataLayerScore,jdbcType=DECIMAL}, - network_layer_score = #{networkLayerScore,jdbcType=DECIMAL}, - consensus_layer_socre = #{consensusLayerSocre,jdbcType=DECIMAL}, - exciting_layer_socre = #{excitingLayerSocre,jdbcType=DECIMAL}, - contract_layer_socre = #{contractLayerSocre,jdbcType=DECIMAL}, - concept_score = #{conceptScore,jdbcType=DECIMAL}, - concept_rank = #{conceptRank,jdbcType=INTEGER}, - technology_socre = #{technologySocre,jdbcType=DECIMAL}, - technology_rank = #{technologyRank,jdbcType=INTEGER}, - digital_currency_score = #{digitalCurrencyScore,jdbcType=DECIMAL}, - digital_currency_rank = #{digitalCurrencyRank,jdbcType=INTEGER}, - invoice_score = #{invoiceScore,jdbcType=DECIMAL}, - supply_chain_finance_score = #{supplyChainFinanceScore,jdbcType=DECIMAL}, - traceability_and_anti_counterfeiting_score = #{traceabilityAndAntiCounterfeitingScore,jdbcType=DECIMAL}, - ticket_results_score = #{ticketResultsScore,jdbcType=DECIMAL}, - cross_border_payment_results_score = #{crossBorderPaymentResultsScore,jdbcType=DECIMAL}, - total_rank = #{totalRank,jdbcType=INTEGER}, - total_score = #{totalScore,jdbcType=DECIMAL} - where user_id = #{userId,jdbcType=VARCHAR} - </update> - <resultMap id="BaseResultMap" type="com.sztzjy.entity.StuUser"> - <id column="user_id" jdbcType="VARCHAR" property="userId" /> - <result column="student_id" jdbcType="VARCHAR" property="studentId" /> - <result column="name" jdbcType="VARCHAR" property="name" /> - <result column="password" jdbcType="VARCHAR" property="password" /> - <result column="role_id" jdbcType="INTEGER" property="roleId" /> - <result column="class_id" jdbcType="VARCHAR" property="classId" /> - <result column="class_name" jdbcType="VARCHAR" property="className" /> - <result column="major" jdbcType="VARCHAR" property="major" /> - <result column="school_id" jdbcType="VARCHAR" property="schoolId" /> - <result column="school_name" jdbcType="VARCHAR" property="schoolName" /> - <result column="hash_function_score" jdbcType="DECIMAL" property="hashFunctionScore" /> - <result column="blockchain_score" jdbcType="DECIMAL" property="blockchainScore" /> - <result column="data_layer_score" jdbcType="DECIMAL" property="dataLayerScore" /> - <result column="network_layer_score" jdbcType="DECIMAL" property="networkLayerScore" /> - <result column="consensus_layer_socre" jdbcType="DECIMAL" property="consensusLayerSocre" /> - <result column="exciting_layer_socre" jdbcType="DECIMAL" property="excitingLayerSocre" /> - <result column="contract_layer_socre" jdbcType="DECIMAL" property="contractLayerSocre" /> - <result column="concept_score" jdbcType="DECIMAL" property="conceptScore" /> - <result column="concept_rank" jdbcType="INTEGER" property="conceptRank" /> - <result column="technology_socre" jdbcType="DECIMAL" property="technologySocre" /> - <result column="technology_rank" jdbcType="INTEGER" property="technologyRank" /> - <result column="digital_currency_score" jdbcType="DECIMAL" property="digitalCurrencyScore" /> - <result column="digital_currency_rank" jdbcType="INTEGER" property="digitalCurrencyRank" /> - <result column="invoice_score" jdbcType="DECIMAL" property="invoiceScore" /> - <result column="supply_chain_finance_score" jdbcType="DECIMAL" property="supplyChainFinanceScore" /> - <result column="traceability_and_anti_counterfeiting_score" jdbcType="DECIMAL" property="traceabilityAndAntiCounterfeitingScore" /> - <result column="ticket_results_score" jdbcType="DECIMAL" property="ticketResultsScore" /> - <result column="cross_border_payment_results_score" jdbcType="DECIMAL" property="crossBorderPaymentResultsScore" /> - <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, student_id, name, password, role_id, class_id, class_name, major, school_id, - school_name, hash_function_score, blockchain_score, data_layer_score, network_layer_score, - consensus_layer_socre, exciting_layer_socre, contract_layer_socre, concept_score, - concept_rank, technology_socre, technology_rank, digital_currency_score, digital_currency_rank, - invoice_score, supply_chain_finance_score, traceability_and_anti_counterfeiting_score, - ticket_results_score, cross_border_payment_results_score, total_rank, total_score - </sql> - <select id="selectByExample" parameterType="com.sztzjy.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.entity.StuUserExample"> - delete from stu_user - <if test="_parameter != null"> - <include refid="Example_Where_Clause" /> - </if> - </delete> - <insert id="insert" parameterType="com.sztzjy.entity.StuUser"> - insert into stu_user (user_id, student_id, name, - password, role_id, class_id, - class_name, major, school_id, - school_name, hash_function_score, blockchain_score, - data_layer_score, network_layer_score, consensus_layer_socre, - exciting_layer_socre, contract_layer_socre, - concept_score, concept_rank, technology_socre, - technology_rank, digital_currency_score, digital_currency_rank, - invoice_score, supply_chain_finance_score, - traceability_and_anti_counterfeiting_score, ticket_results_score, - cross_border_payment_results_score, total_rank, - total_score) - values (#{userId,jdbcType=VARCHAR}, #{studentId,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}, #{hashFunctionScore,jdbcType=DECIMAL}, #{blockchainScore,jdbcType=DECIMAL}, - #{dataLayerScore,jdbcType=DECIMAL}, #{networkLayerScore,jdbcType=DECIMAL}, #{consensusLayerSocre,jdbcType=DECIMAL}, - #{excitingLayerSocre,jdbcType=DECIMAL}, #{contractLayerSocre,jdbcType=DECIMAL}, - #{conceptScore,jdbcType=DECIMAL}, #{conceptRank,jdbcType=INTEGER}, #{technologySocre,jdbcType=DECIMAL}, - #{technologyRank,jdbcType=INTEGER}, #{digitalCurrencyScore,jdbcType=DECIMAL}, #{digitalCurrencyRank,jdbcType=INTEGER}, - #{invoiceScore,jdbcType=DECIMAL}, #{supplyChainFinanceScore,jdbcType=DECIMAL}, - #{traceabilityAndAntiCounterfeitingScore,jdbcType=DECIMAL}, #{ticketResultsScore,jdbcType=DECIMAL}, - #{crossBorderPaymentResultsScore,jdbcType=DECIMAL}, #{totalRank,jdbcType=INTEGER}, - #{totalScore,jdbcType=DECIMAL}) - </insert> - <insert id="insertSelective" parameterType="com.sztzjy.entity.StuUser"> - insert into stu_user - <trim prefix="(" suffix=")" suffixOverrides=","> - <if test="userId != null"> - user_id, - </if> - <if test="studentId != null"> - student_id, - </if> - <if test="name != null"> - name, - </if> - <if test="password != null"> - password, - </if> - <if test="roleId != null"> - role_id, - </if> - <if test="classId != null"> - class_id, - </if> - <if test="className != null"> - class_name, - </if> - <if test="major != null"> - major, - </if> - <if test="schoolId != null"> - school_id, - </if> - <if test="schoolName != null"> - school_name, - </if> - <if test="hashFunctionScore != null"> - hash_function_score, - </if> - <if test="blockchainScore != null"> - blockchain_score, - </if> - <if test="dataLayerScore != null"> - data_layer_score, - </if> - <if test="networkLayerScore != null"> - network_layer_score, - </if> - <if test="consensusLayerSocre != null"> - consensus_layer_socre, - </if> - <if test="excitingLayerSocre != null"> - exciting_layer_socre, - </if> - <if test="contractLayerSocre != null"> - contract_layer_socre, - </if> - <if test="conceptScore != null"> - concept_score, - </if> - <if test="conceptRank != null"> - concept_rank, - </if> - <if test="technologySocre != null"> - technology_socre, - </if> - <if test="technologyRank != null"> - technology_rank, - </if> - <if test="digitalCurrencyScore != null"> - digital_currency_score, - </if> - <if test="digitalCurrencyRank != null"> - digital_currency_rank, - </if> - <if test="invoiceScore != null"> - invoice_score, - </if> - <if test="supplyChainFinanceScore != null"> - supply_chain_finance_score, - </if> - <if test="traceabilityAndAntiCounterfeitingScore != null"> - traceability_and_anti_counterfeiting_score, - </if> - <if test="ticketResultsScore != null"> - ticket_results_score, - </if> - <if test="crossBorderPaymentResultsScore != null"> - cross_border_payment_results_score, - </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="studentId != null"> - #{studentId,jdbcType=VARCHAR}, - </if> - <if test="name != null"> - #{name,jdbcType=VARCHAR}, - </if> - <if test="password != null"> - #{password,jdbcType=VARCHAR}, - </if> - <if test="roleId != null"> - #{roleId,jdbcType=INTEGER}, - </if> - <if test="classId != null"> - #{classId,jdbcType=VARCHAR}, - </if> - <if test="className != null"> - #{className,jdbcType=VARCHAR}, - </if> - <if test="major != null"> - #{major,jdbcType=VARCHAR}, - </if> - <if test="schoolId != null"> - #{schoolId,jdbcType=VARCHAR}, - </if> - <if test="schoolName != null"> - #{schoolName,jdbcType=VARCHAR}, - </if> - <if test="hashFunctionScore != null"> - #{hashFunctionScore,jdbcType=DECIMAL}, - </if> - <if test="blockchainScore != null"> - #{blockchainScore,jdbcType=DECIMAL}, - </if> - <if test="dataLayerScore != null"> - #{dataLayerScore,jdbcType=DECIMAL}, - </if> - <if test="networkLayerScore != null"> - #{networkLayerScore,jdbcType=DECIMAL}, - </if> - <if test="consensusLayerSocre != null"> - #{consensusLayerSocre,jdbcType=DECIMAL}, - </if> - <if test="excitingLayerSocre != null"> - #{excitingLayerSocre,jdbcType=DECIMAL}, - </if> - <if test="contractLayerSocre != null"> - #{contractLayerSocre,jdbcType=DECIMAL}, - </if> - <if test="conceptScore != null"> - #{conceptScore,jdbcType=DECIMAL}, - </if> - <if test="conceptRank != null"> - #{conceptRank,jdbcType=INTEGER}, - </if> - <if test="technologySocre != null"> - #{technologySocre,jdbcType=DECIMAL}, - </if> - <if test="technologyRank != null"> - #{technologyRank,jdbcType=INTEGER}, - </if> - <if test="digitalCurrencyScore != null"> - #{digitalCurrencyScore,jdbcType=DECIMAL}, - </if> - <if test="digitalCurrencyRank != null"> - #{digitalCurrencyRank,jdbcType=INTEGER}, - </if> - <if test="invoiceScore != null"> - #{invoiceScore,jdbcType=DECIMAL}, - </if> - <if test="supplyChainFinanceScore != null"> - #{supplyChainFinanceScore,jdbcType=DECIMAL}, - </if> - <if test="traceabilityAndAntiCounterfeitingScore != null"> - #{traceabilityAndAntiCounterfeitingScore,jdbcType=DECIMAL}, - </if> - <if test="ticketResultsScore != null"> - #{ticketResultsScore,jdbcType=DECIMAL}, - </if> - <if test="crossBorderPaymentResultsScore != null"> - #{crossBorderPaymentResultsScore,jdbcType=DECIMAL}, - </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.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.studentId != null"> - student_id = #{record.studentId,jdbcType=VARCHAR}, - </if> - <if test="record.name != null"> - name = #{record.name,jdbcType=VARCHAR}, - </if> - <if test="record.password != null"> - password = #{record.password,jdbcType=VARCHAR}, - </if> - <if test="record.roleId != null"> - role_id = #{record.roleId,jdbcType=INTEGER}, - </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.major != null"> - major = #{record.major,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.hashFunctionScore != null"> - hash_function_score = #{record.hashFunctionScore,jdbcType=DECIMAL}, - </if> - <if test="record.blockchainScore != null"> - blockchain_score = #{record.blockchainScore,jdbcType=DECIMAL}, - </if> - <if test="record.dataLayerScore != null"> - data_layer_score = #{record.dataLayerScore,jdbcType=DECIMAL}, - </if> - <if test="record.networkLayerScore != null"> - network_layer_score = #{record.networkLayerScore,jdbcType=DECIMAL}, - </if> - <if test="record.consensusLayerSocre != null"> - consensus_layer_socre = #{record.consensusLayerSocre,jdbcType=DECIMAL}, - </if> - <if test="record.excitingLayerSocre != null"> - exciting_layer_socre = #{record.excitingLayerSocre,jdbcType=DECIMAL}, - </if> - <if test="record.contractLayerSocre != null"> - contract_layer_socre = #{record.contractLayerSocre,jdbcType=DECIMAL}, - </if> - <if test="record.conceptScore != null"> - concept_score = #{record.conceptScore,jdbcType=DECIMAL}, - </if> - <if test="record.conceptRank != null"> - concept_rank = #{record.conceptRank,jdbcType=INTEGER}, - </if> - <if test="record.technologySocre != null"> - technology_socre = #{record.technologySocre,jdbcType=DECIMAL}, - </if> - <if test="record.technologyRank != null"> - technology_rank = #{record.technologyRank,jdbcType=INTEGER}, - </if> - <if test="record.digitalCurrencyScore != null"> - digital_currency_score = #{record.digitalCurrencyScore,jdbcType=DECIMAL}, - </if> - <if test="record.digitalCurrencyRank != null"> - digital_currency_rank = #{record.digitalCurrencyRank,jdbcType=INTEGER}, - </if> - <if test="record.invoiceScore != null"> - invoice_score = #{record.invoiceScore,jdbcType=DECIMAL}, - </if> - <if test="record.supplyChainFinanceScore != null"> - supply_chain_finance_score = #{record.supplyChainFinanceScore,jdbcType=DECIMAL}, - </if> - <if test="record.traceabilityAndAntiCounterfeitingScore != null"> - traceability_and_anti_counterfeiting_score = #{record.traceabilityAndAntiCounterfeitingScore,jdbcType=DECIMAL}, - </if> - <if test="record.ticketResultsScore != null"> - ticket_results_score = #{record.ticketResultsScore,jdbcType=DECIMAL}, - </if> - <if test="record.crossBorderPaymentResultsScore != null"> - cross_border_payment_results_score = #{record.crossBorderPaymentResultsScore,jdbcType=DECIMAL}, - </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}, - student_id = #{record.studentId,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}, - hash_function_score = #{record.hashFunctionScore,jdbcType=DECIMAL}, - blockchain_score = #{record.blockchainScore,jdbcType=DECIMAL}, - data_layer_score = #{record.dataLayerScore,jdbcType=DECIMAL}, - network_layer_score = #{record.networkLayerScore,jdbcType=DECIMAL}, - consensus_layer_socre = #{record.consensusLayerSocre,jdbcType=DECIMAL}, - exciting_layer_socre = #{record.excitingLayerSocre,jdbcType=DECIMAL}, - contract_layer_socre = #{record.contractLayerSocre,jdbcType=DECIMAL}, - concept_score = #{record.conceptScore,jdbcType=DECIMAL}, - concept_rank = #{record.conceptRank,jdbcType=INTEGER}, - technology_socre = #{record.technologySocre,jdbcType=DECIMAL}, - technology_rank = #{record.technologyRank,jdbcType=INTEGER}, - digital_currency_score = #{record.digitalCurrencyScore,jdbcType=DECIMAL}, - digital_currency_rank = #{record.digitalCurrencyRank,jdbcType=INTEGER}, - invoice_score = #{record.invoiceScore,jdbcType=DECIMAL}, - supply_chain_finance_score = #{record.supplyChainFinanceScore,jdbcType=DECIMAL}, - traceability_and_anti_counterfeiting_score = #{record.traceabilityAndAntiCounterfeitingScore,jdbcType=DECIMAL}, - ticket_results_score = #{record.ticketResultsScore,jdbcType=DECIMAL}, - cross_border_payment_results_score = #{record.crossBorderPaymentResultsScore,jdbcType=DECIMAL}, - 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.entity.StuUser"> - update stu_user - <set> - <if test="studentId != null"> - student_id = #{studentId,jdbcType=VARCHAR}, - </if> - <if test="name != null"> - name = #{name,jdbcType=VARCHAR}, - </if> - <if test="password != null"> - password = #{password,jdbcType=VARCHAR}, - </if> - <if test="roleId != null"> - role_id = #{roleId,jdbcType=INTEGER}, - </if> - <if test="classId != null"> - class_id = #{classId,jdbcType=VARCHAR}, - </if> - <if test="className != null"> - class_name = #{className,jdbcType=VARCHAR}, - </if> - <if test="major != null"> - major = #{major,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="hashFunctionScore != null"> - hash_function_score = #{hashFunctionScore,jdbcType=DECIMAL}, - </if> - <if test="blockchainScore != null"> - blockchain_score = #{blockchainScore,jdbcType=DECIMAL}, - </if> - <if test="dataLayerScore != null"> - data_layer_score = #{dataLayerScore,jdbcType=DECIMAL}, - </if> - <if test="networkLayerScore != null"> - network_layer_score = #{networkLayerScore,jdbcType=DECIMAL}, - </if> - <if test="consensusLayerSocre != null"> - consensus_layer_socre = #{consensusLayerSocre,jdbcType=DECIMAL}, - </if> - <if test="excitingLayerSocre != null"> - exciting_layer_socre = #{excitingLayerSocre,jdbcType=DECIMAL}, - </if> - <if test="contractLayerSocre != null"> - contract_layer_socre = #{contractLayerSocre,jdbcType=DECIMAL}, - </if> - <if test="conceptScore != null"> - concept_score = #{conceptScore,jdbcType=DECIMAL}, - </if> - <if test="conceptRank != null"> - concept_rank = #{conceptRank,jdbcType=INTEGER}, - </if> - <if test="technologySocre != null"> - technology_socre = #{technologySocre,jdbcType=DECIMAL}, - </if> - <if test="technologyRank != null"> - technology_rank = #{technologyRank,jdbcType=INTEGER}, - </if> - <if test="digitalCurrencyScore != null"> - digital_currency_score = #{digitalCurrencyScore,jdbcType=DECIMAL}, - </if> - <if test="digitalCurrencyRank != null"> - digital_currency_rank = #{digitalCurrencyRank,jdbcType=INTEGER}, - </if> - <if test="invoiceScore != null"> - invoice_score = #{invoiceScore,jdbcType=DECIMAL}, - </if> - <if test="supplyChainFinanceScore != null"> - supply_chain_finance_score = #{supplyChainFinanceScore,jdbcType=DECIMAL}, - </if> - <if test="traceabilityAndAntiCounterfeitingScore != null"> - traceability_and_anti_counterfeiting_score = #{traceabilityAndAntiCounterfeitingScore,jdbcType=DECIMAL}, - </if> - <if test="ticketResultsScore != null"> - ticket_results_score = #{ticketResultsScore,jdbcType=DECIMAL}, - </if> - <if test="crossBorderPaymentResultsScore != null"> - cross_border_payment_results_score = #{crossBorderPaymentResultsScore,jdbcType=DECIMAL}, - </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.entity.StuUser"> - update stu_user - set student_id = #{studentId,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}, - hash_function_score = #{hashFunctionScore,jdbcType=DECIMAL}, - blockchain_score = #{blockchainScore,jdbcType=DECIMAL}, - data_layer_score = #{dataLayerScore,jdbcType=DECIMAL}, - network_layer_score = #{networkLayerScore,jdbcType=DECIMAL}, - consensus_layer_socre = #{consensusLayerSocre,jdbcType=DECIMAL}, - exciting_layer_socre = #{excitingLayerSocre,jdbcType=DECIMAL}, - contract_layer_socre = #{contractLayerSocre,jdbcType=DECIMAL}, - concept_score = #{conceptScore,jdbcType=DECIMAL}, - concept_rank = #{conceptRank,jdbcType=INTEGER}, - technology_socre = #{technologySocre,jdbcType=DECIMAL}, - technology_rank = #{technologyRank,jdbcType=INTEGER}, - digital_currency_score = #{digitalCurrencyScore,jdbcType=DECIMAL}, - digital_currency_rank = #{digitalCurrencyRank,jdbcType=INTEGER}, - invoice_score = #{invoiceScore,jdbcType=DECIMAL}, - supply_chain_finance_score = #{supplyChainFinanceScore,jdbcType=DECIMAL}, - traceability_and_anti_counterfeiting_score = #{traceabilityAndAntiCounterfeitingScore,jdbcType=DECIMAL}, - ticket_results_score = #{ticketResultsScore,jdbcType=DECIMAL}, - cross_border_payment_results_score = #{crossBorderPaymentResultsScore,jdbcType=DECIMAL}, - total_rank = #{totalRank,jdbcType=INTEGER}, - total_score = #{totalScore,jdbcType=DECIMAL} - where user_id = #{userId,jdbcType=VARCHAR} - </update> -</mapper> \ No newline at end of file diff --git a/src/main/resources/mapper/StuBaseInfoMapper.xml b/src/main/resources/mappers/StuBaseInfoMapper.xml similarity index 96% rename from src/main/resources/mapper/StuBaseInfoMapper.xml rename to src/main/resources/mappers/StuBaseInfoMapper.xml index 51b3f89..f1b175a 100644 --- a/src/main/resources/mapper/StuBaseInfoMapper.xml +++ b/src/main/resources/mappers/StuBaseInfoMapper.xml @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> -<mapper namespace="com.sztzjy.mappers.StuBaseInfoMapper"> - <resultMap id="BaseResultMap" type="com.sztzjy.entity.StuBaseInfo"> +<mapper namespace="com.sztzjy.digital_credit.mapper.StuBaseInfoMapper"> + <resultMap id="BaseResultMap" type="com.sztzjy.digital_credit.entity.StuBaseInfo"> <id column="id" jdbcType="INTEGER" property="id" /> <result column="corp_name" jdbcType="VARCHAR" property="corpName" /> <result column="un_social_credit_code" jdbcType="VARCHAR" property="unSocialCreditCode" /> @@ -29,7 +29,7 @@ <result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> </resultMap> - <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.sztzjy.entity.StuBaseInfo"> + <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.sztzjy.digital_credit.entity.StuBaseInfo"> <result column="case_detail" jdbcType="LONGVARCHAR" property="caseDetail" /> </resultMap> <sql id="Example_Where_Clause"> @@ -100,7 +100,7 @@ <sql id="Blob_Column_List"> case_detail </sql> - <select id="selectByExampleWithBLOBs" parameterType="com.sztzjy.entity.StuBaseInfoExample" resultMap="ResultMapWithBLOBs"> + <select id="selectByExampleWithBLOBs" parameterType="com.sztzjy.digital_credit.entity.StuBaseInfoExample" resultMap="ResultMapWithBLOBs"> select <if test="distinct"> distinct @@ -116,7 +116,7 @@ order by ${orderByClause} </if> </select> - <select id="selectByExample" parameterType="com.sztzjy.entity.StuBaseInfoExample" resultMap="BaseResultMap"> + <select id="selectByExample" parameterType="com.sztzjy.digital_credit.entity.StuBaseInfoExample" resultMap="BaseResultMap"> select <if test="distinct"> distinct @@ -142,13 +142,13 @@ delete from stu_base_info where id = #{id,jdbcType=INTEGER} </delete> - <delete id="deleteByExample" parameterType="com.sztzjy.entity.StuBaseInfoExample"> + <delete id="deleteByExample" parameterType="com.sztzjy.digital_credit.entity.StuBaseInfoExample"> delete from stu_base_info <if test="_parameter != null"> <include refid="Example_Where_Clause" /> </if> </delete> - <insert id="insert" parameterType="com.sztzjy.entity.StuBaseInfo"> + <insert id="insert" parameterType="com.sztzjy.digital_credit.entity.StuBaseInfo"> insert into stu_base_info (id, corp_name, un_social_credit_code, legal_represent, bussinsss_state, date_of_establish, admin_division, reg_capital, paid_up_capital, @@ -170,7 +170,7 @@ #{userId,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{caseDetail,jdbcType=LONGVARCHAR}) </insert> - <insert id="insertSelective" parameterType="com.sztzjy.entity.StuBaseInfo"> + <insert id="insertSelective" parameterType="com.sztzjy.digital_credit.entity.StuBaseInfo"> insert into stu_base_info <trim prefix="(" suffix=")" suffixOverrides=","> <if test="id != null"> @@ -339,7 +339,7 @@ </if> </trim> </insert> - <select id="countByExample" parameterType="com.sztzjy.entity.StuBaseInfoExample" resultType="java.lang.Long"> + <select id="countByExample" parameterType="com.sztzjy.digital_credit.entity.StuBaseInfoExample" resultType="java.lang.Long"> select count(*) from stu_base_info <if test="_parameter != null"> <include refid="Example_Where_Clause" /> @@ -499,7 +499,7 @@ <include refid="Update_By_Example_Where_Clause" /> </if> </update> - <update id="updateByPrimaryKeySelective" parameterType="com.sztzjy.entity.StuBaseInfo"> + <update id="updateByPrimaryKeySelective" parameterType="com.sztzjy.digital_credit.entity.StuBaseInfo"> update stu_base_info <set> <if test="corpName != null"> @@ -583,7 +583,7 @@ </set> where id = #{id,jdbcType=INTEGER} </update> - <update id="updateByPrimaryKeyWithBLOBs" parameterType="com.sztzjy.entity.StuBaseInfo"> + <update id="updateByPrimaryKeyWithBLOBs" parameterType="com.sztzjy.digital_credit.entity.StuBaseInfo"> update stu_base_info set corp_name = #{corpName,jdbcType=VARCHAR}, un_social_credit_code = #{unSocialCreditCode,jdbcType=VARCHAR}, @@ -613,7 +613,7 @@ case_detail = #{caseDetail,jdbcType=LONGVARCHAR} where id = #{id,jdbcType=INTEGER} </update> - <update id="updateByPrimaryKey" parameterType="com.sztzjy.entity.StuBaseInfo"> + <update id="updateByPrimaryKey" parameterType="com.sztzjy.digital_credit.entity.StuBaseInfo"> update stu_base_info set corp_name = #{corpName,jdbcType=VARCHAR}, un_social_credit_code = #{unSocialCreditCode,jdbcType=VARCHAR}, diff --git a/src/main/resources/mappers/StuPracticalTrainingReportMapper.xml b/src/main/resources/mappers/StuPracticalTrainingReportMapper.xml new file mode 100644 index 0000000..a51f00b --- /dev/null +++ b/src/main/resources/mappers/StuPracticalTrainingReportMapper.xml @@ -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> \ No newline at end of file diff --git a/src/main/resources/mappers/StuUserMapper.xml b/src/main/resources/mappers/StuUserMapper.xml new file mode 100644 index 0000000..728458d --- /dev/null +++ b/src/main/resources/mappers/StuUserMapper.xml @@ -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> \ No newline at end of file