库存调整BI

master
e 2018-12-10 00:16:21 +08:00
parent 3850017a1b
commit de9752b980
2 changed files with 14 additions and 1 deletions

View File

@ -32,7 +32,7 @@ public class BiController extends BaseController {
String num2= "0"; String num2= "0";
String num3= "0"; String num3= "0";
String num4= "0"; String num4= "0";
String num5= "0"; //库存转移计划中的数量
// String yearstr = DateUtils.date2Str(DateUtils.yyyyMMdd); // 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'" ; 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<Map<String,Object>> ymaplist5=systemService.findForJdbc(ysql);
for (Map<String,Object> object : ymaplist5) {
Map<String, Object> obj = object;
try {
num5 = obj.get("linecount").toString();
} catch (Exception e) {
}
}
request.setAttribute("num1",num1); request.setAttribute("num1",num1);
request.setAttribute("num2",num2); request.setAttribute("num2",num2);
request.setAttribute("num3",num3); request.setAttribute("num3",num3);
request.setAttribute("num4",num4); request.setAttribute("num4",num4);
request.setAttribute("num5",num5);
return new ModelAndView("com/zzjee/BI/home/reportbi"); return new ModelAndView("com/zzjee/BI/home/reportbi");
} }

View File

@ -229,6 +229,7 @@
<div class="media" style="border:0px"> <div class="media" style="border:0px">
<div class="media-body" style="padding-top: 10px;padding-left: 50px; "> <div class="media-body" style="padding-top: 10px;padding-left: 50px; ">
<h3 class="media-heading" id=x> </h3> <h3 class="media-heading" id=x> </h3>
<h3 class="media-heading" id=x2> 您有 ${num5} 件商品需要做库存调整,请及时调整</h3>
</div> </div>