From 48ffb7b44a27b70f23f9ecc743116598caf95f69 Mon Sep 17 00:00:00 2001 From: yangjun <1173114630@qq.com> Date: Wed, 24 Jul 2024 08:46:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/ZyInfoStudentController.java | 11 ++- .../service/IZyInfoStudentService.java | 1 + .../impl/ZyInfoStudentServiceImpl.java | 76 ++++++++++--------- .../src/main/resources/application-prod.yml | 4 +- 4 files changed, 51 insertions(+), 41 deletions(-) diff --git a/jeecg-module-main/src/main/java/org/jeecg/modules/kc/zyInfoStudent/controller/ZyInfoStudentController.java b/jeecg-module-main/src/main/java/org/jeecg/modules/kc/zyInfoStudent/controller/ZyInfoStudentController.java index 3789b94f..95f663b8 100644 --- a/jeecg-module-main/src/main/java/org/jeecg/modules/kc/zyInfoStudent/controller/ZyInfoStudentController.java +++ b/jeecg-module-main/src/main/java/org/jeecg/modules/kc/zyInfoStudent/controller/ZyInfoStudentController.java @@ -348,7 +348,7 @@ public class ZyInfoStudentController extends JeecgController zyscStu(@RequestBody ZyInfoStudent zyInfoStudent, HttpServletResponse response) { + public Result zyscStu(@RequestBody ZyInfoStudent zyInfoStudent, HttpServletResponse response) { ZyInfoStudent stuPar = zyInfoStudentService.getById(zyInfoStudent.getId()); ZyInfo zyInfo = zyInfoService.getById(stuPar.getMainId()); @@ -400,10 +400,15 @@ public class ZyInfoStudentController extends JeecgController stuWpKsjc(@RequestBody ZyInfoStudent zyInfoStudent, HttpServletResponse response) { + boolean bol = zyInfoStudentService.stuWpKsjc(zyInfoStudent, response); return Result.OK("提交成功!"); } diff --git a/jeecg-module-main/src/main/java/org/jeecg/modules/kc/zyInfoStudent/service/IZyInfoStudentService.java b/jeecg-module-main/src/main/java/org/jeecg/modules/kc/zyInfoStudent/service/IZyInfoStudentService.java index 881f27a1..a2f4a492 100644 --- a/jeecg-module-main/src/main/java/org/jeecg/modules/kc/zyInfoStudent/service/IZyInfoStudentService.java +++ b/jeecg-module-main/src/main/java/org/jeecg/modules/kc/zyInfoStudent/service/IZyInfoStudentService.java @@ -37,4 +37,5 @@ public interface IZyInfoStudentService extends IService { List exportSysXls(QueryWrapper queryWrapper, ZyInfoStudentSys zyInfoStudentSys); + boolean stuWpKsjc(ZyInfoStudent zyInfoStudent, HttpServletResponse response); } diff --git a/jeecg-module-main/src/main/java/org/jeecg/modules/kc/zyInfoStudent/service/impl/ZyInfoStudentServiceImpl.java b/jeecg-module-main/src/main/java/org/jeecg/modules/kc/zyInfoStudent/service/impl/ZyInfoStudentServiceImpl.java index aaf09ff1..2609ee28 100644 --- a/jeecg-module-main/src/main/java/org/jeecg/modules/kc/zyInfoStudent/service/impl/ZyInfoStudentServiceImpl.java +++ b/jeecg-module-main/src/main/java/org/jeecg/modules/kc/zyInfoStudent/service/impl/ZyInfoStudentServiceImpl.java @@ -102,8 +102,47 @@ public class ZyInfoStudentServiceImpl extends ServiceImpl cdxxlist(Page page, QueryWrapper queryWrapper) { + return baseMapper.cdxxlist(page,queryWrapper); + } + + @Override + public List getCcjg(ZyInfoStudent zyInfoStudent) { + return baseMapper.getCcjg(zyInfoStudent); + } + + @Override + public void fabuBatch(List asList) { + for (int i = 0; i < asList.size(); i++){ + ZyInfoStudent zyInfoStudent = new ZyInfoStudent(); + zyInfoStudent.setId(asList.get(i)); + zyInfoStudent.setScoreFabu("1"); + baseMapper.updateById(zyInfoStudent); + } + } + + @Override + public IPage sysList(Page page, QueryWrapper queryWrapper, ZyInfoStudentSys zyInfoStudentSys) { + return baseMapper.sysList(page, queryWrapper, zyInfoStudentSys); + } + + @Override + public List exportSysXls(QueryWrapper queryWrapper, ZyInfoStudentSys zyInfoStudentSys) { + return baseMapper.exportSysXls(queryWrapper, zyInfoStudentSys); + } + + @Override + public boolean stuWpKsjc(ZyInfoStudent zyInfoStudent, HttpServletResponse response) { String fileName = getFileName(zyInfoStudent.getFilePath(),response); zyInfoStudent.setFilePath(fileName); zyInfoStudent = baseMapper.selectById(zyInfoStudent.getId()); @@ -177,41 +216,6 @@ public class ZyInfoStudentServiceImpl extends ServiceImpl cdxxlist(Page page, QueryWrapper queryWrapper) { - return baseMapper.cdxxlist(page,queryWrapper); - } - - @Override - public List getCcjg(ZyInfoStudent zyInfoStudent) { - return baseMapper.getCcjg(zyInfoStudent); - } - - @Override - public void fabuBatch(List asList) { - for (int i = 0; i < asList.size(); i++){ - ZyInfoStudent zyInfoStudent = new ZyInfoStudent(); - zyInfoStudent.setId(asList.get(i)); - zyInfoStudent.setScoreFabu("1"); - baseMapper.updateById(zyInfoStudent); - } - } - - @Override - public IPage sysList(Page page, QueryWrapper queryWrapper, ZyInfoStudentSys zyInfoStudentSys) { - return baseMapper.sysList(page, queryWrapper, zyInfoStudentSys); - } - - @Override - public List exportSysXls(QueryWrapper queryWrapper, ZyInfoStudentSys zyInfoStudentSys) { - return baseMapper.exportSysXls(queryWrapper, zyInfoStudentSys); - } - //aigc提交 private void aigcSave(ZyInfoStudent zyInfoStudent,HttpServletResponse response) { String url = "https://vims.fanyu.com/tool/AIGCCheck/paperSubmit"; diff --git a/jeecg-module-system/jeecg-system-start/src/main/resources/application-prod.yml b/jeecg-module-system/jeecg-system-start/src/main/resources/application-prod.yml index 858506a8..b2810a47 100644 --- a/jeecg-module-system/jeecg-system-start/src/main/resources/application-prod.yml +++ b/jeecg-module-system/jeecg-system-start/src/main/resources/application-prod.yml @@ -175,8 +175,8 @@ jeecg: # 签名拦截接口 signUrls: /sys/dict/getDictItems/*,/sys/dict/loadDict/*,/sys/dict/loadDictOrderByValue/*,/sys/dict/loadDictItem/*,/sys/dict/loadTreeData,/sys/api/queryTableDictItemsByCode,/sys/api/queryFilterTableDictInfo,/sys/api/queryTableDictByKeys,/sys/api/translateDictFromTable,/sys/api/translateDictFromTableByKeys #local\minio\alioss - # uploadType: local - uploadType: sftp + uploadType: local +# uploadType: sftp # 前端访问地址 domainUrl: pc: http://210.47.17.166