From de9752b9801f909f5efc8af1f1501b78d4a5acd6 Mon Sep 17 00:00:00 2001 From: e Date: Mon, 10 Dec 2018 00:16:21 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=93=E5=AD=98=E8=B0=83=E6=95=B4BI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/zzjee/BI/BiController.java | 14 +++++++++++++- .../webapp/webpage/com/zzjee/BI/home/reportbi.jsp | 1 + 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/zzjee/BI/BiController.java b/src/main/java/com/zzjee/BI/BiController.java index 803de412..386ea330 100644 --- a/src/main/java/com/zzjee/BI/BiController.java +++ b/src/main/java/com/zzjee/BI/BiController.java @@ -32,7 +32,7 @@ public class BiController extends BaseController { String num2= "0"; String num3= "0"; String num4= "0"; - + String num5= "0"; //库存转移计划中的数量 // String yearstr = DateUtils.date2Str(DateUtils.yyyyMMdd); String ysql = "select CONVERT( sum(base_goodscount),DECIMAL(10,0)) as linecount from wm_im_notice_i where bin_pre = 'N'" ; @@ -84,12 +84,24 @@ public class BiController extends BaseController { } } + ysql = "select CONVERT( sum(base_goodscount),DECIMAL(10,0)) as linecount from wm_to_move_goods where move_Sta = '计划中'" ; + List> ymaplist5=systemService.findForJdbc(ysql); + for (Map object : ymaplist5) { + Map obj = object; + + try { + num5 = obj.get("linecount").toString(); + } catch (Exception e) { + + } + } request.setAttribute("num1",num1); request.setAttribute("num2",num2); request.setAttribute("num3",num3); request.setAttribute("num4",num4); + request.setAttribute("num5",num5); return new ModelAndView("com/zzjee/BI/home/reportbi"); } diff --git a/src/main/webapp/webpage/com/zzjee/BI/home/reportbi.jsp b/src/main/webapp/webpage/com/zzjee/BI/home/reportbi.jsp index 46ecc6c5..6022a2ba 100644 --- a/src/main/webapp/webpage/com/zzjee/BI/home/reportbi.jsp +++ b/src/main/webapp/webpage/com/zzjee/BI/home/reportbi.jsp @@ -229,6 +229,7 @@

+

您有 ${num5} 件商品需要做库存调整,请及时调整