index.d.ts 181 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588
  1. /// <reference types="../../@cosmic/bos-script" />
  2. /// <reference types="../../@cosmic/bos-core" />
  3. declare global {
  4. namespace $ {
  5. namespace kd.sdk.tmc{
  6. interface SdkTmcModule_S {
  7. }
  8. type SdkTmcModule_ST = $.kd.sdk.module.Module & SdkTmcModule_S;
  9. interface SdkTmcModule_C extends SdkTmcModule_ST {
  10. new():SdkTmcModule;
  11. }
  12. interface SdkTmcModule$ {
  13. }
  14. type SdkTmcModule_T = $.kd.sdk.module.Module & SdkTmcModule_S & SdkTmcModule$;
  15. interface SdkTmcModule extends SdkTmcModule_T {
  16. }
  17. }
  18. namespace kd.sdk.tmc.am.extpoint.bankacct{
  19. interface ILinkPayRelationAddCompanyFilter_S {
  20. }
  21. interface ILinkPayRelationAddCompanyFilter$ {
  22. /**
  23. * 支付关系维护分录的母账户的过滤条件中添加申请公司
  24. * @param companyIdList 母账户过滤的申请公司
  25. *
  26. * <p>扩展示例如下
  27. * <pre>
  28. * <code>
  29. * import java.util.Set;
  30. * import kd.sdk.tmc.am.extpoint.bankacct.ILinkPayRelationAddCompanyFilter;
  31. *
  32. * public class LinkPayRelationAddCompany implements ILinkPayRelationAddCompanyFilter {
  33. *
  34. * public void parentAcctAddCompanyIdList(Set<Object> companyIdList){
  35. * companyIdList.add(1L);
  36. * }
  37. * }
  38. * </code>
  39. * </pre>
  40. */
  41. parentAcctAddCompanyIdList?(companyIdList:$.java.util.Set):void;
  42. }
  43. type ILinkPayRelationAddCompanyFilter_T = ILinkPayRelationAddCompanyFilter_S & ILinkPayRelationAddCompanyFilter$;
  44. interface ILinkPayRelationAddCompanyFilter extends ILinkPayRelationAddCompanyFilter_T {
  45. }
  46. interface IBankAccountFilter_S {
  47. }
  48. interface IBankAccountFilter$ {
  49. /**
  50. * 银行账户增加“是否虚拟账户”字段方法1
  51. * @param args 页面的过滤条件
  52. * @param formView 页面的参数
  53. * @return void
  54. *
  55. * <p>扩展示例如下
  56. * <pre><code>
  57. * import kd.bos.form.IFormView;
  58. * import kd.bos.form.events.FilterContainerInitArgs;
  59. *
  60. * public class BankAccountFilter implements IBankAccountFilter {
  61. *
  62. * public void addIFilterColumn(FilterContainerInitArgs args, IFormView formView) {
  63. *
  64. * }
  65. * }
  66. * </code></pre>
  67. */
  68. addIFilterColumn?(args:$.kd.bos.form.events.FilterContainerInitArgs,formView:$.kd.bos.form.IFormView):void;
  69. /**
  70. * 银行账户增加“是否虚拟账户”字段方法2
  71. * @param e 页面的事件
  72. * @param formView 页面的参数
  73. * @return void
  74. *
  75. * <p>扩展示例如下
  76. * <pre><code>
  77. * import kd.bos.form.IFormView;
  78. * import kd.bos.form.events.SetFilterEvent;
  79. *
  80. * public class BankAccountFilter implements IBankAccountFilter {
  81. *
  82. * public void setIFilters(SetFilterEvent e, IFormView formView) {
  83. *
  84. * }
  85. * }
  86. * </code></pre>
  87. */
  88. setIFilters?(e:$.kd.bos.form.events.SetFilterEvent,formView:$.kd.bos.form.IFormView):void;
  89. }
  90. type IBankAccountFilter_T = IBankAccountFilter_S & IBankAccountFilter$;
  91. interface IBankAccountFilter extends IBankAccountFilter_T {
  92. }
  93. }
  94. namespace kd.sdk.tmc.am.extpoint.inspect{
  95. interface IInspectPushMyself_S {
  96. }
  97. interface IInspectPushMyself$ {
  98. /**
  99. * 账户巡检处理单自定义下推获取目标单实体
  100. * @param srcOpinion 变更前处理意见
  101. * @return 实体编码
  102. * <p>扩展示例如下
  103. * <pre><code>package kd.sdk.tmc.am.extpoint.inspect;
  104. *
  105. * import kd.bos.dataentity.entity.DynamicObject;
  106. * import java.util.List;
  107. *
  108. * public String getDestEntity(String srcOpinion) {
  109. *
  110. * return "am_test_aaa";
  111. * }</code></pre>
  112. */
  113. getDestEntity(srcOpinion:string):string;
  114. /**
  115. * 账户巡检处理单自定义下推销户申请与变更申请
  116. * @param opKey 操作标识:audit || unaudit || changedeal || handpush
  117. * @param data 整个巡检处理单对象
  118. * @param entryList 只包含处理意见=账户销户或者账户变更的数据
  119. * @return 是否自己处理 默认false 返回true 不会执行标品下推等逻辑
  120. * <p>扩展示例如下
  121. * <pre><code>package kd.sdk.tmc.am.extpoint.inspect;
  122. *
  123. * import kd.bos.dataentity.entity.DynamicObject;
  124. * import java.util.List;
  125. *
  126. * public boolean isDealMyselfPush(String opKey, DynamicObject data, List<DynamicObject> entryList) {
  127. *
  128. * return false;
  129. * }</code></pre>
  130. */
  131. isDealMyselfPush(opKey:string,data:$.kd.bos.dataentity.entity.DynamicObject,entryList:$.java.util.List):boolean;
  132. }
  133. type IInspectPushMyself_T = IInspectPushMyself_S & IInspectPushMyself$;
  134. interface IInspectPushMyself extends IInspectPushMyself_T {
  135. }
  136. }
  137. namespace kd.sdk.tmc.am.extpoint.report{
  138. interface IDormantFormListFilter_S {
  139. }
  140. interface IDormantFormListFilter$ {
  141. /**
  142. * 久悬户查询增加过滤条件可”是否包含虚拟户”
  143. * @param qFilters 页面的过滤条件
  144. * @param filter 传递的参数
  145. * @return void
  146. *
  147. * <p>扩展示例如下
  148. * <pre><code>
  149. * import kd.bos.entity.report.FilterInfo;
  150. * import kd.bos.orm.query.QFilter;
  151. *
  152. * import java.util.List;
  153. *
  154. * public class DormantFormListFilter implements IDormantFormListFilter {
  155. *
  156. * public void setIFilters(List<QFilter> qFilters, FilterInfo filter) {
  157. * qFilters.add(new QFilter("isinclude", QCP.equals, filter.getString("isinclude")));
  158. * qFilters.add(new QFilter("name", QCP.equals, filter.getString("name")));
  159. * }
  160. * }
  161. * </code></pre>
  162. */
  163. setIFilters?(qFilters:$.java.util.List,filter:$.kd.bos.entity.report.FilterInfo):void;
  164. }
  165. type IDormantFormListFilter_T = IDormantFormListFilter_S & IDormantFormListFilter$;
  166. interface IDormantFormListFilter extends IDormantFormListFilter_T {
  167. }
  168. }
  169. namespace kd.sdk.tmc.bei.extpoint.balance{
  170. interface IFillBankBalance_S {
  171. }
  172. interface IFillBankBalance$ {
  173. /**
  174. * 同步余额增加字段支持二开扩展
  175. * @param bankBalance 处理的余额数据
  176. * @param balanceString 银企云返回的余额数据
  177. *
  178. * <p>扩展示例如下
  179. * <pre><code>
  180. *
  181. * package kd.sdk.tmc.bei.extpoint.balance;
  182. *
  183. * import com.alibaba.fastjson.JSON;
  184. * import com.alibaba.fastjson.JSONObject;
  185. * import kd.bos.dataentity.entity.DynamicObject;
  186. *
  187. * public class FillBankBalanceExt implements IFillBankBalance {
  188. *
  189. * public void fillExtBankBalance(DynamicObject bankBalance, String balanceString) {
  190. * JSONObject jsonObject = JSON.parseObject(balanceString);
  191. * bankBalance.set("", jsonObject.getString(""));
  192. * }
  193. *
  194. * }
  195. * </code></pre>
  196. */
  197. fillExtBankBalance(bankBalance:$.kd.bos.dataentity.entity.DynamicObject,balanceString:string):void;
  198. }
  199. type IFillBankBalance_T = IFillBankBalance_S & IFillBankBalance$;
  200. interface IFillBankBalance extends IFillBankBalance_T {
  201. }
  202. interface IGenHistoryBalanceInterface_S {
  203. }
  204. interface IGenHistoryBalanceInterface$ {
  205. /**
  206. * 用于获取二开可以执行自动计算历史余额的银企直连账户的主键ID
  207. * @return 银企直连账户的主键ID
  208. *
  209. * <p>扩展示例如下
  210. * <pre><code>
  211. * package kd.sdk.tmc.bei.extpoint.balance;
  212. *
  213. * import java.util.HashSet;
  214. * import java.util.Set;
  215. *
  216. * public class GenHistoryBalanceInterfaceExt implements IGenHistoryBalanceInterface {
  217. *
  218. * public Set<Long> getExtAccountBankIds() {
  219. * HashSet<Long> bankAccountIds = new HashSet<>();
  220. * // 返回需要扩展处理的银企账户ID
  221. * bankAccountIds.add(1L);
  222. * return bankAccountIds;
  223. * }
  224. * }
  225. * </code></pre>
  226. */
  227. getExtAccountBankIds():$.java.util.Set;
  228. }
  229. type IGenHistoryBalanceInterface_T = IGenHistoryBalanceInterface_S & IGenHistoryBalanceInterface$;
  230. interface IGenHistoryBalanceInterface extends IGenHistoryBalanceInterface_T {
  231. }
  232. interface IBalanceReportInterface_S {
  233. }
  234. interface IBalanceReportInterface$ {
  235. /**
  236. * 余额报表添加账户字段扩展点
  237. * @return 需要扩展的字段
  238. * <p>扩展示例如下
  239. *
  240. * <pre><code>package kd.sdk.tmc.bei.extpoint.balance;
  241. *
  242. * import kd.bos.orm.query.QCP;
  243. * import kd.bos.orm.query.QFilter;
  244. *
  245. * public class BalanceReportExt implements IBalanceReportInterface{
  246. *
  247. * public String getAccountFields() {
  248. * // 需要查询的字段名,类别扩展增加相同属性名称的列
  249. * return "acctstatus,defaultcurrency";
  250. * }
  251. * }</code></pre>
  252. */
  253. getAccountFields():string;
  254. /**
  255. * 余额报表条件过滤扩展点
  256. * @param qFilter 查询条件
  257. * @return 查询条件
  258. *
  259. * <p>拓展示例如下
  260. * <pre><code>package kd.sdk.tmc.bei.extpoint.balance;
  261. *
  262. * import kd.bos.orm.query.QCP;
  263. * import kd.bos.orm.query.QFilter;
  264. *
  265. * public class BalanceReportExt implements IBalanceReportInterface{
  266. *
  267. * public QFilter getAccountFilter(QFilter qFilter) {
  268. *
  269. * // 增加账户过滤内容
  270. * qFilter.and("bankaccountnumber", QCP.equals, "FI-00000000000CNY44");
  271. * return qFilter;
  272. * }
  273. * }</code></pre>
  274. */
  275. getAccountFilter(qFilter:$.kd.bos.orm.query.QFilter):$.kd.bos.orm.query.QFilter;
  276. }
  277. type IBalanceReportInterface_T = IBalanceReportInterface_S & IBalanceReportInterface$;
  278. interface IBalanceReportInterface extends IBalanceReportInterface_T {
  279. }
  280. }
  281. namespace kd.sdk.tmc.bei.extpoint.bankpay{
  282. interface IAfterBankPayQueryExt_S {
  283. }
  284. interface IAfterBankPayQueryExt$ {
  285. /**
  286. * 获取银企同步付款状态接口备用字段对应银行付款单二开字段标识
  287. *
  288. * 银企同步付款状态接口备用字段标识
  289. * String reversed1;
  290. * String reversed2;
  291. * String reversed3;
  292. * String reversed4;
  293. *
  294. * @return Map<String, String> key: 银企同步付款状态接口备用字段标识 value: 备用字段对应的银行付款单二开字段标识
  295. *
  296. * <p>扩展示例如下
  297. * <pre><code>package kd.sdk.tmc.bei.extpoint.bankpay;
  298. *
  299. * import java.util.HashMap;
  300. * import java.util.Map;
  301. * import kd.sdk.tmc.bei.extpoint.bankpay.IAfterBankPayQueryExt;
  302. *
  303. * public class BankPayQueryServiceExtPlugin implements IAfterBankPayQueryExt {
  304. *
  305. * public Map<String, String> getExtReversedFields() {
  306. * Map<String, String> extFieldsMap = new HashMap<>(4);
  307. * extFieldsMap.put("reversed1", "kdext_field1");
  308. * extFieldsMap.put("reversed2", "kdext_field2");
  309. * extFieldsMap.put("reversed3", "kdext_field3");
  310. * extFieldsMap.put("reversed4", "kdext_field4");
  311. * return extFieldsMap;
  312. * }
  313. *
  314. * }</code></pre>
  315. */
  316. getExtReversedFields?():$.java.util.Map;
  317. }
  318. type IAfterBankPayQueryExt_T = IAfterBankPayQueryExt_S & IAfterBankPayQueryExt$;
  319. interface IAfterBankPayQueryExt extends IAfterBankPayQueryExt_T {
  320. }
  321. interface IBankPayDetailExt_S {
  322. }
  323. interface IBankPayDetailExt$ {
  324. /**
  325. * 获取提交银企付款明细二开扩展字段
  326. *
  327. * 银企付款明细可扩展字段标识(可持续补充)
  328. * 跨境TT付款 汇款人城市 汇款人省份 汇款人地址
  329. * String payerCity;
  330. * String payerProvince;
  331. * String payerAddress;
  332. *
  333. * @return Map<String, String> key: 银企付款明细可扩展字段标识 value: 对应的银行付款单二开扩展字段标识
  334. *
  335. * <p>扩展示例如下
  336. * <pre><code>package kd.sdk.tmc.bei.extpoint.bankpay;
  337. *
  338. * import java.util.HashMap;
  339. * import java.util.Map;
  340. * import kd.sdk.tmc.bei.extpoint.bankpay.IBankPayDetailExt;
  341. *
  342. * public class BankPayDetailExtPlugin implements IBankPayDetailExt {
  343. *
  344. * public Map<String, String> getPayDetailExtFields() {
  345. * Map<String, String> extFieldsMap = new HashMap<>(4);
  346. * extFieldsMap.put("payerCity", "kdext_payerCity");
  347. * extFieldsMap.put("payerProvince", "kdext_payerProvince");
  348. * extFieldsMap.put("payerAddress", "kdext_payerAddress");
  349. * return extFieldsMap;
  350. * }
  351. *
  352. * }</code></pre>
  353. */
  354. getPayDetailExtFields?():$.java.util.Map;
  355. }
  356. type IBankPayDetailExt_T = IBankPayDetailExt_S & IBankPayDetailExt$;
  357. interface IBankPayDetailExt extends IBankPayDetailExt_T {
  358. }
  359. interface IBankPayExtDataExt_S {
  360. }
  361. interface IBankPayExtDataExt$ {
  362. /**
  363. * 获取提交银企付款二开扩展字段
  364. *
  365. * @return Set<String> key: 银行付款单二开扩展字段标识
  366. *
  367. * <p>扩展示例如下
  368. * <pre><code>package kd.sdk.tmc.bei.extpoint.bankpay;
  369. *
  370. * import java.util.HashSet;
  371. * import java.util.Set;
  372. * import kd.sdk.tmc.bei.extpoint.bankpay.IBankPayExtDataExt;
  373. *
  374. * public class BankPayExtDataExtPlugin implements IBankPayExtDataExt {
  375. *
  376. * public Set<String> getPayExtDataFields() {
  377. * Set<String> extFieldsSet = new HashSet<>(4);
  378. * extFieldsSet.add("kdext_extDataField1");
  379. * extFieldsSet.add("kdext_extDataField2");
  380. * extFieldsSet.add("kdext_extDataField3");
  381. * return extFieldsSet;
  382. * }
  383. *
  384. * }</code></pre>
  385. */
  386. getPayExtDataFields?():$.java.util.Set;
  387. }
  388. type IBankPayExtDataExt_T = IBankPayExtDataExt_S & IBankPayExtDataExt$;
  389. interface IBankPayExtDataExt extends IBankPayExtDataExt_T {
  390. }
  391. }
  392. namespace kd.sdk.tmc.bei.extpoint.claim{
  393. interface INoticeClaimSchemeInterface_S {
  394. }
  395. interface INoticeClaimSchemeInterface$ {
  396. /**
  397. * 取消通知认领对象拓展
  398. * “取消通知认领”操作时触发扩展。
  399. *
  400. * @param noticeObjectMap "billid" 交易明细ID
  401. * "ruleentryid" 通知规则ID
  402. * "isneednotice" 是否发送通知,默认为true
  403. * @return Map<String, Object> key:"userids", value:userIdList
  404. *
  405. * <p>拓展示例如下
  406. * <pre><code>package kd.tmc.bei.business;
  407. *
  408. * import kd.sdk.tmc.bei.extpoint.claim.INoticeClaimSchemeInterface;
  409. *
  410. * import java.util.ArrayList;
  411. * import java.util.List;
  412. * import java.util.Map;
  413. *
  414. * public class NoticeClaimSchemesDefaultExt implements INoticeClaimSchemeInterface {
  415. *
  416. * public Map<String, Object> cancelNoticeObjectExt(Map<String, Object> noticeObjectMap) {
  417. * // 获取交易明细ID
  418. * Long billId = (Long) noticeObjectMap.get("billid");
  419. * // 获取通知规则分录ID
  420. * Long ruleEntryId = (Long) noticeObjectMap.get("ruleentryid");
  421. *
  422. * // 是否发送通知,默认为true
  423. * noticeObjectMap.put("isneednotice", false);
  424. *
  425. * return noticeObjectMap;
  426. * }
  427. * }</code></pre>
  428. */
  429. cancelNoticeObjectExt?(noticeObjectMap:$.java.util.Map):$.java.util.Map;
  430. /**
  431. * 通知认领对象拓展
  432. * 扩展调用时机:“通知认领”操作匹配到通知规则且在【通知规则】界面选择的是“自定义”时触发扩展
  433. * 注:当扩展此场景时会覆盖 kd.sdk.fi.cas.extpoint.noticeclaim.INoticeClaimSchemeInterface.noticeObjectExt 扩展场景
  434. *
  435. * @param noticeObjectMap "billid" 交易明细ID
  436. * "ruleentryid" 通知规则ID
  437. * "isneednotice" 是否发送通知,默认为true
  438. * @return Map<String, Object> key:"userids", value:userIdList
  439. *
  440. * <p>拓展示例如下
  441. * <pre><code>package kd.tmc.bei.business;
  442. *
  443. * import kd.sdk.tmc.bei.extpoint.claim.INoticeClaimSchemeInterface;
  444. *
  445. * import java.util.ArrayList;
  446. * import java.util.List;
  447. * import java.util.Map;
  448. *
  449. * public class NoticeClaimSchemesDefaultExt implements INoticeClaimSchemeInterface {
  450. *
  451. * public Map<String, Object> noticeObjectExtByRule(Map<String, Object> noticeObjectMap) {
  452. * // 获取交易明细ID
  453. * Long billId = (Long) noticeObjectMap.get("billid");
  454. * // 获取通知规则分录ID
  455. * Long ruleEntryId = (Long) noticeObjectMap.get("ruleentryid");
  456. *
  457. * // 自定义通知对象用户ID
  458. * List<Object> userIds = new ArrayList<>(2);
  459. * userIds.add(1540672005563544576L);
  460. * noticeObjectMap.put("userids", userIds);
  461. *
  462. * // 是否发送通知,默认为true
  463. * noticeObjectMap.put("isneednotice", false);
  464. *
  465. * return noticeObjectMap;
  466. * }
  467. * }</code></pre>
  468. */
  469. noticeObjectExtByRule?(noticeObjectMap:$.java.util.Map):$.java.util.Map;
  470. }
  471. type INoticeClaimSchemeInterface_T = INoticeClaimSchemeInterface_S & INoticeClaimSchemeInterface$;
  472. interface INoticeClaimSchemeInterface extends INoticeClaimSchemeInterface_T {
  473. }
  474. }
  475. namespace kd.sdk.tmc.bei.extpoint.receipt{
  476. interface IAfterReceiptRecognition_S {
  477. }
  478. interface IAfterReceiptRecognition$ {
  479. /**
  480. * 基于OCR识别后的已有信息设置客制化规则
  481. * @param recognizeDetailJson JsonString 电子回单ocr识别结果序列化对象 kd.tmc.bei.common.constants.ReceiptRecongnizeDetail
  482. * @return JsonString 二开处理后的识别结果序列化对象
  483. *
  484. * 电子回单识别明细对象 - kd.tmc.bei.common.constants.ReceiptRecongnizeDetail
  485. *
  486. * 对象属性:
  487. *
  488. * 交易日期
  489. * String ftradeDate;
  490. * 收款人&付款人银行账户信息
  491. * 户名
  492. * String fpayeeName;
  493. * String fpaymentName;
  494. * 银行账号
  495. * String fpayeeAccount;
  496. * String fpaymentAccount;
  497. * 开户行
  498. * String fpayeeBank;
  499. * String fpaymentBank;
  500. * 金额
  501. * String famount;
  502. * 币别
  503. * String fcurrency;
  504. * 借贷标记 贷-收 借-付
  505. * String ftradeType;
  506. * 交易流水号
  507. * String ftradeId;
  508. * 业务参考号
  509. * String ftradeNumber;
  510. * String fabstract;
  511. *
  512. * <p>扩展示例如下
  513. * <pre><code>package kd.sdk.tmc.bei.extpoint.receipt;
  514. *
  515. * import kd.bos.dataentity.serialization.SerializationUtils;
  516. * import kd.bos.logging.Log;
  517. * import kd.bos.logging.LogFactory;
  518. * import kd.bos.util.ExceptionUtils;
  519. * import kd.sdk.tmc.bei.extpoint.receipt.IAfterReceiptRecognition;
  520. * import kd.tmc.bei.common.constants.ReceiptRecongnizeDetail;
  521. * import kd.tmc.bei.common.enums.LendingDirectionEnum;
  522. *
  523. * public class ReceiptRecognitionResultExtPlugin implements IAfterReceiptRecognition {
  524. * private static final Log logger = LogFactory.getLog(ReceiptRecognitionResultExtPlugin.class);
  525. *
  526. * public String fillRecognitionResult(String recognizeDetailJson) {
  527. * try {
  528. * //反序列化对象
  529. * ReceiptRecongnizeDetail recognizeDetail = SerializationUtils.fromJsonString(recognizeDetailJson, ReceiptRecongnizeDetail.class);
  530. * recognizeDetail.setFpaymentAccount("ABC777");
  531. * recognizeDetail.setFcurrency("CNY");
  532. * //借贷方向涉及多语言 建议使用枚举赋值
  533. * recognizeDetail.setFtradeType(LendingDirectionEnum.OUT.getDirect());
  534. * //处理后序列化返回
  535. * recognizeDetailJson = SerializationUtils.toJsonString(recognizeDetail);
  536. * } catch (Exception e) {
  537. * logger.warn("电子回单识别 -- 二开处理识别结果反异常:" + ExceptionUtils.getExceptionStackTraceMessage(e));
  538. * }
  539. * return recognizeDetailJson;
  540. * }
  541. * }</code></pre>
  542. */
  543. fillRecognitionResult?(recognizeDetailJson:string):string;
  544. }
  545. type IAfterReceiptRecognition_T = IAfterReceiptRecognition_S & IAfterReceiptRecognition$;
  546. interface IAfterReceiptRecognition extends IAfterReceiptRecognition_T {
  547. }
  548. interface IReceiptMatchTransDetail_S {
  549. }
  550. interface IReceiptMatchTransDetail$ {
  551. /**
  552. * 电子回单匹配交易明细后,电子回单、交易明细赋值逻辑二开扩展
  553. * @param matchRel 电子回单:交易明细关系:one-one,one-many,many-one
  554. * @param receipts 电子回单单据信息
  555. * @param details 交易明细单据信息
  556. *
  557. * <p>扩展示例如下
  558. * <pre><code>package kd.sdk.tmc.bei.extpoint.receipt;
  559. *
  560. * import kd.bos.dataentity.entity.DynamicObject;
  561. * import java.util.List;
  562. *
  563. * public class ReceiptMatchTransDetail implements IReceiptMatchTransDetail{
  564. *
  565. * public void afterMatchFieldValueCover(String matchRel, List<DynamicObject> receipts, List<DynamicObject> details) {
  566. * switch (matchRel){
  567. * case "one-one"://一对一
  568. * DynamicObject receipt = receipts.get(0);
  569. * receipt.set("keyField", "value");
  570. * DynamicObject detail = details.get(0);
  571. * detail.set("keyField", "value");
  572. * break;
  573. * case "one-many"://一对多
  574. * DynamicObject receipt1 = receipts.get(0);
  575. * receipt1.set("keyField", "value");
  576. * for (DynamicObject detail1 : details) {
  577. * detail1.set("keyField", "value");
  578. * }
  579. * break;
  580. * case "many-one"://多对一
  581. * for (DynamicObject receipt2 : receipts) {
  582. * receipt2.set("keyField", "value");
  583. * }
  584. * DynamicObject detail2 = details.get(0);
  585. * detail2.set("keyField", "value");
  586. * break;
  587. * default:
  588. * break;
  589. * }
  590. * }
  591. * }
  592. * </code></pre>
  593. */
  594. afterMatchFieldValueCover(matchRel:string,receipts:$.java.util.List,details:$.java.util.List):void;
  595. }
  596. type IReceiptMatchTransDetail_T = IReceiptMatchTransDetail_S & IReceiptMatchTransDetail$;
  597. interface IReceiptMatchTransDetail extends IReceiptMatchTransDetail_T {
  598. }
  599. }
  600. namespace kd.sdk.tmc.bei.extpoint.transdetail{
  601. interface IDeleteTransDetail_S {
  602. }
  603. interface IDeleteTransDetail$ {
  604. /**
  605. * 添加允许删除的条件(针对交易明细实体拥有的属性)
  606. *
  607. * <p>扩展示例如下
  608. * <pre><code>package kd.sdk.tmc.bei.extpoint.transdetail;
  609. *
  610. * import kd.bos.dataentity.entity.DynamicObject;
  611. * import kd.bos.orm.query.QFilter;
  612. *
  613. * public class DeleteTransDetail implements IDeleteTransDetail{
  614. *
  615. * public void getQfilterCanDelete() {
  616. * // 在交易明细上做了二开字段作为了业务控制,可以在此处设置限制交易明细哪些能被删除,避免交易明细被标准流程删除
  617. * return new QFilter("二开属性", QFilter.equals, "允许删除的条件");
  618. * }
  619. * }</code></pre>
  620. */
  621. getQfilterCanDelete():$.kd.bos.orm.query.QFilter;
  622. }
  623. type IDeleteTransDetail_T = IDeleteTransDetail_S & IDeleteTransDetail$;
  624. interface IDeleteTransDetail extends IDeleteTransDetail_T {
  625. }
  626. interface ITransDetailKDFlagInterface_S {
  627. }
  628. interface ITransDetailKDFlagInterface$ {
  629. /**
  630. * 交易明细KD标识扩展点
  631. * @param scene 场景名称:
  632. * 1.payruleenter: 付款按规则生单
  633. * 2.recruleenter: 收款按规则生单
  634. * 3.marknoneed: 标记为无需确认
  635. * 4.markconfirmed:直接标记已确认
  636. * 5.payhand: 付款手工生单
  637. * 6.rechand: 收款手工生单
  638. * 7.noticeclaim: 通知认领
  639. * @param transDetailIds 交易明细id集合
  640. * @return key:交易明细id,value:是否跳过KD标识校验
  641. *
  642. * <p>拓展示例如下
  643. * <pre><code>package kd.sdk.tmc.bei.extpoint.transdetail;
  644. *
  645. * import java.util.HashMap;
  646. * import java.util.List;
  647. * import java.util.Map;
  648. *
  649. * public class TransDetailKDFlagExt implements ITransDetailKDFlagInterface{
  650. *
  651. * public Map<Long, Boolean> skipKDFlagCheck(String scene, List<Long> transDetailIds) {
  652. * Map<Long, Boolean> map = new HashMap<>();
  653. * if (transDetailIds != null && !transDetailIds.isEmpty()) {
  654. * for (Long transDetailId : transDetailIds) {
  655. * map.put(transDetailId, true);
  656. * }
  657. * }
  658. * return map;
  659. * }
  660. * }</code></pre>
  661. */
  662. skipKDFlagCheck(scene:string,transDetailIds:$.java.util.List):$.java.util.Map;
  663. }
  664. type ITransDetailKDFlagInterface_T = ITransDetailKDFlagInterface_S & ITransDetailKDFlagInterface$;
  665. interface ITransDetailKDFlagInterface extends ITransDetailKDFlagInterface_T {
  666. }
  667. interface IFillTransDetail_S {
  668. }
  669. interface IFillTransDetail$ {
  670. /**
  671. * 提交银企,单据生成银行单据,用于二开字段数据填充
  672. * @param info 交易明细
  673. * @param extData 交易明细扩展字段信息
  674. *
  675. * <p>扩展示例如下
  676. * <pre><code>package kd.sdk.tmc.bei.extpoint.transdetail;
  677. *
  678. * import kd.bos.dataentity.entity.DynamicObject;
  679. * import com.alibaba.fastjson.JSON;
  680. * import com.alibaba.fastjson.JSONObject;
  681. *
  682. * public class FillTransDetail implements IFillTransDetail{
  683. *
  684. * public void fillExtData(DynamicObject info,String extData) {
  685. * JSONObject jsonObject = JSON.parseObject(extData);
  686. * info.setString("",jsonObject.getString(""));
  687. * }
  688. * }</code></pre>
  689. */
  690. fillExtData(info:$.kd.bos.dataentity.entity.DynamicObject,extData:string):void;
  691. }
  692. type IFillTransDetail_T = IFillTransDetail_S & IFillTransDetail$;
  693. interface IFillTransDetail extends IFillTransDetail_T {
  694. }
  695. }
  696. namespace kd.sdk.tmc.bei.util{
  697. interface AutoMatchInfoParam_S {
  698. }
  699. type AutoMatchInfoParam_ST = $.java.io.Serializable & AutoMatchInfoParam_S;
  700. interface AutoMatchInfoParam_C extends AutoMatchInfoParam_ST {
  701. new(sourceEntity:string,transDetailNumber:string,transDetailId:long,recedBillType:string,recedBillNumber:string,recedBillId:long,recedBillEntryId:long,currency:long,traceType:string,amount:$.java.math.BigDecimal,bankCheckFlag:string,bizDate:Date):AutoMatchInfoParam;
  702. new(sourceEntity:string,transDetailNumber:string,transDetailId:long,recedBillType:string,recedBillNumber:string,recedBillId:long,recedBillEntryId:long,currency:long,traceType:string,amount:$.java.math.BigDecimal,bankCheckFlag:string,bizDate:Date,thisOpnumber:string,direction:string):AutoMatchInfoParam;
  703. }
  704. interface AutoMatchInfoParam$ {
  705. getAmount():$.java.math.BigDecimal;
  706. getBankCheckFlag():string;
  707. getBizDate():Date;
  708. getCurrency():long;
  709. getDifferMatchSourceEntity():string;
  710. getDirection():string;
  711. getRecedBillEntryId():long;
  712. getRecedBillId():long;
  713. getRecedBillNumber():string;
  714. getRecedBillType():string;
  715. getSourceEntity():string;
  716. getThisOpnumber():string;
  717. getTraceType():string;
  718. getTransDetailId():long;
  719. getTransDetailNumber():string;
  720. setAmount(amount:$.java.math.BigDecimal):void;
  721. setBankCheckFlag(bankCheckFlag:string):void;
  722. setBizDate(bizDate:Date):void;
  723. setCurrency(currency:long):void;
  724. setDifferMatchSourceEntity(differMatchSourceEntity:string):void;
  725. setDirection(direction:string):void;
  726. setRecedBillEntryId(recedBillEntryId:long):void;
  727. setRecedBillId(recedBillId:long):void;
  728. setRecedBillNumber(recedBillNumber:string):void;
  729. setRecedBillType(recedBillType:string):void;
  730. setSourceEntity(sourceEntity:string):void;
  731. setThisOpnumber(thisOpnumber:string):void;
  732. setTraceType(traceType:string):void;
  733. setTransDetailId(transDetailId:long):void;
  734. setTransDetailNumber(transDetailNumber:string):void;
  735. }
  736. type AutoMatchInfoParam_T = $.java.io.Serializable & AutoMatchInfoParam_S & AutoMatchInfoParam$;
  737. interface AutoMatchInfoParam extends AutoMatchInfoParam_T {
  738. }
  739. interface MatchResultBean_S {
  740. }
  741. type MatchResultBean_ST = $.java.io.Serializable & MatchResultBean_S;
  742. interface MatchResultBean_C extends MatchResultBean_ST {
  743. new():MatchResultBean;
  744. new(id:any,oldRuleName:string):MatchResultBean;
  745. }
  746. interface MatchResultBean$ {
  747. getEntryRuleId():any;
  748. getId():any;
  749. getNewRuleName():string;
  750. getOldRuleName():string;
  751. getRuleId():any;
  752. setEntryRuleId(entryRuleId:any):void;
  753. setId(id:any):void;
  754. setNewRuleName(newRuleName:string):void;
  755. setOldRuleName(oldRuleName:string):void;
  756. setRuleId(ruleId:any):void;
  757. }
  758. type MatchResultBean_T = $.java.io.Serializable & MatchResultBean_S & MatchResultBean$;
  759. interface MatchResultBean extends MatchResultBean_T {
  760. }
  761. interface RecPayRuleMatchUtil_S {
  762. /**
  763. * 交易明细匹配收付入账规则
  764. *
  765. * @param ids
  766. * @return
  767. */
  768. match(ids:any[]):$.java.util.List;
  769. /**
  770. * 交易明细匹配收付入账规则并保存
  771. *
  772. * @param ids
  773. * @return
  774. */
  775. matchAndSave(ids:any[]):$.java.util.List;
  776. /**
  777. * 交易明细匹配收付入账规则-通知认领
  778. *
  779. * @param ids
  780. * @return
  781. */
  782. matchNoticeClaim(ids:any[]):$.java.util.List;
  783. }
  784. interface RecPayRuleMatchUtil_C extends RecPayRuleMatchUtil_S {
  785. new():RecPayRuleMatchUtil;
  786. }
  787. interface RecPayRuleMatchUtil$ {
  788. }
  789. type RecPayRuleMatchUtil_T = RecPayRuleMatchUtil_S & RecPayRuleMatchUtil$;
  790. interface RecPayRuleMatchUtil extends RecPayRuleMatchUtil_T {
  791. }
  792. interface MatchUtil_S {
  793. /**
  794. * 取消匹配
  795. * @param autoMatchInfoParamList
  796. */
  797. cancelMatch(autoMatchInfoParamList:$.java.util.List):void;
  798. /**
  799. * 匹配
  800. * @param matchRequestBean
  801. */
  802. match(matchRequestBean:MatchRequestBean):void;
  803. }
  804. interface MatchUtil_C extends MatchUtil_S {
  805. new():MatchUtil;
  806. }
  807. interface MatchUtil$ {
  808. }
  809. type MatchUtil_T = MatchUtil_S & MatchUtil$;
  810. interface MatchUtil extends MatchUtil_T {
  811. }
  812. interface MatchRequestBean_S {
  813. }
  814. type MatchRequestBean_ST = $.java.io.Serializable & MatchRequestBean_S;
  815. interface MatchRequestBean_C extends MatchRequestBean_ST {
  816. new():MatchRequestBean;
  817. }
  818. interface MatchRequestBean$ {
  819. getAutoMatchInfoParamList():$.java.util.List;
  820. getAutoRecPayBizBillIdSet():$.java.util.Set;
  821. getReceivedWay():string;
  822. getRuleNameMap():$.java.util.Map;
  823. setAutoMatchInfoParamList(autoMatchInfoParamList:$.java.util.List):void;
  824. setAutoRecPayBizBillIdSet(autoRecPayBizBillIdSet:$.java.util.Set):void;
  825. setReceivedWay(receivedWay:string):void;
  826. setRuleNameMap(ruleNameMap:$.java.util.Map):void;
  827. }
  828. type MatchRequestBean_T = $.java.io.Serializable & MatchRequestBean_S & MatchRequestBean$;
  829. interface MatchRequestBean extends MatchRequestBean_T {
  830. }
  831. }
  832. namespace kd.sdk.tmc.cdm.extpoint.payablebill{
  833. interface IPayableCanDrawValidatorInterface_S {
  834. }
  835. interface IPayableCanDrawValidatorInterface$ {
  836. /**
  837. * 是否跳过校验 -- 票据“%s”已被出纳付款单关联,不允许“取消出票”。
  838. * @param dataEntity 当前校验的应付票据信息
  839. * @return 是否跳过校验 true 跳过 false 不跳过
  840. *
  841. * package kd.sdk.tmc.cdm.extpoint.payablebill;
  842. *
  843. * import kd.bos.dataentity.entity.DynamicObject;
  844. * import kd.bos.entity.ExtendedDataEntity;
  845. *
  846. * public class PayableCanDrawValidatorDefaultExt implements IPayableCanDrawValidatorInterface {
  847. * @Override
  848. * public Boolean skipValidate(ExtendedDataEntity dataEntity) {
  849. * DynamicObject data = dataEntity.getDataEntity();
  850. * //根据单据信息是否跳过校验或者根据其他二开的配置判断是否跳过校验
  851. * if("extsource".equals(data.getString("source"))){
  852. * return true;
  853. * }
  854. * return false;
  855. * }
  856. * }
  857. */
  858. skipValidate(dataEntity:$.kd.bos.entity.ExtendedDataEntity):boolean;
  859. }
  860. type IPayableCanDrawValidatorInterface_T = IPayableCanDrawValidatorInterface_S & IPayableCanDrawValidatorInterface$;
  861. interface IPayableCanDrawValidatorInterface extends IPayableCanDrawValidatorInterface_T {
  862. }
  863. }
  864. namespace kd.sdk.tmc.cdm.util{
  865. interface ReturnNoteEndorseBean_S {
  866. }
  867. type ReturnNoteEndorseBean_ST = $.java.io.Serializable & ReturnNoteEndorseBean_S;
  868. interface ReturnNoteEndorseBean_C extends ReturnNoteEndorseBean_ST {
  869. new():ReturnNoteEndorseBean;
  870. }
  871. interface ReturnNoteEndorseBean$ {
  872. getEndorseType():string;
  873. getEndorsee():string;
  874. getEndorser():string;
  875. setEndorseType(endorseType:string):void;
  876. setEndorsee(endorsee:string):void;
  877. setEndorser(endorser:string):void;
  878. }
  879. type ReturnNoteEndorseBean_T = $.java.io.Serializable & ReturnNoteEndorseBean_S & ReturnNoteEndorseBean$;
  880. interface ReturnNoteEndorseBean extends ReturnNoteEndorseBean_T {
  881. }
  882. interface ReturnNoteBean_S {
  883. }
  884. type ReturnNoteBean_ST = $.java.io.Serializable & ReturnNoteBean_S;
  885. interface ReturnNoteBean_C extends ReturnNoteBean_ST {
  886. new():ReturnNoteBean;
  887. }
  888. interface ReturnNoteBean$ {
  889. getCompany():$.kd.bos.dataentity.entity.DynamicObject;
  890. getDrawerName():string;
  891. getEndorseEntry():$.java.util.List;
  892. getNoteStatus():string;
  893. getReceiverName():string;
  894. getTickStatus():string;
  895. setCompany(company:$.kd.bos.dataentity.entity.DynamicObject):void;
  896. setDrawerName(drawerName:string):void;
  897. setEndorseEntry(endorseEntry:$.java.util.List):void;
  898. setNoteStatus(noteStatus:string):void;
  899. setReceiverName(receiverName:string):void;
  900. setTickStatus(tickStatus:string):void;
  901. }
  902. type ReturnNoteBean_T = $.java.io.Serializable & ReturnNoteBean_S & ReturnNoteBean$;
  903. interface ReturnNoteBean extends ReturnNoteBean_T {
  904. }
  905. }
  906. namespace kd.sdk.tmc.cfm.extpoint.common{
  907. interface IGetExtCfmBillLayoutInfoDev_S {
  908. }
  909. interface IGetExtCfmBillLayoutInfoDev$ {
  910. /**
  911. * @Description 获取二开的融资单据布局信息
  912. * @param openEntityName 打开单据的实体类型
  913. * @param loanType 贷款类型
  914. * @return k:布局类型,v:布局实体名称
  915. *
  916. * <pre>
  917. * {@code
  918. * public class GetExtCfmBillLayoutInfoDevImpl implements IGetExtCfmBillLayoutInfoDev {
  919. *
  920. * public Map getExtCfmBillLayoutInfoDev(String openEntityName, String loanType) {
  921. * Map result = new HashMap<>(10);
  922. * //贷款,借款
  923. * if ("direct".equals(loanType)) {
  924. * //合同,展期,还款,利息,提款,预提 ...
  925. * switch (openEntityName) {
  926. * case "cfm_loancontractbill":
  927. * result.put("wkzb_cfm_loancontrac_ext", "直接融资合同");
  928. * return result;
  929. * case "cfm_loanbill":
  930. * result.put("wkzb_cfm_loanbill_ext", "直接融资提款");
  931. * return result;
  932. * case "cfm_repaymentbill":
  933. * result.put("wkzb_cfm_repaymentbill_ext", "直接融资还款");
  934. * return result;
  935. * case "cfm_interestbill":
  936. * result.put("wkzb_cfm_interestbill_ext", "直接融资利息");
  937. * return result;
  938. * case "cfm_preinterestbill":
  939. * result.put("wkzb_cfm_preinterestbill_ext", "直接融资预提");
  940. * return result;
  941. * }
  942. * } else if ("other".equals(loanType)) {
  943. * //合同,展期,还款,利息,提款,预提 ...
  944. * switch (openEntityName) {
  945. * case "cfm_loancontractbill":
  946. * result.put("wkzb_cfm_loancontrac_ext2", "其他融资合同");
  947. * return result;
  948. * case "cfm_loanbill":
  949. * result.put("wkzb_cfm_loanbill_ext2", "其他融资提款");
  950. * return result;
  951. * }
  952. * }
  953. * return result;
  954. * }
  955. * }
  956. * }
  957. * </pre>
  958. */
  959. getExtCfmBillLayoutInfoDev?(openEntityName:string,loanType:string):$.java.util.Map;
  960. }
  961. type IGetExtCfmBillLayoutInfoDev_T = IGetExtCfmBillLayoutInfoDev_S & IGetExtCfmBillLayoutInfoDev$;
  962. interface IGetExtCfmBillLayoutInfoDev extends IGetExtCfmBillLayoutInfoDev_T {
  963. }
  964. interface IGetCustomBillFormIdSecondDevService_S {
  965. }
  966. interface IGetCustomBillFormIdSecondDevService$ {
  967. /**
  968. * @Description 是否默认自动下推解活单,默认是true,二开可根据自己需求是否生成
  969. * @param targetBillFormId 目标单单据formid
  970. * <pre>
  971. * {@code
  972. * public class TestGetCustomBillFormIdSecondDevService implements IGetCustomBillFormIdSecondDevService {
  973. * public String getCustomBillFormId(String targetBillFormId) {
  974. * // 判断是否是目标单的formid
  975. * if ("目标单的formid".equals(targetBillFormId)) {
  976. * return "自定义的单据formid";
  977. * }
  978. * return false;
  979. * }
  980. * }
  981. * }
  982. * </pre>
  983. */
  984. getCustomBillFormId?(targetBillFormId:string):string;
  985. }
  986. type IGetCustomBillFormIdSecondDevService_T = IGetCustomBillFormIdSecondDevService_S & IGetCustomBillFormIdSecondDevService$;
  987. interface IGetCustomBillFormIdSecondDevService extends IGetCustomBillFormIdSecondDevService_T {
  988. }
  989. }
  990. namespace kd.sdk.tmc.cfm.extpoint.confirm{
  991. interface IConfirmListInterface_S {
  992. }
  993. interface IConfirmListInterface$ {
  994. /**
  995. * @param dataSource 借款确认=invest, 贷款确认=cfm
  996. * @return 二开增加的列名
  997. *
  998. * <pre>
  999. * {@code
  1000. *
  1001. * public String[] columnsName(String dataSource) {
  1002. * if ("cfm".equals(dataSource)) {
  1003. * return new String[]{"payintdate"};
  1004. * }
  1005. * return new String[0];
  1006. * }
  1007. * }
  1008. * </pre>
  1009. */
  1010. columnsName?(dataSource:string):string[];
  1011. /**
  1012. * @param dataSource 借款确认=invest, 贷款确认=cfm
  1013. * @param row 查询出来的单据数据
  1014. * @param objectArr 列表结果对象,根据 objectArr[2] 可判断行数据的业务确认类型
  1015. *
  1016. * @return 列表结果对象
  1017. *
  1018. * <pre>
  1019. * {@code
  1020. *
  1021. * public Object[] resultObject(String dataSource, DynamicObject row, Object[] objectArr) {
  1022. * if (!"cfm".equals(dataSource)) {
  1023. * return objectArr;
  1024. * }
  1025. * Object[] objects = Arrays.copyOf(objectArr, objectArr.length+1);
  1026. * if ("interest".equals(objects[2])) {
  1027. * objects[objectArr.length] = row.get("bizdate");
  1028. * } else {
  1029. * objects[objectArr.length] = null;
  1030. * }
  1031. * return objects;
  1032. * }
  1033. * }
  1034. * </pre>
  1035. */
  1036. resultObject?(dataSource:string,row:$.kd.bos.dataentity.entity.DynamicObject,objectArr:any[]):any[];
  1037. }
  1038. type IConfirmListInterface_T = IConfirmListInterface_S & IConfirmListInterface$;
  1039. interface IConfirmListInterface extends IConfirmListInterface_T {
  1040. }
  1041. }
  1042. namespace kd.sdk.tmc.cfm.extpoint.creditm{
  1043. interface IApplyReturnCreditlimit_S {
  1044. }
  1045. interface IApplyReturnCreditlimit$ {
  1046. /**
  1047. * 融资申请返还授信金额扩展
  1048. * @param bill 实际占用的单据(合同、提款)
  1049. * @param applyBill 融资申请单(预占授信)
  1050. * @return returnAmount-预占返还金额,isLast-全额返还
  1051. *
  1052. * * <pre>
  1053. * * {@code
  1054. * * map.put("returnAmount", new BigDecimal("800"));
  1055. * * map.put("isLast", true);
  1056. * * }
  1057. * * </pre>
  1058. */
  1059. applyReturnCreditlimit?(bill:$.kd.bos.dataentity.entity.DynamicObject,applyBill:$.kd.bos.dataentity.entity.DynamicObject,map:$.java.util.Map):void;
  1060. }
  1061. type IApplyReturnCreditlimit_T = IApplyReturnCreditlimit_S & IApplyReturnCreditlimit$;
  1062. interface IApplyReturnCreditlimit extends IApplyReturnCreditlimit_T {
  1063. }
  1064. }
  1065. namespace kd.sdk.tmc.cfm.extpoint.extapply{
  1066. interface IExtApplyBillSecondDevFields_S {
  1067. }
  1068. interface IExtApplyBillSecondDevFields$ {
  1069. /**
  1070. * @Description: 展期申请支持下推封装二开字段扩展插件 Map<String, Object> 集合中
  1071. * @param extApplyBill 展期申请单据
  1072. * @return java.util.Map<java.lang.String,java.lang.Object> 返回封装好的二开字段集合; key:目标单二开字段标识, value: 对应源单二开字段在源单上绑定的值
  1073. *
  1074. * <pre>
  1075. * <code>
  1076. * public class extApplyBillSecondDevFields implements IExtApplyBillSecondDevFields {
  1077. *
  1078. * public Map< String, Object> extApplyBillSecondDevFields(DynamicObject extApplyBill) {
  1079. * //通过extApplyBill查询对应的字段属性
  1080. * Map< String, Object> fieldMap = new HashMap<>(16);
  1081. * //基本字段
  1082. * fieldMap.put("tarprop", extApplyBill.get("srcprop"));
  1083. * //基础资料
  1084. * fieldMap.put("tarbanksdk", extApplyBill.getDynamicObject("scrbanksdk").getPkValue());
  1085. * //多选基础资料
  1086. * DynamicObjectCollection scrMulSdk = extApplyBill.getDynamicObjectCollection("scrmulsdk");
  1087. * fieldMap.put("tarmulsdk", scrMulSdk.stream().map(o -> o.getDynamicObject("fbasedataid").getPkValue()).collect(Collectors.toList()));
  1088. * return fieldMap;
  1089. * }
  1090. * }
  1091. * </code>
  1092. * </pre>
  1093. */
  1094. extApplyBillSecondDevFields?(extApplyBill:$.kd.bos.dataentity.entity.DynamicObject):$.java.util.Map;
  1095. }
  1096. type IExtApplyBillSecondDevFields_T = IExtApplyBillSecondDevFields_S & IExtApplyBillSecondDevFields$;
  1097. interface IExtApplyBillSecondDevFields extends IExtApplyBillSecondDevFields_T {
  1098. }
  1099. }
  1100. namespace kd.sdk.tmc.cfm.extpoint.init{
  1101. interface IInitBillSecondDevFields_S {
  1102. }
  1103. interface IInitBillSecondDevFields$ {
  1104. /**
  1105. * @Description: 贷款初始化单据点击结束初始化操作支持二开字段带到合同单据扩展插件
  1106. * @param initBill 初始化单据
  1107. * @param targetBill 目标单--合同/债券发行计划单
  1108. *
  1109. * <pre>
  1110. * {@code
  1111. * public class InitBillSecondDevFields implements IInitBillSecondDevFields {
  1112. *
  1113. * public void initBillSecondDevFields(DynamicObject initBill, DynamicObject targetBill){
  1114. * // 基本字段
  1115. * boolean extIsPay = initBill.getBoolean("ext_ispay");
  1116. * targetBill.set("ext_ispay", extIsPay);
  1117. * // 基础资料
  1118. * DynamicObject extPaycurrency = initBill.getDynamicObject("ext_paycurrency");
  1119. * targetBill.set("ext_paycurrency", extPaycurrency);
  1120. * }
  1121. * }
  1122. * }
  1123. * </pre>
  1124. */
  1125. initBillSecondDevFields?(initBill:$.kd.bos.dataentity.entity.DynamicObject,targetBill:$.kd.bos.dataentity.entity.DynamicObject):void;
  1126. }
  1127. type IInitBillSecondDevFields_T = IInitBillSecondDevFields_S & IInitBillSecondDevFields$;
  1128. interface IInitBillSecondDevFields extends IInitBillSecondDevFields_T {
  1129. }
  1130. }
  1131. namespace kd.sdk.tmc.cfm.extpoint.interestbill{
  1132. interface ILoanIntBillBatchSecondDevFields_S {
  1133. }
  1134. interface ILoanIntBillBatchSecondDevFields$ {
  1135. /**
  1136. * @Description: 贷款结息处理批量审核场景下二开单据targetIntBill处理
  1137. * @param batchIntBill 批量结息处理单 - 主单据
  1138. * @param loanBillEntry 放款处理单 - 分录中的单据
  1139. * @param targetIntBill 付息单 - 目标单据
  1140. *
  1141. * <pre>
  1142. * {@code
  1143. * public class LoanIntBillBatchSecondDevFields implements ILoanIntBillBatchSecondDevFields {
  1144. *
  1145. * public void loanIntBillBatchSecondDevFields(DynamicObject batchIntBill, DynamicObject loanBill, DynamicObject targetIntBill) {
  1146. * // 基本字段
  1147. * boolean extIsPay = loanBill.getBoolean("ext_ispay");
  1148. * targetIntBill.set("ext_ispay", extIsPay);
  1149. *
  1150. * // 基础资料
  1151. * DynamicObject extPaycurrency = loanBill.getDynamicObject("ext_paycurrency");
  1152. * targetIntBill.set("ext_paycurrency", extPaycurrency);
  1153. * }
  1154. * }
  1155. * }
  1156. * </pre>
  1157. */
  1158. loanIntBillBatchSecondDevFields?(batchIntBill:$.kd.bos.dataentity.entity.DynamicObject,loanBillEntry:$.kd.bos.dataentity.entity.DynamicObject,targetIntBill:$.kd.bos.dataentity.entity.DynamicObject):void;
  1159. }
  1160. type ILoanIntBillBatchSecondDevFields_T = ILoanIntBillBatchSecondDevFields_S & ILoanIntBillBatchSecondDevFields$;
  1161. interface ILoanIntBillBatchSecondDevFields extends ILoanIntBillBatchSecondDevFields_T {
  1162. }
  1163. interface IGetOtherIntBillPayAmtExt_S {
  1164. }
  1165. interface IGetOtherIntBillPayAmtExt$ {
  1166. /**
  1167. * @description 获取利息单其他的可付款金额扩展插件
  1168. * @param intBillId 利息单Id
  1169. * @return 额外的可付款金额
  1170. *
  1171. * <pre>
  1172. * {@code
  1173. * public class GetOtherIntBillPayAmtExtImpl implements IGetOtherIntBillPayAmtExt {
  1174. *
  1175. * public BigDecimal getOtherIntBillPayAmtExt(Long intBillId) {
  1176. * //先查询
  1177. * DynamicObject bizBill = BusinessDataServiceHelper.loadSingle("cfm_interestbill","ext_feeamt", new QFilter("id", QCP.equals, intBillId).toArray());
  1178. * return bizBill.getBigDecimal("feeAmt");//获取其他利息单的可付款金额
  1179. * }
  1180. * }
  1181. * }
  1182. * </pre>
  1183. */
  1184. getOtherIntBillPayAmtExt?(intBillId:long):$.java.math.BigDecimal;
  1185. }
  1186. type IGetOtherIntBillPayAmtExt_T = IGetOtherIntBillPayAmtExt_S & IGetOtherIntBillPayAmtExt$;
  1187. interface IGetOtherIntBillPayAmtExt extends IGetOtherIntBillPayAmtExt_T {
  1188. }
  1189. }
  1190. namespace kd.sdk.tmc.cfm.extpoint.loan{
  1191. interface IUpdateLoanRateReset2Point_S {
  1192. }
  1193. interface IUpdateLoanRateReset2Point$ {
  1194. /**
  1195. * @description 更新提款单利率重置记录二开拓展
  1196. *
  1197. * <pre>
  1198. * {@code
  1199. * public class UpdateLoanRateReset2PointImpl implements IUpdateLoanRateReset2Point {
  1200. *
  1201. * @param rateAdjustEntry 利率重置分录
  1202. * @param loanId 提款单id
  1203. * @param interestType 利率类型
  1204. * @Override
  1205. * public void updateLoanRateReset2Point(DynamicObjectCollection rateAdjustEntry, Long loanId, String interestType) {
  1206. * //格式化日期(yyyy-MM-dd)
  1207. * Date currentDate = formatDate(new Date());
  1208. * //todo 现场实现,可以增加其他的业务逻辑判断,如根据贷款类型,是否是浮动利率,周期性重置方式等具体判断,后续的展期,利率调整逻辑等, 如果需要其他的属性判断,需要通过loanId查询
  1209. * if ("float".equals(interestType)) {
  1210. * List<DynamicObject> raEffectdates = rateAdjustEntry.stream().filter(o -> formatDate(o.getDate("ra_effectdate")).compareTo(currentDate) > 0).collect(Collectors.toList());
  1211. * if (raEffectdates.size() > 0) {
  1212. * rateAdjustEntry.removeAll(raEffectdates);
  1213. * }
  1214. * }
  1215. * }
  1216. *
  1217. * //格式化日期(去掉时分秒)
  1218. * public static Date formatDate(Date date) {
  1219. * SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
  1220. * try {
  1221. * return sdf.parse(sdf.format(date));
  1222. * } catch (ParseException e) {
  1223. * throw new RuntimeException(e);
  1224. * }
  1225. * }
  1226. * }
  1227. * }
  1228. * </pre>
  1229. */
  1230. updateLoanRateReset2Point?(rateAdjustEntry:$.kd.bos.dataentity.entity.DynamicObjectCollection,loanId:long,interestType:string):void;
  1231. }
  1232. type IUpdateLoanRateReset2Point_T = IUpdateLoanRateReset2Point_S & IUpdateLoanRateReset2Point$;
  1233. interface IUpdateLoanRateReset2Point extends IUpdateLoanRateReset2Point_T {
  1234. }
  1235. }
  1236. namespace kd.sdk.tmc.cfm.extpoint.preinst{
  1237. interface IPreIntBillBatchSecondDevFields_S {
  1238. }
  1239. interface IPreIntBillBatchSecondDevFields$ {
  1240. /**
  1241. * @Description: 利息预提批量处理审核场景下二开单据targetPreIntBill处理
  1242. * @param batchPreIntBill 利息预提批量处理 - 主单据
  1243. * @param loanBillEntry 放款处理单 - 分录中的单据
  1244. * @param targetPreIntBill 预提单 - 目标单据
  1245. *
  1246. * <pre>
  1247. * {@code
  1248. * public class PreIntBillBatchSecondDevFields implements IPreIntBillBatchSecondDevFields {
  1249. *
  1250. * public void preIntBillBatchSecondDevFields(DynamicObject batchPreIntBill, DynamicObject loanBill, DynamicObject targetPreIntBill) {
  1251. * // 基本字段
  1252. * boolean extIsPay = loanBill.getBoolean("ext_ispay");
  1253. * targetPreIntBill.set("ext_ispay", extIsPay);
  1254. *
  1255. * // 基础资料
  1256. * DynamicObject extPaycurrency = loanBill.getDynamicObject("ext_paycurrency");
  1257. * targetPreIntBill.set("ext_paycurrency", extPaycurrency);
  1258. * }
  1259. * }
  1260. * }
  1261. * </pre>
  1262. */
  1263. preIntBillBatchSecondDevFields?(batchPreIntBill:$.kd.bos.dataentity.entity.DynamicObject,loanBillEntry:$.kd.bos.dataentity.entity.DynamicObject,targetPreIntBill:$.kd.bos.dataentity.entity.DynamicObject):void;
  1264. }
  1265. type IPreIntBillBatchSecondDevFields_T = IPreIntBillBatchSecondDevFields_S & IPreIntBillBatchSecondDevFields$;
  1266. interface IPreIntBillBatchSecondDevFields extends IPreIntBillBatchSecondDevFields_T {
  1267. }
  1268. }
  1269. namespace kd.sdk.tmc.cfm.extpoint.repay{
  1270. interface IRepayBillSecondDevFields_S {
  1271. }
  1272. interface IRepayBillSecondDevFields$ {
  1273. /**
  1274. * Description: 还款处理的还本付息场景下二开字段封装到 Map<String, Object> 集合中
  1275. * @param repayBill 还款单
  1276. * @return java.util.Map<java.lang.String,java.lang.Object> 返回封装好的二开字段集合; key:目标单二开字段标识, value: 对应源单二开字段在源单上绑定的值
  1277. *
  1278. * <pre>
  1279. * <code>
  1280. * public class RepayBillSecondDevFields implements IRepayBillSecondDevFields {
  1281. *
  1282. * public Map< String, Object> repayBillSecondDevFields(DynamicObject repayBill) {
  1283. * //通过repayBill查询对应的字段属性
  1284. * Map< String, Object> fieldMap = new HashMap<>(16);
  1285. * //基本字段
  1286. * fieldMap.put("tarprop", repayBill.get("srcprop"));
  1287. * //基础资料
  1288. * fieldMap.put("tarbanksdk", repayBill.getDynamicObject("scrbanksdk").getPkValue());
  1289. * //多选基础资料
  1290. * DynamicObjectCollection scrMulSdk = repayBill.getDynamicObjectCollection("scrmulsdk");
  1291. * fieldMap.put("tarmulsdk", scrMulSdk.stream().map(o -> o.getDynamicObject("fbasedataid").getPkValue()).collect(Collectors.toList()));
  1292. * return fieldMap;
  1293. * }
  1294. * }
  1295. * </code>
  1296. * </pre>
  1297. */
  1298. repayBillSecondDevFields?(repayBill:$.kd.bos.dataentity.entity.DynamicObject):$.java.util.Map;
  1299. }
  1300. type IRepayBillSecondDevFields_T = IRepayBillSecondDevFields_S & IRepayBillSecondDevFields$;
  1301. interface IRepayBillSecondDevFields extends IRepayBillSecondDevFields_T {
  1302. }
  1303. interface IGetOtherRepayBillPayAmtExt_S {
  1304. }
  1305. interface IGetOtherRepayBillPayAmtExt$ {
  1306. /**
  1307. * @description 获取还款单其他的可付款金额
  1308. * @param repayBillId 还款单Id
  1309. * @return 额外的可付款金额
  1310. *
  1311. * <pre>
  1312. * {@code
  1313. * public class GetOtherRepayBillPayAmtExtImpl implements IGetOtherRepayBillPayAmtExt {
  1314. * @Override
  1315. * public BigDecimal getOtherRepayBillPayAmtExt(Long repayBillId) {
  1316. * //先查询
  1317. * DynamicObject bizBill = BusinessDataServiceHelper.loadSingle("cfm_repaymentbill","ext_feeamt", new QFilter("id", QCP.equals, repayBillId).toArray());
  1318. * return bizBill.getBigDecimal("feeAmt");//获取还款单其他的可付款金额
  1319. * }
  1320. * }
  1321. * }
  1322. * </pre>
  1323. */
  1324. getOtherRepayBillPayAmtExt?(repayBillId:long):$.java.math.BigDecimal;
  1325. }
  1326. type IGetOtherRepayBillPayAmtExt_T = IGetOtherRepayBillPayAmtExt_S & IGetOtherRepayBillPayAmtExt$;
  1327. interface IGetOtherRepayBillPayAmtExt extends IGetOtherRepayBillPayAmtExt_T {
  1328. }
  1329. }
  1330. namespace kd.sdk.tmc.cfm.extpoint.repayapply{
  1331. interface IRepayApplyBillSecondDevFields_S {
  1332. }
  1333. interface IRepayApplyBillSecondDevFields$ {
  1334. /**
  1335. * Description: 还款申请支持下推封装二开字段扩展插件 Map<String, Object> 集合中
  1336. * @param repayApplyBill 还款申请单据
  1337. * @return java.util.Map<java.lang.String,java.lang.Object> 返回封装好的二开字段集合; key:目标单二开字段标识, value: 对应源单二开字段在源单上绑定的值
  1338. *
  1339. * <pre>
  1340. * <code>
  1341. * public class repayApplyBillSecondDevFields implements IRepayApplyBillSecondDevFields {
  1342. *
  1343. * public Map< String, Object> repayApplyBillSecondDevFields(DynamicObject repayApplyBill) {
  1344. * //通过repayApplyBill查询对应的字段属性
  1345. * Map< String, Object> fieldMap = new HashMap<>(16);
  1346. * //基本字段
  1347. * fieldMap.put("tarprop", repayApplyBill.get("srcprop"));
  1348. * //基础资料
  1349. * fieldMap.put("tarbanksdk", repayApplyBill.getDynamicObject("scrbanksdk").getPkValue());
  1350. * //多选基础资料
  1351. * DynamicObjectCollection scrMulSdk = repayApplyBill.getDynamicObjectCollection("scrmulsdk");
  1352. * fieldMap.put("tarmulsdk", scrMulSdk.stream().map(o -> o.getDynamicObject("fbasedataid").getPkValue()).collect(Collectors.toList()));
  1353. * return fieldMap;
  1354. * }
  1355. * }
  1356. * </code>
  1357. * </pre>
  1358. */
  1359. repayApplyBillSecondDevFields?(repayApplyBill:$.kd.bos.dataentity.entity.DynamicObject):$.java.util.Map;
  1360. }
  1361. type IRepayApplyBillSecondDevFields_T = IRepayApplyBillSecondDevFields_S & IRepayApplyBillSecondDevFields$;
  1362. interface IRepayApplyBillSecondDevFields extends IRepayApplyBillSecondDevFields_T {
  1363. }
  1364. }
  1365. namespace kd.sdk.tmc.cfm.util{
  1366. interface FeeCostShareInfo_S {
  1367. }
  1368. interface FeeCostShareInfo_C extends FeeCostShareInfo_S {
  1369. new():FeeCostShareInfo;
  1370. }
  1371. interface FeeCostShareInfo$ {
  1372. getAiInterestAmt():$.java.math.BigDecimal;
  1373. getAmAmt():$.java.math.BigDecimal;
  1374. getCcbAmt():$.java.math.BigDecimal;
  1375. getCcbEndAmt():$.java.math.BigDecimal;
  1376. getDayRate():number;
  1377. getDays():number;
  1378. getEiInterestAmt():$.java.math.BigDecimal;
  1379. getEiRate():$.java.math.BigDecimal;
  1380. getEndDate():Date;
  1381. getStartDate():Date;
  1382. getYtm():$.java.math.BigDecimal;
  1383. setAiInterestAmt(aiInterestAmt:$.java.math.BigDecimal):void;
  1384. setAmAmt(amAmt:$.java.math.BigDecimal):void;
  1385. setCcbAmt(ccbAmt:$.java.math.BigDecimal):void;
  1386. setCcbEndAmt(ccbEndAmt:$.java.math.BigDecimal):void;
  1387. setDayRate(dayRate:number):void;
  1388. setDays(days:number):void;
  1389. setEiInterestAmt(eiInterestAmt:$.java.math.BigDecimal):void;
  1390. setEiRate(eiRate:$.java.math.BigDecimal):void;
  1391. setEndDate(endDate:Date):void;
  1392. setStartDate(startDate:Date):void;
  1393. setYtm(ytm:$.java.math.BigDecimal):void;
  1394. }
  1395. type FeeCostShareInfo_T = FeeCostShareInfo_S & FeeCostShareInfo$;
  1396. interface FeeCostShareInfo extends FeeCostShareInfo_T {
  1397. }
  1398. interface FeeCostParam_S {
  1399. getSerialVersionUID():long;
  1400. }
  1401. type FeeCostParam_ST = $.java.io.Serializable & FeeCostParam_S;
  1402. interface FeeCostParam_C extends FeeCostParam_ST {
  1403. new():FeeCostParam;
  1404. }
  1405. interface FeeCostParam$ {
  1406. getAmount():$.java.math.BigDecimal;
  1407. getAmtPrecision():number;
  1408. getBasis():string;
  1409. getEndDate():Date;
  1410. getFeeAmount():$.java.math.BigDecimal;
  1411. getHtRule():string;
  1412. getLoanRate():$.java.math.BigDecimal;
  1413. getShareFrequency():string;
  1414. getShareType():string;
  1415. getStartDate():Date;
  1416. setAmount(amount:$.java.math.BigDecimal):void;
  1417. setAmtPrecision(amtPrecision:number):void;
  1418. setBasis(basis:string):void;
  1419. setEndDate(endDate:Date):void;
  1420. setFeeAmount(feeAmount:$.java.math.BigDecimal):void;
  1421. setHtRule(htRule:string):void;
  1422. setLoanRate(loanRate:$.java.math.BigDecimal):void;
  1423. setShareFrequency(shareFrequency:string):void;
  1424. setShareType(shareType:string):void;
  1425. setStartDate(startDate:Date):void;
  1426. }
  1427. type FeeCostParam_T = $.java.io.Serializable & FeeCostParam_S & FeeCostParam$;
  1428. interface FeeCostParam extends FeeCostParam_T {
  1429. }
  1430. interface CostShareUtil_S {
  1431. /**
  1432. * 获取摊销明细
  1433. * @param param 摊销数据对象
  1434. * @return 摊销明细
  1435. * @throws KDBizException
  1436. * <pre>
  1437. * <code>
  1438. * 调用示例:
  1439. * FeeCostParam param = new kd.sdk.tmc.cfm.util.FeeCostParam();
  1440. * //业务金额
  1441. * param.setAmount(amount);
  1442. * //业务金额-费用总额(异币别费用,需要按汇率转成业务币别)
  1443. * param.setInitCcbAmt(initCcbAmt);
  1444. * //息票率
  1445. * param.setLoanRate(loanRate);
  1446. * //计息基准:默认算头不算尾-headnotail/算尾不算头-noheadtail/算头又算尾-headtail/头尾都不算-noheadnotail
  1447. * param.setBasis(basisEnum.getValue());
  1448. * //币别精度
  1449. * param.setAmtPrecision(amtPrecision);
  1450. * //摊销方式:实际利率法-1 直线法-2
  1451. * param.setShareType(shareType);
  1452. * //头尾规则:默认算头不算尾-headnotail/算尾不算头-noheadtail/算头又算尾-headtail/头尾都不算-noheadnotail
  1453. * param.setHtRule("");
  1454. * //开始日期
  1455. * param.setStartDate(DateUtils.stringToDate("2024-05-29", DateUtils.FORMAT_YMD));
  1456. * //结束日期
  1457. * param.setEndDate(DateUtils.stringToDate("2026-04-09", DateUtils.FORMAT_YMD));
  1458. * //摊销频率:每日-day/每月-month/每季度-quarter/每半年-halfyear/每年-year
  1459. * param.setShareFrequency("month");
  1460. * List<FeeCostShareInfo> costShareList = kd.sdk.tmc.cfm.util.CostShareUtil#getCostShareList(param)
  1461. * </code>
  1462. * </pre>
  1463. */
  1464. getCostShareList(param:FeeCostParam):$.java.util.List;
  1465. }
  1466. interface CostShareUtil_C extends CostShareUtil_S {
  1467. new():CostShareUtil;
  1468. }
  1469. interface CostShareUtil$ {
  1470. }
  1471. type CostShareUtil_T = CostShareUtil_S & CostShareUtil$;
  1472. interface CostShareUtil extends CostShareUtil_T {
  1473. }
  1474. }
  1475. namespace kd.sdk.tmc.cim.extpoint{
  1476. interface IReleaseApplyAutoReleaseSDKService_S {
  1477. }
  1478. interface IReleaseApplyAutoReleaseSDKService$ {
  1479. /**
  1480. * 是否默认自动下推解活单,默认是true,二开可根据自己需求是否生成
  1481. * @param applyBill 存款解活申请单
  1482. * <pre>
  1483. * <code>
  1484. * public class DealReleaseApplyAutoPush implements IReleaseApplyAutoReleaseSDKService {
  1485. * @Override
  1486. * public boolean isAutoRelease(DynamicObject applyBill) {
  1487. * // 可以根据applyBill决定是否需要自动下推
  1488. * return false;
  1489. * }
  1490. * }
  1491. * </code>
  1492. * </pre>
  1493. */
  1494. isAutoRelease?(applyBill:$.kd.bos.dataentity.entity.DynamicObject):boolean;
  1495. }
  1496. type IReleaseApplyAutoReleaseSDKService_T = IReleaseApplyAutoReleaseSDKService_S & IReleaseApplyAutoReleaseSDKService$;
  1497. interface IReleaseApplyAutoReleaseSDKService extends IReleaseApplyAutoReleaseSDKService_T {
  1498. }
  1499. interface IReleasePushDptRevenue_S {
  1500. }
  1501. interface IReleasePushDptRevenue$ {
  1502. /**
  1503. * 解活单支持下推解活类型的收益单封装二开字段扩展插件 Map<String, Object> 集合中
  1504. * 在操作中OperateOption option中的key= SecondDevFieldVal,取出后再 Map secondDevFieldVal = JSON.parseObject("SecondDevFieldVal", Map.class)得到此方法返回map
  1505. * @param releaseBill 解活单
  1506. * @return 返回封装好的二开字段集合; key:目标单二开字段标识, value: 二开字段在源单上绑定的值
  1507. *
  1508. * <pre>
  1509. * <code>
  1510. * public class DepositReleasePushDptRevenue implements IReleasePushDptRevenue{
  1511. * @Override
  1512. * public Map<String, Object> getReleaseBillSecondFields(DynamicObject releaseBill) {
  1513. * Map<String, Object> map = new HashMap<>();
  1514. * //基本字段(非基础资料)
  1515. * map.put("ltg_text", releaseBill.get("ltg_text"));
  1516. * //基础资料
  1517. * map.put("ltg_base", releaseBill.getDynamicObject("ltg_base").getPkValue());
  1518. * return map;
  1519. * }
  1520. * }
  1521. * </code>
  1522. * </pre>
  1523. */
  1524. getReleaseBillSecondFields?(releaseBill:$.kd.bos.dataentity.entity.DynamicObject):$.java.util.Map;
  1525. }
  1526. type IReleasePushDptRevenue_T = IReleasePushDptRevenue_S & IReleasePushDptRevenue$;
  1527. interface IReleasePushDptRevenue extends IReleasePushDptRevenue_T {
  1528. }
  1529. }
  1530. namespace kd.sdk.tmc.creditm.extpoint{
  1531. interface ICreditLimitExtInerface_S {
  1532. }
  1533. interface ICreditLimitExtInerface$ {
  1534. /**
  1535. * @param sourceCurrencyId 原币别ID
  1536. * @param targetCurrencyId 目标币别ID
  1537. * @param orgId 组织ID
  1538. * @param date 日期
  1539. * @return 汇率值
  1540. *
  1541. * <pre>
  1542. * <code>
  1543. * @Override
  1544. * public class CreditLimitExtRate implements ICreditLimitExtInerface {
  1545. *
  1546. * @Override
  1547. * public BigDecimal getCredituseRate(Long sourceCurrencyId, Long targetCurrencyId, Long orgId, Date date) {
  1548. * //通过币别和日期,自定义取汇率逻辑
  1549. * return new BigDecimal("2");
  1550. * }
  1551. * }
  1552. * </code>
  1553. * </pre>
  1554. */
  1555. getCredituseRate?(sourceCurrencyId:long,targetCurrencyId:long,orgId:long,date:Date):$.java.math.BigDecimal;
  1556. }
  1557. type ICreditLimitExtInerface_T = ICreditLimitExtInerface_S & ICreditLimitExtInerface$;
  1558. interface ICreditLimitExtInerface extends ICreditLimitExtInerface_T {
  1559. }
  1560. }
  1561. namespace kd.sdk.tmc.creditm.util.creditlimit{
  1562. interface CreditLimitServiceUtil_S {
  1563. /**
  1564. * 取消占用授信
  1565. *
  1566. * @param info SerializationUtils.toJsonString(CreditLimitInfo.class) 授信对象
  1567. * @return SerializationUtils.toJsonString(CreditLimitInfo.class) 授信对象
  1568. * @throws KDBizException 取消占用授信调用异常
  1569. *
  1570. * <pre>
  1571. * <code>
  1572. * 调用示例:
  1573. * CreditLimitInfo info = new CreditLimitInfo();
  1574. * info.setXXX(XXX);
  1575. * ...
  1576. * kd.sdk.tmc.creditm.util.creditlimit.CreditLimitServiceUtil.cancelCreditLimit(SerializationUtils.toJsonString(info));
  1577. * </code>
  1578. * </pre>
  1579. */
  1580. cancelCreditLimit(info:string):string;
  1581. /**
  1582. * 取消返还授信
  1583. *
  1584. * @param info SerializationUtils.toJsonString(ReturnCreditLimitInfo.class) 返还授信对象
  1585. * @return SerializationUtils.toJsonString(ReturnCreditLimitInfo.class) 返还授信对象
  1586. * @throws KDBizException 取消返还授信调用异常
  1587. *
  1588. * <pre>
  1589. * <code>
  1590. * 调用示例:
  1591. * ReturnCreditLimitInfo info = new ReturnCreditLimitInfo();
  1592. * info.setXXX(XXX);
  1593. * ...
  1594. * kd.sdk.tmc.creditm.util.creditlimit.CreditLimitServiceUtil.cancelReturnCreditLimit(SerializationUtils.toJsonString(info));
  1595. * </code>
  1596. * </pre>
  1597. */
  1598. cancelReturnCreditLimit(info:string):string;
  1599. /**
  1600. * 确认占用授信
  1601. *
  1602. * @param info SerializationUtils.toJsonString(CreditLimitInfo.class) 授信对象
  1603. * @return SerializationUtils.toJsonString(CreditLimitInfo.class) 授信对象
  1604. * @throws KDBizException 确认占用授信调用异常
  1605. *
  1606. * <pre>
  1607. * <code>
  1608. * 调用示例:
  1609. * CreditLimitInfo info = new CreditLimitInfo();
  1610. * info.setXXX(XXX);
  1611. * ...
  1612. * kd.sdk.tmc.creditm.util.creditlimit.CreditLimitServiceUtil.confirmCreditLimit(SerializationUtils.toJsonString(info));
  1613. * </code>
  1614. * </pre>
  1615. */
  1616. confirmCreditLimit(info:string):string;
  1617. /**
  1618. * 返还授信
  1619. *
  1620. * @param info SerializationUtils.toJsonString(ReturnCreditLimitInfo.class) 返还授信对象
  1621. * @return SerializationUtils.toJsonString(ReturnCreditLimitInfo.class) 返还授信对象
  1622. * @throws KDBizException 返还授信调用异常
  1623. *
  1624. * <pre>
  1625. * <code>
  1626. * 调用示例:
  1627. * ReturnCreditLimitInfo info = new ReturnCreditLimitInfo();
  1628. * info.setXXX(XXX);
  1629. * ...
  1630. * kd.sdk.tmc.creditm.util.creditlimit.CreditLimitServiceUtil.returnCreditLimit(SerializationUtils.toJsonString(info));
  1631. * </code>
  1632. * </pre>
  1633. */
  1634. returnCreditLimit(info:string):string;
  1635. /**
  1636. * 释放授信根据指定金额
  1637. *
  1638. * @param info SerializationUtils.toJsonString(CreditLimitUseBean.class) 授信对象
  1639. * @return SerializationUtils.toJsonString(CreditLimitUseBean.class) 授信对象
  1640. * @throws KDBizException 释放授信根据指定金额调用异常
  1641. *
  1642. * <pre>
  1643. * <code>
  1644. * 调用示例:
  1645. * CreditLimitUseBean info = new CreditLimitUseBean();
  1646. * info.setXXX(XXX);
  1647. * ...
  1648. * kd.sdk.tmc.creditm.util.creditlimit.CreditLimitServiceUtil.updateCreditLimitUse(SerializationUtils.toJsonString(info));
  1649. * </code>
  1650. * </pre>
  1651. */
  1652. updateCreditLimitUse(info:string):string;
  1653. }
  1654. interface CreditLimitServiceUtil_C extends CreditLimitServiceUtil_S {
  1655. new():CreditLimitServiceUtil;
  1656. }
  1657. interface CreditLimitServiceUtil$ {
  1658. }
  1659. type CreditLimitServiceUtil_T = CreditLimitServiceUtil_S & CreditLimitServiceUtil$;
  1660. interface CreditLimitServiceUtil extends CreditLimitServiceUtil_T {
  1661. }
  1662. }
  1663. namespace kd.sdk.tmc.ext.extpoint.committobe{
  1664. interface IGenBankBillSDKService_S {
  1665. }
  1666. interface IGenBankBillSDKService$ {
  1667. /**
  1668. * 提交银企,单据生成银行单据,用于二开字段数据填充
  1669. * @param entityName 单据实体名
  1670. * @param billList 单据集合
  1671. * @return Map< Long, Map< String, Object>>: key->银行单据id;value->二开字段名和值的键值对
  1672. *
  1673. * <p>扩展示例如下
  1674. * <pre><code>package kd.sdk.tmc.ext.extpoint.committobe;
  1675. *
  1676. * import kd.bos.dataentity.entity.DynamicObject;
  1677. *
  1678. * import java.util.HashMap;
  1679. * import java.util.List;
  1680. * import java.util.Map;
  1681. *
  1682. * public class GenBankBillService implements IGenBankBillSDKService{
  1683. *
  1684. * public Map< Long, Map< String, Object>> extFillBankBill(String entityName, List< DynamicObject> billList) {
  1685. * Map< Long, Map< String, Object>> result = new HashMap<>();
  1686. * switch (entityName){
  1687. * case "付款单":
  1688. * Map< String,Object> prop = new HashMap<>();
  1689. * for(DynamicObject bill:billList) {
  1690. * prop.put("exfield", "二开字段");
  1691. * result.put(bill.getLong("id"), prop);
  1692. * }
  1693. * break;
  1694. * }
  1695. * return result;
  1696. * }
  1697. * }</code></pre>
  1698. */
  1699. extFillBankBill(entityName:string,billList:$.java.util.List):$.java.util.Map;
  1700. }
  1701. type IGenBankBillSDKService_T = IGenBankBillSDKService_S & IGenBankBillSDKService$;
  1702. interface IGenBankBillSDKService extends IGenBankBillSDKService_T {
  1703. }
  1704. }
  1705. namespace kd.sdk.tmc.fbp.extpoint{
  1706. interface IGetCustomSceneBillStatusSDKService_S {
  1707. }
  1708. interface IGetCustomSceneBillStatusSDKService$ {
  1709. /**
  1710. * 获取自定义的非在途/非在途的单据状态
  1711. *
  1712. * @param entityName 单据的标识
  1713. * @return
  1714. * <pre>
  1715. * <code>
  1716. * public class GetCustomProcessStatus implements IGetCustomSceneBillStatusSDKService {
  1717. * @Override
  1718. * public List<String> getCustomSceneStatusList(String sceneStr, String entityName) {
  1719. * // 二开增加自定义的单据状态
  1720. * return Arrays.asList("D");
  1721. * }
  1722. * }
  1723. * </code>
  1724. * </pre>
  1725. */
  1726. getCustomSceneStatusList(sceneStr:string,entityName:string):$.java.util.List;
  1727. }
  1728. type IGetCustomSceneBillStatusSDKService_T = IGetCustomSceneBillStatusSDKService_S & IGetCustomSceneBillStatusSDKService$;
  1729. interface IGetCustomSceneBillStatusSDKService extends IGetCustomSceneBillStatusSDKService_T {
  1730. }
  1731. interface IFeeDetailSaveAndSubmitAddFields_S {
  1732. }
  1733. interface IFeeDetailSaveAndSubmitAddFields$ {
  1734. /**
  1735. * 业务单据费用明细页签二开新增字段后,需要在保存和提交操作中携带字段值保存到费用明细单据中
  1736. * test:新加的字段
  1737. *
  1738. * @param feeBill 费用明细单据
  1739. * @param row 费用明细单据的分录行
  1740. * @param feeDetailRow 业务单据的费用明细页签的要保存的行
  1741. *
  1742. * <p> 扩展示例如下
  1743. * <pre>
  1744. * <code>
  1745. * public class FeeDetailSecondDevFields implements IFeeDetailSaveAndSubmitAddFields {
  1746. *
  1747. * public void feeDetailSaveAndSubmitAddFields(DynamicObject feeBill,DynamicObject row, DynamicObject feeDetailRow) {
  1748. * //单头
  1749. * feeBill.set("test",feeDetailRow.get("test"));
  1750. * //分录
  1751. * row.set("test",feeDetailRow.get("test"));
  1752. * }
  1753. * }
  1754. * </code>
  1755. * </pre>
  1756. */
  1757. feeDetailSaveAndSubmitAddFields?(feeBill:$.kd.bos.dataentity.entity.DynamicObject,row:$.kd.bos.dataentity.entity.DynamicObject,feeDetailRow:$.kd.bos.dataentity.entity.DynamicObject):void;
  1758. }
  1759. type IFeeDetailSaveAndSubmitAddFields_T = IFeeDetailSaveAndSubmitAddFields_S & IFeeDetailSaveAndSubmitAddFields$;
  1760. interface IFeeDetailSaveAndSubmitAddFields extends IFeeDetailSaveAndSubmitAddFields_T {
  1761. }
  1762. }
  1763. namespace kd.sdk.tmc.fbp.extpoint.orgfilter{
  1764. interface IFunderOrgPermissionExtDev_S {
  1765. }
  1766. interface IFunderOrgPermissionExtDev$ {
  1767. /**
  1768. * 得到选单有权限的组织集合
  1769. *
  1770. * @param srcEntity 源单实体
  1771. * @param srcAuthOrgIds 有权限的源单的组织集合
  1772. * @param tagEntity 目标实体
  1773. * @param tagAuthOrgIds 有权限的目标实体组织结合
  1774. * @return <pre>
  1775. * <code>
  1776. *
  1777. * public class FunderOrgPermissionExtDevImpl implements IFunderOrgPermissionExtDev {
  1778. * public List<Long> getDrawBillAuthOrgIdList(List<Long> srcAuthOrgIds, List<Long> tagAuthOrgIds, String srcEntity, String tagEntity) {
  1779. * if ("XXX".equals(srcEntity) && "YYY".equals(tagEntity)) {
  1780. * //支持自定义根据不同的源单目标单来判断(特殊情况)
  1781. * return srcAuthOrgIds;
  1782. * } else if (srcAuthOrgIds != null && tagAuthOrgIds != null) {
  1783. * //求交集
  1784. * return srcAuthOrgIds.stream().filter(tagAuthOrgIds::contains).collect(Collectors.toList());
  1785. * //直接取目标单集合
  1786. * //return tagAuthOrgIds;
  1787. * } else {
  1788. * //直接取源单集合
  1789. * return srcAuthOrgIds;
  1790. * }
  1791. * }
  1792. * }
  1793. * </code>
  1794. * </pre>
  1795. */
  1796. getDrawBillAuthOrgIdList?(srcAuthOrgIds:$.java.util.List,tagAuthOrgIds:$.java.util.List,srcEntity:string,tagEntity:string):$.java.util.List;
  1797. /**
  1798. * 资金组织权限范围支持二开
  1799. *
  1800. * @param entityName 实体类型
  1801. * @return true:需要标准的资金权限控制 false:不需要标准的资金组织权限控制
  1802. *
  1803. * <pre>
  1804. * <code>
  1805. * public class FunderOrgPermissionExtDevImpl implements IFunderOrgPermissionExtDev{
  1806. * public Boolean isCtrOrgPermissionExtDev(String entityName){
  1807. * DynamicObjectCollection result = QueryServiceHelper.query("ext_table", "id", new QFilter("entity", QCP.equals, entityName).toArray());
  1808. * return result == null || result.isEmpty();
  1809. * }
  1810. * }
  1811. * </code>
  1812. * </pre>
  1813. */
  1814. isCtrOrgPermissionExtDev?(entityName:string):boolean;
  1815. }
  1816. type IFunderOrgPermissionExtDev_T = IFunderOrgPermissionExtDev_S & IFunderOrgPermissionExtDev$;
  1817. interface IFunderOrgPermissionExtDev extends IFunderOrgPermissionExtDev_T {
  1818. }
  1819. }
  1820. namespace kd.sdk.tmc.fca.extpoint{
  1821. interface ITranSupBillVoucher_S {
  1822. }
  1823. interface ITranSupBillVoucher$ {
  1824. /**
  1825. * 上划处理单凭证号扩展插件
  1826. * @param rows 列表数据
  1827. * @return void
  1828. *
  1829. * <b>扩展示例如下
  1830. * <pre><code>
  1831. * package kd.tmc.fca.formplugin.transbill;
  1832. *
  1833. * import kd.bos.dataentity.entity.DynamicObject;
  1834. * import kd.bos.dataentity.entity.DynamicObjectCollection;
  1835. * import kd.sdk.tmc.fca.extpoint.ITranSupBillVoucher;
  1836. *
  1837. * public class TranSupBillVoucher implements ITranSupBillVoucher {
  1838. * @Override
  1839. * public void setIVoucher(DynamicObjectCollection rows) {
  1840. * ITranSupBillVoucher.super.setIVoucher(rows);
  1841. * for(DynamicObject row :rows){
  1842. * row.set("description","123456");
  1843. * }
  1844. * }
  1845. * }
  1846. * </code></pre>
  1847. */
  1848. setIVoucher?(rows:$.kd.bos.dataentity.entity.DynamicObjectCollection):void;
  1849. }
  1850. type ITranSupBillVoucher_T = ITranSupBillVoucher_S & ITranSupBillVoucher$;
  1851. interface ITranSupBillVoucher extends ITranSupBillVoucher_T {
  1852. }
  1853. interface IBalanceService_S {
  1854. }
  1855. interface IBalanceService$ {
  1856. /**
  1857. * <p>Title: BalanceService.java </p>
  1858. * <pre>Description: 资金调度计算划拨金额,即时余额二开扩展 </pre>
  1859. *
  1860. * @param transferType 划拨类型 UP上划,DOWN 下拨
  1861. * @param strategyId 划拨策略ID
  1862. * @param accountId 账户ID
  1863. * @param currencyId 币别ID
  1864. * @return 账户余额
  1865. * <pre>
  1866. * <code>
  1867. * public class BalanceService implements IBalanceService {
  1868. * @Override
  1869. * public BigDecimal getBalanceAmount(String transferType, Long strategyId, Long accountId, Long currencyId) {
  1870. * return BigDecimal.ONE
  1871. * }
  1872. * }
  1873. * </code>
  1874. * </pre>
  1875. */
  1876. getBalanceAmount(transferType:string,strategyId:long,accountId:long,currencyId:long):$.java.math.BigDecimal;
  1877. }
  1878. type IBalanceService_T = IBalanceService_S & IBalanceService$;
  1879. interface IBalanceService extends IBalanceService_T {
  1880. }
  1881. }
  1882. namespace kd.sdk.tmc.fcs.extpoint.paymonitor{
  1883. interface IRelationShipJob_S {
  1884. }
  1885. interface IRelationShipJob$ {
  1886. /**
  1887. * @param srcObj 源单查询对象
  1888. * @param destObj 目标单查询对象:查询自身关系时有值,查询外部关系无值
  1889. * @param flag 无关联关系结果标签:"NotLink"-没有查到searchA的关联数据;"HasLinkButNotFound"-有查到关联数据,但是没有发现searchA与searchB存在关系
  1890. */
  1891. doExt(srcObj:string,destObj:string,flag:string):void;
  1892. }
  1893. type IRelationShipJob_T = IRelationShipJob_S & IRelationShipJob$;
  1894. interface IRelationShipJob extends IRelationShipJob_T {
  1895. }
  1896. interface IRelationShipNotFind_S {
  1897. }
  1898. interface IRelationShipNotFind$ {
  1899. /**
  1900. * @param srcObj 源单查询对象
  1901. * @param tarObj 筛选单查询对象(未与源单在关联关系表中有关系数据)
  1902. */
  1903. doExt(srcObj:string,tarObj:$.java.util.Set):void;
  1904. }
  1905. type IRelationShipNotFind_T = IRelationShipNotFind_S & IRelationShipNotFind$;
  1906. interface IRelationShipNotFind extends IRelationShipNotFind_T {
  1907. }
  1908. }
  1909. namespace kd.sdk.tmc.ifm.expoint{
  1910. interface IGlAccountBalance_S {
  1911. }
  1912. interface IGlAccountBalance$ {
  1913. /**
  1914. * 期间凭证明细数据
  1915. * @param intObject
  1916. * @param periodStr
  1917. * @param flexIdStr
  1918. * * <pre>
  1919. * * @code
  1920. * * sqlStr.append("select b.fentryid,b.faccountid,a.fbookeddate vdate,case when b.fentrydc = '1' then b.foriginaldebit else -1*b.foriginalcredit end amount ");
  1921. * if (EmptyUtil.isNoEmpty(flexIdStr)) {
  1922. * sqlStr.append("from t_gl_voucher a inner join t_gl_voucherentry b on a.fid = b.fid inner join t_gl_assist_bd c on c.fid = b.fassgrpid ");
  1923. * sqlStr.append(" where a.forgid = ? and a.fbooktypeid = ? and a.fperiodid in (%s) and a.Fbookeddate >= ? and a.Fbookeddate <= ? and b.faccountid = ? and b.fcurrencyid = ? ");
  1924. * sqlStr.append(" and b.forgid = ? and b.fperiodid in (%s) and c.fvalue in (").append(flexIdStr).append( ")");
  1925. * } else {
  1926. * sqlStr.append("from t_gl_voucher a inner join t_gl_voucherentry b on a.fid = b.fid ");
  1927. * sqlStr.append(" where a.forgid = ? and a.fbooktypeid = ? and a.fperiodid in (%s) and a.Fbookeddate >= ? and a.Fbookeddate <= ? and b.faccountid = ? and b.fcurrencyid = ? ");
  1928. * sqlStr.append(" and b.forgid = ? and b.fperiodid in (%s)");
  1929. * }
  1930. * * </pre>
  1931. * @return
  1932. */
  1933. dealDailyGLBalanceSql?(intObject:$.kd.bos.dataentity.entity.DynamicObject,periodStr:string,flexIdStr:string):string;
  1934. /**
  1935. * 扩展修改期间初始余额和对应日期
  1936. * @param intObject
  1937. * * <pre>
  1938. * * @code
  1939. * Map<String, Object> map = new HashMap<>();
  1940. * map.put("startDate", DateUtils.stringToDate("2024-01-01", DateUtils.FORMAT_YMD));
  1941. * map.put("startBalance", new BigDecimal("0"));
  1942. * * </pre>
  1943. */
  1944. dealPeriodStartDateAndBalance?(intObject:$.kd.bos.dataentity.entity.DynamicObject):$.java.util.Map;
  1945. }
  1946. type IGlAccountBalance_T = IGlAccountBalance_S & IGlAccountBalance$;
  1947. interface IGlAccountBalance extends IGlAccountBalance_T {
  1948. }
  1949. interface IInstBalanceCalcSecondDev_S {
  1950. }
  1951. interface IInstBalanceCalcSecondDev$ {
  1952. /**
  1953. * 活期计息利息计算余额封装二开处理
  1954. * @param innerAcct 余额信息列表
  1955. * @param currency 币别
  1956. * @param beginDate 开始日期
  1957. * @param endDate 结束日期
  1958. *
  1959. * <pre>
  1960. * {@code
  1961. * public class InstBalanceCalcSecondDev implements IInstBalanceCalcSecondDev {
  1962. * @Override
  1963. * public List<ExtPlanCallResult> getExtInstBalance(DynamicObject innerAcct, DynamicObject currency,
  1964. * Date beginDate, Date endDate) {
  1965. * List<ExtPlanCallResult> results = new ArrayList<>();
  1966. * results.add(new ExtPlanCallResult(new Date(), new BigDecimal(100)));
  1967. * return results;
  1968. * }
  1969. * }
  1970. * </pre>
  1971. */
  1972. getExtInstBalance?(innerAcct:$.kd.bos.dataentity.entity.DynamicObject,currency:$.kd.bos.dataentity.entity.DynamicObject,beginDate:Date,endDate:Date):$.java.util.List;
  1973. }
  1974. type IInstBalanceCalcSecondDev_T = IInstBalanceCalcSecondDev_S & IInstBalanceCalcSecondDev$;
  1975. interface IInstBalanceCalcSecondDev extends IInstBalanceCalcSecondDev_T {
  1976. }
  1977. }
  1978. namespace kd.sdk.tmc.ifp.expoint.planedit{
  1979. interface IPlanEditBasedataF7Filter2Dev_S {
  1980. }
  1981. interface IPlanEditBasedataF7Filter2Dev$ {
  1982. /**
  1983. * 计划编制维度基础资料添加二开过滤条件
  1984. * @param model 页面模型
  1985. * @param propKey 字段属性
  1986. * @param baseDataType 基础资料类型
  1987. *
  1988. * <pre>
  1989. * {@code
  1990. * public QFilter getExtBasedataQFilter(IDataModel model, String propKey, String baseDataType) {
  1991. * QFilter qFilter = null;
  1992. * if ("bos_org".equals(baseDataType)) {
  1993. * qFilter = new QFilter("id", QCP.in, "1");
  1994. * }else if("cfm_financingvarieties".equals(baseDataType)){
  1995. * qFilter = new QFilter("isleaf", QCP.equals, "1");
  1996. * }
  1997. * return qFilter;
  1998. * }
  1999. * </pre>
  2000. */
  2001. getExtBasedataQFilter?(model:$.kd.bos.entity.datamodel.IDataModel,propKey:string,baseDataType:string):$.kd.bos.orm.query.QFilter;
  2002. }
  2003. type IPlanEditBasedataF7Filter2Dev_T = IPlanEditBasedataF7Filter2Dev_S & IPlanEditBasedataF7Filter2Dev$;
  2004. interface IPlanEditBasedataF7Filter2Dev extends IPlanEditBasedataF7Filter2Dev_T {
  2005. }
  2006. }
  2007. namespace kd.sdk.tmc.mon.extpoint.mobile{
  2008. interface IMobileSecondaryDevCard_S {
  2009. }
  2010. interface IMobileSecondaryDevCard$ {
  2011. /**
  2012. * 调整 自定义首页卡片信息
  2013. *
  2014. * @param cardMap 调整前卡片信息
  2015. * @return 调整后卡片 key:卡片元数据标识 value:标题
  2016. *
  2017. * <p> 扩展示例如下 </p>
  2018. * <pre>
  2019. * <code>
  2020. * public class MonMobileSecondaryDevCardTest implements IMobileSecondaryDevCard {
  2021. *
  2022. * @Override
  2023. * public Map<String, String> adjustCard(Map<String, String> cardMap) {
  2024. * cardMap.put("ssc_inte_audit_card_m", "智能审单率卡片");
  2025. * return cardMap;
  2026. * }
  2027. *
  2028. * }
  2029. * </code>
  2030. * </pre>
  2031. */
  2032. adjustCard?(cardMap:$.java.util.Map):$.java.util.Map;
  2033. /**
  2034. * 调整 卡片权限
  2035. *
  2036. * @param permMap 调整前 卡片权限信息
  2037. * @return 调整后卡片权限信息 key:卡片元数据标识 value:权限项
  2038. *
  2039. * <p> 扩展示例如下 </p>
  2040. * <pre>
  2041. * <code>
  2042. * public class MonMobileSecondaryDevCardTest implements IMobileSecondaryDevCard {
  2043. *
  2044. * @Override
  2045. * public Map<String, String> adjustCardPerm(Map<String, String> permMap) {
  2046. * permMap.remove("mon_business_monitoring_m");
  2047. * return permMap;
  2048. * }
  2049. *
  2050. * }
  2051. * </code>
  2052. * </pre>
  2053. */
  2054. adjustCardPerm?(permMap:$.java.util.Map):$.java.util.Map;
  2055. /**
  2056. * 调整 主题 卡片
  2057. *
  2058. * @param subject 主题标识 @see kd.tmc.mon.formplugin.mobile.card.SubjectEnum
  2059. * @param cards 卡片集合
  2060. * @return <p> 扩展示例如下 </p>
  2061. * <pre>
  2062. * <code>
  2063. * public class MonMobileSecondaryDevCardTest implements IMobileSecondaryDevCard {
  2064. *
  2065. * @Override
  2066. * public List<String> adjustSubject(String subject, List<String> cards) {
  2067. * if ("STOCKANALYSIS".equals(subject)) {
  2068. * cards.add("mon_incexprank_card");
  2069. * }
  2070. * return cards;
  2071. * }
  2072. *
  2073. * }
  2074. * </code>
  2075. * </pre>
  2076. */
  2077. adjustSubject?(subject:string,cards:$.java.util.List):$.java.util.List;
  2078. }
  2079. type IMobileSecondaryDevCard_T = IMobileSecondaryDevCard_S & IMobileSecondaryDevCard$;
  2080. interface IMobileSecondaryDevCard extends IMobileSecondaryDevCard_T {
  2081. }
  2082. }
  2083. namespace kd.sdk.tmc.psd.extpoint{
  2084. interface ICheckDefaultAccount_S {
  2085. }
  2086. interface ICheckDefaultAccount$ {
  2087. /**
  2088. * <p>Title: TestGetDefaultAccount.java </p>
  2089. * <pre>Description: 自动排程或自动排票时,可以自定义默认账户 </pre>
  2090. * @param payScheduleInfo 排程信息
  2091. * @param defaultAccountInfo 默认账户信息
  2092. *
  2093. * <pre>
  2094. * <code>
  2095. * public class TestGetDefaultAccount implements ICheckDefaultAccount {
  2096. *
  2097. * @Override
  2098. * public Boolean validate(PayScheduleInfo payScheduleInfo, DynamicObject defaultAccountInfo) {
  2099. * // 资金用途
  2100. * boolean sameFunFlowItem = true;// 没有配置情况,默认是true
  2101. * // 默认账户配置的【资金用途】
  2102. * List<Object> fundFlowItem = defaultAccountInfo.getDynamicObjectCollection("fundflowitem").
  2103. * stream().map(e -> e.get("fbasedataid.id")).collect(Collectors.toList());
  2104. * // 排程单的【资金用途】
  2105. * Object funFlowItem = payScheduleInfo.getCalcPropVal("e_fundflowitem");
  2106. *
  2107. * if (!CollectionUtils.isEmpty(fundFlowItem)) {
  2108. * // 配置了,以实际值校验为准
  2109. * sameFunFlowItem = fundFlowItem.contains(funFlowItem);
  2110. * }
  2111. *
  2112. * // 收款人类型
  2113. * boolean samePayeeType = true; // 没有配置情况,默认是true
  2114. * // 默认账户配置的【收款人类型】
  2115. * String defaultPayeeType = defaultAccountInfo.getString("payeetype");
  2116. * // 排程单的【收款人类型】
  2117. * String ePayeeType = payScheduleInfo.getCalcPropVal("e_payeetype");
  2118. * if (StringUtils.isNotEmpty(defaultPayeeType)) {
  2119. * // 配置了,以实际值校验为准
  2120. * samePayeeType = defaultPayeeType.contains(ePayeeType);
  2121. * }
  2122. *
  2123. * return sameFunFlowItem && samePayeeType;
  2124. * }
  2125. * }
  2126. * </code>
  2127. * </pre>
  2128. */
  2129. validate?(payScheduleInfo:kd.sdk.tmc.psd.extpoint.param.PayScheduleInfo,defaultAccountInfo:$.kd.bos.dataentity.entity.DynamicObject):boolean;
  2130. }
  2131. type ICheckDefaultAccount_T = ICheckDefaultAccount_S & ICheckDefaultAccount$;
  2132. interface ICheckDefaultAccount extends ICheckDefaultAccount_T {
  2133. }
  2134. interface IPayScheduleSelectBill_S {
  2135. }
  2136. interface IPayScheduleSelectBill$ {
  2137. /**
  2138. * 排程选票
  2139. * 选票时机-背书付款:在标品自动排票规则之间加入自定义选票逻辑
  2140. * 步骤:
  2141. * 1,结算方式、金额、币别、票据到期日、是否直联票据过滤;
  2142. * 2,根据1的结果传入selectBills,获取接口返回的结果
  2143. * 3,根据2的结果进行最后的选票:金额优先/日期优先排序等
  2144. * @param selectBillParam 选票入参
  2145. * @return 票据id集合
  2146. */
  2147. selectBills?(selectBillParam:kd.sdk.tmc.psd.extpoint.param.SelectBillParam):$.java.util.Set;
  2148. }
  2149. type IPayScheduleSelectBill_T = IPayScheduleSelectBill_S & IPayScheduleSelectBill$;
  2150. interface IPayScheduleSelectBill extends IPayScheduleSelectBill_T {
  2151. }
  2152. }
  2153. namespace kd.sdk.tmc.psd.extpoint.param{
  2154. interface SelectBillParam_S {
  2155. }
  2156. type SelectBillParam_ST = $.java.io.Serializable & SelectBillParam_S;
  2157. interface SelectBillParam_C extends SelectBillParam_ST {
  2158. new(payScheduleInfo:PayScheduleInfo):SelectBillParam;
  2159. }
  2160. interface SelectBillParam$ {
  2161. getMergeScheduleList():$.java.util.List;
  2162. getPayScheduleInfo():PayScheduleInfo;
  2163. getSelectBillIds():$.java.util.Set;
  2164. setMergeScheduleList(mergeScheduleList:$.java.util.List):void;
  2165. setPayScheduleInfo(payScheduleInfo:PayScheduleInfo):void;
  2166. setSelectBillIds(selectBillIds:$.java.util.Set):void;
  2167. }
  2168. type SelectBillParam_T = $.java.io.Serializable & SelectBillParam_S & SelectBillParam$;
  2169. interface SelectBillParam extends SelectBillParam_T {
  2170. }
  2171. interface PayScheduleInfo_S {
  2172. }
  2173. type PayScheduleInfo_ST = $.java.io.Serializable & PayScheduleInfo_S;
  2174. interface PayScheduleInfo_C extends PayScheduleInfo_ST {
  2175. new(dataMap:$.java.util.Map):PayScheduleInfo;
  2176. }
  2177. interface PayScheduleInfo$ {
  2178. getCalcProp(scheduleCalcProp:string):PaySchedulePropVal;
  2179. getCalcPropVal(scheduleCalcProp:string):any;
  2180. getDataMap():$.java.util.Map;
  2181. }
  2182. type PayScheduleInfo_T = $.java.io.Serializable & PayScheduleInfo_S & PayScheduleInfo$;
  2183. interface PayScheduleInfo extends PayScheduleInfo_T {
  2184. }
  2185. interface PaySchedulePropVal_S {
  2186. }
  2187. type PaySchedulePropVal_ST = $.java.io.Serializable & PaySchedulePropVal_S;
  2188. interface PaySchedulePropVal_C extends PaySchedulePropVal_ST {
  2189. new():PaySchedulePropVal;
  2190. }
  2191. interface PaySchedulePropVal$ {
  2192. getData():any;
  2193. getPayScheDataSetting():string;
  2194. getScheCalcProp():string;
  2195. getScheProp():string;
  2196. isCombineUnique():boolean;
  2197. isEditable():boolean;
  2198. isVisible():boolean;
  2199. setCombineUnique(combineUnique:boolean):void;
  2200. setData(arg0:any):void;
  2201. setEditable(editable:boolean):void;
  2202. setPayScheDataSetting(payScheDataSetting:string):void;
  2203. setScheCalcProp(scheCalcProp:string):void;
  2204. setScheProp(scheProp:string):void;
  2205. setVisible(visible:boolean):void;
  2206. }
  2207. type PaySchedulePropVal_T = $.java.io.Serializable & PaySchedulePropVal_S & PaySchedulePropVal$;
  2208. interface PaySchedulePropVal extends PaySchedulePropVal_T {
  2209. }
  2210. }
  2211. namespace kd.sdk.tmc.psd.extpoint.task{
  2212. interface IAssemblySecondaryDevFields_S {
  2213. }
  2214. interface IAssemblySecondaryDevFields$ {
  2215. /**
  2216. * 排程处理单二开字段封装到 Map<String, Object> 集合中
  2217. * @param schebill 排程处理单动态对象
  2218. * @return java.util.Map<java.lang.String,java.lang.Object> 返回封装好的二开字段集合; key:二开字段标识, value: 对应二开字段绑定的值
  2219. *
  2220. * <p>扩展示例如下
  2221. * <pre><code>
  2222. * import kd.bos.dataentity.entity.DynamicObject;
  2223. * import java.util.HashMap;
  2224. * import java.util.Map;
  2225. *
  2226. * public class AssemblySecondaryDevFields_Demo implements IAssemblySecondaryDevFields {
  2227. *
  2228. * public Map<String, Object> assemblySecondaryDevFields(DynamicObject schebill) {
  2229. * Map<String, Object> fieldMap = new HashMap<>(16);
  2230. * fieldMap.put("a1", schebill.getString("xxxx1"));
  2231. * fieldMap.put("a2", schebill.getString("xxxx2"));
  2232. * fieldMap.put("a3", schebill.getString("xxxx3"));
  2233. * return fieldMap;
  2234. * }
  2235. * }
  2236. *
  2237. * </code></pre>
  2238. */
  2239. assemblySecondaryDevFields?(schebill:$.kd.bos.dataentity.entity.DynamicObject):$.java.util.Map;
  2240. }
  2241. type IAssemblySecondaryDevFields_T = IAssemblySecondaryDevFields_S & IAssemblySecondaryDevFields$;
  2242. interface IAssemblySecondaryDevFields extends IAssemblySecondaryDevFields_T {
  2243. }
  2244. }
  2245. namespace kd.sdk.tmc.tda.extpoint.arap{
  2246. interface IArApTopCustSuppInterface_S {
  2247. }
  2248. interface IArApTopCustSuppInterface$ {
  2249. /**
  2250. * @param propertyName 客户:customername 供应商:suppliername
  2251. * @return 过滤器
  2252. * <p>默认拓展示例如下
  2253. * <pre><code>
  2254. * package kd.tmc.tda.report.arap.extpoint;
  2255. *
  2256. * import kd.bos.algo.FilterFunction;
  2257. * import kd.bos.algo.Row;
  2258. * import kd.bos.dataentity.resource.ResManager;
  2259. * import kd.sdk.tmc.tda.extpoint.arap.IArApTopCustSuppInterface;
  2260. *
  2261. * public class ArApTopCustSuppDefaultExt implements IArApTopCustSuppInterface {
  2262. *
  2263. * // 客户名称字段
  2264. * private static final String CUSTOMER_FIELD = "customername";
  2265. * // 供应商名称字段
  2266. * private static final String SUPPLIER_FIELD = "suppliername";
  2267. *
  2268. * public FilterFunction buildExtendFilter(String propertyName) {
  2269. * return new FilterFunction() {
  2270. *
  2271. * public boolean test(Row row) {
  2272. * String customerName = row.getString(propertyName);
  2273. * // 剔除包含特殊字符的客户
  2274. * if (customerName != null && CUSTOMER_FIELD.equals(propertyName)) {
  2275. * return !customerName.contains(getSpecialChar0()) && !customerName.contains(getSpecialChar1()) &&
  2276. * !customerName.contains(getSpecialChar2()) && !customerName.contains(getSpecialChar3()) &&
  2277. * !customerName.contains(getSpecialChar5());
  2278. * } else if (customerName != null && SUPPLIER_FIELD.equals(propertyName)) { // 剔除包含特殊字符的供应商
  2279. * return !customerName.contains(getSpecialChar0()) && !customerName.contains(getSpecialChar1()) &&
  2280. * !customerName.contains(getSpecialChar2()) && !customerName.contains(getSpecialChar3()) &&
  2281. * !customerName.contains(getSpecialChar4());
  2282. * }
  2283. * return false;
  2284. * }
  2285. * };
  2286. * }
  2287. *
  2288. * private String getSpecialChar0() {
  2289. * return ResManager.loadKDString("0万", "ArApTopCustSuppDefaultExt_0", "tmc-tda-report");
  2290. * }
  2291. *
  2292. * private String getSpecialChar1() {
  2293. * return ResManager.loadKDString("其他", "ArApTopCustSuppDefaultExt_1", "tmc-tda-report");
  2294. * }
  2295. *
  2296. * private String getSpecialChar2() {
  2297. * return ResManager.loadKDString("外部", "ArApTopCustSuppDefaultExt_2", "tmc-tda-report");
  2298. * }
  2299. *
  2300. * private String getSpecialChar3() {
  2301. * return ResManager.loadKDString("客户", "ArApTopCustSuppDefaultExt_3", "tmc-tda-report");
  2302. * }
  2303. *
  2304. * private String getSpecialChar4() {
  2305. * return ResManager.loadKDString("供应商", "ArApTopCustSuppDefaultExt_4", "tmc-tda-report");
  2306. * }
  2307. *
  2308. * private String getSpecialChar5() {
  2309. * return ResManager.loadKDString("收入", "ArApTopCustSuppDefaultExt_5", "tmc-tda-report");
  2310. * }
  2311. *
  2312. * }
  2313. *
  2314. * </pre></code>
  2315. * </p>
  2316. */
  2317. buildExtendFilter(propertyName:string):$.kd.bos.algo.FilterFunction;
  2318. }
  2319. type IArApTopCustSuppInterface_T = IArApTopCustSuppInterface_S & IArApTopCustSuppInterface$;
  2320. interface IArApTopCustSuppInterface extends IArApTopCustSuppInterface_T {
  2321. }
  2322. }
  2323. namespace kd.sdk.tmc.tda.extpoint.bankacct{
  2324. interface IBankAcctByBankInterfaceRPA_S {
  2325. }
  2326. interface IBankAcctByBankInterfaceRPA$ {
  2327. /**
  2328. * 通过银行账户ID查询对应账户绑定RPA个数
  2329. *
  2330. * @param param Map<Sting,Object> key:acctIds,value:需要查询的银行账户ID集合
  2331. * @return DataSet。共两列,列名依次为:acct_id(银行账户ID)、rpa_count(RPA个数)
  2332. *
  2333. * <p>默认扩展示例如下
  2334. * <pre><code>
  2335. * package kd.tmc.tda.report.bankacct.extpoint;
  2336. *
  2337. * import kd.bos.algo.DataSet;
  2338. * import kd.bos.orm.query.QCP;
  2339. * import kd.bos.orm.query.QFilter;
  2340. * import kd.bos.servicehelper.QueryServiceHelper;
  2341. * import kd.sdk.tmc.tda.extpoint.bankacct.IBankAcctByBankInterfaceRPA;
  2342. *
  2343. * import java.util.List;
  2344. * import java.util.Map;
  2345. *
  2346. * public class BankInterfaceRPATestExt implements IBankAcctByBankInterfaceRPA {
  2347. *
  2348. * public DataSet queryRPADataSet(Map<String, Object> param) {
  2349. * List<Long> acctIds = (List<Long>) param.get("acctIds");
  2350. *
  2351. * // 默认通过网银登录信息维护银行账户RPA数据,则查询元数据标识 bcr_bankudset
  2352. * DataSet rpaDataSet = QueryServiceHelper.queryDataSet("BankAcctByBankInterfaceSum", "bcr_bankudset",
  2353. * "entry.acctbank acct_id", new QFilter[]{new QFilter("entry.acctbank", QCP.in, acctIds)}, null);
  2354. * DataSet rpaCountSet = rpaDataSet.groupBy(new String[]{"acct_id"}).countDistinct(new String[]{"acct_id"}, "rpa_count").finish();
  2355. * return rpaCountSet;
  2356. * }
  2357. * }
  2358. * </pre></code>
  2359. * </p>
  2360. */
  2361. queryRPADataSet(param:$.java.util.Map):$.kd.bos.algo.DataSet;
  2362. }
  2363. type IBankAcctByBankInterfaceRPA_T = IBankAcctByBankInterfaceRPA_S & IBankAcctByBankInterfaceRPA$;
  2364. interface IBankAcctByBankInterfaceRPA extends IBankAcctByBankInterfaceRPA_T {
  2365. }
  2366. interface IParentAcctInterface_S {
  2367. }
  2368. interface IParentAcctInterface$ {
  2369. /**
  2370. * 通过组织视图获取所有母账户id
  2371. *
  2372. * @param param Map<Sting,Object> key:orgview,value:组织视图对象
  2373. * @return List<Long>所有的母账户id集合
  2374. *
  2375. * <p>默认扩展示例如下
  2376. * <pre><code>
  2377. * package kd.tmc.tda.report.bankacct.extpoint;
  2378. *
  2379. * import java.util.ArrayList;
  2380. * import java.util.Arrays;
  2381. * import java.util.Collections;
  2382. * import java.util.List;
  2383. * import java.util.Map;
  2384. * import java.util.stream.Collectors;
  2385. *
  2386. * import kd.bos.dataentity.entity.DynamicObject;
  2387. * import kd.bos.orm.query.QCP;
  2388. * import kd.bos.orm.query.QFilter;
  2389. * import kd.tmc.fbp.common.helper.TmcDataServiceHelper;
  2390. * import kd.tmc.fbp.common.helper.TmcOrgDataHelper;
  2391. * import kd.tmc.fbp.common.util.EmptyUtil;
  2392. * import kd.tmc.tda.common.propertys.DecisionAnlsVersionProp;
  2393. * import kd.sdk.tmc.tda.extpoint.bankacct.IParentAcctInterface;
  2394. *
  2395. * public class ParentAcctDefaultExt implements IParentAcctInterface {
  2396. *
  2397. * public List<Long> getParentAcct(Map<String, Object> paramMap) {
  2398. * List<Long> acctIds = new ArrayList<>();
  2399. * Long orgviewId = ((DynamicObject) paramMap.get(DecisionAnlsVersionProp.ORGVIEW)).getLong("id");
  2400. * Long orgId = ((DynamicObject) paramMap.get(DecisionAnlsVersionProp.ORG)).getLong("id");
  2401. * List<Long> orgIds = TmcOrgDataHelper.getAllSubordinateOrgs(orgviewId, Collections.singletonList(orgId), true);
  2402. * QFilter filter = new QFilter("company", QCP.in, orgIds);
  2403. * DynamicObject[] accts = TmcDataServiceHelper.load("fca_acctgroup","id",filter.toArray());
  2404. * if(EmptyUtil.isNoEmpty(accts)) {//查出组织视图下的所有母账户
  2405. * acctIds = Arrays.stream(accts).map(p->p.getLong("id")).collect(Collectors.toList());
  2406. * }
  2407. * return acctIds;
  2408. * }
  2409. * }
  2410. * </pre></code>
  2411. * </p>
  2412. */
  2413. getParentAcct(param:$.java.util.Map):$.java.util.List;
  2414. }
  2415. type IParentAcctInterface_T = IParentAcctInterface_S & IParentAcctInterface$;
  2416. interface IParentAcctInterface extends IParentAcctInterface_T {
  2417. }
  2418. interface IBankAcctInterface_S {
  2419. }
  2420. interface IBankAcctInterface$ {
  2421. /**
  2422. * 账户明细表字段列扩展
  2423. * 扩展报表列,其中fieldKey与明细DataSet中fieldname相对应;列名称为多语言文本;可根据需要设置列数据类型
  2424. *
  2425. * @param fieldColumns
  2426. * @return 扩展后的明细报表列
  2427. *
  2428. * <p>默认扩展示例如下
  2429. * <pre><code>
  2430. * package kd.tmc.tda.report.bankacct.extpoint;
  2431. *
  2432. * import kd.bos.algo.DataSet;
  2433. * import kd.bos.dataentity.entity.LocaleString;
  2434. * import kd.bos.dataentity.resource.ResManager;
  2435. * import kd.bos.entity.report.AbstractReportColumn;
  2436. * import kd.bos.entity.report.ReportColumn;
  2437. * import kd.bos.orm.query.QCP;
  2438. * import kd.bos.orm.query.QFilter;
  2439. * import kd.sdk.tmc.tda.extpoint.bankacct.IBankAcctInterface;
  2440. *
  2441. * import java.util.List;
  2442. *
  2443. * public class BankAcctInterfaceDefaultExt implements IBankAcctInterface {
  2444. *
  2445. * public List<Object[]> detailColumnItemsExt(List<Object[]> fieldColumns) {
  2446. * fieldColumns.add(new Object[]{"fieldKey", ResManager.loadKDString("列名称", "AcctDetailDataListPlugin_20", "tmc-tda-report"), ReportColumn.TYPE_TEXT, false,});
  2447. * fieldColumns.add(new Object[]{"fieldKey", ResManager.loadKDString("列名称", "AcctDetailDataListPlugin_20", "tmc-tda-report"), ReportColumn.TYPE_TEXT, false,});
  2448. * return fieldColumns;
  2449. * }
  2450. * }
  2451. * </pre></code>
  2452. * </p>
  2453. */
  2454. detailColumnItemsExt?(fieldColumns:$.java.util.List):$.java.util.List;
  2455. /**
  2456. * 账户运营元数据扩展
  2457. * 默认查询bd_accountbanks(银行账户),有特殊账户查询场景时需替换元数据标识即可。
  2458. *
  2459. * @return 元数据标识字符串
  2460. *
  2461. * <p>默认扩展示例如下
  2462. * <pre><code>
  2463. * package kd.tmc.tda.report.bankacct.extpoint;
  2464. *
  2465. * import kd.sdk.tmc.tda.extpoint.bankacct.IBankAcctInterface;
  2466. *
  2467. * public class BankAcctInterfaceDefaultExt implements IBankAcctInterface {
  2468. *
  2469. * public String metadataSignExt() {
  2470. * // 账户查询元数据
  2471. * return am_accountbank;
  2472. * }
  2473. * }
  2474. * </pre></code>
  2475. * </p>
  2476. */
  2477. metadataSignExt?():string;
  2478. /**
  2479. * 账户查询过滤条件扩展
  2480. * 在原有QFilter的基础上扩展自定义QFilter
  2481. *
  2482. * @param qFilter
  2483. * @return 扩展后的qFilter
  2484. *
  2485. * <p>默认扩展示例如下
  2486. * <pre><code>
  2487. * package kd.tmc.tda.report.bankacct.extpoint;
  2488. *
  2489. * import kd.bos.algo.DataSet;
  2490. * import kd.bos.dataentity.entity.LocaleString;
  2491. * import kd.bos.dataentity.resource.ResManager;
  2492. * import kd.bos.entity.report.AbstractReportColumn;
  2493. * import kd.bos.entity.report.ReportColumn;
  2494. * import kd.bos.orm.query.QCP;
  2495. * import kd.bos.orm.query.QFilter;
  2496. * import kd.sdk.tmc.tda.extpoint.bankacct.IBankAcctInterface;
  2497. *
  2498. * import java.util.List;
  2499. *
  2500. * public class BankAcctInterfaceDefaultExt implements IBankAcctInterface {
  2501. *
  2502. * public QFilter qFilterExt(QFilter qFilter) {
  2503. * return qFilter.and("1", QCP.equals, 1);
  2504. * }
  2505. * }
  2506. * </pre></code>
  2507. * </p>
  2508. */
  2509. qFilterExt?(qFilter:$.kd.bos.orm.query.QFilter):$.kd.bos.orm.query.QFilter;
  2510. /**
  2511. * 报表列扩展
  2512. * 用于动态创建报表列,列标识fieldKey与报表数据DataSet中fieldname相对应
  2513. *
  2514. * @param columns
  2515. * @return 扩展后的columns
  2516. *
  2517. * <p>默认扩展示例如下
  2518. * <pre><code>
  2519. * package kd.tmc.tda.report.bankacct.extpoint;
  2520. *
  2521. * import kd.bos.algo.DataSet;
  2522. * import kd.bos.dataentity.entity.LocaleString;
  2523. * import kd.bos.dataentity.resource.ResManager;
  2524. * import kd.bos.entity.report.AbstractReportColumn;
  2525. * import kd.bos.entity.report.ReportColumn;
  2526. * import kd.bos.orm.query.QCP;
  2527. * import kd.bos.orm.query.QFilter;
  2528. * import kd.sdk.tmc.tda.extpoint.bankacct.IBankAcctInterface;
  2529. *
  2530. * import java.util.List;
  2531. *
  2532. * public class BankAcctInterfaceDefaultExt implements IBankAcctInterface {
  2533. *
  2534. * public List<AbstractReportColumn> reportColumnsExt(List<AbstractReportColumn> columns) {
  2535. * columns.add(createColumn("fieldKey", "动态测试列", false));
  2536. * return columns;
  2537. * }
  2538. *
  2539. * private ReportColumn createColumn(String fieldKey, String caption, boolean isHide) {
  2540. * ReportColumn reportColumn = new ReportColumn();
  2541. * // 列标识
  2542. * reportColumn.setFieldKey(fieldKey);
  2543. * // 报表列数据类型
  2544. * reportColumn.setFieldType(ReportColumn.TYPE_INTEGER);
  2545. * // 列值为0是否显示
  2546. * reportColumn.setZeroShow(true);
  2547. * // 列名称
  2548. * reportColumn.setCaption(new LocaleString(caption));
  2549. * // 列是否隐藏
  2550. * reportColumn.setHide(isHide);
  2551. * return reportColumn;
  2552. * }
  2553. * }
  2554. * </pre></code>
  2555. * </p>
  2556. */
  2557. reportColumnsExt?(columns:$.java.util.List):$.java.util.List;
  2558. /**
  2559. * @param dataSet
  2560. * @param queryParam
  2561. * @return
  2562. */
  2563. reportDataSetExt?(dataSet:$.kd.bos.algo.DataSet,queryParam:$.kd.bos.entity.report.ReportQueryParam):$.kd.bos.algo.DataSet;
  2564. /**
  2565. * 账户查询字段扩展
  2566. * 自定义扩展字段,也可对查询字段重命名,形如:field1 as fd1
  2567. *
  2568. * @return 查询字段字符串,以英文逗号分隔
  2569. *
  2570. * <p>默认扩展示例如下
  2571. * <pre><code>
  2572. * package kd.tmc.tda.report.bankacct.extpoint;
  2573. *
  2574. * import kd.bos.algo.DataSet;
  2575. * import kd.bos.dataentity.entity.LocaleString;
  2576. * import kd.bos.dataentity.resource.ResManager;
  2577. * import kd.bos.entity.report.AbstractReportColumn;
  2578. * import kd.bos.entity.report.ReportColumn;
  2579. * import kd.bos.orm.query.QCP;
  2580. * import kd.bos.orm.query.QFilter;
  2581. * import kd.sdk.tmc.tda.extpoint.bankacct.IBankAcctInterface;
  2582. *
  2583. * import java.util.List;
  2584. *
  2585. * public class BankAcctInterfaceDefaultExt implements IBankAcctInterface {
  2586. *
  2587. * public String selectFieldsExt() {
  2588. * return "field1 as fd1, field2";
  2589. * }
  2590. * }
  2591. * </pre></code>
  2592. * </p>
  2593. */
  2594. selectFieldsExt?():string;
  2595. }
  2596. type IBankAcctInterface_T = IBankAcctInterface_S & IBankAcctInterface$;
  2597. interface IBankAcctInterface extends IBankAcctInterface_T {
  2598. }
  2599. }
  2600. namespace kd.sdk.tmc.tda.extpoint.cash{
  2601. interface ICashDistributionByAreaTopNumInterface_S {
  2602. }
  2603. interface ICashDistributionByAreaTopNumInterface$ {
  2604. /**
  2605. * 决策分析头寸按区域分布显示前N个国家地区 默认15
  2606. * @return topNum
  2607. * <p>默认扩展示例如下
  2608. * <pre><code>
  2609. * package kd.sdk.tmc.tda.extpoint.cash;
  2610. *
  2611. * import kd.sdk.tmc.tda.extpoint.cash.ICashDistributionByAreaTopNumInterface;
  2612. * public class CashDistributionByAreaTopNumExt implements ICashDistributionByAreaTopNumInterface{
  2613. *
  2614. * @Override
  2615. * public int getTopCountryNum() {
  2616. * //显示前五国家
  2617. * return 5;
  2618. * }
  2619. *
  2620. * }
  2621. * </pre></code>
  2622. * </p>
  2623. */
  2624. getTopCountryNum?():number;
  2625. /**
  2626. * 决策分析头寸按区域分布显示前N个省份
  2627. * @return topNum
  2628. * <p>默认扩展示例如下
  2629. * <pre><code>
  2630. * package kd.sdk.tmc.tda.extpoint.cash;
  2631. *
  2632. * import kd.sdk.tmc.tda.extpoint.cash.ICashDistributionByAreaTopNumInterface;
  2633. * public class CashDistributionByAreaTopNumExt implements ICashDistributionByAreaTopNumInterface{
  2634. *
  2635. * @Override
  2636. * public int getTopProvinceNum() {
  2637. * //显示前十省份
  2638. * return 10;
  2639. * }
  2640. * }
  2641. * </pre></code>
  2642. * </p>
  2643. */
  2644. getTopProvinceNum?():number;
  2645. }
  2646. type ICashDistributionByAreaTopNumInterface_T = ICashDistributionByAreaTopNumInterface_S & ICashDistributionByAreaTopNumInterface$;
  2647. interface ICashDistributionByAreaTopNumInterface extends ICashDistributionByAreaTopNumInterface_T {
  2648. }
  2649. interface ICashCommonSourceReBuildInterface_S {
  2650. }
  2651. interface ICashCommonSourceReBuildInterface$ {
  2652. /**
  2653. * 决策分析头寸公共取数扩展接口
  2654. *
  2655. * @param sources DataSet 标准产品公共取数的结果集
  2656. *
  2657. * @return DataSet 二开根据业务重新扩展调整后结果集
  2658. *
  2659. * <p>默认扩展示例如下
  2660. * <pre><code>
  2661. *
  2662. * package kd.tmc.tda.report.bankacct.extpoint;
  2663. *
  2664. * import kd.bos.algo.DataSet;
  2665. * import kd.sdk.tmc.tda.extpoint.cash.ICashCommonSourceReBuildInterface;
  2666. * import kd.tmc.fbp.common.helper.DataSetHelper;
  2667. *
  2668. * import java.util.ArrayList;
  2669. * import java.util.Collections;
  2670. * import java.util.List;
  2671. *
  2672. * import static kd.tmc.fbp.common.enums.CashTypeEnum.ACCOUNT;
  2673. * import static kd.tmc.fbp.common.enums.CashTypeEnum.STRUCT;
  2674. *
  2675. * public class CashCommonSourceReBuildDefaultExt implements ICashCommonSourceReBuildInterface {
  2676. * @Override
  2677. * public DataSet rebuildDataSet(DataSet sources) {
  2678. * //需要更新的数据,这里是某些账户id
  2679. * List<Long> bankAccountIds=new ArrayList<>(10);
  2680. * bankAccountIds.add(1924007106009140224L);
  2681. * bankAccountIds.add(1938513307971777536L);
  2682. * //先将要更新的账户分离
  2683. * DataSet[] splitDs = DataSetHelper.splitByFilter(sources,new String[]{"accountbank in accountbankIds"}, Collections.singletonMap("accountbankIds",bankAccountIds),true);
  2684. * DataSet updateSet = splitDs[0];
  2685. * //按照业务进行更新对应的字段
  2686. * updateSet = updateSet.updateFields(new String[]{"fundtypename","fundtype"},new String[]{String.format("'%s'",STRUCT.getText()),""+STRUCT.getNumber()});
  2687. * //最后合并再返回
  2688. * return splitDs[1].union(updateSet);
  2689. * }
  2690. * }
  2691. * </pre></code>
  2692. * </p>
  2693. */
  2694. rebuildDataSet(sources:$.kd.bos.algo.DataSet):$.kd.bos.algo.DataSet;
  2695. }
  2696. type ICashCommonSourceReBuildInterface_T = ICashCommonSourceReBuildInterface_S & ICashCommonSourceReBuildInterface$;
  2697. interface ICashCommonSourceReBuildInterface extends ICashCommonSourceReBuildInterface_T {
  2698. }
  2699. }
  2700. namespace kd.sdk.tmc.tda.extpoint.credit{
  2701. interface ICreditGetDataInterface_S {
  2702. }
  2703. interface ICreditGetDataInterface$ {
  2704. /**
  2705. * 查询授信额度自定义条件
  2706. *
  2707. * @return 自定义条件
  2708. *
  2709. * <p>默认扩展示例如下
  2710. * <pre><code>
  2711. * package kd.tmc.tda.report.credit.extpoint;
  2712. *
  2713. * import kd.bos.orm.query.QFilter;
  2714. * import kd.sdk.tmc.tda.extpoint.credit.ICreditGetDataInterface;
  2715. *
  2716. * public class CreditGetDataDefaultExt implements ICreditGetDataInterface {
  2717. *
  2718. * public QFilter getTdaCreditExtendFilter(QFilter qFilter) {
  2719. * // 返回自定义的QFilter
  2720. * return qFilter.and("1", QCP.equals, 1);
  2721. * }
  2722. * }
  2723. * </pre></code>
  2724. * </p>
  2725. */
  2726. getTdaCreditExtendFilter(qFilter:$.kd.bos.orm.query.QFilter):$.kd.bos.orm.query.QFilter;
  2727. }
  2728. type ICreditGetDataInterface_T = ICreditGetDataInterface_S & ICreditGetDataInterface$;
  2729. interface ICreditGetDataInterface extends ICreditGetDataInterface_T {
  2730. }
  2731. }
  2732. namespace kd.sdk.tmc.tda.extpoint.finance{
  2733. interface IFinanceLeaseSourceInterface_S {
  2734. }
  2735. interface IFinanceLeaseSourceInterface$ {
  2736. /**
  2737. * 决策分析融资租赁取数源表单标识拓展
  2738. *
  2739. * @return String 融资租赁取数表单标识
  2740. *
  2741. * <p>默认扩展示例如下
  2742. * <pre><code>
  2743. * package kd.tmc.tda.common.extpoint;
  2744. *
  2745. * import kd.sdk.tmc.tda.extpoint.finance.IFinanceLeaseSourceInterface;
  2746. *
  2747. * public class FinanceLeaseSourceDefaultExt implements IFinanceLeaseSourceInterface {
  2748. *
  2749. * public String getFormId() {
  2750. * return "fa_lease_contract";
  2751. * }
  2752. * }
  2753. * </pre></code>
  2754. * </p>
  2755. */
  2756. getFormId():string;
  2757. }
  2758. type IFinanceLeaseSourceInterface_T = IFinanceLeaseSourceInterface_S & IFinanceLeaseSourceInterface$;
  2759. interface IFinanceLeaseSourceInterface extends IFinanceLeaseSourceInterface_T {
  2760. }
  2761. interface IFinanceSourceReBuildInterface_S {
  2762. }
  2763. interface IFinanceSourceReBuildInterface$ {
  2764. /**
  2765. * 决策分析融资分析集团内财务公司数据和融资租赁数据源重新分组扩展接口
  2766. *
  2767. * @param sources DataSet[] 第一个DataSet是财务公司数据源,第二个DataSet是融资租赁分组的数据源
  2768. *
  2769. * @return DataSet[] 重新分组后结果,第一个是财务公司数据DataSet和第二个是融资租赁数据DataSet
  2770. *
  2771. * <p>默认扩展示例如下
  2772. * <pre><code>
  2773. *
  2774. * package kd.sdk.tmc.tda.extpoint.finance;
  2775. *
  2776. * import kd.bos.algo.DataSet;
  2777. *
  2778. * public class FinanceSourceReBuildDefaultExt implements IFinanceSourceReBuildInterface {
  2779. *
  2780. * public DataSet[] rebuildDataSet(DataSet[] sources) {
  2781. * //财务公司
  2782. * DataSet finComDataSet = sources[0];
  2783. * //融资租赁
  2784. * DataSet leaseDataSet = sources[1];
  2785. * //将财务公司中要移到招商租赁的数据分割出来 ("billno = '融资租赁单据标号'")这个条件现场自己根据业务写
  2786. * DataSet[] splitDataSet = finComDataSet.splitByFilter(new String[]{"billno = '融资租赁单据标号'"}, true);
  2787. * //分割出来的融资租赁数据
  2788. * DataSet leaseExtDataSet = splitDataSet[0];
  2789. * //分割后剩下的财务公司的数据
  2790. * DataSet newFinComDataSet = splitDataSet[1];
  2791. * //重新合并融资租赁数据
  2792. * DataSet newLeaseDataSet = leaseDataSet.union(leaseExtDataSet);
  2793. * return new DataSet[]{newFinComDataSet, newLeaseDataSet};
  2794. * }
  2795. * }
  2796. * </pre></code>
  2797. * </p>
  2798. */
  2799. rebuildDataSet(sources:$.kd.bos.algo.DataSet[]):$.kd.bos.algo.DataSet[];
  2800. }
  2801. type IFinanceSourceReBuildInterface_T = IFinanceSourceReBuildInterface_S & IFinanceSourceReBuildInterface$;
  2802. interface IFinanceSourceReBuildInterface extends IFinanceSourceReBuildInterface_T {
  2803. }
  2804. interface IFinanceDataFilter_S {
  2805. }
  2806. interface IFinanceDataFilter$ {
  2807. /**
  2808. * 决策分析融资统一取数过滤企业借款
  2809. *
  2810. * @return String dataset过滤条件
  2811. *
  2812. * <p>默认扩展示例如下
  2813. * <pre><code>
  2814. * package kd.tmc.tda.common.extpoint;
  2815. *
  2816. * import kd.sdk.tmc.tda.extpoint.finance.IFinanceDataFilter;
  2817. *
  2818. * public class FinanceDataExcludeCompany implements IFinanceDataFilter {
  2819. *
  2820. * public String getFilter() {
  2821. * return "financetype != 2";
  2822. * }
  2823. * }
  2824. * </pre></code>
  2825. * </p>
  2826. */
  2827. getFilter():string;
  2828. }
  2829. type IFinanceDataFilter_T = IFinanceDataFilter_S & IFinanceDataFilter$;
  2830. interface IFinanceDataFilter extends IFinanceDataFilter_T {
  2831. }
  2832. }
  2833. namespace kd.sdk.tmc.tda.extpoint.interloan{
  2834. interface IInterLoanDetailInterface_S {
  2835. }
  2836. interface IInterLoanDetailInterface$ {
  2837. /**
  2838. * 企业借贷明细报表列扩展
  2839. * 扩展报表列,其中fieldKey与明细DataSet中fieldname相对应;列名称为多语言文本;可根据需要设置列数据类型
  2840. *
  2841. * @param fieldColumns
  2842. * @return 扩展后的明细报表列
  2843. *
  2844. * <p>默认扩展示例如下
  2845. * <pre><code>
  2846. * package kd.sdk.tmc.tda.extpoint.interloan;
  2847. *
  2848. * import kd.bos.algo.DataSet;
  2849. * import kd.bos.algo.Row;
  2850. * import kd.bos.dataentity.resource.ResManager;
  2851. * import kd.bos.entity.report.ReportColumn;
  2852. * import kd.bos.orm.query.QCP;
  2853. * import kd.bos.orm.query.QFilter;
  2854. * import kd.bos.servicehelper.QueryServiceHelper;
  2855. *
  2856. * import java.util.HashSet;
  2857. * import java.util.List;
  2858. * import java.util.Map;
  2859. * import java.util.Set;
  2860. *
  2861. * public class InterLoanInterfaceDefaultExt implements IInterLoanDetailInterface {
  2862. *
  2863. * public List<Object[]> detailColumnItemsExt(List<Object[]> fieldColumns) {
  2864. * fieldColumns.add(new Object[]{"billno", ResManager.loadKDString("单据编号", "FinanceDetailDataListPlugin_1", "tmc-tda-report"), ReportColumn.TYPE_TEXT, false});
  2865. * fieldColumns.add(new Object[]{"contractno", ResManager.loadKDString("合同编号", "FinanceDetailDataListPlugin_2", "tmc-tda-report"), ReportColumn.TYPE_TEXT, false});
  2866. * return fieldColumns;
  2867. * }
  2868. * }
  2869. * </pre></code>
  2870. * </p>
  2871. */
  2872. detailColumnItemsExt?(fieldColumns:$.java.util.List):$.java.util.List;
  2873. /**
  2874. * @param dataSet
  2875. * @param paramMap
  2876. * @return
  2877. */
  2878. detailDataSetExt?(dataSet:$.kd.bos.algo.DataSet,paramMap:$.java.util.Map):$.kd.bos.algo.DataSet;
  2879. }
  2880. type IInterLoanDetailInterface_T = IInterLoanDetailInterface_S & IInterLoanDetailInterface$;
  2881. interface IInterLoanDetailInterface extends IInterLoanDetailInterface_T {
  2882. }
  2883. }
  2884. namespace kd.sdk.tmc.tda.extpoint.liquidity{
  2885. interface ILiquidityIndicatorDetailInterface_S {
  2886. }
  2887. interface ILiquidityIndicatorDetailInterface$ {
  2888. /**
  2889. * 增加的指标数据
  2890. *
  2891. * <p>默认扩展示例如下
  2892. * <pre><code>
  2893. * package kd.sdk.tmc.tda.extpoint.liquidity;
  2894. *
  2895. * public class ILiquidityIndicatorDetailInterfaceExt implements ILiquidityIndicatorDetailInterface {
  2896. * public List<Object[]> addColumns(List<Object[]> fields) {
  2897. * fields.add(new Object[]{"duesixmonthamt", ResManager.loadKDString("6个月内到期有息债务", "LiquidityIndicatorQingDataListPlugin_7", "tmc-tda-report"), QingFieldType.Number.toNumber(), false});
  2898. * fields.add(new Object[]{"fundduesixmthratio", ResManager.loadKDString("货币资金对6个月内到期债务覆盖倍数", "LiquidityIndicatorQingDataListPlugin_7", "tmc-tda-report"), QingFieldType.Number.toNumber(), false});
  2899. * fields.add(new Object[]{"duesixmonthratio", ResManager.loadKDString("6个月内到期债务占比", "LiquidityIndicatorQingDataListPlugin_7", "tmc-tda-report"), QingFieldType.Number.toNumber(), false});
  2900. * return fields;
  2901. * }
  2902. * }
  2903. * </pre></code>
  2904. * </p>
  2905. * @param fields
  2906. * @return
  2907. */
  2908. addColumns?(fields:$.java.util.List):$.java.util.List;
  2909. /**
  2910. * 流动性分析明细数据扩展-单位换算
  2911. * 需要切换单位的添加set
  2912. * @return String[]
  2913. *
  2914. * <p>默认扩展示例如下
  2915. * <pre><code>
  2916. * package kd.sdk.tmc.tda.extpoint.liquidity;
  2917. *
  2918. * public class ILiquidityIndicatorDetailInterfaceExt implements ILiquidityIndicatorDetailInterface {
  2919. *
  2920. * public Set<String> resetGetAmountFields(Set<String> set) {
  2921. * set.add("intfeeamt");
  2922. * return set;
  2923. * }
  2924. *
  2925. * }
  2926. * </pre></code>
  2927. * </p>
  2928. */
  2929. resetGetAmountFields(set_arg:$.java.util.Set):$.java.util.Set;
  2930. /**
  2931. * 流动性分析明细数据扩展-预处理防呆
  2932. * 扩展往set内添加扩展元素
  2933. * 此处格式化字段名称为resetIndicatorExpansion接口写入的扩展字段及别名
  2934. * @return set集合
  2935. *
  2936. * <p>默认扩展示例如下
  2937. * <pre><code>
  2938. * package kd.sdk.tmc.tda.extpoint.liquidity;
  2939. *
  2940. * import java.util.Set;
  2941. *
  2942. * public class ILiquidityIndicatorDetailInterfaceExt implements ILiquidityIndicatorDetailInterface {
  2943. *
  2944. * public Set<String> resetIndicatorCountZeroFields(Set<String> set) {
  2945. * set.add("intfeeamt");
  2946. * set.add("intfeeamtyear");
  2947. * set.add("intfeeamtmonth");
  2948. * return set;
  2949. * }
  2950. * }
  2951. * </pre></code>
  2952. * </p>
  2953. */
  2954. resetIndicatorCountZeroFields(set_arg:$.java.util.Set):$.java.util.Set;
  2955. /**
  2956. * 流动性分析明细数据扩展-扩展基础字段、同比、环比
  2957. * 扩展需要添加的位置
  2958. * 此处扩展字段,同比别名为:xxx+year,环比别名为:xxx+month
  2959. *
  2960. * @return String[]
  2961. *
  2962. * <p>默认扩展示例如下
  2963. * <pre><code>
  2964. * package kd.sdk.tmc.tda.extpoint.liquidity;
  2965. * import java.util.ArrayList;
  2966. * import java.util.Arrays;
  2967. * import java.util.List;
  2968. * import java.util.Map;
  2969. * import java.util.Set;
  2970. *
  2971. * public class ILiquidityIndicatorDetailInterfaceExt implements ILiquidityIndicatorDetailInterface {
  2972. *
  2973. * public Map<String, List<String>> resetIndicatorExpansion(Map<String,List<String>> liquidityMap){
  2974. * //扩展字段所需集合 无需更改
  2975. * List<String> extFieldList = liquidityMap.get("dataSets1");
  2976. * List<String> extFieldYear1List = liquidityMap.get("dataSetsYear1");
  2977. * List<String> extFieldYear2List = liquidityMap.get("dataSetsYear2");
  2978. * List<String> extFieldMonthList = liquidityMap.get("dataSetsMonth2");
  2979. *
  2980. * //扩展需要添加的位置 基础字段 以利息支出intfeeamt为例
  2981. * extFieldList.add("intfeeamt");
  2982. * //扩展同比 使用基础字段加别名的方式 别名为基础字段+year 以利息支出intfeeamt为例
  2983. * extFieldYear1List.add("intfeeamt intfeeamtyear");
  2984. * //扩展同比 基础字段 基础字段别名
  2985. * extFieldYear2List.add("intfeeamt");
  2986. * extFieldYear2List.add("intfeeamtyear");
  2987. * //扩展环比 使用基础字段加别名的方式 别名为基础字段+month
  2988. * extFieldMonthList.add("intfeeamt intfeeamtmonth");
  2989. *
  2990. * //扩展后重新赋值 无需更改
  2991. * liquidityMap.put("dataSets1",extFieldList);
  2992. * liquidityMap.put("dataSetsYear1",extFieldYear1List);
  2993. * liquidityMap.put("dataSetsYear2",extFieldYear2List);
  2994. * liquidityMap.put("dataSetsMonth2",extFieldMonthList);
  2995. *
  2996. * return liquidityMap;
  2997. * }
  2998. * }
  2999. * </pre></code>
  3000. * </p>
  3001. */
  3002. resetIndicatorExpansion(liquidityMap:$.java.util.Map):$.java.util.Map;
  3003. /**
  3004. * 流动性分析明细数据扩展-数值类型格式化
  3005. * 扩展往数组内添加扩展元素
  3006. * @return String[]
  3007. *
  3008. * <p>默认扩展示例如下
  3009. * <pre><code>
  3010. * package kd.sdk.tmc.tda.extpoint.liquidity;
  3011. *
  3012. * import java.util.ArrayList;
  3013. * import java.util.Arrays;
  3014. *
  3015. * public class ILiquidityIndicatorDetailInterfaceExt implements ILiquidityIndicatorDetailInterface {
  3016. *
  3017. * public String[] resetIndicatorFieldsBigFormat(String[] files) {
  3018. * List<String> strList= new ArrayList<>(Arrays.asList(files));
  3019. * //格式化基础字段
  3020. * strList.add("intfeeamt");
  3021. * return strList.toArray(new String[0]);
  3022. * }
  3023. * }
  3024. * </pre></code>
  3025. * </p>
  3026. */
  3027. resetIndicatorFieldsBigFormat(files:string[]):string[];
  3028. /**
  3029. * 流动性分析明细数据扩展-百分比格式化
  3030. * 扩展往数组内添加扩展元素
  3031. * 此处格式化字段名称为resetIndicatorExpansion接口写入的扩展字段及别名
  3032. * @return String[]
  3033. *
  3034. * <p>默认扩展示例如下
  3035. * <pre><code>
  3036. * package kd.sdk.tmc.tda.extpoint.liquidity;
  3037. *
  3038. * import java.util.ArrayList;
  3039. * import java.util.Arrays;
  3040. *
  3041. * public class ILiquidityIndicatorDetailInterfaceExt implements ILiquidityIndicatorDetailInterface {
  3042. *
  3043. * public String[] resetIndicatorFieldsSrFormat(String[] files) {
  3044. * List<String> strList= new ArrayList<>(Arrays.asList(files));
  3045. * //格式化同比环比
  3046. * strList.add("intfeeamtyear");
  3047. * strList.add("intfeeamtmonth");
  3048. * return strList.toArray(new String[0]);
  3049. * }
  3050. * }
  3051. * </pre></code>
  3052. * </p>
  3053. */
  3054. resetIndicatorFieldsSrFormat(files:string[]):string[];
  3055. /**
  3056. * 流动性分析明细数据扩展-扩展字段列
  3057. * 扩展往数组内添加扩展元素
  3058. * @return String[]
  3059. *
  3060. * <p>默认扩展示例如下
  3061. * <pre><code>
  3062. * package kd.sdk.tmc.tda.extpoint.liquidity;
  3063. *
  3064. * import java.util.ArrayList;
  3065. * import java.util.Arrays;
  3066. *
  3067. * public class ILiquidityIndicatorDetailInterfaceExt implements ILiquidityIndicatorDetailInterface {
  3068. *
  3069. * public String[] resetIndicatorFiles(String[] files) {
  3070. * List<String> strList = new ArrayList<>(Arrays.asList(files));
  3071. * //流动性指标明细扩展数值列
  3072. * strList.add("intfeeamt");
  3073. * return strList.toArray(new String[0]);
  3074. * }
  3075. * }
  3076. * </pre></code>
  3077. * </p>
  3078. */
  3079. resetIndicatorFiles(files:string[]):string[];
  3080. /**
  3081. * 流动性分析明细数据扩展-扩展列表查询拼接
  3082. * 扩展往数组内添加扩展元素
  3083. * @return String[]
  3084. *
  3085. * <p>默认扩展示例如下
  3086. * <pre><code>
  3087. * package kd.sdk.tmc.tda.extpoint.liquidity;
  3088. *
  3089. * public class ILiquidityIndicatorDetailInterfaceExt implements ILiquidityIndicatorDetailInterface {
  3090. *
  3091. * public String resetIndicatorStr(String files) {
  3092. * //扩展的基础字段select拼接
  3093. * files = files +", intfeeamt";
  3094. * return files;
  3095. * }
  3096. * }
  3097. * </pre></code>
  3098. * </p>
  3099. */
  3100. resetIndicatorStr(files:string):string;
  3101. }
  3102. type ILiquidityIndicatorDetailInterface_T = ILiquidityIndicatorDetailInterface_S & ILiquidityIndicatorDetailInterface$;
  3103. interface ILiquidityIndicatorDetailInterface extends ILiquidityIndicatorDetailInterface_T {
  3104. }
  3105. interface ILiquidityCalculateInterface_S {
  3106. }
  3107. interface ILiquidityCalculateInterface$ {
  3108. /**
  3109. * 增加的字段
  3110. *
  3111. * @return
  3112. *
  3113. * <p>默认扩展示例如下
  3114. * <pre><code>
  3115. * package kd.sdk.tmc.tda.extpoint.liquidity;
  3116. *
  3117. * import kd.bos.dataentity.entity.DynamicObject;
  3118. * import kd.sdk.tmc.tda.extpoint.liquidity.ILiquidityCalculateInterface;
  3119. *
  3120. * import java.math.BigDecimal;
  3121. * import java.math.RoundingMode;
  3122. *
  3123. * public class LiquidityCalculateDefaultExt implements ILiquidityCalculateInterface {
  3124. *
  3125. * public List<String> addSelectorFields(List<String> fields) {
  3126. * fields.add("duesixmonthamt");
  3127. * fields.add("fundduesixmthratio");
  3128. * fields.add("duesixmonthratio");
  3129. * return null;
  3130. * }
  3131. * }
  3132. * </pre></code>
  3133. * </p>
  3134. */
  3135. addSelectorFields?(fields:$.java.util.List):$.java.util.List;
  3136. /**
  3137. * 扩展的n个月内有息债务指标
  3138. * key:月份
  3139. * value:字段名(n个月内到期有息债务、n个月内到期债务占比、货币资金对n个月内到期债务覆盖倍数)
  3140. *
  3141. * <p>默认扩展示例如下
  3142. * <pre><code>
  3143. * package kd.sdk.tmc.tda.extpoint.liquidity;
  3144. *
  3145. * import kd.bos.dataentity.entity.DynamicObject;
  3146. * import kd.sdk.tmc.tda.extpoint.liquidity.ILiquidityCalculateInterface;
  3147. *
  3148. * import java.math.BigDecimal;
  3149. * import java.math.RoundingMode;
  3150. *
  3151. * public class LiquidityCalculateDefaultExt implements ILiquidityCalculateInterface {
  3152. *
  3153. * public Map<Integer, Map<String, String>> monthDebtExt() {
  3154. * Map<Integer, Map<String, String>> map = new HashMap<>();
  3155. * Map<String, String> monthMap = new HashMap<>();
  3156. * monthMap.put(LiquidityExtProp.MONTHDEBTAMT, "duesixmonthamt");
  3157. * monthMap.put(LiquidityExtProp.FUNDDUEMTHRATIO, "fundduesixmthratio");
  3158. * monthMap.put(LiquidityExtProp.DUEMONTHRATIO, "duesixmonthratio");
  3159. * map.put(6, monthMap);
  3160. * return map;
  3161. * }
  3162. * }
  3163. * </pre></code>
  3164. * </p>
  3165. */
  3166. monthDebtExt?():$.java.util.Map;
  3167. /**
  3168. * 重新设置流动性指标计算公式
  3169. *
  3170. * @return 流动性对象
  3171. *
  3172. * <p>默认扩展示例如下
  3173. * <pre><code>
  3174. * package kd.sdk.tmc.tda.extpoint.liquidity;
  3175. *
  3176. * import kd.bos.dataentity.entity.DynamicObject;
  3177. * import kd.sdk.tmc.tda.extpoint.liquidity.ILiquidityCalculateInterface;
  3178. *
  3179. * import java.math.BigDecimal;
  3180. * import java.math.RoundingMode;
  3181. *
  3182. * public class LiquidityCalculateDefaultExt implements ILiquidityCalculateInterface {
  3183. * private final int DEFAULT_SCALE = 10;
  3184. *
  3185. * public DynamicObject resetCalculationFormula(DynamicObject liquidityBill) {
  3186. * // 资产
  3187. * BigDecimal assetsAmt = liquidityBill.getBigDecimal(LiquidityBillProp.ASSETSAMT);
  3188. * // 负债
  3189. * BigDecimal debtAmt = liquidityBill.getBigDecimal(LiquidityBillProp.DEBTAMT);
  3190. * // 有息负债率 = 有息负债/负债
  3191. * BigDecimal intDebtRate = EmptyUtil.isEmpty(debtAmt) ? BigDecimal.ZERO : intDebtAmt.divide(debtAmt, DEFAULT_SCALE, RoundingMode.HALF_UP);
  3192. * liquidityBill.set(LiquidityBillProp.INTDEBTRATE, intDebtRate);
  3193. * return liquidityBill;
  3194. * }
  3195. * }
  3196. * </pre></code>
  3197. * </p>
  3198. */
  3199. resetCalculationFormula(liquidityBill:$.kd.bos.dataentity.entity.DynamicObject):$.kd.bos.dataentity.entity.DynamicObject;
  3200. }
  3201. type ILiquidityCalculateInterface_T = ILiquidityCalculateInterface_S & ILiquidityCalculateInterface$;
  3202. interface ILiquidityCalculateInterface extends ILiquidityCalculateInterface_T {
  3203. }
  3204. }
  3205. namespace kd.sdk.tmc.tda.extpoint.note{
  3206. interface IDraftBillDecisionRptInterface_S {
  3207. }
  3208. interface IDraftBillDecisionRptInterface$ {
  3209. /**
  3210. * 决策分析票据管理替换标准产品的票据实体
  3211. *
  3212. * @param entityName:源票据名称 应收票据:cdm_receivablebill; 应付票据:cdm_payablebill; 业务处理单据:cdm_drafttradebill
  3213. * @return 二开票据实体名称
  3214. *
  3215. * <p>默认扩展示例如下
  3216. * <pre><code>
  3217. * package kd.tmc.tda.report.note.extpoint;
  3218. *
  3219. * import kd.sdk.tmc.tda.extpoint.note.IDraftBillDecisionRptInterface;
  3220. * import kd.tmc.fbp.common.constant.TmcEntityConst;
  3221. *
  3222. * public class DraftBillDecisionRptDefaultExt implements IDraftBillDecisionRptInterface {
  3223. *
  3224. * public String getDraftBillEntityName(String entityName) {
  3225. * String draftBillEntityName = entityName == null ? "" : entityName;
  3226. * switch (draftBillEntityName) {
  3227. * case TmcEntityConst.CDM_RECEIVABLEBILL:
  3228. * // 收票登记
  3229. * draftBillEntityName = TmcEntityConst.CDM_RECEIVABLEBILL;
  3230. * break;
  3231. * case TmcEntityConst.CDM_PAYABLEBILL:
  3232. * // 开票登记
  3233. * draftBillEntityName = TmcEntityConst.CDM_PAYABLEBILL;
  3234. * break;
  3235. * case TmcEntityConst.CDM_DRAFTTRADEBILL:
  3236. * // 业务处理
  3237. * draftBillEntityName = TmcEntityConst.CDM_DRAFTTRADEBILL;
  3238. * break;
  3239. * default:
  3240. * }
  3241. * return draftBillEntityName;
  3242. * }
  3243. * }
  3244. *
  3245. * </pre></code>
  3246. * </p>
  3247. */
  3248. getDraftBillEntityName(entityName:string):string;
  3249. }
  3250. type IDraftBillDecisionRptInterface_T = IDraftBillDecisionRptInterface_S & IDraftBillDecisionRptInterface$;
  3251. interface IDraftBillDecisionRptInterface extends IDraftBillDecisionRptInterface_T {
  3252. }
  3253. }
  3254. namespace kd.sdk.tmc.tda.extpoint.settle{
  3255. interface IBigAmountDataInterface_S {
  3256. }
  3257. interface IBigAmountDataInterface$ {
  3258. /**
  3259. * 取交易明细数据自定义条件
  3260. *
  3261. * @return 自定义条件
  3262. *
  3263. * <p>默认扩展示例如下
  3264. * <pre><code>
  3265. * package kd.tmc.tda.mservice.settle.extpoint;
  3266. *
  3267. * import kd.bos.orm.query.QFilter;
  3268. * import kd.sdk.tmc.tda.extpoint.settle.IBigAmountDataInterface;
  3269. *
  3270. * public class BigAmountDataDefaultExt implements IBigAmountDataInterface {
  3271. *
  3272. * public QFilter getExtendFilter() {
  3273. * // 返回自定义的QFilter
  3274. * return QFilter.of("1=1");
  3275. * }
  3276. * }
  3277. * </pre></code>
  3278. * </p>
  3279. */
  3280. getExtendFilter():$.kd.bos.orm.query.QFilter;
  3281. }
  3282. type IBigAmountDataInterface_T = IBigAmountDataInterface_S & IBigAmountDataInterface$;
  3283. interface IBigAmountDataInterface extends IBigAmountDataInterface_T {
  3284. }
  3285. }
  3286. namespace kd.sdk.tmc.tda.extpoint.synthesis{
  3287. interface ISynthesisLoadDataInterface_S {
  3288. }
  3289. interface ISynthesisLoadDataInterface$ {
  3290. /**
  3291. * 综合分析项目名称二开扩展
  3292. *
  3293. * @param projectValue
  3294. * @return 修改后的项目名称
  3295. * FD: 货币资金
  3296. * PR: 收益率(年化)
  3297. * IDA: 对外有息负债
  3298. * FC: 融资成本(年化)
  3299. * NA: 净资产
  3300. * EA: 其中:权益工具
  3301. * ADR: 资产负债率
  3302. * IDR: 有息负债率
  3303. * IDER: 有息负债率(含权益工具)
  3304. *
  3305. * <p>默认扩展示例如下
  3306. * <pre><code>
  3307. * package kd.tmc.tda.mservice.synthesis.extpoint;
  3308. *
  3309. * import kd.sdk.tmc.tda.extpoint.synthesis.ISynthesisLoadDataInterface;
  3310. *
  3311. * public class SynthesisLoadDataDefaultExt implements ISynthesisLoadDataInterface {
  3312. *
  3313. * public String getExtendProjectName(String projectValue) {
  3314. * // 修改后的名称,ProjectNameEnum需自己实现
  3315. * return ProjectNameEnum.getName(projectValue);
  3316. * }
  3317. * }
  3318. * </pre></code>
  3319. * </p>
  3320. */
  3321. getExtendProjectName(projectValue:string):string;
  3322. }
  3323. type ISynthesisLoadDataInterface_T = ISynthesisLoadDataInterface_S & ISynthesisLoadDataInterface$;
  3324. interface ISynthesisLoadDataInterface extends ISynthesisLoadDataInterface_T {
  3325. }
  3326. }
  3327. namespace kd.sdk.tmc.tda.extpoint.transdetail{
  3328. interface ITransDetailGetDataInterface_S {
  3329. }
  3330. interface ITransDetailGetDataInterface$ {
  3331. /**
  3332. * 查询交易明细自定义条件
  3333. *
  3334. * @return 自定义条件
  3335. *
  3336. * <p>默认扩展示例如下
  3337. * <pre><code>
  3338. * package kd.tmc.tda.mservice.detail.extpoint;
  3339. *
  3340. * import kd.bos.orm.query.QFilter;
  3341. * import kd.sdk.tmc.tda.extpoint.transdetail.ITransDetailGetDataInterface;
  3342. *
  3343. * public class TransDetailGetDataDefaultExt implements ITransDetailGetDataInterface {
  3344. *
  3345. * public QFilter getExtendFilter() {
  3346. * // 返回自定义的QFilter
  3347. * return QFilter.of("1=1");
  3348. * }
  3349. * }
  3350. * </pre></code>
  3351. * </p>
  3352. */
  3353. getExtendFilter():$.kd.bos.orm.query.QFilter;
  3354. }
  3355. type ITransDetailGetDataInterface_T = ITransDetailGetDataInterface_S & ITransDetailGetDataInterface$;
  3356. interface ITransDetailGetDataInterface extends ITransDetailGetDataInterface_T {
  3357. }
  3358. }
  3359. namespace kd.sdk.tmc.tm.businessbill.extpoint{
  3360. interface IBizBillPayAmtValidateExtService_S {
  3361. }
  3362. interface IBizBillPayAmtValidateExtService$ {
  3363. /**
  3364. * 返回生命周期的属性二开增加的字段,标品拉到这些字段后会询到生命周期对象里以便于后续使用
  3365. *
  3366. * @return
  3367. */
  3368. getSourceBillExtProps?():$.java.util.List;
  3369. /**
  3370. * 扩展点校验, 若校验不通过,可以直接抛出KDBizException异常提示相关错误 或 ValidateResult.failure("失败原因")
  3371. * 若正常返回后需要继续按标品的校验逻辑进行校验则设置ValidateResult.continueStandardCheck = true 直接用 ValidateResult.success(true)
  3372. * 否则设置ValidateResult.continueStandardCheck=false直接用ValidateResult.success(false)
  3373. *
  3374. * @param sourceBill 生命周期单,注意该参数没有保护所有属性,需要的属性找不到可以通过id从查或是 实现 getSourceBillExtProps()返回需要的属性标配会将返回属性加到此参数
  3375. * @param payBillWbParam 由标品传递给扩展接口付款单信息参数,通过它可获取付款单传递过来的基本信息,注意此时可能付款单尚未保存到数据库中-即通过付款单id查库可能查不到(这种情况通常是付款单第一次保存之前的校验)
  3376. */
  3377. validate(sourceBill:$.kd.bos.dataentity.entity.DynamicObject,payBillWbParam:kd.sdk.tmc.tm.businessbill.extpoint.bean.PayBillWbParam):kd.sdk.tmc.tm.businessbill.extpoint.bean.ValidateResult;
  3378. }
  3379. type IBizBillPayAmtValidateExtService_T = IBizBillPayAmtValidateExtService_S & IBizBillPayAmtValidateExtService$;
  3380. interface IBizBillPayAmtValidateExtService extends IBizBillPayAmtValidateExtService_T {
  3381. }
  3382. }
  3383. namespace kd.sdk.tmc.tm.businessbill.extpoint.bean{
  3384. interface ValidateResult_S {
  3385. /**
  3386. * 校验不通过,给出原因/错误信息,该错误信息将会抛到付款单的失败提示给用户
  3387. * @param errorMsg
  3388. * @return
  3389. */
  3390. failure(errorMsg:string):ValidateResult;
  3391. /**
  3392. * @param continueCheck 是否需要继续走标品的校验逻辑,为true即继续走标品的完整校验逻辑
  3393. * @return
  3394. */
  3395. success(continueCheck:boolean):ValidateResult;
  3396. }
  3397. type ValidateResult_ST = $.java.io.Serializable & ValidateResult_S;
  3398. interface ValidateResult_C extends ValidateResult_ST {
  3399. new(valid:boolean,continueCheck:boolean,errorMsg:string):ValidateResult;
  3400. }
  3401. interface ValidateResult$ {
  3402. getErrorMsg():string;
  3403. isContinueStandardCheck():boolean;
  3404. isValid():boolean;
  3405. }
  3406. type ValidateResult_T = $.java.io.Serializable & ValidateResult_S & ValidateResult$;
  3407. interface ValidateResult extends ValidateResult_T {
  3408. }
  3409. interface PayBillWbParam_S {
  3410. }
  3411. interface PayBillWbParam_C extends PayBillWbParam_S {
  3412. new():PayBillWbParam;
  3413. }
  3414. interface PayBillWbParam$ {
  3415. getActPayAmt():$.java.math.BigDecimal;
  3416. getCurrencyId():long;
  3417. getOperate():string;
  3418. getPayBillId():long;
  3419. getSettleTag():string;
  3420. isDiffCur():boolean;
  3421. setActPayAmt(actPayAmt:$.java.math.BigDecimal):void;
  3422. setCurrencyId(currencyId:long):void;
  3423. setDiffCur(diffCur:boolean):void;
  3424. setOperate(operate:string):void;
  3425. setPayBillId(payBillId:long):void;
  3426. setSettleTag(settleTag:string):void;
  3427. }
  3428. type PayBillWbParam_T = PayBillWbParam_S & PayBillWbParam$;
  3429. interface PayBillWbParam extends PayBillWbParam_T {
  3430. }
  3431. }
  3432. namespace kd.sdk.tmc.tm.forex.extpoint{
  3433. interface IAutoSetExchangeRateDevService_S {
  3434. }
  3435. interface IAutoSetExchangeRateDevService$ {
  3436. /**
  3437. * 是否需要程序自动获取汇率(外汇即期、外汇远期、外汇掉期交易执行单)
  3438. *
  3439. * <p>扩展示例如下<p/>
  3440. * <pre>
  3441. * <code>
  3442. * public class AutoSetExchangeRateDevServiceImpl implements IAutoSetExchangeRateDevService {
  3443. * @Override
  3444. * public void isAutoSetExchangeRate() {
  3445. * // 如果不需要程序自动获取汇率而是用户手录汇率,则返回false
  3446. * return false;
  3447. * }
  3448. * }
  3449. * </code>
  3450. * </pre>
  3451. */
  3452. isAutoSetExchangeRate?():boolean;
  3453. }
  3454. type IAutoSetExchangeRateDevService_T = IAutoSetExchangeRateDevService_S & IAutoSetExchangeRateDevService$;
  3455. interface IAutoSetExchangeRateDevService extends IAutoSetExchangeRateDevService_T {
  3456. }
  3457. interface IForexWbExcludeStatusExtService_S {
  3458. }
  3459. interface IForexWbExcludeStatusExtService$ {
  3460. /**
  3461. * 外汇单据的废弃状态的集合
  3462. *
  3463. * <p>扩展示例如下<p/>
  3464. * <pre>
  3465. * <code>
  3466. * public class ForexWbExcludeStatusExtServiceImpl implements IForexWbExcludeStatusExtService {
  3467. * @Override
  3468. * public List<String> getExcludeStatus() {
  3469. * List<String> list = new ArrayList<>(1);
  3470. * list.add("abandoned");// 废弃的(现场二开billstatus增加了状态:已废弃/abandoned)
  3471. * return list;
  3472. * }
  3473. * }
  3474. * </code>
  3475. * </pre>
  3476. */
  3477. getExcludeStatus?():$.java.util.List;
  3478. }
  3479. type IForexWbExcludeStatusExtService_T = IForexWbExcludeStatusExtService_S & IForexWbExcludeStatusExtService$;
  3480. interface IForexWbExcludeStatusExtService extends IForexWbExcludeStatusExtService_T {
  3481. }
  3482. }
  3483. namespace kd.sdk.tmc.tm.init.forexfwd{
  3484. interface IForexFwdInit2TradeSecondDevService_S {
  3485. }
  3486. interface IForexFwdInit2TradeSecondDevService$ {
  3487. /**
  3488. * 外汇远期初始化单据的二开字段=>外汇远期单据
  3489. *
  3490. * @param initBill 初始化单据
  3491. * @param forexFwdBill 外汇远期单据
  3492. */
  3493. process?(initBill:$.kd.bos.dataentity.entity.DynamicObject,forexFwdBill:$.kd.bos.dataentity.entity.DynamicObject):void;
  3494. }
  3495. type IForexFwdInit2TradeSecondDevService_T = IForexFwdInit2TradeSecondDevService_S & IForexFwdInit2TradeSecondDevService$;
  3496. interface IForexFwdInit2TradeSecondDevService extends IForexFwdInit2TradeSecondDevService_T {
  3497. }
  3498. interface IForexFwdInit2BizBillSecondDevService_S {
  3499. }
  3500. interface IForexFwdInit2BizBillSecondDevService$ {
  3501. /**
  3502. * 外汇远期初始化单据的二开字段=>生命周期操作单
  3503. *
  3504. * @param initBill 初始化单据
  3505. * @param entryRow 初始化单据.生命周期信息.分录行
  3506. * @param BizBill 生命周期操作单据
  3507. */
  3508. process?(initBill:$.kd.bos.dataentity.entity.DynamicObject,entryRow:$.kd.bos.dataentity.entity.DynamicObject,BizBill:$.kd.bos.dataentity.entity.DynamicObject):void;
  3509. }
  3510. type IForexFwdInit2BizBillSecondDevService_T = IForexFwdInit2BizBillSecondDevService_S & IForexFwdInit2BizBillSecondDevService$;
  3511. interface IForexFwdInit2BizBillSecondDevService extends IForexFwdInit2BizBillSecondDevService_T {
  3512. }
  3513. }
  3514. namespace kd.sdk.tmc.tm.plinfo.extpoint{
  3515. interface IPlInfoDevService_S {
  3516. }
  3517. interface IPlInfoDevService$ {
  3518. /**
  3519. * (外汇类交易/利率类交易/结构化产品)“交易确认”操作或货币互换“买入结算”操作生成损益时支持二开字段带到损益信息单的扩展插件
  3520. *
  3521. * @param plInfo 损益信息单据
  3522. * @param tradeBill 交易单据
  3523. * <p>扩展示例如下<p/>
  3524. * <pre>
  3525. * <code>
  3526. * public class PlInfoDevServiceImpl implements IPlInfoDevService {
  3527. * @Override
  3528. * public void process(DynamicObject plInfo, DynamicObject tradeBill) {
  3529. * ...
  3530. * }
  3531. * }
  3532. * </code>
  3533. * </pre>
  3534. */
  3535. process?(plInfo:$.kd.bos.dataentity.entity.DynamicObject,tradeBill:$.kd.bos.dataentity.entity.DynamicObject):void;
  3536. }
  3537. type IPlInfoDevService_T = IPlInfoDevService_S & IPlInfoDevService$;
  3538. interface IPlInfoDevService extends IPlInfoDevService_T {
  3539. }
  3540. }
  3541. namespace kd.sdk.tmc.tm.swaps.extpoint{
  3542. interface IFixedInterestRateAllowZeroDevService_S {
  3543. }
  3544. interface IFixedInterestRateAllowZeroDevService$ {
  3545. /**
  3546. * 互换交易的支付方和收取方的固定利率是否允许为0
  3547. *
  3548. * <p>扩展示例如下<p/>
  3549. * <pre>
  3550. * <code>
  3551. * public class FixedInterestRateAllowZeroDevServiceImpl implements IFixedInterestRateAllowZeroDevService {
  3552. * @Override
  3553. * public void isFixedInterestRateAllowZero() {
  3554. * return true;// 支付方和收取方的固定利率允许为0,返回true
  3555. * }
  3556. * }
  3557. * </code>
  3558. * </pre>
  3559. */
  3560. isFixedInterestRateAllowZero?():boolean;
  3561. }
  3562. type IFixedInterestRateAllowZeroDevService_T = IFixedInterestRateAllowZeroDevService_S & IFixedInterestRateAllowZeroDevService$;
  3563. interface IFixedInterestRateAllowZeroDevService extends IFixedInterestRateAllowZeroDevService_T {
  3564. }
  3565. }
  3566. namespace kd.sdk.tmc.tmbrm.extpoint{
  3567. interface IFinOrgArchivesAssociatedBillInterface_S {
  3568. }
  3569. interface IFinOrgArchivesAssociatedBillInterface$ {
  3570. /**
  3571. * 关联业务单据过滤条件拓展
  3572. * @param associatedOrg 关联组织
  3573. * @return key-关联业务单据实体标识,value-单据过滤条件
  3574. */
  3575. getBillQFilter(associatedOrg:$.kd.bos.dataentity.entity.DynamicObject):$.java.util.Map;
  3576. /**
  3577. * 关联业务单据类型拓展
  3578. * @return 关联业务单据实体标识集合
  3579. */
  3580. getBillType():$.java.util.List;
  3581. }
  3582. type IFinOrgArchivesAssociatedBillInterface_T = IFinOrgArchivesAssociatedBillInterface_S & IFinOrgArchivesAssociatedBillInterface$;
  3583. interface IFinOrgArchivesAssociatedBillInterface extends IFinOrgArchivesAssociatedBillInterface_T {
  3584. }
  3585. }
  3586. }
  3587. }
  3588. export {};