瀏覽代碼

数据库名称调整

callm 1 年之前
父節點
當前提交
18f388fde0

+ 0 - 2
src/main/java/com/uas/eis/UasEisApplication.java

@@ -23,9 +23,7 @@ public class UasEisApplication {
 	@Bean
 	public MultipartConfigElement multipartConfigElement() {
 		MultipartConfigFactory factory = new MultipartConfigFactory();
-		//设置单个文件的最大值
 		factory.setMaxFileSize("10MB"); //KB,MB
-		/// 设置上传文件总的最大值
 		factory.setMaxRequestSize("10MB");//KB,MB
 		return factory.createMultipartConfig();
 	}

+ 8 - 1
src/main/java/com/uas/eis/serviceImpl/MESHelperServiceImpl.java

@@ -72,8 +72,15 @@ public class MESHelperServiceImpl implements MESHelperService {
 		List<Map<Object, Object>> maps = BaseUtil.parseGridStoreToMaps(data);
 		List<Map<Object, Object>> relist = new ArrayList<>();
 		for (Map<Object, Object> map : maps) {
-			Map<Object, Object> remap = new HashMap<>();
 			String remark = "";
+			Map<Object, Object> remap = new HashMap<>();
+			if(map.size()==0){
+				remark = "参数不完整,请检查";
+				remap.put("remark",remark);
+				relist.add(remap);
+				continue;
+			}
+
 			SqlRowList 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()){