|
@@ -23,12 +23,14 @@ import com.qmth.teachcloud.common.entity.BasicAttachment;
|
|
|
import com.qmth.teachcloud.common.entity.SysUser;
|
|
|
import com.qmth.teachcloud.common.enums.*;
|
|
|
import com.qmth.teachcloud.common.service.BasicAttachmentService;
|
|
|
+import com.qmth.teachcloud.common.service.SysUserService;
|
|
|
import com.qmth.teachcloud.common.util.Result;
|
|
|
import com.qmth.teachcloud.common.util.ResultUtil;
|
|
|
import com.qmth.teachcloud.common.util.ServletUtil;
|
|
|
import io.swagger.annotations.*;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.dao.DuplicateKeyException;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
import org.springframework.validation.BindingResult;
|
|
@@ -72,6 +74,9 @@ public class TFFlowController {
|
|
|
@Resource
|
|
|
TFFlowApproveLogService tfFlowApproveLogService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ SysUserService sysUserService;
|
|
|
+
|
|
|
@ApiOperation(value = "注册流程")
|
|
|
@Transactional
|
|
|
@ApiResponses({@ApiResponse(code = 200, message = "常规信息", response = ResultUtil.class)})
|
|
@@ -164,7 +169,8 @@ public class TFFlowController {
|
|
|
//审核通过,生成pdf
|
|
|
if (Objects.nonNull(tfFlowApprove) && FlowGdykdxApproveSetupEnum.FINISH.getSetup() == tfFlowApprove.getSetup()) {
|
|
|
ExamTask examTask = (ExamTask) objectMap.get("examTask");
|
|
|
- SysUser sysUser = (SysUser) objectMap.get("sysUser");
|
|
|
+ // 取命题老师ID
|
|
|
+ SysUser sysUser = sysUserService.getById(examTask.getUserId());
|
|
|
try {
|
|
|
printCommonService.checkData(examTask.getSchoolId(), examTask.getCourseCode(), examTask.getPaperNumber(), sysUser);
|
|
|
} catch (IOException e) {
|