|
|
|
@ -45,9 +45,9 @@ public class MntnUploadController extends BaseController {
|
|
|
|
|
@PostMapping("uploadLog")
|
|
|
|
|
@ApiOperation("上传日志")
|
|
|
|
|
public ResponseReult uploadLog(@RequestParam("file") MultipartFile file,
|
|
|
|
|
@RequestParam(value = "termId", required = true) Integer termId) throws Exception {
|
|
|
|
|
if (file == null) {
|
|
|
|
|
throw new ApiException("缺少上传的文件");
|
|
|
|
|
@RequestParam(value = "termId", required = false) Integer termId) throws Exception {
|
|
|
|
|
if (termId == null) {
|
|
|
|
|
termId = 0;
|
|
|
|
|
}
|
|
|
|
|
service.uploadLog(termId, file);
|
|
|
|
|
ResponseReult result = new ResponseReult();
|
|
|
|
|