|
@@ -5,10 +5,8 @@ import com.qmth.distributed.print.business.entity.TBTask;
|
|
|
import com.qmth.distributed.print.business.enums.TaskResultEnum;
|
|
|
import com.qmth.distributed.print.business.enums.TaskStatusEnum;
|
|
|
import com.qmth.distributed.print.business.enums.TaskTypeEnum;
|
|
|
-import com.qmth.distributed.print.business.service.ExamDetailService;
|
|
|
import com.qmth.distributed.print.business.templete.export.AsyncExportTaskTemplete;
|
|
|
import com.qmth.distributed.print.business.templete.service.TaskLogicService;
|
|
|
-import com.qmth.distributed.print.business.util.OssUtil;
|
|
|
import com.qmth.distributed.print.common.contant.SystemConstant;
|
|
|
import com.qmth.distributed.print.common.util.Result;
|
|
|
import com.qmth.distributed.print.common.util.ResultUtil;
|
|
@@ -28,10 +26,6 @@ import java.util.StringJoiner;
|
|
|
*/
|
|
|
@Service
|
|
|
public class AsyncExaminationExportTemplateService extends AsyncExportTaskTemplete {
|
|
|
- @Resource
|
|
|
- ExamDetailService examDetailService;
|
|
|
- @Resource
|
|
|
- OssUtil ossUtil;
|
|
|
@Resource
|
|
|
TaskLogicService taskLogicService;
|
|
|
|
|
@@ -39,10 +33,8 @@ public class AsyncExaminationExportTemplateService extends AsyncExportTaskTemple
|
|
|
private final static Logger log = LoggerFactory.getLogger(AsyncExaminationExportTemplateService.class);
|
|
|
|
|
|
@Override
|
|
|
- public Result exportTask(Map<String, Object> map) throws Exception {
|
|
|
+ public Result exportTask(Map<String, Object> map) {
|
|
|
TBTask tbTask = (TBTask) map.get(SystemConstant.TASK);
|
|
|
- Long userId = tbTask.getCreateId();
|
|
|
- Long schoolId = tbTask.getSchoolId();
|
|
|
|
|
|
StringJoiner stringJoinerSummary = new StringJoiner("\n")
|
|
|
.add(MessageFormat.format("{0}{1}{2}", FORMAT_TIME, BEGIN_TITLE, OBJ_TITLE));
|
|
@@ -50,7 +42,7 @@ public class AsyncExaminationExportTemplateService extends AsyncExportTaskTemple
|
|
|
|
|
|
|
|
|
try {
|
|
|
- Map<String,Object> result = taskLogicService.executeExaminationLogic(map);
|
|
|
+ Map<String, Object> result = taskLogicService.executeExaminationLogic(map);
|
|
|
stringJoinerSummary.add(MessageFormat.format("{0}{1}{2}{3}", FORMAT_TIME, FINISH_TITLE, result.size(), FINISH_SIZE));
|
|
|
String path = String.valueOf(result.get("path"));
|
|
|
System.out.println("path = " + path);
|