瀏覽代碼

恢复异常抛出

yuanzhi_kuang 2 月之前
父節點
當前提交
24ae444ede
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      websrc/com/kingdee/eas/custom/esign/service/OtherESignConfigDataService.java

+ 4 - 4
websrc/com/kingdee/eas/custom/esign/service/OtherESignConfigDataService.java

@@ -162,7 +162,6 @@ public class OtherESignConfigDataService implements IHRMsfService {
             // 执行SQL查询,获取结果集
             IRowSet iRowSet1 = DBUtil.executeQuery(context, sql);
             // 遍历结果集中的每一行数据
-            try {
 				while (iRowSet1.next()) {
 				    // 遍历每个字段映射明细项
 				    for (int i = 0; i < entrys.size(); i++) {
@@ -239,13 +238,14 @@ public class OtherESignConfigDataService implements IHRMsfService {
 				        fields.put(templateFieldId, value);
 				    }
 				}
-			} catch (SQLException e) {
-				e.printStackTrace();
-			}
+		 
 
         } catch (BOSException e) {
             // BOS异常时,封装为运行时异常抛出
             throw new RuntimeException(e);
+        } catch (SQLException e) {
+            // SQL异常时,封装为运行时异常抛出
+            throw new RuntimeException(e);
         }  
         // 返回封装好的JSON对象
         return jsonObject;