CN109918084A - A kind of data mapping method of business management system - Google Patents

A kind of data mapping method of business management system Download PDF

Info

Publication number
CN109918084A
CN109918084A CN201910183670.4A CN201910183670A CN109918084A CN 109918084 A CN109918084 A CN 109918084A CN 201910183670 A CN201910183670 A CN 201910183670A CN 109918084 A CN109918084 A CN 109918084A
Authority
CN
China
Prior art keywords
data
data mapping
mapping ruler
file
ruler
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.)
Granted
Application number
CN201910183670.4A
Other languages
Chinese (zh)
Other versions
CN109918084B (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.)
Inspur General Software Co Ltd
Original Assignee
Inspur General Software 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 Inspur General Software Co Ltd filed Critical Inspur General Software Co Ltd
Priority to CN201910183670.4A priority Critical patent/CN109918084B/en
Publication of CN109918084A publication Critical patent/CN109918084A/en
Application granted granted Critical
Publication of CN109918084B publication Critical patent/CN109918084B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Stored Programmes (AREA)

Abstract

The present invention discloses a kind of data mapping method of business management system, is related to technology of data mapping field;According to business demand configuration data mapping ruler, assembly file corresponding with data mapping ruler is generated according to data mapping ruler, process is mapped using the corresponding data of multithreading marshal data mapping ruler, different data is executed parallel according to the corresponding assembly file of data mapping ruler and maps process;Compared with prior art, the present invention is according to business demand configuration data mapping ruler, assembly file corresponding with data mapping ruler is generated according to data mapping ruler, reduce the performance loss of resolution rules in data mapping process, and multithreading is compared to single thread technology, also there is biggish performance boost, it can be achieved that high speed, the mapping of the data of accurate stable.

Description

A kind of data mapping method of business management system
Technical field
The present invention discloses a kind of data mapping method of business management system, is related to technology of data mapping field.
Background technique
In the business management systems such as EPR, it is often necessary to by the data in business paper A, be converted to the number of business paper B According to for example, passing through invoice data by order data generation invoice data and generating outbound forms data.Since business datum amount is huge Greatly, the reasons such as business rule complexity, existing conversion regime can not all better meet high speed, stable, accurate enterprise Requirement, being also easy to, which leads to problems such as document generate slow or document, generates exception.
The present invention provides a kind of data mapping method of business management system, by Just-In-Time technology, reduces data It to the time of rule parsing when conversion, while realizing that the multi-threaded parallel between different processes executes, realizes the characteristic of high speed. Data, which map, to be programmed between each process using data flow, is reduced the dependence to business datum, is stablized to realize, is accurate The characteristics of.General, high speed, stable, accurate data mapping method are completed, is met in the business management systems such as EPR to difference The demand of business scenario.
Summary of the invention
The present invention is directed to problem of the prior art, provides a kind of data mapping method of business management system, main to apply In the business management systems such as EPR, high speed accurately realizes the data mapping between different business document, generates what business needed Bills data.
Concrete scheme proposed by the present invention is:
A kind of data mapping method of business management system parses data according to business demand configuration data mapping ruler Mapping ruler is that data map process, maps process according to data and generates assembly file corresponding with data mapping ruler, benefit Process is mapped with the corresponding data of multithreading editor collection file, executes different data mapping processes parallel.
Specific steps in the method are as follows:
S100: according to business demand configuration data mapping ruler,
S101: parsing data mapping ruler is that data map process,
S102: mapping process according to data, generates assembly file corresponding with data mapping ruler using Just-In-Time,
S103: having the configuration file of incidence relation between configuration data mapping ruler and assembly file,
S104: according to configuration file, finding assembly file corresponding with configuration file, with multithreading editor collection text The corresponding data of part map process, execute different data mapping processes parallel.
Data mapping ruler is resolved to different data mapping processes by step S101 in the method.For model The business demand of change, i.e. data mapping ruler resolve to different step processes, and available Mutli-thread Programming Technology, parallel to execute Different process steps.
Data mapping process includes the input process for input data in step S101 in the method, for calculating The calculation process of data, the output process for the mapping process of data conversion treatment, for output data.
Configuration file records the interior code value of data mapping ruler, the procedure set text of generation in step S103 in the method The filename of part, and the default namespace of data conversion is provided.
Configuration file uses the pass between Json file record data mapping ruler and assembly file in the method Connection relationship.
The model of business demand is turned according to business demand configuration data mapping ruler in step S100 in the method The fixed data mapping ruler of structure is turned to, convenient for parsing.
Assembly file corresponding with data mapping ruler is generated according to data mapping ruler in the method, it is specific to walk Suddenly are as follows:
8, according to the method described in claim 7, it is characterized in that being generated and data mapping ruler according to data mapping ruler Corresponding assembly file, specific steps are as follows:
S200: being the fixed number of structure by the model conversation of business demand according to business demand configuration data mapping ruler According to mapping ruler,
S201: the fixed data mapping ruler of structure is resolved into different data and maps process, including for inputting number According to input process, for calculating the calculation process of data, for the mapping process of data conversion treatment, for output data Process is exported,
S202: mapping process according to data, generates assembly file corresponding with data mapping ruler using Just-In-Time,
S203: with the configuration file of incidence relation, configuration file between configuration data mapping ruler and assembly file Use the incidence relation between Json file record data mapping ruler and assembly file.
S204: according to configuration file, finding assembly file corresponding with configuration file, with multithreading editor collection text The corresponding data of part map process, execute different data mapping processes parallel.
Usefulness of the present invention is:
The method of the present invention provides a kind of data mapping method of business management system, is mapped according to business demand configuration data Rule is generated assembly file corresponding with data mapping ruler according to data mapping ruler, is reflected using multithreading marshal data The corresponding data mapping process of rule is penetrated, different data is executed parallel according to the corresponding assembly file of data mapping ruler and reflects Jet stream journey;Compared with prior art, the present invention is generated according to business demand configuration data mapping ruler according to data mapping ruler Assembly file corresponding with data mapping ruler reduces the performance loss of resolution rules in data mapping process, Er Qieduo Threading also has biggish performance boost, it can be achieved that high speed, the mapping of the data of accurate stable compared to single thread technology.
Detailed description of the invention
Fig. 1 is the method for the present invention flow diagram;
Fig. 2 data mapping framework interface schematic diagram of the present invention.
Specific embodiment
The present invention provides a kind of data mapping method of business management system, is mapped and is advised according to business demand configuration data Then, parsing data mapping ruler is that data map process, maps process according to data and generates journey corresponding with data mapping ruler Sequence collection file maps process using the corresponding data of multithreading editor collection file, executes different data mapping stream parallel Journey.
The present invention will be further explained below with reference to the attached drawings and specific examples, so that those skilled in the art can be with It more fully understands the present invention and can be practiced, but illustrated embodiment is not as a limitation of the invention.
Using the method for the present invention, in ERP system, the mapping of sales order to invoice for sales, i.e. order generating process is Example,
A sales order is defined first to the data mapping ruler entity of invoice for sales, is recorded between order and invoice Mapping ruler, as shown in table 1 below,
Table 1
Order-invoice mapping ruler entity is parsed, is further illustrated, by the parsing to mapping ruler entity, Following data mapping process can be generated:
Process is inputted, order data is converted into accessible data;
Calculation process generates 36 random string Internal Code and constant value " Jinan ", participates in this mapping process;
Process is mapped, the data in order are mapped to invoice data one by one;
Process is exported, the invoice data collection of output is organized;
By Roslyn Quoter tool, Downloadable network address http: // Each data mapping process is generated the code of Just-In-Time, and called micro- by roslynquoter.azurewebsites.net/ Soft Core Generator, after generating parsing, assembly file corresponding with order-invoice mapping ruler entity;Generation can be direct The assembly file of execution reduces the time loss parsed in data conversion process to rule;
In json file, the incidence relation of configuration data mapping ruler and procedure set, in incidence relation configuration file, The interior code value of data mapping entity, the filename of the assembly file of generation are had recorded, and the default life of Transformation Service is provided The name space is as follows:
At runtime, corresponding procedure set is found by order-invoice mapping ruler entity according to configuration file File, and Data Conversion Service interface therein is called, sales order data can be generated as to invoice for sales data.Using more Threading executes the different data generated mapping process concurrency, achievees the purpose that quick execution data map.
Embodiment described above is only to absolutely prove preferred embodiment that is of the invention and being lifted, protection model of the invention It encloses without being limited thereto.Those skilled in the art's made equivalent substitute or transformation on the basis of the present invention, in the present invention Protection scope within.Protection scope of the present invention is subject to claims.

Claims (8)

1. a kind of data mapping method of business management system, it is characterized in that
According to business demand configuration data mapping ruler, parsing data mapping ruler is that data map process, is mapped according to data Process generates assembly file corresponding with data mapping ruler, is mapped using the corresponding data of multithreading editor collection file Process executes different data mapping processes parallel.
2. according to the method described in claim 1, it is characterized in that specific steps are as follows:
S100: according to business demand configuration data mapping ruler,
S101: parsing data mapping ruler is that data map process,
S102: mapping process according to data, generates assembly file corresponding with data mapping ruler using Just-In-Time,
S103: having the configuration file of incidence relation between configuration data mapping ruler and assembly file,
S104: according to configuration file, finding assembly file corresponding with configuration file, with multithreading editor collection file pair The data mapping process answered executes different data mapping processes parallel.
3. according to the method described in claim 2, it is characterized in that data mapping ruler is resolved to different data by step S101 Map process.
4. according to the method described in claim 3, it is characterized in that data mapping process includes being used for input data in step S101 Input process, for calculating the calculation process of data, for the mapping process of data conversion treatment, for the defeated of output data Process out.
5. according to any method of claim 2-4, it is characterized in that configuration file record data mapping rule in step S103 Interior code value then, the filename of the assembly file of generation, and the default namespace of data conversion is provided.
6. according to the method described in claim 5, it is characterized in that configuration file using Json file record data mapping ruler and Incidence relation between assembly file.
7. according to the method described in claim 6, it is characterized in that according to business demand configuration data mapping ruler in step S100, It is the fixed data mapping ruler of structure by the model conversation of business demand, convenient for parsing.
8. according to the method described in claim 7, it is characterized in that being generated according to data mapping ruler corresponding with data mapping ruler Assembly file, specific steps are as follows:
S200: being that the fixed data of structure are reflected by the model conversation of business demand according to business demand configuration data mapping ruler Rule is penetrated,
S201: the fixed data mapping ruler of structure is resolved into different data and maps process, including for input data Input process, the output for calculating the calculation process of data, for the mapping process of data conversion treatment, for output data Process,
S202: mapping process according to data, generates assembly file corresponding with data mapping ruler using Just-In-Time,
S203: with the configuration file of incidence relation, configuration file use between configuration data mapping ruler and assembly file Incidence relation between Json file record data mapping ruler and assembly file.
S204: according to configuration file, finding assembly file corresponding with configuration file, with multithreading editor collection file pair The data mapping process answered executes different data mapping processes parallel.
CN201910183670.4A 2019-03-12 2019-03-12 Data mapping method of service management system Active CN109918084B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910183670.4A CN109918084B (en) 2019-03-12 2019-03-12 Data mapping method of service management system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910183670.4A CN109918084B (en) 2019-03-12 2019-03-12 Data mapping method of service management system

Publications (2)

Publication Number Publication Date
CN109918084A true CN109918084A (en) 2019-06-21
CN109918084B CN109918084B (en) 2022-03-15

Family

ID=66964369

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910183670.4A Active CN109918084B (en) 2019-03-12 2019-03-12 Data mapping method of service management system

Country Status (1)

Country Link
CN (1) CN109918084B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112099848A (en) * 2020-09-11 2020-12-18 杭州海康威视数字技术股份有限公司 Service processing method, device and equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101067814A (en) * 2007-05-10 2007-11-07 浪潮集团山东通用软件有限公司 Mapping conversion method between data access level Xml format data and relational data
US20110066828A1 (en) * 2009-04-21 2011-03-17 Andrew Wolfe Mapping of computer threads onto heterogeneous resources
CN106682235A (en) * 2017-01-18 2017-05-17 济南浪潮高新科技投资发展有限公司 System and method for isomerous data mapping
CN108228189A (en) * 2018-01-15 2018-06-29 西安交通大学 The relational structure and the mapping method based on it of a kind of multithreading in hiding isomerism parallel programming

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101067814A (en) * 2007-05-10 2007-11-07 浪潮集团山东通用软件有限公司 Mapping conversion method between data access level Xml format data and relational data
US20110066828A1 (en) * 2009-04-21 2011-03-17 Andrew Wolfe Mapping of computer threads onto heterogeneous resources
CN106682235A (en) * 2017-01-18 2017-05-17 济南浪潮高新科技投资发展有限公司 System and method for isomerous data mapping
CN108228189A (en) * 2018-01-15 2018-06-29 西安交通大学 The relational structure and the mapping method based on it of a kind of multithreading in hiding isomerism parallel programming

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112099848A (en) * 2020-09-11 2020-12-18 杭州海康威视数字技术股份有限公司 Service processing method, device and equipment
CN112099848B (en) * 2020-09-11 2024-03-05 杭州海康威视数字技术股份有限公司 Service processing method, device and equipment

Also Published As

Publication number Publication date
CN109918084B (en) 2022-03-15

Similar Documents

Publication Publication Date Title
CN110543517B (en) Method, device and medium for realizing complex query of mass data based on elastic search
US8799299B2 (en) Schema contracts for data integration
US8321467B2 (en) System and method for communicating between an application and a database
CN105243528A (en) Financial IT system graphical centralized reconciliation system and method under big data environment
US20070271548A1 (en) Specification to abap code converter
CN105824957A (en) Query engine system and query method of distributive memory column-oriented database
US8849673B2 (en) Rule generation
CN107506383B (en) Audit data processing method and computer equipment
CN107220274B (en) Visual data interface market realization method
CN108984155A (en) Flow chart of data processing setting method and device
CN103116500A (en) Method and device for structural body definition and structure output
CN105975489A (en) Metadata-based online SQL code completion method
CN107798111B (en) Method for exporting data in large batch in distributed environment
CN103678591A (en) Device and method for automatically executing multi-service receipt statistical treatment
CN105912723B (en) A kind of storage method of custom field
CN108960672B (en) Quota and time-limited wind control method and device and computer readable storage medium
CN109918084A (en) A kind of data mapping method of business management system
US20170132195A1 (en) Method and Apparatus Providing Contextual Suggestion in Planning Spreadsheet
US9348884B2 (en) Methods and apparatus for reuse optimization of a data storage process using an ordered structure
CN102354317A (en) Data generation device and method
CN111177234A (en) Device and method for rapidly processing document type data file
US20130238669A1 (en) Using Target Columns in Data Transformation
CN109684329A (en) A kind of method for managing resource based on data center apparatus
CN109543079A (en) Data query method, apparatus calculates equipment and storage medium
CN112051987B (en) Service data processing method, device and equipment, program generating method and device

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