Преглед изворни кода

更新modelAndView初始化问题

hejq пре 7 година
родитељ
комит
03d054a284

+ 2 - 0
src/main/java/com/uas/platform/b2c/prod/commodity/controller/ReleaseProductByBatchController.java

@@ -387,6 +387,7 @@ public class ReleaseProductByBatchController {
         if (loading == null || !Boolean.valueOf(loading.toString())) {
             session.setAttribute("load-error-ing", true);
         }
+        modelAndView = new ModelAndView();
         modelAndView.addObject("data", releaseProductByBatchService.findFailureReleaseProductByBatch(batch));
         String url ="";
         if (null != isPerson && isPerson.intValue() == IntegerConstant.YES_SHORT.intValue()) {
@@ -443,6 +444,7 @@ public class ReleaseProductByBatchController {
         if (loading == null || !Boolean.valueOf(loading.toString())) {
             session.setAttribute("load-error-ing", true);
         }
+        modelAndView = new ModelAndView();
 		modelAndView.addObject("data", releaseProductByBatchService.findFailureReleaseProductByBatch(batch));
         String url = "classpath:jxls-tpl/trade/products-error";
         modelAndView.setView(new JxlsExcelView(url, "修改失败产品-优软商城"));

+ 1 - 0
src/main/java/com/uas/platform/b2c/trade/order/controller/PurchaseProductController.java

@@ -110,6 +110,7 @@ public class PurchaseProductController {
         if (loading == null || !Boolean.valueOf(loading.toString())) {
             session.setAttribute("load-error-ing", true);
         }
+        modelAndView = new ModelAndView();
         modelAndView.addObject("data", releaseProductByBatchService.findFailureReleaseProductByBatch(batch));
         String url = "classpath:jxls-tpl/trade/releaseByBatchError-person";
         modelAndView.setView(new JxlsExcelView(url, "导出失败的个人物料-优软商城"));