implements
paper.setUserTime(userTime);
//更新试卷
- paperService.updateById(paper);
+ this.updateById(paper);
// 终止定时任务
diff --git a/exam-admin/src/main/java/com/yf/exam/modules/qu/controller/QuController.java b/exam-admin/src/main/java/com/yf/exam/modules/qu/controller/QuController.java
index 07e7d76..93ded88 100644
--- a/exam-admin/src/main/java/com/yf/exam/modules/qu/controller/QuController.java
+++ b/exam-admin/src/main/java/com/yf/exam/modules/qu/controller/QuController.java
@@ -1,8 +1,6 @@
package com.yf.exam.modules.qu.controller;
-import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
-import com.google.common.collect.Lists;
import com.yf.exam.core.api.ApiRest;
import com.yf.exam.core.api.controller.BaseController;
import com.yf.exam.core.api.dto.BaseIdReqDTO;
@@ -10,17 +8,20 @@ import com.yf.exam.core.api.dto.BaseIdRespDTO;
import com.yf.exam.core.api.dto.BaseIdsReqDTO;
import com.yf.exam.core.api.dto.PagingReqDTO;
import com.yf.exam.core.exception.ServiceException;
-import com.yf.exam.core.utils.BeanMapper;
import com.yf.exam.core.utils.excel.ExportExcel;
import com.yf.exam.core.utils.excel.ImportExcel;
import com.yf.exam.modules.qu.dto.QuDTO;
import com.yf.exam.modules.qu.dto.export.QuExportDTO;
import com.yf.exam.modules.qu.dto.ext.QuDetailDTO;
import com.yf.exam.modules.qu.dto.request.QuQueryReqDTO;
-import com.yf.exam.modules.qu.entity.Qu;
import com.yf.exam.modules.qu.service.QuService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
+import java.io.IOException;
+import java.util.Arrays;
+import java.util.List;
+import javax.servlet.http.HttpServletResponse;
+import org.apache.commons.compress.utils.Lists;
import org.apache.commons.lang3.StringUtils;
import org.apache.poi.openxml4j.exceptions.InvalidFormatException;
import org.apache.shiro.authz.annotation.RequiresRoles;
@@ -34,11 +35,6 @@ import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;
-import javax.servlet.http.HttpServletResponse;
-import java.io.IOException;
-import java.util.Arrays;
-import java.util.List;
-
/**
*
* 问题题目控制器
diff --git a/exam-admin/src/main/java/com/yf/exam/modules/quartz/service/impl/PaymentInfoTaskServiceImpl.java b/exam-admin/src/main/java/com/yf/exam/modules/quartz/service/impl/PaymentInfoTaskServiceImpl.java
index a51a97a..4f469fa 100644
--- a/exam-admin/src/main/java/com/yf/exam/modules/quartz/service/impl/PaymentInfoTaskServiceImpl.java
+++ b/exam-admin/src/main/java/com/yf/exam/modules/quartz/service/impl/PaymentInfoTaskServiceImpl.java
@@ -3,7 +3,7 @@ package com.yf.exam.modules.quartz.service.impl;
import com.alibaba.fastjson2.JSON;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.CollectionUtils;
-import com.google.common.collect.Lists;
+import org.apache.commons.compress.utils.Lists;
import com.yf.exam.config.XylWeChatPaymentConfig;
import com.yf.exam.core.enums.GooodsOrderStatusEnum;
import com.yf.exam.core.enums.PayTypeEnum;
diff --git a/exam-admin/src/main/resources/application-dev.yml b/exam-admin/src/main/resources/application-dev.yml
index 088eb63..5652900 100644
--- a/exam-admin/src/main/resources/application-dev.yml
+++ b/exam-admin/src/main/resources/application-dev.yml
@@ -38,7 +38,7 @@ spring:
instanceName: eamScheduler
instanceId: AUTO
jobStore:
- class: org.quartz.impl.jdbcjobstore.JobStoreTX
+ class: org.springframework.scheduling.quartz.LocalDataSourceJobStore
driverDelegateClass: org.quartz.impl.jdbcjobstore.StdJDBCDelegate
tablePrefix: QRTZ_
isClustered: true
@@ -56,8 +56,8 @@ conf:
# 物理文件存储位置,以/结束,windows已正斜杠,如:d:/exam-upload/
dir: D:/exam-upload/
# 访问地址,注意不要去除/upload/file/,此节点为虚拟标识符
- # 如:http://localhost:8101/upload/file/exam.jpg,对应物理文件为:/data/upload/exam.jpg
- url: http://8.131.93.145:54012/upload/file/
+ # 如:http://47.104.245.3:8101/upload/file/,对应物理文件为:/data/upload/exam.jpg
+ url: https://examapi.xinelu.cn/upload/file/
# 允许上传的文件后缀
allow-extensions: jpg,jpeg,png
folder:
diff --git a/exam-admin/src/main/resources/application.yml b/exam-admin/src/main/resources/application.yml
index 003af38..d422466 100644
--- a/exam-admin/src/main/resources/application.yml
+++ b/exam-admin/src/main/resources/application.yml
@@ -21,6 +21,27 @@ spring:
mapper:
# 支持类型转换
allow-coercion-of-scalars: true
+ redis:
+ # 地址
+ host: 127.0.0.1
+ # 端口,默认为6379
+ port: 6379
+ # 数据库索引
+ database: 2
+ # 密码
+ password: xyl_1024@
+ # 连接超时时间
+ timeout: 10s
+ lettuce:
+ pool:
+ # 连接池中的最小空闲连接
+ min-idle: 0
+ # 连接池中的最大空闲连接
+ max-idle: 8
+ # 连接池的最大数据库连接数
+ max-active: 8
+ # #连接池最大阻塞等待时间(使用负值表示没有限制)
+ max-wait: -1ms
server:
port: 8101
# 启用服务端压缩
@@ -28,28 +49,6 @@ server:
enabled: true
min-response-size: 10
mime-types: application/json,application/xml,text/html,text/xml,text/plain,application/javascript,text/css
- # redis 配置
- redis:
- # 地址
- host: localhost
- # 端口,默认为6379
- port: 6379
- # 数据库索引
- database: 2
- # 密码
- password:
- # 连接超时时间
- timeout: 10s
- lettuce:
- pool:
- # 连接池中的最小空闲连接
- min-idle: 0
- # 连接池中的最大空闲连接
- max-idle: 8
- # 连接池的最大数据库连接数
- max-active: 8
- # #连接池最大阻塞等待时间(使用负值表示没有限制)
- max-wait: -1ms
# 考试系统微信小程序参数配置信息
applet-chat-config:
# 微信小程序
@@ -72,8 +71,8 @@ xyl-we-chat-config:
xyl-private-key-path: apiclient_key.pem
# 山东省公共卫生学会API V3版本密钥 Xyl699003981qazVFR4xsw23edcASDFG
xyl-payment-key: gonggongweishengXUEHUI2025081100
- # 山东省公共卫生学会微信支付回调地址 https://quanyidaojia.xinelu.cn
- xyl-wechat-notify-url: http://8.131.93.145:54012
+ # 山东省公共卫生学会微信支付回调地址 https://examapi.xinelu.cn
+ xyl-wechat-notify-url: https://examapi.xinelu.cn
# 微信支付接口地址,包含小程序和App支付接口地址
we-chat-payment-url-config:
# 小程序JSAPI下单接口地址