上传的文件是zip压缩包文件,到后台TempFile tf 对象获取不到为null,是不能用TempFile 对象接收么
2 回复
@At("/uploadSiWelfareOcrZip")
@Ok("json")
@AdaptBy(type = UploadAdaptor.class, args = { "ioc:myUpload" })
public Object uploadSiWelfareOcrZip(@Param("Fdata") TempFile tf, @Param("..") Map map, HttpServletResponse response) {
File f = null;
try {
BaseResultMap resultMap = new BaseResultMap(true, "上传成功");
String orderType = DataTypeUtil.toNotNullString(map.get("orderType"));
siWelfareOcrZipService.uploadSiWelfareOcrZip(tf, map);
return resultMap;
} catch (Exception e) {
log.error(e);
return new BaseResultMap(false, WarningException.getExceptionMsg(e));
}
}
}
添加回复
请先登陆