|
@@ -386,7 +386,7 @@ public class ProjectController extends BaseController {
|
|
public AjaxJson importFileRequisition(@RequestParam("file")MultipartFile file, HttpServletResponse response, HttpServletRequest request) throws IOException, InvalidFormatException {
|
|
public AjaxJson importFileRequisition(@RequestParam("file")MultipartFile file, HttpServletResponse response, HttpServletRequest request) throws IOException, InvalidFormatException {
|
|
AjaxJson j = new AjaxJson();
|
|
AjaxJson j = new AjaxJson();
|
|
String str = "";//提示
|
|
String str = "";//提示
|
|
- try {
|
|
|
|
|
|
+// try {
|
|
ImportUtil importUtil = new ImportUtil(file, 0, 0);
|
|
ImportUtil importUtil = new ImportUtil(file, 0, 0);
|
|
//读取表格list
|
|
//读取表格list
|
|
List<PickingRequisition> listPickRequisition = PickingInfo.getListPickRequisition(importUtil);
|
|
List<PickingRequisition> listPickRequisition = PickingInfo.getListPickRequisition(importUtil);
|
|
@@ -527,10 +527,10 @@ public class ProjectController extends BaseController {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
j.setMsg( "已成功导入 "+sureSavePicking.size()+" 条领料表单记录."+str);
|
|
j.setMsg( "已成功导入 "+sureSavePicking.size()+" 条领料表单记录."+str);
|
|
- } catch (Exception e) {
|
|
|
|
- j.setSuccess(false);
|
|
|
|
- j.setMsg("导入领料表单失败!失败信息:"+e.getMessage());
|
|
|
|
- }
|
|
|
|
|
|
+// } catch (Exception e) {
|
|
|
|
+// j.setSuccess(false);
|
|
|
|
+// j.setMsg("导入领料表单失败!失败信息:"+e.getMessage());
|
|
|
|
+// }
|
|
return j;
|
|
return j;
|
|
}
|
|
}
|
|
}
|
|
}
|