|
|
@@ -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;
|