Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Bill data storage method and device, bill generation method and device, server and storage medium

A data storage and data technology, applied in the field of data processing, can solve the problems of insufficient conciseness of bill data, low value retrieval efficiency, large data volume, etc., and achieve the effect of reducing disk read and write pressure, reducing data volume, and improving simplicity

Pending Publication Date: 2021-02-02
彩讯科技股份有限公司
View PDF0 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Currently, the commonly used processing method for billing data serialization and deserialization is JSON, but JSON is in the form of key-value pairs, and each key-value pair must have the name of the key. In the case of massive data, the billing data is not concise enough. , a large amount of data
At the same time, when parsing the value, due to the need to match the "key name" to get the value, the efficiency of the value is relatively low

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Bill data storage method and device, bill generation method and device, server and storage medium
  • Bill data storage method and device, bill generation method and device, server and storage medium
  • Bill data storage method and device, bill generation method and device, server and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0040] figure 1 It is a schematic flowchart of a method for storing bill data provided by Embodiment 1 of the present invention. This embodiment is applicable to storage of bill data of various network platforms or organizations. Such as figure 1 As shown, the bill data storage method provided in Embodiment 1 of the present invention includes:

[0041] S110. Obtain original bill data.

[0042] Specifically, the original billing data is the original data generated by consumers' relevant consumption behaviors on network platforms or institutions. Raw billing data can be stored in different database tables.

[0043] S120. Perform serialization processing on multiple data tables of the original bill data according to a first preset rule to form first serialized bill data.

[0044] Specifically, a data table includes data that belongs to the same category and has the same format in the original bill data, that is, the data in a data table is the data of the same data category i...

Embodiment 2

[0055] figure 2 It is a schematic flowchart of a method for storing bill data provided by Embodiment 2 of the present invention, and this embodiment is a further refinement of the foregoing embodiments. Such as figure 2 As shown, the bill data storage method provided by Embodiment 2 of the present invention includes:

[0056] S201. Obtain original bill data.

[0057] S202. Perform serialization processing on multiple data tables of the original bill data according to a first preset rule to form first serialized bill data.

[0058] S203. Determine the current data table according to the first preset rule and the serial number of the current table.

[0059] Specifically, the table serial number refers to the serial number of the data table arranged based on the first preset rule. For example, the arrangement order of the data tables defined by the first preset rule is: user basic information table, account summary information table and expense detailed table, then, the tab...

Embodiment 3

[0088] image 3 It is a schematic flowchart of a bill generation method provided by Embodiment 3 of the present invention. This embodiment is applicable to the generation of electronic bills of various network platforms or organizations. like image 3 As shown, the bill generation method provided by Embodiment 3 of the present invention includes:

[0089] S310. Obtain serialized bill data.

[0090] Specifically, the serialized billing data refers to the billing data formed after the user's original billing data is serialized. In this embodiment, the serialized billing data can be the second Serialize billing data.

[0091] S320. Analyze the serialized bill data according to the first preset rule and the second preset rule to obtain target bill data, the target bill data includes multiple target data tables, and each target data table includes multiple target field.

[0092] Specifically, parsing the serialized bill data means deserializing the serialized bill data, so as ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The embodiment of the invention discloses a bill data storage method and device, a bill generation method and device, a server and a storage medium. The bill data storage method comprises the steps ofobtaining original bill data; performing serialization processing on a plurality of data tables of the original bill data according to a first preset rule; performing serialization processing on theplurality of fields in each data table according to a second preset rule to form serialized bill data; and storing the serialized bill data. According to the embodiment of the invention, the serialization processing of the bill data is realized, and the serialization processing mode enables the stored bill data to only consist of fields instead of a key value pair storage mode in the prior art, sothat the stored data volume is greatly reduced, the simplicity of the bill data is improved, and the disk read-write pressure during data storage is reduced.

Description

technical field [0001] The embodiments of the present invention relate to the technical field of data processing, and in particular, to a bill data storage and bill generation method, device, server, and storage medium. Background technique [0002] With the development of Internet technology, more and more consumers consume online. In order to enable consumers to clearly understand their consumption situation, relevant organizations or platforms will send consumers their consumption situation in the form of electronic bills. [0003] Before generating electronic bills, first read data from various databases to summarize all bill data of a consumer, and store all bill data of a consumer in the corresponding database after serialization. When generating an electronic bill, obtain the serialized data from the database, deserialize it, obtain the bill data of the consumer, and then fill the bill data into the corresponding bill module to form an electronic bill. Currently, the...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F16/22G06F16/2458G06F16/248G06F40/186
CPCG06F16/2282G06F40/186G06F16/248G06F16/2474
Inventor 杨良志白琳汪志新方跃涵张润璞叶群华郭伟斌
Owner 彩讯科技股份有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products