yaoyu 1 year ago
parent
commit
02678b73c7

+ 2 - 0
pu/pu/src/client/nc/ui/pubapp/uif2app/actions/MultiSelectDialog.java

@@ -313,6 +313,8 @@ public class MultiSelectDialog extends UIDialog {
 
 		        // 设置标题行的复选框点击事件监听器
 		        addSelectAllMouseListener();
+			}else {
+				throw new Exception("当前用户票夹中无发票!");
 			}
 		} catch (Exception e) {
 			throw new Exception(e.getMessage());

+ 2 - 5
pu/pu/src/private/nc/impl/th/ThOcrServiceImpl.java

@@ -197,13 +197,10 @@ public class ThOcrServiceImpl implements IThOcrService{
 	public void insertOCRdataInfo(ArrayList<OCRInvoiceVO> vos) throws BusinessException {
 		insert(vos);
 	}
-	
-	
-
 	public String getOcrToken(String userid)  throws Exception{
     	HttpClient httpClient = new HttpClient();
-    	httpClient.getHttpConnectionManager().getParams().setConnectionTimeout(5000);
-        httpClient.getHttpConnectionManager().getParams().setSoTimeout(5000);
+    	httpClient.getHttpConnectionManager().getParams().setConnectionTimeout(60000);
+        httpClient.getHttpConnectionManager().getParams().setSoTimeout(60000);
         PostMethod postMethod = new PostMethod(buildToken);
         postMethod.setRequestHeader("content-type", "application/json");
         postMethod.setRequestHeader("appkey", appId);