CN107688924A - Accreditation method, apparatus and computer-readable recording medium - Google Patents

Accreditation method, apparatus and computer-readable recording medium Download PDF

Info

Publication number
CN107688924A
CN107688924A CN201710497344.1A CN201710497344A CN107688924A CN 107688924 A CN107688924 A CN 107688924A CN 201710497344 A CN201710497344 A CN 201710497344A CN 107688924 A CN107688924 A CN 107688924A
Authority
CN
China
Prior art keywords
accreditation
logic
service
type
abstract class
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710497344.1A
Other languages
Chinese (zh)
Inventor
赵益佩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201710497344.1A priority Critical patent/CN107688924A/en
Priority to PCT/CN2017/111642 priority patent/WO2019000800A1/en
Publication of CN107688924A publication Critical patent/CN107688924A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Human Resources & Organizations (AREA)
  • Strategic Management (AREA)
  • Software Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Operations Research (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • Quality & Reliability (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • Data Mining & Analysis (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a kind of accreditation method, this method includes:Accreditation abstract class and accreditation flow generic logic are defined, and the method for realizing the accreditation flow generic logic is write in the accreditation abstract class, wherein, the accreditation flow generic logic is used for the general accreditation flow for characterizing different service types;In the accreditation task start of a certain type of service, the accreditation abstract class is inherited in the accreditation logic of the type of service, to include the accreditation flow generic logic in the accreditation logic of the type of service;It is used to realize that the method for the accreditation flow generic logic carries out the accreditation of the type of service according in the accreditation abstract class of succession.The invention also discloses a kind of accreditation device and a kind of computer-readable recording medium.The present invention can solve the problem that for Added Business type developer repeats to write bulk redundancy code logic, not only takes time and effort, and later stage code maintenance also more difficult technical problem.

Description

Accreditation method, apparatus and computer-readable recording medium
Technical field
The present invention relates to field of computer technology, more particularly to accreditation method, apparatus and computer-readable recording medium.
Background technology
With the development of informatized office work technology, electronic voucher is more and more common, and for different types of service, its is right The voucher answered also is not quite similar.
Accreditation, that is, make electronic voucher.At present, a kind of business is often increased newly, developer needs to be based on the Added Business Type completes a series of writing for accreditation flow logic codes, however, for different types of service, many accreditation flow logics Code is similar in fact, for example, for paying the bill, collecting money, financial category voucher, its accreditation flow logic code such as transfer accounts typically wrap The logics such as business datum pretreatment, business datum acquisition, business datum inspection, accreditation, abnormality processing are included, for Added Business class Type, developer repeat to write bulk redundancy code logic, not only taken time and effort, and later stage code maintenance is also more difficult.
The content of the invention
It is a primary object of the present invention to propose a kind of accreditation method, apparatus and computer-readable recording medium, it is intended to solve Certainly for Added Business type, developer is repeated to write bulk redundancy code logic, not only takes time and effort, and later stage code is tieed up Protect also more difficult technical problem.
To achieve the above object, the present invention provides a kind of accreditation method, and the accreditation method comprises the following steps:
Accreditation abstract class and accreditation flow generic logic are defined, and is write in the accreditation abstract class described for realizing The method of accreditation flow generic logic, wherein, the accreditation flow generic logic is used for the general system for characterizing different service types Demonstrate,prove flow;
In the accreditation task start of a certain type of service, the accreditation is inherited in the accreditation logic of the type of service Abstract class, to include the accreditation flow generic logic in the accreditation logic of the type of service;
It is used to realize that the method for the accreditation flow generic logic is entered according in the accreditation abstract class of succession The accreditation of the row type of service.
Alternatively, in the accreditation abstract class according to succession described in be used to realize that the accreditation flow is general and patrol The step of accreditation for the method progress type of service collected, includes:
The method for being used to realize the accreditation flow generic logic according in the accreditation abstract class of succession is right The business datum of the type of service carries out Classifying Sum, and Classifying Sum table is generated according to Classifying Sum result;
The combined data of preset kind is obtained from the Classifying Sum table, and financial affair work is carried out to the combined data Consistency check;
When the inspection passes through, the accreditation of the type of service is carried out according to the combined data.
Alternatively, the combined data that preset kind is obtained from the Classifying Sum table, and to the combined data After the step of carrying out financial affair work consistency check, in addition to:
When it is described check it is obstructed out-of-date, terminate the accreditation process of the type of service, and corresponding abnormal information is preserved Into error message log sheet;
Realize that the abnormal information preserved in the error message log sheet is uniformly processed class by accreditation.
Alternatively, the accreditation method also includes:
The rewritten instructions of user are received, are used to realize according to rewriteeing in the accreditation abstract class rewritten instructions The method of the accreditation flow generic logic.
Alternatively, the accreditation flow generic logic includes business datum pretreatment logic, business datum obtains logic, industry Business data checker logic and accreditation logic.
In addition, to achieve the above object, the present invention also provides a kind of accreditation device, and the accreditation device includes:Memory, Processor and the accreditation program that can be run on the memory and on the processor is stored in, the accreditation program is described Following steps are realized during computing device:
Accreditation abstract class and accreditation flow generic logic are defined, and is write in the accreditation abstract class described for realizing The method of accreditation flow generic logic;
In the accreditation task start of a certain type of service, the accreditation is inherited in the accreditation logic of the type of service Abstract class;
It is used to realize that the method for the accreditation flow generic logic is entered according in the accreditation abstract class of succession The accreditation of the row type of service.
Alternatively, the accreditation program by the computing device when also realize following steps:
The method for being used to realize the accreditation flow generic logic according in the accreditation abstract class of succession is right The business datum of the type of service carries out Classifying Sum, and Classifying Sum table is generated according to Classifying Sum result;
The combined data of preset kind is obtained from the Classifying Sum table, and financial affair work is carried out to the combined data Consistency check;
When the inspection passes through, the accreditation of the type of service is carried out according to the combined data.
Alternatively, the accreditation program by the computing device when also realize following steps:
When it is described check it is obstructed out-of-date, terminate the accreditation process of the type of service, and corresponding abnormal information is preserved Into error message log sheet;
Realize that the abnormal information preserved in the error message log sheet is uniformly processed class by accreditation.
Alternatively, the accreditation program by the computing device when also realize following steps:
The rewritten instructions of user are received, are used to realize according to rewriteeing in the accreditation abstract class rewritten instructions The method of the accreditation flow generic logic.
In addition, to achieve the above object, the present invention also provides a kind of computer-readable recording medium, described computer-readable Accreditation program is stored with storage medium, the accreditation program realizes the step of accreditation method as described above when being executed by processor Suddenly.
The present invention defines accreditation abstract class and accreditation flow generic logic, and is write in the accreditation abstract class for real The method of the existing accreditation flow generic logic, wherein, the accreditation flow generic logic is used to characterize different service types General accreditation flow;In the accreditation task start of a certain type of service, institute is inherited in the accreditation logic of the type of service Accreditation abstract class is stated, to include the accreditation flow generic logic in the accreditation logic of the type of service;According to after The method for being used to realize the accreditation flow generic logic in the accreditation abstract class held carries out the type of service Accreditation.By the above-mentioned means, the present invention writes accreditation flow generic logic in the method for accreditation abstract class, in newly-increased one kind During business, developer is not necessarily based on the Added Business type and completes a series of writing for accreditation flow logic codes, and only needs Card abstract class is manufactured in the accreditation logic relaying of the Added Business type, so as to which developer is without being directed to different types of service Bulk redundancy code logic is write in repetition, greatlys save the construction cycle of accreditation logic, and later stage code maintenance is also more square Just.
Brief description of the drawings
Fig. 1 is the terminal structure schematic diagram for the hardware running environment that scheme of the embodiment of the present invention is related to;
Fig. 2 is the schematic flow sheet of accreditation method first embodiment of the present invention;
Fig. 3 is the schematic flow sheet of accreditation method second embodiment of the present invention;
Fig. 4 is the schematic flow sheet of accreditation method 3rd embodiment of the present invention.
The realization, functional characteristics and advantage of the object of the invention will be described further referring to the drawings in conjunction with the embodiments.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The primary solutions of the embodiment of the present invention are:Accreditation abstract class and accreditation flow generic logic are defined, and in institute The method write in accreditation abstract class for realizing the accreditation flow generic logic is stated, wherein, the accreditation flow is general to patrol Collect the general accreditation flow for being used for characterizing different service types;In the accreditation task start of a certain type of service, in the industry The accreditation abstract class is inherited in the accreditation logic of service type, it is described to include in the accreditation logic of the type of service Accreditation flow generic logic;It is used to realize the accreditation flow generic logic according in the accreditation abstract class of succession Method carry out the accreditation of the type of service.
In the prior art, a kind of business is often increased newly, developer needs to complete a series of systems based on the Added Business type Card flow logic code is write, however, for different types of service, many accreditation flow logic codes are similar in fact , for example, for paying the bill, collecting money, financial category voucher, its accreditation flow logic code such as transfer accounts generally comprise business datum and located in advance The logics such as reason, business datum acquisition, business datum inspection, accreditation, abnormality processing, for Added Business type, developer's weight Bulk redundancy code logic is write again, is not only taken time and effort, and later stage code maintenance is also more difficult.
The present invention writes accreditation flow generic logic in the method for accreditation abstract class, when increasing a kind of business newly, exploitation Personnel are not necessarily based on the Added Business type and complete a series of writing for accreditation flow logic codes, and only need to be in the Added Business The accreditation logic relaying of type manufactures card abstract class, so as to which developer is a large amount of without be write for different type of service repetitions Redundant code logic, the construction cycle of accreditation logic is greatlyd save, and later stage code maintenance is also more convenient.
The present invention provides a kind of accreditation method.
As shown in figure 1, Fig. 1 is the terminal structure schematic diagram for the hardware running environment that scheme of the embodiment of the present invention is related to.
Terminal of the embodiment of the present invention can be PC or smart mobile phone, tablet personal computer, pocket computer etc. with aobvious Show the packaged type terminal device of function.
As shown in figure 1, the terminal can include:Processor 1001, such as CPU, network interface 1004, user interface 1003, memory 1005, communication bus 1002.Wherein, communication bus 1002 is used to realize the connection communication between these components. User interface 1003 can include display screen (Display), input block such as keyboard (Keyboard), optional user interface 1003 can also include wireline interface, the wave point of standard.Network interface 1004 can optionally connect including the wired of standard Mouth, wave point (such as WI-FI interfaces).Memory 1005 can be high-speed RAM memory or stable memory (non-volatile memory), such as magnetic disk storage.Memory 1005 optionally can also be independently of aforementioned processor 1001 storage device.
Alternatively, terminal can also include camera, RF (Radio Frequency, radio frequency) circuit, sensor, audio Circuit, WiFi module etc..Wherein, sensor ratio such as optical sensor, motion sensor and other sensors.Specifically, light Sensor may include ambient light sensor and proximity transducer, wherein, ambient light sensor can according to the light and shade of ambient light come The brightness of display screen is adjusted, proximity transducer can close display screen and/or backlight when mobile terminal is moved in one's ear.As One kind of motion sensor, gravity accelerometer can detect in all directions the size of (generally three axles) acceleration, quiet Size and the direction of gravity are can detect that when only, the application available for identification mobile terminal posture is (such as horizontal/vertical screen switching, related Game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;Certainly, mobile terminal can also match somebody with somebody The other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared ray sensor are put, will not be repeated here.
It will be understood by those skilled in the art that the restriction of the terminal structure shown in Fig. 1 not structure paired terminal, can be wrapped Include than illustrating more or less parts, either combine some parts or different parts arrangement.
As shown in figure 1, it can lead to as in a kind of memory 1005 of computer-readable storage medium including operating system, network Believe module, Subscriber Interface Module SIM and accreditation program.
In the terminal shown in Fig. 1, network interface 1004 is mainly used in connecting background server, is carried out with background server Data communicate;User interface 1003 is mainly used in connecting client (user terminal), enters row data communication with client;And processor 1001 can be used for calling the accreditation program stored in memory 1005, and perform following operate:
Accreditation abstract class and accreditation flow generic logic are defined, and is write in the accreditation abstract class described for realizing The method of accreditation flow generic logic, wherein, the accreditation flow generic logic is used for the general system for characterizing different service types Demonstrate,prove flow;
In the accreditation task start of a certain type of service, the accreditation is inherited in the accreditation logic of the type of service Abstract class, to include the accreditation flow generic logic in the accreditation logic of the type of service;
It is used to realize that the method for the accreditation flow generic logic is entered according in the accreditation abstract class of succession The accreditation of the row type of service.
Further, processor 1001 can call the accreditation program stored in memory 1005, also perform following operate:
The method for being used to realize the accreditation flow generic logic according in the accreditation abstract class of succession is right The business datum of the type of service carries out Classifying Sum, and Classifying Sum table is generated according to Classifying Sum result;
The combined data of preset kind is obtained from the Classifying Sum table, and financial affair work is carried out to the combined data Consistency check;
When the inspection passes through, the accreditation of the type of service is carried out according to the combined data.
Further, processor 1001 can call the accreditation program stored in memory 1005, also perform following operate:
When it is described check it is obstructed out-of-date, terminate the accreditation process of the type of service, and corresponding abnormal information is preserved Into error message log sheet;
Realize that the abnormal information preserved in the error message log sheet is uniformly processed class by accreditation.
Further, processor 1001 can call the accreditation program stored in memory 1005, also perform following operate:
The rewritten instructions of user are received, are used to realize according to rewriteeing in the accreditation abstract class rewritten instructions The method of the accreditation flow generic logic.
Further, the accreditation flow generic logic includes business datum pretreatment logic, business datum obtains logic, Business datum checks logical sum accreditation logic.
Based on above-mentioned hardware configuration, each embodiment of accreditation method of the present invention is proposed.
Reference picture 2, Fig. 2 are the schematic flow sheet of accreditation method first embodiment of the present invention, and methods described includes:
Step S10, accreditation abstract class and accreditation flow generic logic are defined, and write and be used in the accreditation abstract class The method for realizing the accreditation flow generic logic, wherein, the accreditation flow generic logic is used to characterize different service types General accreditation flow;
The present embodiment can realize the making of different types of business voucher by operation system.First, operation system exists When receiving the exploitation instruction of accreditation program, accreditation abstract class and accreditation stream are defined according to accreditation program development instruction in systems Journey generic logic, and write in accreditation abstract class the method for realizing accreditation flow generic logic.So-called abstract class, it is to use Come characterize problem domain is analyzed, design in the abstract concept that draws, be to look different to a series of, but substantially Identical concrete concept is abstracted.In this embodiment, abstract class and generic logic are defined for accreditation process, is by different business Accreditation process abstracted.
The accreditation abstract class of the present embodiment includes being used for the method for realizing accreditation flow generic logic, wherein, the system Card flow generic logic is used for the general accreditation flow for characterizing different service types.Accreditation task for different service types, For example business, its general accreditation flow such as pay the bill, collect money, transferring accounts can be abstracted as:Business datum pretreatment, business datum obtain Take, business datum inspection, accreditation, thus in this embodiment, accreditation flow generic logic can include:Business datum pretreatment is patrolled Collect, business datum obtains logic, business datum checks logical sum accreditation logic.In addition, for a certain type of service, its accreditation is patrolled Collect and mutually decoupled with exception handling logic, accreditation abstract class is inherited in accreditation logic, and exception handling logic is then included in and realized In class, by realizing that abnormal conditions are uniformly processed class.
Certainly, accreditation flow generic logic can not also be defined in the manner described above, such as, it can also be defined as only Including:Business datum pretreatment logic, business datum obtain logical sum accreditation logic, can be according to different business in specific implementation Accreditation flow is flexibly set.
Step S20, in the accreditation task start of a certain type of service, inherited in the accreditation logic of the type of service The accreditation abstract class, to include the accreditation flow generic logic in the accreditation logic of the type of service;
In the present embodiment, accreditation task, such as timing daily can be triggered by the timed task on operation system backstage Or it is separated by preset duration and starts accreditation task, naturally it is also possible to the accreditation instruction triggers accreditation task inputted by business personnel; When starting accreditation task every time, operation system creates a task daily record table, and the task daily record table is used to record this accreditation Tasks carrying situation.
Because for different types of service, many accreditation flow logic codes are similar in fact, for example, for payment, The different types of service such as collect money, transfer accounts, its accreditation flow logic code generally comprises business datum pretreatment, business datum obtains Take, business datum inspection, accreditation, the logic such as abnormality processing, therefore in the accreditation task start of a certain type, operation system can To generate the accreditation logic of the type of service according to the abstract class of definition, and because abstract class is unable to instance object, therefore take out As class must could be used by inheriting.
In the accreditation task start of a certain type, card abstract class is manufactured in the accreditation logic relaying of the type of service, with So that include accreditation flow generic logic in the accreditation logic of type of service.To pay the bill, collect money, the financial category business system such as transfer accounts Illustrated exemplified by card, manufacturing card abstract class in the accreditation logic relaying of financial category business specifically includes:In financial affair work accreditation During task start, the automatic generation for triggering financial affair work accreditation logic, the financial affair work accreditation logic is abstracted by inheriting accreditation Class, so as to which the accreditation flow generic logic in accreditation abstract class to be applied to the accreditation process of financial affair work, i.e., financial industry The accreditation flow logic and accreditation flow generic logic of business are consistent, including:Business datum pretreatment logic, business datum obtain Logic, business datum is taken to check logical sum accreditation logic.
Step S30, it is used to realize the accreditation flow generic logic according in the accreditation abstract class of succession Method carry out the accreditation of the type of service.
After the accreditation logic relaying of above-mentioned type of service manufactures card abstract class, operation system is the accreditation according to succession It is used to realize that the method for accreditation flow generic logic to carry out the accreditation of the type of service in abstract class.
In the present embodiment, the main design idea for making electronic voucher is:When economic work occurs, business personnel will Document information input database, document information mainly include the project information such as summary, account, date, the amount of money, when being deposited in database In information changing, the accreditation task of operation system is triggered, so that operation system is according to accreditation logic corresponding with type of service Carry out the accreditation of the type of service, and shown and printed in a manner of voucher, alternatively, operation system can also accreditation into During work(, accreditation date and accreditation number are written back to database and preserved, is checked in the future with facilitating.
Specifically, when accreditation flow generic logic be business datum pretreatment, business datum obtain, business datum inspection and During accreditation, operation system can pre-process to the business datum of a kind of type of service first, such as according to business personnel's identity Business datum is classified and collected, and generates Classifying Sum table, then, operation system is from the business datum after Classifying Sum It is middle to choose the data made required for voucher, afterwards, the business datum of selection is subjected to financial affair work consistency check, that is, checked The uniformity of data and business, " fastening one person's story upon another person " or the incorrect situation of form are avoided the occurrence of, passes through it in business datum inspection Afterwards, operation system is to generate the final voucher of the type of service.
In the present embodiment, operation system defines accreditation abstract class and accreditation flow generic logic, and is taken out in the accreditation As writing the method for realizing the accreditation flow generic logic in class;In the accreditation task start of a certain type of service, The accreditation abstract class is inherited in the accreditation logic of the type of service;According in the accreditation abstract class of succession For realizing that the method for the accreditation flow generic logic carries out the accreditation of the type of service.By the above-mentioned means, this implementation Example writes accreditation flow generic logic in the method for accreditation abstract class, and when increasing a kind of business newly, developer is not necessarily based on The Added Business type completes a series of writing for accreditation flow logic codes, and need to only be patrolled in the accreditation of the Added Business type Collect relaying and manufacture card abstract class, patrolled so as to which developer need not write bulk redundancy code for different type of service repetitions Collect, greatly save the construction cycle of accreditation logic, and later stage code maintenance is also more convenient.
Further, reference picture 3, Fig. 3 are the schematic flow sheet of accreditation method second embodiment of the present invention.Based on above-mentioned figure Embodiment shown in 2, step S30 can include:
Step S31, it is used to realize the accreditation flow generic logic according in the accreditation abstract class of succession Method, Classifying Sum is carried out to the business datum of the type of service, Classifying Sum table is generated according to Classifying Sum result;
Step S32, the combined data of preset kind is obtained from the Classifying Sum table, and the combined data is carried out Financial affair work consistency check;
Step S33, when the inspection passes through, the accreditation of the type of service is carried out according to the combined data.
In the present embodiment, because accreditation abstract class includes being used for the method for realizing the accreditation flow generic logic, Therefore, the accreditation logic of a certain type of service realizes the accreditation after accreditation abstract class is inherited in accreditation abstract class The method of flow generic logic carries out accreditation.
Specifically, operation system is first according to the method for accreditation flow generic logic, to the business datum of the type of service Classifying Sum is carried out, and Classifying Sum table is generated according to summarized results, as a kind of embodiment, operation system can be according to industry The identity of business person and date carry out Classifying Sum to business datum, such as, can be according to the identity of business personnel for transferred account service Transfer data is classified with the date and collected for:May 1, the transferred account service data that business personnel A inputs to database, business personnel B The transferred account service data ... ... inputted to database;May 2, the transferred account service data that business personnel A inputs to database, business The transferred account service data ... ... that member B inputs to database, the rest may be inferred, and ultimately forms Classifying Sum table.It is of course also possible to Classifying Sum is not carried out to business datum according to the identity of business personnel and date, such as, can also be according to account identity (such as account A transfer data, account b transfer data ... ...) Classifying Sum, etc. is carried out to business datum.
Afterwards, operation system obtains the combined data of preset kind from Classifying Sum table, for example, summary, account, the date, The significant datas such as the amount of money, and the combined data to getting carries out financial affair work consistency check, when inspection passes through, according to remittance Total data carries out the accreditation of the type of service.It should be noted that the mistake in actual services data from input database to accreditation Cheng Zhong, its authenticity may change, and reason includes manual entry mistake, artificial altered data or accreditation program, program sheet The leak of body, business and financial existence time difference etc., therefore, carrying out financial affair work consistency check to combined data can have Effect avoids the false situation of business datum, so as to ensure the accuracy of final Credential data.
The present embodiment carries out business datum Classifying Sum, screening and financial industry successively according to accreditation flow generic logic Business consistency check, while ensureing that accreditation process is smoothed out, improve the accuracy of accreditation data.
Further, based on above-mentioned Fig. 3 shown in embodiment, after step s 32, can also include:
Step S34, check obstructed out-of-date when described, terminate the accreditation process of the type of service, and will be abnormal accordingly Information is preserved into error message log sheet;
Step S35, realize that class is united to the abnormal information preserved in the error message log sheet by accreditation One processing.
If the financial affair work consistency check of combined data not by, terminate the accreditation process of the type of service, and Corresponding abnormal information is preserved into error message log sheet, abnormal information processing is unified to be handled by concrete implementation class, than Such as, abnormal information processing can be based on Handler Exception Resolver interfaces in Spring MVC, and Service layers are thrown Specific error code and error message are contained in the exception gone out, interface return abnormal information is realized and can configure, in addition, mistake Code can reuse the conditional code in HTTP (HyperText Transfer Protocol, HTTP) specification, it is ensured that The uniformity of behavior.
In the present embodiment, accreditation logical sum exception handling logic is mutually decoupled, and accreditation abstract class is inherited in accreditation logic, And exception handling logic is then included in and realized in class, abnormal conditions are uniformly processed by realizing class, relative to prior art The accreditation mode that middle accreditation logical sum exception handling logic is coupled, not only reduces the redundancy of exception handling code, improves Development efficiency, and the information for returning to interface interchange side can configure, and enhance the flexibility of abnormality processing.
Further, reference picture 4, Fig. 4 are the schematic flow sheet of accreditation method 3rd embodiment of the present invention.Based on above-mentioned figure Embodiment shown in 2, after step S30, it can also include:
Step S40, the rewritten instructions of user are received, according to rewriteeing in the accreditation abstract class rewritten instructions Method for realizing the accreditation flow generic logic.
Due to the complexity and variability of business, the accreditation flow generic logic defined in the first embodiment may be not Suitable for all types of service, for the voucher of Added Business type, it may be necessary to voucher project is changed, for some special Business, its voucher may need to do specially treated, such as, for it is some need individually bound voucher, it is necessary to write with Card number, therefore, the method that user can be rewritten in accreditation abstract class according to being actually needed.
Specifically, operation system can show User Interface, be referred to according to user based on the rewriting that the interactive interface triggers Order rewrites the method for realizing the accreditation flow generic logic in accreditation abstract class, so that accreditation abstract class meets accordingly Business accreditation demand.In this way, in follow-up accreditation task start, write in accreditation logic corresponding with type of service relaying load-bearing Accreditation abstract class after method, you can the accreditation of the type of service is carried out according to new method.
The present embodiment is for Added Business type or needs to do the type of credentials of specially treated, and developer is without again Write a series of accreditation flow logic codes, it is only necessary to rewrite the method in accreditation abstract class, so not only increase system The development efficiency of logical code is demonstrate,proved, also there is very strong scalability.
The present invention also provides a kind of accreditation device.
Accreditation device of the present invention includes:Memory, processor and it is stored on the memory and can be in the processor The accreditation program of upper operation, following steps are realized when the accreditation program is by the computing device:
Accreditation abstract class and accreditation flow generic logic are defined, and is write in the accreditation abstract class described for realizing The method of accreditation flow generic logic, wherein, the accreditation flow generic logic is used for the general system for characterizing different service types Demonstrate,prove flow;
In the accreditation task start of a certain type of service, the accreditation is inherited in the accreditation logic of the type of service Abstract class, to include the accreditation flow generic logic in the accreditation logic of the type of service;
It is used to realize that the method for the accreditation flow generic logic is entered according in the accreditation abstract class of succession The accreditation of the row type of service.
Further, the accreditation program by the computing device when also realize following steps:
The method for being used to realize the accreditation flow generic logic according in the accreditation abstract class of succession is right The business datum of the type of service carries out Classifying Sum, and Classifying Sum table is generated according to Classifying Sum result;
The combined data of preset kind is obtained from the Classifying Sum table, and financial affair work is carried out to the combined data Consistency check;
When the inspection passes through, the accreditation of the type of service is carried out according to the combined data.
Further, the accreditation program by the computing device when also realize following steps:
When it is described check it is obstructed out-of-date, terminate the accreditation process of the type of service, and corresponding abnormal information is preserved Into error message log sheet;
Realize that the abnormal information preserved in the error message log sheet is uniformly processed class by accreditation.
Further, the accreditation program by the computing device when also realize following steps:
The rewritten instructions of user are received, are used to realize according to rewriteeing in the accreditation abstract class rewritten instructions The method of the accreditation flow generic logic.
Wherein, the method that the accreditation program run on the processor is realized when being performed can refer to accreditation of the present invention The each embodiment of method, here is omitted.
The present invention also provides a kind of computer-readable recording medium.
Accreditation program is stored with computer-readable recording medium of the present invention, it is real when the accreditation program is executed by processor Now the step of accreditation method as described above.
Wherein, the method that the accreditation program run on the processor is realized when being performed can refer to accreditation of the present invention The each embodiment of method, here is omitted.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row His property includes, so that process, method, article or system including a series of elements not only include those key elements, and And also include the other element being not expressly set out, or also include for this process, method, article or system institute inherently Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this Other identical element also be present in the process of key element, method, article or system.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on such understanding, technical scheme is substantially done to prior art in other words Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in one as described above In storage medium (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal equipment (can be mobile phone, Computer, server, air conditioner, or network equipment etc.) perform method described in each embodiment of the present invention.
The preferred embodiments of the present invention are these are only, are not intended to limit the scope of the invention, it is every to utilize this hair The equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills Art field, is included within the scope of the present invention.

Claims (10)

  1. A kind of 1. accreditation method, it is characterised in that the accreditation method comprises the following steps:
    Accreditation abstract class and accreditation flow generic logic are defined, and is write in the accreditation abstract class for realizing the accreditation The method of flow generic logic, wherein, the accreditation flow generic logic is used for the general accreditation stream for characterizing different service types Journey;
    In the accreditation task start of a certain type of service, in the accreditation logic of the type of service inheriting the accreditation is abstracted Class, to include the accreditation flow generic logic in the accreditation logic of the type of service;
    It is used to realize that the method for the accreditation flow generic logic carries out institute according in the accreditation abstract class of succession State the accreditation of type of service.
  2. 2. accreditation method as claimed in claim 1, it is characterised in that the institute in the accreditation abstract class according to succession Stating the step of method for realizing the accreditation flow generic logic carries out the accreditation of the type of service includes:
    The method for being used to realize the accreditation flow generic logic according in the accreditation abstract class of succession, to described The business datum of type of service carries out Classifying Sum, and Classifying Sum table is generated according to Classifying Sum result;
    The combined data of preset kind is obtained from the Classifying Sum table, and it is consistent to carry out financial affair work to the combined data Property inspection;
    When the inspection passes through, the accreditation of the type of service is carried out according to the combined data.
  3. 3. accreditation method as claimed in claim 2, it is characterised in that described to obtain preset kind from the Classifying Sum table Combined data, and to the combined data carry out financial affair work consistency check the step of after, in addition to:
    When it is described check it is obstructed out-of-date, terminate the accreditation process of the type of service, and corresponding abnormal information is preserved to mistake In false information log sheet;
    Realize that the abnormal information preserved in the error message log sheet is uniformly processed class by accreditation.
  4. 4. accreditation method as claimed in claim 1, it is characterised in that the accreditation method also includes:
    Receive the rewritten instructions of user, be used to realizing according to rewriteeing in the accreditation abstract class rewritten instructions described in The method of accreditation flow generic logic.
  5. 5. the accreditation method as any one of Claims 1-4, it is characterised in that the accreditation flow generic logic bag Include business datum pretreatment logic, business datum obtains logic, business datum checks logical sum accreditation logic.
  6. 6. a kind of accreditation device, it is characterised in that the accreditation device includes:Memory, processor and it is stored in the storage On device and the accreditation program that can run on the processor, the accreditation program are realized following step during the computing device Suddenly:
    Accreditation abstract class and accreditation flow generic logic are defined, and is write in the accreditation abstract class for realizing the accreditation The method of flow generic logic;
    In the accreditation task start of a certain type of service, in the accreditation logic of the type of service inheriting the accreditation is abstracted Class;
    It is used to realize that the method for the accreditation flow generic logic carries out institute according in the accreditation abstract class of succession State the accreditation of type of service.
  7. 7. accreditation device as claimed in claim 6, it is characterised in that the accreditation program is gone back reality during the computing device Existing following steps:
    The method for being used to realize the accreditation flow generic logic according in the accreditation abstract class of succession, to described The business datum of type of service carries out Classifying Sum, and Classifying Sum table is generated according to Classifying Sum result;
    The combined data of preset kind is obtained from the Classifying Sum table, and it is consistent to carry out financial affair work to the combined data Property inspection;
    When the inspection passes through, the accreditation of the type of service is carried out according to the combined data.
  8. 8. accreditation device as claimed in claim 7, it is characterised in that the accreditation program is gone back reality during the computing device Existing following steps:
    When it is described check it is obstructed out-of-date, terminate the accreditation process of the type of service, and corresponding abnormal information is preserved to mistake In false information log sheet;
    Realize that the abnormal information preserved in the error message log sheet is uniformly processed class by accreditation.
  9. 9. accreditation device as claimed in claim 6, it is characterised in that the accreditation program is gone back reality during the computing device Existing following steps:
    Receive the rewritten instructions of user, be used to realizing according to rewriteeing in the accreditation abstract class rewritten instructions described in The method of accreditation flow generic logic.
  10. 10. a kind of computer-readable recording medium, it is characterised in that accreditation journey is stored with the computer-readable recording medium Sequence, the step of accreditation method as any one of claim 1 to 5 is realized when the accreditation program is executed by processor.
CN201710497344.1A 2017-06-26 2017-06-26 Accreditation method, apparatus and computer-readable recording medium Pending CN107688924A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201710497344.1A CN107688924A (en) 2017-06-26 2017-06-26 Accreditation method, apparatus and computer-readable recording medium
PCT/CN2017/111642 WO2019000800A1 (en) 2017-06-26 2017-11-17 Credential preparation method, apparatus, and device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710497344.1A CN107688924A (en) 2017-06-26 2017-06-26 Accreditation method, apparatus and computer-readable recording medium

Publications (1)

Publication Number Publication Date
CN107688924A true CN107688924A (en) 2018-02-13

Family

ID=61152728

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710497344.1A Pending CN107688924A (en) 2017-06-26 2017-06-26 Accreditation method, apparatus and computer-readable recording medium

Country Status (2)

Country Link
CN (1) CN107688924A (en)
WO (1) WO2019000800A1 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108681876A (en) * 2018-05-11 2018-10-19 平安科技(深圳)有限公司 The automatic valuation accounting method of fund, device, computer equipment and storage medium
CN109254768A (en) * 2018-08-16 2019-01-22 中国平安人寿保险股份有限公司 Acquisition methods, terminal device and the medium of accreditation information
CN109445845A (en) * 2018-09-10 2019-03-08 深圳市智美达科技股份有限公司 Interface call method, device, computer equipment and storage medium
CN110069321A (en) * 2019-03-16 2019-07-30 平安城市建设科技(深圳)有限公司 Business containerization operation method, equipment, storage medium and device
CN110852819A (en) * 2018-08-20 2020-02-28 北京京东尚科信息技术有限公司 Transaction processing method and device, storage medium and electronic equipment
CN110992128A (en) * 2019-11-15 2020-04-10 深圳马可孛罗科技有限公司 Method, device and storage medium for distributed adaptation of different object reservation orders

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101540828A (en) * 2009-04-23 2009-09-23 中山大学 Object-oriented set-top box background channel development system and method thereof
CN101706908A (en) * 2009-11-26 2010-05-12 金蝶软件(中国)有限公司 Method, device and system for serving retail business
CN104063495A (en) * 2014-07-04 2014-09-24 用友软件股份有限公司 Form extension method and form extension device
CN105760977A (en) * 2014-12-18 2016-07-13 航天信息股份有限公司 Certificate production method and system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101616027B (en) * 2006-10-10 2012-07-04 华为技术有限公司 Service creation, execution and mapping system and method
CN100536479C (en) * 2006-10-10 2009-09-02 华为技术有限公司 Service establishing, executing, mapping system and method
CN105404950A (en) * 2014-11-18 2016-03-16 国网山东省电力公司 SAP park document realization method and system based on service configuration
CN104410536B (en) * 2014-12-19 2018-05-01 上海斐讯数据通信技术有限公司 Data service configuration method, system and ONU equipment
CN105787708A (en) * 2016-03-16 2016-07-20 浪潮通用软件有限公司 Bill processing method based on task pool

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101540828A (en) * 2009-04-23 2009-09-23 中山大学 Object-oriented set-top box background channel development system and method thereof
CN101706908A (en) * 2009-11-26 2010-05-12 金蝶软件(中国)有限公司 Method, device and system for serving retail business
CN104063495A (en) * 2014-07-04 2014-09-24 用友软件股份有限公司 Form extension method and form extension device
CN105760977A (en) * 2014-12-18 2016-07-13 航天信息股份有限公司 Certificate production method and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
偷着乐: "java spring-MVC异常统一处理实战", 《HTTP://WWW.CNBLOGS.COM/BRANTLIU/P/4980397.HTML》 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108681876A (en) * 2018-05-11 2018-10-19 平安科技(深圳)有限公司 The automatic valuation accounting method of fund, device, computer equipment and storage medium
CN109254768A (en) * 2018-08-16 2019-01-22 中国平安人寿保险股份有限公司 Acquisition methods, terminal device and the medium of accreditation information
CN109254768B (en) * 2018-08-16 2024-04-12 中国平安人寿保险股份有限公司 Method for acquiring certificate making information, terminal equipment and medium
CN110852819A (en) * 2018-08-20 2020-02-28 北京京东尚科信息技术有限公司 Transaction processing method and device, storage medium and electronic equipment
CN109445845A (en) * 2018-09-10 2019-03-08 深圳市智美达科技股份有限公司 Interface call method, device, computer equipment and storage medium
CN109445845B (en) * 2018-09-10 2022-09-30 深圳市智美达科技股份有限公司 Interface calling method and device, computer equipment and storage medium
CN110069321A (en) * 2019-03-16 2019-07-30 平安城市建设科技(深圳)有限公司 Business containerization operation method, equipment, storage medium and device
CN110992128A (en) * 2019-11-15 2020-04-10 深圳马可孛罗科技有限公司 Method, device and storage medium for distributed adaptation of different object reservation orders

Also Published As

Publication number Publication date
WO2019000800A1 (en) 2019-01-03

Similar Documents

Publication Publication Date Title
CN107688924A (en) Accreditation method, apparatus and computer-readable recording medium
CN110244977A (en) Customized software generation method, system, electronic equipment and storage medium
US20170344991A1 (en) User controlled remote credit and bank card transaction verification system
CN107908485A (en) Interface parameters transmission method, device, equipment and computer-readable recording medium
CN107016420A (en) A kind of method for processing business and device
US20200175403A1 (en) Systems and methods for expediting rule-based data processing
CN107870976A (en) Resume identification device, method and computer-readable recording medium
CN107909466A (en) Customer relationship network display method, apparatus, equipment and readable storage medium storing program for executing
CN108449313B (en) Electronic device, Internet service system risk early warning method and storage medium
CN108388988A (en) Synergetic office work method, system and computer readable storage medium based on block chain
CN107679058A (en) Method of data synchronization, device and computer-readable recording medium
CN112711526A (en) UI test method, device, equipment and storage medium
CN107729246A (en) For the auxiliary test methods of intended application, device, equipment and storage medium
CN107526676A (en) A kind of cross-system method of testing and device
CN110727580A (en) Response data generation method, full-flow interface data processing method and related equipment
CN107577706A (en) User behavior data processing method, device and computer-readable recording medium
CN104376452A (en) System and method for managing payment success rate on basis of international card payment channel
CN107644075A (en) The method and apparatus for collecting page info
CN107656722A (en) Data manipulation method, device and computer-readable recording medium
CN109088914A (en) Generation method, the block chain ecosystem and the computer readable storage medium of block
CN108280765A (en) The value control method, apparatus and computer readable storage medium of block chain
CN108388616A (en) Transacter, method, system and computer readable storage medium
CN116823537A (en) Insurance report processing method and device, storage medium and electronic equipment
CN107707602A (en) Data communication process terminal, method and computer-readable recording medium
CN116737137A (en) Business process generation method, device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20180213