修改bug
This commit is contained in:
parent
00b8b19f3d
commit
48ffb7b44a
|
@ -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("提交成功!");
|
||||
}
|
||||
|
||||
|
|
|
@ -37,4 +37,5 @@ public interface IZyInfoStudentService extends IService<ZyInfoStudent> {
|
|||
|
||||
List<ZyInfoStudentSys> exportSysXls(QueryWrapper<ZyInfoStudentSys> queryWrapper, ZyInfoStudentSys zyInfoStudentSys);
|
||||
|
||||
boolean stuWpKsjc(ZyInfoStudent zyInfoStudent, HttpServletResponse response);
|
||||
}
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue