ソースを参照

修改代码BUG

callm 1 年間 前
コミット
3766c696d3

+ 4 - 2
src/main/java/com/uas/eis/serviceImpl/MESHelperServiceImpl.java

@@ -71,8 +71,10 @@ public class MESHelperServiceImpl implements MESHelperService {
 	{
 		List<Map<Object, Object>> maps = BaseUtil.parseGridStoreToMaps(data);
 		List<Map<Object, Object>> relist = new ArrayList<>();
+        SqlRowList rs=null;
+        String remark = "";
 		for (Map<Object, Object> map : maps) {
-			String remark = "";
+
 			Map<Object, Object> remap = new HashMap<>();
 			if(map.size()==0){
 				remark = "参数不完整,请检查";
@@ -81,7 +83,7 @@ public class MESHelperServiceImpl implements MESHelperService {
 				continue;
 			}
 
-			SqlRowList rs=baseDao.queryForRowSet("select ban_id from baracceptnotify where ban_barcode='"+map.get("ban_barcode")+"'");
+			rs=baseDao.queryForRowSet("select ban_id from baracceptnotify where ban_barcode='"+map.get("ban_barcode")+"'");
 			map.put("ban_id",baseDao.getSeqId("baracceptnotify_seq"));
 			if(rs.next()){
 				remark = "["+map.get("ban_barcode")+"]重复";