获取凭证分录行的ID查找到分录表对应的fseq字段值
This commit is contained in:
		
							parent
							
								
									afaca39dd8
								
							
						
					
					
						commit
						22e9e10298
					
				|  | @ -3,6 +3,8 @@ package shjh.jhzj7.fi.fi.utils; | ||||||
| import com.alibaba.fastjson.JSONArray; | import com.alibaba.fastjson.JSONArray; | ||||||
| import com.alibaba.fastjson.JSONObject; | import com.alibaba.fastjson.JSONObject; | ||||||
| import kd.bos.dataentity.entity.DynamicObject; | import kd.bos.dataentity.entity.DynamicObject; | ||||||
|  | import kd.bos.db.DB; | ||||||
|  | import kd.bos.db.DBRoute; | ||||||
| import kd.bos.logging.Log; | import kd.bos.logging.Log; | ||||||
| import kd.bos.logging.LogFactory; | import kd.bos.logging.LogFactory; | ||||||
| import kd.bos.orm.query.QCP; | import kd.bos.orm.query.QCP; | ||||||
|  | @ -76,6 +78,8 @@ public class SapUtils { | ||||||
|     private static final String Apimenthod9 = "费控数据校验"; |     private static final String Apimenthod9 = "费控数据校验"; | ||||||
|     private static final String interfaceID9 = "GetPaymentInfo";//识别被调接口并进行路由 |     private static final String interfaceID9 = "GetPaymentInfo";//识别被调接口并进行路由 | ||||||
| 
 | 
 | ||||||
|  |     private static final String queryEntrySeq = "select FSeq from T_GL_VOUCHERENTRY where FEntryID=?"; | ||||||
|  | 
 | ||||||
|     public static boolean isEmpty(String value) { |     public static boolean isEmpty(String value) { | ||||||
|         return value == null || value.trim().length() <= 0; |         return value == null || value.trim().length() <= 0; | ||||||
|     } |     } | ||||||
|  | @ -685,4 +689,19 @@ public class SapUtils { | ||||||
|         } |         } | ||||||
|         return sapMap; |         return sapMap; | ||||||
|     } |     } | ||||||
|  | 
 | ||||||
|  |     /** | ||||||
|  |      * 获取凭证分录行的ID查找到分录表对应的fseq字段值 | ||||||
|  |      * T_GL_VOUCHERENTRY FEntryID FSeq  | ||||||
|  |      */ | ||||||
|  |     public static String getVoucherEntrySeq(Long entryid){ | ||||||
|  |         String fseq = DB.query(DBRoute.of("fi"),queryEntrySeq,new Object[]{entryid},(rs) -> { | ||||||
|  |             String seq = null; | ||||||
|  |             if(rs.next()) { | ||||||
|  |                 seq = rs.getString(1); | ||||||
|  |             } | ||||||
|  |             return seq; | ||||||
|  |         }); | ||||||
|  |         return fseq; | ||||||
|  |     } | ||||||
| } | } | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue