|
@@ -13,6 +13,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
@@ -25,7 +26,7 @@ import javax.servlet.http.HttpServletRequest;
|
|
|
* @author zdz
|
|
|
* @since 2023-12-01
|
|
|
*/
|
|
|
-@Controller
|
|
|
+@RestController
|
|
|
@RequestMapping("/equWarrantyProvider")
|
|
|
public class EquWarrantyProviderController {
|
|
|
|
|
@@ -46,10 +47,10 @@ public class EquWarrantyProviderController {
|
|
|
if (file == null){
|
|
|
return R.error("文件解析失败");
|
|
|
}
|
|
|
-// String errorMsg = checkUtil.fileCheckDetail(file,"2a4972593c094256871805368885e2b2");
|
|
|
-// if (StringUtils.isNotBlank(errorMsg)){
|
|
|
-// return R.error(errorMsg);
|
|
|
-// }
|
|
|
+ String errorMsg = checkUtil.fileCheckDetail(file,"2a4972593c094256871805368885e2b2");
|
|
|
+ if (StringUtils.isNotBlank(errorMsg)){
|
|
|
+ return R.error(errorMsg);
|
|
|
+ }
|
|
|
return equWarrantyProviderService.importEquWarrantyProvider(file);
|
|
|
}
|
|
|
|