|
@@ -12,7 +12,6 @@ import com.qmth.boot.api.annotation.Aac;
|
|
import com.qmth.boot.api.annotation.BOOL;
|
|
import com.qmth.boot.api.annotation.BOOL;
|
|
import com.qmth.boot.api.constant.ApiConstant;
|
|
import com.qmth.boot.api.constant.ApiConstant;
|
|
import com.qmth.boot.core.exception.StatusException;
|
|
import com.qmth.boot.core.exception.StatusException;
|
|
-import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
import org.springframework.validation.annotation.Validated;
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
@@ -84,7 +83,7 @@ public class ExamController extends BaseController {
|
|
return examService.listByUserId(userId);
|
|
return examService.listByUserId(userId);
|
|
}
|
|
}
|
|
|
|
|
|
- @GetMapping("/template")
|
|
|
|
|
|
+ @RequestMapping(value = "/template", method = RequestMethod.POST)
|
|
public void getImportTemplate() {
|
|
public void getImportTemplate() {
|
|
String resourcePath = PathUtil.getResoucePath("importtemplates/examImportTemplate.xlsx");
|
|
String resourcePath = PathUtil.getResoucePath("importtemplates/examImportTemplate.xlsx");
|
|
if (Objects.isNull(resourcePath)){
|
|
if (Objects.isNull(resourcePath)){
|