From ba6dcde08a286263b1c5cab291dca8031e8519d9 Mon Sep 17 00:00:00 2001 From: erzhongxmu Date: Sun, 2 Aug 2020 16:47:38 +0800 Subject: [PATCH] =?UTF-8?q?=E5=87=BA=E5=BA=93=E6=A3=80=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/zzjee/wm/controller/WmOmNoticeHController.java | 4 ++-- src/main/webapp/webpage/com/zzjee/wm/wmImNoticeH-add.jsp | 6 ++++-- src/main/webapp/webpage/com/zzjee/wm/wmOmNoticeH-add.jsp | 4 ++-- src/main/webapp/webpage/com/zzjee/wm/wmOmNoticeH.js | 4 ++-- 4 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/main/java/com/zzjee/wm/controller/WmOmNoticeHController.java b/src/main/java/com/zzjee/wm/controller/WmOmNoticeHController.java index 91351a6e..79a0e8b6 100644 --- a/src/main/java/com/zzjee/wm/controller/WmOmNoticeHController.java +++ b/src/main/java/com/zzjee/wm/controller/WmOmNoticeHController.java @@ -784,8 +784,8 @@ public class WmOmNoticeHController extends BaseController { } } - String sql = "select sum(base_goodscount) as qua from wv_stock t where t.goods_id = '" - + goods + "'"; + String sql = "select sum(base_goodscount) as qua from wv_stock t where t.goods_id LIKE '%" + + goods + "%'"; Map binMap = systemService.findOneForJdbc(sql); if(binMap!=null){ if(Double.parseDouble(binMap.get("qua").toString())< Double.parseDouble(request.getParameter("goodsqua").toString())){ diff --git a/src/main/webapp/webpage/com/zzjee/wm/wmImNoticeH-add.jsp b/src/main/webapp/webpage/com/zzjee/wm/wmImNoticeH-add.jsp index e1701f85..70012596 100644 --- a/src/main/webapp/webpage/com/zzjee/wm/wmImNoticeH-add.jsp +++ b/src/main/webapp/webpage/com/zzjee/wm/wmImNoticeH-add.jsp @@ -233,8 +233,10 @@ - - + 供应商编码: + + diff --git a/src/main/webapp/webpage/com/zzjee/wm/wmOmNoticeH-add.jsp b/src/main/webapp/webpage/com/zzjee/wm/wmOmNoticeH-add.jsp index 6dad3d3d..25d7020f 100644 --- a/src/main/webapp/webpage/com/zzjee/wm/wmOmNoticeH-add.jsp +++ b/src/main/webapp/webpage/com/zzjee/wm/wmOmNoticeH-add.jsp @@ -411,8 +411,8 @@ var msghe = ''; $("#wmOmNoticeI_table tr").each(function(){ - fieldname = $(this).find("td:eq(2)>input").val(); - fieldnamevalue = $(this).find("td:eq(3)>input").val(); + fieldname = $(this).find("td:eq(1)>input").val(); + fieldnamevalue = $(this).find("td:eq(2)>input").val(); // fieldnamelo = $(this).find("td:eq(6)>input").val(); if (fieldname !== null && (typeof fieldname != 'undefined') && fieldname !== '') { // var url = "wmOmNoticeHController.do?doAddcheck&mat_code="+fieldname+"&mat_qty="+fieldnamevalue; diff --git a/src/main/webapp/webpage/com/zzjee/wm/wmOmNoticeH.js b/src/main/webapp/webpage/com/zzjee/wm/wmOmNoticeH.js index 20c57214..a8852794 100644 --- a/src/main/webapp/webpage/com/zzjee/wm/wmOmNoticeH.js +++ b/src/main/webapp/webpage/com/zzjee/wm/wmOmNoticeH.js @@ -3,8 +3,8 @@ function doAddcheck(name) { var flag = true; var msghe = ''; $("#wmOmNoticeI_table tr").each(function(){ - fieldname = $(this).find("td:eq(2)>input").val(); - fieldnamevalue = $(this).find("td:eq(3)>input").val(); + fieldname = $(this).find("td:eq(1)>input").val(); + fieldnamevalue = $(this).find("td:eq(2)>input").val(); // fieldnamelo = $(this).find("td:eq(6)>input").val(); if (fieldname !== null && (typeof fieldname != 'undefined') && fieldname !== '') { // var url = "wmOmNoticeHController.do?doAddcheck&mat_code="+fieldname+"&mat_qty="+fieldnamevalue;