修改bug

This commit is contained in:
yangjun 2024-07-24 08:46:27 +08:00
parent 00b8b19f3d
commit 48ffb7b44a
4 changed files with 51 additions and 41 deletions

View File

@ -348,7 +348,7 @@ public class ZyInfoStudentController extends JeecgController<ZyInfoStudent, IZyI
@AutoLog(value = "学生作业上传")
@ApiOperation(value="学生作业上传", notes="学生作业上传")
@RequestMapping(value = "/zyscStu", method = {RequestMethod.PUT,RequestMethod.POST})
public Result<String> zyscStu(@RequestBody ZyInfoStudent zyInfoStudent, HttpServletResponse response) {
public Result<Object> 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<ZyInfoStudent, IZyI
zyDbtx.setFbr(zyInfo.getCreateBy());
zyDbtxService.save(zyDbtx);
return Result.OK(zyInfoStudent);
}
@AutoLog(value = "学生作业开始检测")
@ApiOperation(value="学生作业开始检测", notes="学生作业开始检测")
@RequestMapping(value = "/stuWpKsjc", method = {RequestMethod.PUT,RequestMethod.POST})
public Result<String> stuWpKsjc(@RequestBody ZyInfoStudent zyInfoStudent, HttpServletResponse response) {
boolean bol = zyInfoStudentService.stuWpKsjc(zyInfoStudent, response);
return Result.OK("提交成功!");
}

View File

@ -37,4 +37,5 @@ public interface IZyInfoStudentService extends IService<ZyInfoStudent> {
List<ZyInfoStudentSys> exportSysXls(QueryWrapper<ZyInfoStudentSys> queryWrapper, ZyInfoStudentSys zyInfoStudentSys);
boolean stuWpKsjc(ZyInfoStudent zyInfoStudent, HttpServletResponse response);
}

View File

@ -102,8 +102,47 @@ public class ZyInfoStudentServiceImpl extends ServiceImpl<ZyInfoStudentMapper, Z
@Override
public boolean updateById(ZyInfoStudent zyInfoStudent, HttpServletResponse response) {
baseMapper.updateById(zyInfoStudent);
return true;
}
@Override
public void editFabu(ZyInfoStudent zyInfoStudent) {
baseMapper.updateById(zyInfoStudent);
}
@Override
public IPage<ZyInfoStudent> cdxxlist(Page<ZyInfoStudent> page, QueryWrapper<ZyInfoStudent> queryWrapper) {
return baseMapper.cdxxlist(page,queryWrapper);
}
@Override
public List<ZyInfoStudent> getCcjg(ZyInfoStudent zyInfoStudent) {
return baseMapper.getCcjg(zyInfoStudent);
}
@Override
public void fabuBatch(List<String> 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<ZyInfoStudentSys> sysList(Page<ZyInfoStudentSys> page, QueryWrapper<ZyInfoStudentSys> queryWrapper, ZyInfoStudentSys zyInfoStudentSys) {
return baseMapper.sysList(page, queryWrapper, zyInfoStudentSys);
}
@Override
public List<ZyInfoStudentSys> exportSysXls(QueryWrapper<ZyInfoStudentSys> 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<ZyInfoStudentMapper, Z
return true;
}
@Override
public void editFabu(ZyInfoStudent zyInfoStudent) {
baseMapper.updateById(zyInfoStudent);
}
@Override
public IPage<ZyInfoStudent> cdxxlist(Page<ZyInfoStudent> page, QueryWrapper<ZyInfoStudent> queryWrapper) {
return baseMapper.cdxxlist(page,queryWrapper);
}
@Override
public List<ZyInfoStudent> getCcjg(ZyInfoStudent zyInfoStudent) {
return baseMapper.getCcjg(zyInfoStudent);
}
@Override
public void fabuBatch(List<String> 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<ZyInfoStudentSys> sysList(Page<ZyInfoStudentSys> page, QueryWrapper<ZyInfoStudentSys> queryWrapper, ZyInfoStudentSys zyInfoStudentSys) {
return baseMapper.sysList(page, queryWrapper, zyInfoStudentSys);
}
@Override
public List<ZyInfoStudentSys> exportSysXls(QueryWrapper<ZyInfoStudentSys> 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";

View File

@ -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