parent
							
								
									ae637b2b48
								
							
						
					
					
						commit
						204ce8a32c
					
				| 
						 | 
				
			
			@ -316,8 +316,9 @@ public class ContractFormPlugin extends AbstractFormPlugin implements UploadList
 | 
			
		|||
                                    Row row = sheet.getRow(j);
 | 
			
		||||
                                    //第一列断号
 | 
			
		||||
                                    String seq = row.getCell(0).toString();
 | 
			
		||||
                                    seq = seq.split("\\.")[0]; // 取第一个部分
 | 
			
		||||
                                    if (StringUtils.isEmpty(seq)) {
 | 
			
		||||
                                        System.out.println();
 | 
			
		||||
                                        System.out.println("第 " + (j + 1) + " 行第一列是空值,跳过");
 | 
			
		||||
                                        continue;
 | 
			
		||||
                                    }
 | 
			
		||||
                                    //第一列不包含数字
 | 
			
		||||
| 
						 | 
				
			
			@ -326,6 +327,12 @@ public class ContractFormPlugin extends AbstractFormPlugin implements UploadList
 | 
			
		|||
                                        System.out.println();
 | 
			
		||||
                                        continue;
 | 
			
		||||
                                    }
 | 
			
		||||
                                    // 第一列只能是数字
 | 
			
		||||
                                    boolean isOnlyDigits = seq.matches("\\d+");
 | 
			
		||||
                                    if (!isOnlyDigits) {
 | 
			
		||||
                                        System.out.println("第 " + (j + 1) + " 行第一列不是纯数字,跳过");
 | 
			
		||||
                                        continue;
 | 
			
		||||
                                    }
 | 
			
		||||
 | 
			
		||||
                                    //合同明细清单  qeug_contractsummarylist
 | 
			
		||||
                                    // 存合同id,sheet名字
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue