[go: up one dir, main page]

CN108428182B - Development platform device, method for acquiring policy number, and computer-readable storage medium - Google Patents

Development platform device, method for acquiring policy number, and computer-readable storage medium Download PDF

Info

Publication number
CN108428182B
CN108428182B CN201710490393.2A CN201710490393A CN108428182B CN 108428182 B CN108428182 B CN 108428182B CN 201710490393 A CN201710490393 A CN 201710490393A CN 108428182 B CN108428182 B CN 108428182B
Authority
CN
China
Prior art keywords
policy number
database
distributed cache
generated
policy
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.)
Active
Application number
CN201710490393.2A
Other languages
Chinese (zh)
Other versions
CN108428182A (en
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 CN201710490393.2A priority Critical patent/CN108428182B/en
Priority to PCT/CN2018/090902 priority patent/WO2019001271A1/en
Publication of CN108428182A publication Critical patent/CN108428182A/en
Application granted granted Critical
Publication of CN108428182B publication Critical patent/CN108428182B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • 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
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/08Insurance

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Databases & Information Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Development Economics (AREA)
  • Technology Law (AREA)
  • General Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention relates to a development platform device, a method for acquiring a policy number and a computer readable storage medium, wherein the development platform device comprises: the device comprises a memory, a processor and a processing system, wherein when the processing system is executed by the processor, the following steps are realized: when a request for generating a policy number initiated by an external cooperation system is received, regularly scanning a distributed cache and a database; when the database is scanned to be in an unavailable state, whether a pre-generated policy number is stored in the distributed cache or not is analyzed; if yes, the policy number is sent to an external cooperation system; if not, calling a preset policy number interface, acquiring the policy number generated by the policy system through the policy number interface, and sending the acquired policy number to an external cooperation system. According to the invention, when the database of the open platform device is in an unavailable state, the policy number can be obtained in time and fed back to the external cooperation system, so that the external cooperation system can output a policy at any time, and the loss of clients is avoided.

Description

Development platform device, method for acquiring policy number, and computer-readable storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a development platform device, a method of acquiring a policy number, and a computer-readable storage medium.
Background
Currently, an external cooperation system obtains a policy number through an open platform, and the open platform needs to access a database of the open platform in real time to obtain the policy number generated by the policy issuing system, and then returns the obtained policy number to the external cooperation system. When the database of the open platform cannot be accessed, the external cooperation system cannot obtain the insurance policy number in time according to the normal flow, and the external cooperation system cannot make an order, so that the business cannot be handled, and the loss of clients is caused.
Disclosure of Invention
The invention aims to provide a development platform device, a method for acquiring a policy number and a computer readable storage medium, aiming at realizing that an external cooperation system can still make a policy normally and timely under the condition that a database is unavailable, and avoiding the loss of clients.
To achieve the above object, the present invention provides an open platform device, comprising: a memory, a processor, and a processing system stored on the memory and operable on the processor, the processing system when executed by the processor implementing the steps of:
s1, when a request for generating a policy number initiated by an external cooperation system is received, regularly scanning the distributed cache and the database;
s2, when the database is scanned to be in an unavailable state, analyzing whether a pre-generated policy number is stored in the distributed cache or not;
s3, if the distributed cache stores the pre-generated policy number, the policy number is sent to an external cooperation system;
and S4, if the pre-generated policy number is not stored in the distributed cache, calling a preset policy number interface, acquiring the policy number generated by the single system through the policy number interface, and sending the acquired policy number to an external cooperation system.
Preferably, after the processor implements the step S1, the processing system further includes:
s5, when the database is scanned to be in an available state, analyzing whether a pre-generated policy number is stored in the database and the distributed cache;
s6, if the distributed cache stores the pre-generated policy number, the policy number in the distributed cache is sent to an external cooperation system;
and S7, if the distributed cache does not store the pre-generated policy number and the database stores the pre-generated policy number, moving the policy number from the database into the distributed cache and sending the policy number in the distributed cache to an external cooperation system.
Preferably, after the processor implements the step S5, the processing system further includes:
if the pre-generated policy number is not stored in the distributed cache or the database, the step S4 is executed.
Preferably, when the processor executes the step S1, the processing system specifically includes:
and when receiving a request for generating a policy number initiated by an external cooperation system, the open platform simulates an asynchronous task based on a Timer and an NAS shared file lock principle and regularly and asynchronously scans the distributed cache and the database.
In order to achieve the above object, the present invention further provides a method for acquiring a policy number, where the method for acquiring a policy number includes:
s1, when a request for generating a policy number initiated by an external cooperation system is received, regularly scanning the distributed cache and the database;
s2, when the database is scanned to be in an unavailable state, analyzing whether a pre-generated policy number is stored in the distributed cache or not;
s3, if the distributed cache stores the pre-generated policy number, the policy number is sent to an external cooperation system;
and S4, if the pre-generated policy number is not stored in the distributed cache, calling a preset policy number interface, acquiring the policy number generated by the single system through the policy number interface, and sending the acquired policy number to an external cooperation system.
Preferably, after the step S1, the method further includes:
s5, when the database is scanned to be in an available state, analyzing whether a pre-generated policy number is stored in the database and the distributed cache;
s6, if the distributed cache stores the pre-generated policy number, the policy number in the distributed cache is sent to an external cooperation system;
and S7, if the distributed cache does not store the pre-generated policy number and the database stores the pre-generated policy number, moving the policy number from the database into the distributed cache and sending the policy number in the distributed cache to an external cooperation system.
Preferably, after the step S5, the method further includes: if the pre-generated policy number is not stored in the distributed cache or the database, the step S4 is executed.
Preferably, the step S1 includes: and when receiving a request for generating a policy number initiated by an external cooperation system, the open platform simulates an asynchronous task based on a Timer and an NAS shared file lock principle and regularly and asynchronously scans the distributed cache and the database.
Preferably, the step of generating the policy number by the issuing system includes:
and the order issuing system queries the distributed document storage database mongo dB to acquire the policy number generated based on the digital sequence in the distributed document storage database mongo dB.
The invention also provides a computer readable storage medium having stored thereon a processing system which, when executed by a processor, carries out the steps of the method of acquiring a policy number as described above.
The invention has the beneficial effects that: the invention can analyze whether the pre-generated policy number is stored in the distributed cache when the external cooperation system requests the policy number from the open platform device and the database is in an unavailable state, if so, the policy number in the distributed cache can be sent to the external cooperation system, if not, a preset policy number interface is called, the policy number generated by the single system is obtained through the policy number interface, and the obtained policy number is sent to the external cooperation system. According to the invention, when the database of the open platform device is in an unavailable state, the policy number can be obtained in time and fed back to the external cooperation system, so that the external cooperation system can normally output the policy at any time, and the loss of clients is avoided.
Drawings
FIG. 1 is a schematic diagram of an alternative application environment according to various embodiments of the present invention;
FIG. 2 is a diagram of a hardware architecture of one embodiment of the development platform apparatus of FIG. 1;
FIG. 3 is a flowchart illustrating a first embodiment of a method for acquiring a policy number according to the present invention;
FIG. 4 is a flowchart illustrating a second embodiment of a method for acquiring a policy number according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the description relating to "first", "second", etc. in the present invention is for descriptive purposes only and is not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In addition, technical solutions between various embodiments may be combined with each other, but must be realized by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope of the present invention.
Fig. 1 is a schematic diagram of an alternative application environment according to various embodiments of the present invention.
In the present embodiment, the present invention can be applied to an application environment including, but not limited to, the development platform apparatus 1, the external cooperation system 2, the database 3, the distributed cache 4, and the billing system 5. Among them, the development platform apparatus 1 may be a mobile device such as a notebook computer, a PDA (personal digital assistant), a PAD (tablet computer), and the like, and a fixed terminal such as a digital TV, a desktop computer, a notebook, a server, and the like. The external cooperation system 2 may be a car insurance system, a life insurance system, or the like. Wherein the development platform apparatus 1 is communicatively connected to one or more external collaboration systems 2.
Referring to fig. 2, which is a schematic diagram of an alternative hardware architecture of the development platform device 1 in fig. 1, in the embodiment, the development platform device 1 may include, but is not limited to, a processing system 10, a memory 11, and a processor 12, which are communicatively connected to each other through a system bus. It is noted that fig. 2 only shows the development platform arrangement 1 with components 10-12, but it is to be understood that not all of the shown components are required to be implemented, and that more or fewer components may be implemented instead.
The memory 11 includes at least one type of readable storage medium, which includes a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Read Only Memory (ROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a Programmable Read Only Memory (PROM), a magnetic memory, a magnetic disk, an optical disk, etc. In some embodiments, the storage 11 may be an internal storage unit of the development platform apparatus 1, such as a hard disk or a memory of the development platform apparatus 1. In other embodiments, the memory 11 may also be an external storage device of the development platform apparatus 1, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the development platform apparatus 1. Of course, the memory 11 may also include both an internal storage unit of the development platform apparatus 1 and an external storage device thereof. In this embodiment, the memory 11 is generally used for storing an operating system and various application software installed in the development platform device 1, such as program codes of the processing system 10. Furthermore, the memory 11 may also be used to temporarily store various types of data that have been output or are to be output.
The processor 12 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor, or other data Processing chip in some embodiments. The processor 12 is generally used to control the overall operation of the development platform apparatus 1, for example, to execute control and processing related to data interaction or communication with the external cooperation system 2. In this embodiment, the processor 12 is configured to execute the program code stored in the memory 11 or process data, for example, execute the processing system 10.
Wherein, the processing system 10 realizes the following steps when being executed by the processor 12:
step S1, when a request for generating a policy number initiated by an external cooperation system is received, the distributed cache and the database are scanned regularly;
in this embodiment, the external cooperation system may be integrated in the open platform device 1, or may be integrated in another device. The external cooperation system sends a request for generating a policy number to the development platform device 1 through the network, and the open platform device 1 scans the distributed cache 4 and the database 3 at regular time when receiving the request.
Preferably, the open platform device 1 simulates an asynchronous task based on a Timer and an NAS shared file lock principle, specifically, a starting timing time and a timing time interval of the Timer are preset, the distributed cache 4 and the database 3 are asynchronously scanned at the starting timing time by using the NAS shared file lock principle, waiting is performed after scanning, the Timer performs timing, when the timing time interval is reached, the distributed cache 4 and the database 3 are asynchronously scanned by using the NAS shared file lock principle again, and so on, so as to realize the timed asynchronous scanning of the distributed cache 4 and the database 3, and after scanning, it can know whether the current state of the database 3 is an available state or an unavailable state, and know whether the distributed cache 4 stores data.
Step S2, when the database is scanned to be in an unavailable state, whether a pre-generated policy number is stored in the distributed cache is analyzed;
in this embodiment, after the policy number is generated, the policy issuing system 5 may store the policy number only in the database thereof, may store the policy number only in the distributed cache thereof, and may store the policy number in the database and the distributed cache respectively.
When the database 3 is in the available state, whether the policy number is stored in the database can be further analyzed; the database 3 cannot analyze whether it stores a policy number when it is in an unavailable state. There are various situations in which the database 3 is in an unavailable state, such as storage failure or network failure. When the database 3 is in an unavailable state, whether a pre-generated policy number is stored in the distributed cache 4 is analyzed. The distributed cache 4 has a large storage space including a memory and a disk. After the policy number is generated by the issuance system 5, the generated policy number may be stored in its memory or disk.
Step S3, if the distributed cache stores the pre-generated policy number, the policy number is sent to the external cooperation system;
and step S4, if the pre-generated policy number is not stored in the distributed cache, calling a preset policy number interface, acquiring the policy number generated by the single system through the policy number interface, and sending the acquired policy number to an external cooperation system.
If the pre-generated policy number is stored in the distributed cache 4, the open platform device 1 may directly send the stored policy number to the external cooperation system, so that the external cooperation system can acquire the generated policy number in time. If the pre-generated policy number is not stored in the distributed cache 4, the open platform device 1 calls a preset policy number interface, acquires the policy number generated immediately by the policy system through the policy number interface, and finally enables an external cooperation system to acquire the generated policy number in time.
Compared with the prior art, in the embodiment, when the external cooperation system requests the policy number from the open platform device, and the database is in an unavailable state, whether the pre-generated policy number is stored in the distributed cache can be analyzed, if so, the policy number in the distributed cache can be sent to the external cooperation system, if not, the preset policy number interface is called, the policy number generated by the single system is obtained through the policy number interface, and the obtained policy number is sent to the external cooperation system. In this embodiment, when the database of the open platform device is in an unavailable state, the policy number can still be obtained in time and fed back to the external cooperation system, so that the external cooperation system can normally issue the policy at any time, and the loss of clients is avoided.
In a preferred embodiment, after the processor 12 executes the step S1, the processing system 10 further includes:
and step S5, when the database is scanned to be in an available state, analyzing whether the database and the distributed cache store pre-generated policy numbers.
And step S6, if the pre-generated policy number is stored in the distributed cache, sending the policy number in the distributed cache to an external cooperation system.
Step S7, if the pre-generated policy number is not stored in the distributed cache and the pre-generated policy number is stored in the database, moving the policy number from the database into the distributed cache and sending the policy number in the distributed cache to an external cooperation system.
In this embodiment, when the database 3 is scanned to be in an available state, whether a pre-generated policy number is stored in the database 3 and the distributed cache 4 is analyzed, and if the pre-generated policy number is stored in the distributed cache 4, the open platform device 1 directly sends the policy number in the distributed cache 4 to the external cooperation system 2 without performing any processing on the policy number in the database 3; if the distributed cache 4 does not store the pre-generated policy number but the database 3 stores the policy number, the policy number in the database 3 is firstly moved into the distributed cache 4, and the opened platform device 1 sends the moved policy number in the distributed cache 4 to the external cooperation system 2, so that the pressure of accessing the database 3 is reduced, and the speed of sending the moved policy number in the distributed cache 4 to the external cooperation system 2 by the opened platform device 1 is higher, so that the external cooperation system can quickly acquire the policy number.
In a preferred embodiment, after the processor 12 executes the step S5, the processing system 10 further includes:
if the pre-generated policy number is not stored in the distributed cache or the database, the step S4 is executed.
In this embodiment, if the database 3 is in an available state, but neither the distributed cache 4 nor the database 3 stores a pre-generated policy number, the platform device 1 needs to be placed to call a preset policy number interface, and the policy number generated in the policy system is obtained through the policy number interface, so that the external cooperation system can obtain the generated policy number in time.
As shown in fig. 3, fig. 3 is a schematic flow chart of an embodiment of a method for acquiring a policy number according to the present invention, and the method for acquiring a policy number includes the following steps:
step S1, when a request for generating a policy number initiated by an external cooperation system is received, the distributed cache and the database are scanned regularly;
in this embodiment, the external cooperation system may be integrated in the open platform device 1, or may be integrated in another device. The external cooperation system sends a request for generating a policy number to the development platform device 1 through the network, and the open platform device 1 scans the distributed cache 4 and the database 3 at regular time when receiving the request.
Preferably, the open platform device 1 simulates an asynchronous task based on a Timer and an NAS shared file lock principle, specifically, a starting timing time and a timing time interval of the Timer are preset, the distributed cache 4 and the database 3 are asynchronously scanned at the starting timing time by using the NAS shared file lock principle, waiting is performed after scanning, the Timer performs timing, when the timing time interval is reached, the distributed cache 4 and the database 3 are asynchronously scanned by using the NAS shared file lock principle again, and so on, so as to realize the timed asynchronous scanning of the distributed cache 4 and the database 3, and after scanning, it can know whether the current state of the database 3 is an available state or an unavailable state, and know whether the distributed cache 4 stores data.
Step S2, when the database is scanned to be in an unavailable state, whether a pre-generated policy number is stored in the distributed cache is analyzed;
in this embodiment, after the policy number is generated, the policy issuing system 5 may store the policy number only in the database thereof, may store the policy number only in the distributed cache thereof, and may store the policy number in the database and the distributed cache respectively.
When the database 3 is in the available state, whether the policy number is stored in the database can be further analyzed; the database 3 cannot analyze whether it stores a policy number when it is in an unavailable state. There are various situations in which the database 3 is in an unavailable state, such as storage failure or network failure. When the database 3 is in an unavailable state, whether a pre-generated policy number is stored in the distributed cache 4 is analyzed. The distributed cache 4 has a large storage space including a memory and a disk. After the policy number is generated by the issuance system 5, the generated policy number may be stored in its memory or disk.
Step S3, if the distributed cache stores the pre-generated policy number, the policy number is sent to the external cooperation system;
and step S4, if the pre-generated policy number is not stored in the distributed cache, calling a preset policy number interface, acquiring the policy number generated by the single system through the policy number interface, and sending the acquired policy number to an external cooperation system.
If the pre-generated policy number is stored in the distributed cache 4, the open platform device 1 may directly send the stored policy number to the external cooperation system, so that the external cooperation system can acquire the generated policy number in time. If the pre-generated policy number is not stored in the distributed cache 4, the open platform device 1 calls a preset policy number interface, acquires the policy number generated immediately by the policy system through the policy number interface, and finally enables an external cooperation system to acquire the generated policy number in time.
Compared with the prior art, in the embodiment, when the external cooperation system requests the policy number from the open platform device, and the database is in an unavailable state, whether the pre-generated policy number is stored in the distributed cache can be analyzed, if so, the policy number in the distributed cache can be sent to the external cooperation system, if not, the preset policy number interface is called, the policy number generated by the single system is obtained through the policy number interface, and the obtained policy number is sent to the external cooperation system. In this embodiment, when the database of the open platform device is in an unavailable state, the policy number can still be acquired and fed back to the external cooperation system, so that the external cooperation system can issue a policy at any time, and the loss of clients is avoided.
In a preferred embodiment, as shown in fig. 4, on the basis of the embodiment of fig. 3, the step S1 is further followed by:
s5, when the database is scanned to be in an available state, analyzing whether a pre-generated policy number is stored in the database and the distributed cache;
s6, if the distributed cache stores the pre-generated policy number, the policy number in the distributed cache is sent to an external cooperation system;
and S7, if the distributed cache does not store the pre-generated policy number and the database stores the pre-generated policy number, moving the policy number from the database into the distributed cache and sending the policy number in the distributed cache to an external cooperation system.
In this embodiment, when the database 3 is scanned to be in an available state, whether a pre-generated policy number is stored in the database 3 and the distributed cache 4 is analyzed, and if the pre-generated policy number is stored in the distributed cache 4, the open platform device 1 directly sends the policy number in the distributed cache 4 to the external cooperation system 2 without performing any processing on the policy number in the database 3; if the distributed cache 4 does not store the pre-generated policy number but the database 3 stores the policy number, the policy number in the database 3 is firstly moved into the distributed cache 4, and the opened platform device 1 sends the moved policy number in the distributed cache 4 to the external cooperation system 2, so that the pressure of accessing the database 3 is reduced, and the speed of sending the moved policy number in the distributed cache 4 to the external cooperation system 2 by the opened platform device 1 is higher, so that the external cooperation system can quickly acquire the policy number.
In a preferred embodiment, on the basis of the embodiment of fig. 4, after the step S5, the method further includes: if the pre-generated policy number is not stored in the distributed cache or the database, the step S4 is executed.
In this embodiment, if the database 3 is in an available state, but neither the distributed cache 4 nor the database 3 stores a pre-generated policy number, the platform device 1 needs to be placed to call a preset policy number interface, and the policy number generated in the policy system is obtained through the policy number interface, so that the external cooperation system can obtain the generated policy number in time.
In a preferred embodiment, based on the foregoing embodiment, the step of generating the policy number by the policy issuing system includes: and the order issuing system queries the distributed document storage database mongo dB to acquire the policy number generated based on the digital sequence in the distributed document storage database mongo dB.
The single outlet system using the distributed document storage database mongo dB needs to install a mongo dB driver package and increase a configuration file related to information of the mongo dB database, so that the single outlet system can access the distributed document storage database mongo dB.
The policy number is composed of a 1-bit single certificate type, a 6-bit output single mechanism code (the right is supplemented with 0 when the number of bits is not enough), a 2-bit database mark and an 11-bit digital sequence, the output single system uses a sequence table in a distributed document storage database mongo dB to generate 11-bit random numbers, the sequence table is a table for storing digital sequences automatically increased by the database system according to a certain rule and is controlled by the database system, the database system can acquire the number of next records of the table according to the size of the current records and the step length at any time, and each record cannot be repeated. The order issuing system queries the distributed document storage database mongo dB to obtain 11-bit random numbers, and the 11-bit random numbers are combined with other 9-bit numbers to serve as policy numbers, so that the obtained policy numbers cannot be repeated, namely, each policy number is different. In addition, after the policy number is obtained by the policy system, the policy number is stored in the distributed cache and/or the database.
In this embodiment, as the number of external cooperation systems increases, if the open platform device 1 receives a high concurrency request from the external cooperation system, the policy number is generated based on the mongo dB distributed document storage database, and the same user does not obtain the same policy number.
The present invention also provides a computer readable storage medium having stored thereon a processing system, which when executed by a processor implements the steps of the above-described method of acquiring a policy number.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (9)

1. An open platform device, comprising:
a memory, a processor, and a processing system stored on the memory and operable on the processor, the processing system when executed by the processor implementing the steps of:
s1, when a request for generating a policy number initiated by an external cooperation system is received, regularly scanning the distributed cache and the database;
s2, when the database is scanned to be in an unavailable state, analyzing whether a pre-generated policy number is stored in the distributed cache or not;
s3, if the distributed cache stores the pre-generated policy number, the policy number is sent to an external cooperation system;
s4, if the pre-generated policy number is not stored in the distributed cache, calling a preset policy number interface, obtaining the policy number generated by the issuing system through the policy number interface, and sending the obtained policy number to an external cooperation system, where the step of generating the policy number by the issuing system includes:
the order issuing system queries a distributed document storage database mongo dB to acquire an order number generated based on a digital sequence in the distributed document storage database mongo dB, wherein the order number comprises a 1-bit order type, a 6-bit order issuing organization code, a 2-bit database mark and an 11-bit digital sequence.
2. The open platform device according to claim 1, wherein after the processing system is executed by the processor to implement the step S1, the processing system further comprises:
s5, when the database is scanned to be in an available state, analyzing whether a pre-generated policy number is stored in the database and the distributed cache;
s6, if the distributed cache stores the pre-generated policy number, the policy number in the distributed cache is sent to an external cooperation system;
and S7, if the distributed cache does not store the pre-generated policy number and the database stores the pre-generated policy number, moving the policy number from the database into the distributed cache and sending the policy number in the distributed cache to an external cooperation system.
3. The open platform apparatus according to claim 2, wherein after the processing system is executed by the processor to implement the step S5, the processing system further comprises:
if the pre-generated policy number is not stored in the distributed cache or the database, the step S4 is executed.
4. The open platform device according to any one of claims 1 to 3, wherein the processing system, when executed by the processor to implement the step S1, specifically includes:
and when receiving a request for generating a policy number initiated by an external cooperation system, the open platform simulates an asynchronous task based on a Timer and an NAS shared file lock principle and regularly and asynchronously scans the distributed cache and the database.
5. A method of acquiring a policy number, the method comprising:
s1, when a request for generating a policy number initiated by an external cooperation system is received, regularly scanning the distributed cache and the database;
s2, when the database is scanned to be in an unavailable state, analyzing whether a pre-generated policy number is stored in the distributed cache or not;
s3, if the distributed cache stores the pre-generated policy number, the policy number is sent to an external cooperation system;
s4, if the pre-generated policy number is not stored in the distributed cache, calling a preset policy number interface, obtaining the policy number generated by the issuing system through the policy number interface, and sending the obtained policy number to an external cooperation system, where the step of generating the policy number by the issuing system includes:
the order issuing system queries a distributed document storage database mongo dB to acquire an order number generated based on a digital sequence in the distributed document storage database mongo dB, wherein the order number comprises a 1-bit order type, a 6-bit order issuing organization code, a 2-bit database mark and an 11-bit digital sequence.
6. The method for acquiring policy number according to claim 5, further comprising, after step S1:
s5, when the database is scanned to be in an available state, analyzing whether a pre-generated policy number is stored in the database and the distributed cache;
s6, if the distributed cache stores the pre-generated policy number, the policy number in the distributed cache is sent to an external cooperation system;
and S7, if the distributed cache does not store the pre-generated policy number and the database stores the pre-generated policy number, moving the policy number from the database into the distributed cache and sending the policy number in the distributed cache to an external cooperation system.
7. The method for acquiring policy number according to claim 6, further comprising, after the step S5: if the pre-generated policy number is not stored in the distributed cache or the database, the step S4 is executed.
8. The method of acquiring a policy number according to any one of claims 5 to 7, wherein said step S1 comprises: and when receiving a request for generating a policy number initiated by an external cooperation system, the open platform simulates an asynchronous task based on a Timer and an NAS shared file lock principle and regularly and asynchronously scans the distributed cache and the database.
9. A computer readable storage medium, having stored thereon a processing system which, when executed by a processor, carries out the steps of the method of acquiring a policy number according to any one of claims 5 to 8.
CN201710490393.2A 2017-06-25 2017-06-25 Development platform device, method for acquiring policy number, and computer-readable storage medium Active CN108428182B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201710490393.2A CN108428182B (en) 2017-06-25 2017-06-25 Development platform device, method for acquiring policy number, and computer-readable storage medium
PCT/CN2018/090902 WO2019001271A1 (en) 2017-06-25 2018-06-12 Open platform device, method for obtaining policy number, and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710490393.2A CN108428182B (en) 2017-06-25 2017-06-25 Development platform device, method for acquiring policy number, and computer-readable storage medium

Publications (2)

Publication Number Publication Date
CN108428182A CN108428182A (en) 2018-08-21
CN108428182B true CN108428182B (en) 2021-08-24

Family

ID=63155423

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710490393.2A Active CN108428182B (en) 2017-06-25 2017-06-25 Development platform device, method for acquiring policy number, and computer-readable storage medium

Country Status (2)

Country Link
CN (1) CN108428182B (en)
WO (1) WO2019001271A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109670975B (en) * 2018-12-17 2021-02-05 泰康保险集团股份有限公司 Method, medium, and electronic device for generating a single number in a computer system
CN110659258A (en) * 2019-09-06 2020-01-07 平安普惠企业管理有限公司 Document generation method, system, computer device and computer readable storage medium
CN111694871A (en) * 2020-06-22 2020-09-22 中国平安财产保险股份有限公司 Method, device, equipment and medium for generating insurance application data based on artificial intelligence

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101576918A (en) * 2009-06-19 2009-11-11 用友软件股份有限公司 Data buffering system with load balancing function
CN101706781A (en) * 2009-09-29 2010-05-12 北京星网锐捷网络技术有限公司 Method and system for centralized management of database caches
CN102063427A (en) * 2009-11-12 2011-05-18 中兴通讯股份有限公司 Exception handling system and method in distributed database system
CN103716375A (en) * 2013-12-05 2014-04-09 北京用友政务软件有限公司 Distributed cache-based multistage financial data interaction method and system
CN104717262A (en) * 2013-12-13 2015-06-17 中国移动通信集团辽宁有限公司 Enterprise address book downloading method and system
CN105468707A (en) * 2015-11-19 2016-04-06 北京锐安科技有限公司 Cache-based data processing method and device
CN106302827A (en) * 2016-10-25 2017-01-04 聚好看科技股份有限公司 Communication means based on distributed system, equipment and distributed system
CN106384290A (en) * 2016-08-31 2017-02-08 泰康保险集团股份有限公司 Insurance policy processing system, method and device

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6941310B2 (en) * 2002-07-17 2005-09-06 Oracle International Corp. System and method for caching data for a mobile application
US20070300243A1 (en) * 2006-06-22 2007-12-27 Sap Portals Israel Ltd. Modular caching method and system for enabling offline functionality of server-client systems
US7765361B2 (en) * 2006-11-21 2010-07-27 Microsoft Corporation Enforced transaction system recoverability on media without write-through
US9032247B2 (en) * 2012-07-26 2015-05-12 Apple Inc. Intermediate database management layer
CN106326293A (en) * 2015-07-01 2017-01-11 阿里巴巴集团控股有限公司 Access method and device based on dynamic webpage
CN106204000A (en) * 2016-07-05 2016-12-07 康存乐付保数据科技(上海)有限公司 A kind of service consumption method for processing payment information and system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101576918A (en) * 2009-06-19 2009-11-11 用友软件股份有限公司 Data buffering system with load balancing function
CN101706781A (en) * 2009-09-29 2010-05-12 北京星网锐捷网络技术有限公司 Method and system for centralized management of database caches
CN102063427A (en) * 2009-11-12 2011-05-18 中兴通讯股份有限公司 Exception handling system and method in distributed database system
CN103716375A (en) * 2013-12-05 2014-04-09 北京用友政务软件有限公司 Distributed cache-based multistage financial data interaction method and system
CN104717262A (en) * 2013-12-13 2015-06-17 中国移动通信集团辽宁有限公司 Enterprise address book downloading method and system
CN105468707A (en) * 2015-11-19 2016-04-06 北京锐安科技有限公司 Cache-based data processing method and device
CN106384290A (en) * 2016-08-31 2017-02-08 泰康保险集团股份有限公司 Insurance policy processing system, method and device
CN106302827A (en) * 2016-10-25 2017-01-04 聚好看科技股份有限公司 Communication means based on distributed system, equipment and distributed system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Timothy G等.Inference with "difference in dudderences" with a small number of policy changes.《The Review of Economics and Statistics 》.2011,第93卷(第1期), *
车险客户信息管理系统设计与实现;蔡博;《中国优秀硕士学位论文全文数据库》;20141015(第10期);I138-460 *

Also Published As

Publication number Publication date
WO2019001271A1 (en) 2019-01-03
CN108428182A (en) 2018-08-21

Similar Documents

Publication Publication Date Title
CN108416679B (en) Device and method for issuing orders of multiple insurance products and computer readable storage medium
CN108959407B (en) Strong consistency writing method of data and terminal equipment
CN112380227A (en) Data synchronization method, device and equipment based on message queue and storage medium
CN108428182B (en) Development platform device, method for acquiring policy number, and computer-readable storage medium
CN112819617B (en) Data uplink method and device, electronic equipment and storage medium
CN111414379A (en) Serial number generation method, apparatus, device, and computer-readable storage medium
CN111782304B (en) Paging loading data logic control method, device, computer equipment and medium
CN111382123A (en) File storage method, device, equipment and storage medium
CN110753084A (en) Uplink data reading method, cache server and computer readable storage medium
CN112468409A (en) Access control method, device, computer equipment and storage medium
CN107967305B (en) Image file uploading method, server and readable storage medium
CN114637611A (en) Information processing method and device based on message queue and computer equipment
CN113791735A (en) Video data storage method and device, computer equipment and storage medium
CN115455058A (en) Cache data processing method and device, computer equipment and storage medium
CN107657155B (en) Method and device for authenticating user operation authority
CN113656098A (en) Configuration acquisition method and system
CN112865927B (en) Message delivery verification method, device, computer equipment and storage medium
CN107918915B (en) Apparatus, method and computer readable storage medium for processing information of underwriting
CN108241732B (en) Electronic device, information processing method, and storage medium
CN111026746A (en) Method and device for multi-channel data calling, computer equipment and storage medium
CN112036837B (en) Signature processing method, device and system, equipment and computer readable storage medium
CN110069493B (en) Data processing method, device, computer equipment and storage medium
CN108959405B (en) Strong consistency reading method of data and terminal equipment
CN114218191A (en) System function migration method and device, computer equipment and storage medium
CN112632192A (en) Node maintenance method and device, computer equipment and 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
GR01 Patent grant
GR01 Patent grant