CN105808787A - Data processing method and electronic device - Google Patents

Data processing method and electronic device Download PDF

Info

Publication number
CN105808787A
CN105808787A CN201610207622.0A CN201610207622A CN105808787A CN 105808787 A CN105808787 A CN 105808787A CN 201610207622 A CN201610207622 A CN 201610207622A CN 105808787 A CN105808787 A CN 105808787A
Authority
CN
China
Prior art keywords
image data
mirror image
goods
data
mapping relation
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
CN201610207622.0A
Other languages
Chinese (zh)
Other versions
CN105808787B (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.)
Guangzhou Pinwei Software Co Ltd
Original Assignee
GUANGZHOU VIP NETWORK TECHNOLOGY 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 GUANGZHOU VIP NETWORK TECHNOLOGY Co Ltd filed Critical GUANGZHOU VIP NETWORK TECHNOLOGY Co Ltd
Priority to CN201610207622.0A priority Critical patent/CN105808787B/en
Publication of CN105808787A publication Critical patent/CN105808787A/en
Application granted granted Critical
Publication of CN105808787B publication Critical patent/CN105808787B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/08Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
    • 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/23Updating
    • G06F16/2365Ensuring data consistency and integrity

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Economics (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Marketing (AREA)
  • Data Mining & Analysis (AREA)
  • Development Economics (AREA)
  • Computer Security & Cryptography (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Human Resources & Organizations (AREA)
  • Databases & Information Systems (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Strategic Management (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention discloses a data processing method and an electronic device, and belongs to the field of computers.The data processing method includes the steps that mirror image data for describing goods is obtained; mapping relationship fields are read form the mirror image data, wherein the mapping relationship fields are used for describing the mapping relationships between the mirror image data and original data; according to the mapping relationship fields, whether the mirror image data is the same as mirror image data prestored by a system or not is judged; if the mirror image data is different from the mirror image data prestored by the system, the mirror image data prestored by the system is updated through the mirror image data, and the updated mirror image data is sent to devices related to the goods.According to the data processing method and the electronic device, whether the mirror image data is the same as the mirror image data prestored by the system or not is judged, the mirror image data prestored by the system is updated, the updated mirror image data is sent to the devices related to the goods, and the data processing efficiency of a database is improved.

Description

Data processing method and electronic equipment
Technical Field
The present invention relates to the field of computers, and in particular, to a data processing method and an electronic device.
Background
As is well known, the accuracy and efficiency of data management are crucial in logistics management and electronic commerce, and traditional manual management of databases is inefficient and may not be accurate, so that more and more enterprises begin to use computers to manage data information.
In the prior art, the updating of the database is performed on the basis of the condition that the data types are the same locally, and in the scene of interaction of multiple databases, the updating of the data cannot be realized in the prior art due to different data types. Because the database system has certain requirements on the format of the data, different types of services may need to be converted into a data format which can be read by the database system through data processing when the data are input, so that the database system has low operation efficiency and poor applicability.
Disclosure of Invention
In order to improve data processing efficiency and improve applicability, embodiments of the present invention provide a data processing method and an electronic device. The technical scheme is as follows:
in a first aspect, a data processing method is provided, the method including:
acquiring mirror image data for describing goods;
reading a mapping relation field from the mirror image data, wherein the mapping relation field is used for describing the mapping relation between the mirror image data and the original data; and judging whether the mirror image data is the same as the mirror image data prestored by the system or not according to the mapping relation field, if so, updating the mirror image data prestored by the system through the mirror image data, and sending the updated mirror image data to equipment related to the goods.
With reference to the first aspect, in a first possible implementation manner, the mirror image data includes at least one of management data of warehousing where the goods are located and logistics data of the goods, and the step of obtaining the mirror image data for describing the goods is implemented by at least one of the following operations:
acquiring management data periodically sent by warehousing management equipment where the goods are located, wherein the management data is used for describing the state of the goods in warehousing; or
And acquiring logistics data sent by the logistics management equipment after the goods logistics state is changed.
With reference to the first aspect, in a second possible implementation manner, the mirror image data includes order data corresponding to the goods and purchase information corresponding to the goods, and the obtaining mirror image data for describing the goods includes:
and after detecting that the user purchases the goods or generates an order corresponding to the goods, acquiring order data corresponding to the goods and purchase information corresponding to the goods.
With reference to the first aspect, in a third possible implementation manner, before the reading the mapping relationship field from the mirror data, the method further includes:
and detecting whether the fields contained in the mirror image data are complete, whether the format of the mirror image data conforms to the format defined by the system and whether the mirror image data is modified legally, and if so, continuing to execute the step of reading the mapping relation fields from the mirror image data.
With reference to the third possible implementation manner of the first aspect, in a fourth possible implementation manner, the determining, according to the mapping relationship field, whether the mirror image data is the same as mirror image data pre-stored in a system includes:
searching mirror image data which is stored in the system and is the same as the identifier according to the identifier of the mirror image data;
and judging whether the mapping relation of the mirror image data is the same as that of the mirror image data prestored by the system or not, if so, judging that the mirror image data is the same as that of the mirror image data prestored by the system, otherwise, judging that the mirror image data is different.
In a second aspect, an electronic device is provided, the electronic device comprising:
the acquisition module is used for acquiring mirror image data describing goods;
the processing module is used for reading a mapping relation field from the mirror image data, wherein the mapping relation field is used for describing the mapping relation between the mirror image data and the original data;
the judging module is used for judging whether the mirror image data is the same as the mirror image data prestored by the system or not according to the mapping relation field;
and the judging module judges that the mirror image data is different from the mirror image data prestored by the system, updates the mirror image data prestored by the system through the mirror image data and sends the updated mirror image data to equipment related to the goods.
With reference to the second aspect, in a first possible implementation manner, the obtaining module is configured to perform any one of the following operations:
the mirror image data comprises management data of the warehousing of the goods, and the management data is used for describing the state of the goods in the warehousing and acquiring the management data periodically sent by warehousing management equipment of the goods; or,
the mirror image data comprises logistics data of the goods, and the logistics data sent by the logistics management equipment after the logistics state of the goods is changed is obtained.
With reference to the second aspect, in a second possible implementation manner, the obtaining module is specifically configured to:
the mirror image data includes order data corresponding to the goods and purchase information corresponding to the goods, and the acquiring mirror image data for describing the goods includes:
and after detecting that the user purchases the goods or generates an order corresponding to the goods, acquiring order data corresponding to the goods and purchase information corresponding to the goods.
With reference to the second aspect, in a third possible implementation manner, the processing module is specifically configured to:
detecting whether fields contained in the mirror image data are complete, whether the format of the mirror image data conforms to a format defined by a system and whether the mirror image data is legally modified; if yes, continuing to execute the step of reading the mapping relation field from the mirror image data.
With reference to the third possible implementation manner of the second aspect, in a fourth possible implementation manner, the decision module is specifically configured to:
searching mirror image data which is stored in the system and is the same as the identifier according to the identifier of the mirror image data;
and judging whether the mapping relation of the mirror image data is the same as that of the mirror image data prestored by the system or not, if so, judging that the mirror image data is the same as that of the mirror image data prestored by the system, otherwise, judging that the mirror image data is different.
In a third aspect, an electronic device is provided, which includes a memory and a processor connected to the memory, the memory storing a set of program codes, and the processor calling the program codes stored in the memory to perform the following operations:
acquiring mirror image data for describing goods;
reading a mapping relation field from the mirror image data, wherein the mapping relation field is used for describing the mapping relation between the mirror image data and the original data; and judging whether the mirror image data is the same as the mirror image data prestored by the system or not according to the mapping relation field, if so, updating the mirror image data prestored by the system through the mirror image data, and sending the updated mirror image data to equipment related to the goods.
With reference to the third aspect, in a first possible implementation manner, the mirror data includes at least one of management data of warehousing where the goods are stored and logistics data of the goods, and the processor calls the program code stored in the memory to perform at least one of the following operations:
acquiring management data periodically sent by warehousing management equipment where the goods are located, wherein the management data is used for describing the state of the goods in warehousing; or
And acquiring logistics data sent by the logistics management equipment after the goods logistics state is changed.
With reference to the third aspect, in a second possible implementation manner, the mirror data includes order data corresponding to the goods and purchase information corresponding to the goods, and the processor invokes the program code stored in the memory to perform the following operations:
and after detecting that the user purchases the goods or generates an order corresponding to the goods, acquiring order data corresponding to the goods and purchase information corresponding to the goods.
With reference to the third aspect, in a third possible implementation manner, the processor calls the program code stored in the memory to perform the following operations:
and detecting whether the fields contained in the mirror image data are complete, whether the format of the mirror image data conforms to the format defined by the system and whether the mirror image data is modified legally, and if so, continuing to execute the step of reading the mapping relation fields from the mirror image data.
With reference to the third aspect, in a fourth possible implementation manner, the processor calls the program code stored in the memory to perform the following operations:
searching mirror image data which is stored in the system and is the same as the identifier according to the identifier of the mirror image data;
and judging whether the mapping relation of the mirror image data is the same as that of the mirror image data prestored by the system or not, if so, judging that the mirror image data is the same as that of the mirror image data prestored by the system, otherwise, judging that the mirror image data is different.
In a fourth aspect, there is provided a data processing system, the system comprising:
the system comprises an acquisition device, a storage device and a control device, wherein the acquisition device is used for acquiring mirror image data describing goods;
the processing module is used for reading a mapping relation field from the mirror image data, wherein the mapping relation field is used for describing the mapping relation between the mirror image data and the original data;
the judging device is used for judging whether the mirror image data is the same as the mirror image data pre-stored by the system or not according to the mapping relation field;
and the judging device judges that the mirror image data is different from the mirror image data prestored by the system, updates the mirror image data prestored by the system through the mirror image data and sends the updated mirror image data to the equipment related to the goods.
With reference to the fourth aspect, in a first possible implementation manner, the obtaining device is configured to perform any one of the following operations:
the mirror image data comprises management data of the warehousing of the goods, and the management data is used for describing the state of the goods in the warehousing and acquiring the management data periodically sent by warehousing management equipment of the goods; or,
the mirror image data comprises logistics data of the goods, and the logistics data sent by the logistics management equipment after the logistics state of the goods is changed is obtained.
With reference to the fourth aspect, in a second possible implementation manner, the obtaining device is specifically configured to:
the mirror image data includes order data corresponding to the goods and purchase information corresponding to the goods, and the acquiring mirror image data for describing the goods includes:
and after detecting that the user purchases the goods or generates an order corresponding to the goods, acquiring order data corresponding to the goods and purchase information corresponding to the goods.
With reference to the fourth aspect, in a third possible implementation manner, the processing device is specifically configured to:
detecting whether fields contained in the mirror image data are complete, whether the format of the mirror image data conforms to a format defined by a system and whether the mirror image data is legally modified; if yes, continuing to execute the step of reading the mapping relation field from the mirror image data.
With reference to the third possible implementation manner of the fourth aspect, in a fourth possible implementation manner, the decision device is specifically configured to:
searching mirror image data which is stored in the system and is the same as the identifier according to the identifier of the mirror image data;
and judging whether the mapping relation of the mirror image data is the same as that of the mirror image data prestored by the system or not, if so, judging that the mirror image data is the same as that of the mirror image data prestored by the system, otherwise, judging that the mirror image data is different.
The embodiment of the invention provides a data processing method and electronic equipment, which comprise the following steps: acquiring mirror image data for describing goods; reading a mapping relation field from the mirror image data, wherein the mapping relation field is used for describing the mapping relation between the mirror image data and the original data; and judging whether the mirror image data is the same as the mirror image data prestored by the system or not according to the mapping relation field, if so, updating the mirror image data prestored by the system through the mirror image data, and sending the updated mirror image data to equipment related to the goods. The image data prestored in the system is updated by judging whether the image data is the same as the image data prestored in the system or not, and the updated image data is sent to equipment related to goods, so that the efficiency of processing the data by the database is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a flow chart of a data processing method according to an embodiment of the present invention;
FIG. 2 is a flow chart of a data processing method according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a data processing system according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. 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.
The embodiment of the invention provides a data processing method, which is applied to updating different types of logistics data from a plurality of databases under the scene of interconnection and data interaction of the databases with different data formats. In addition, the method can be applied to updating different types of commodity data from a plurality of electronic commerce platforms or a commodity management system in the scene of interconnection and data interaction of the plurality of electronic commerce platforms or in the scene of interconnection and data interaction of a plurality of commodity storage systems in the electronic commerce process, and the commodity information can be order information corresponding to commodities, warehousing information of the commodities and the like.
An embodiment of the present invention provides a data processing method, which is shown in fig. 1 and includes:
101. mirror image data describing the cargo is obtained.
Specifically, the mirror image data includes at least one of management data of warehousing where the goods are located and logistics data of the goods, and the step of obtaining the mirror image data for describing the goods is realized through at least one of the following operations:
acquiring management data periodically transmitted by warehousing management equipment where goods are located, wherein the management data is used for describing the warehousing state of the goods; or
And acquiring logistics data sent by the logistics management equipment after the goods logistics state is changed.
The mirror image data includes order data corresponding to the goods and purchase information corresponding to the goods, and acquiring the mirror image data for describing the goods includes:
after the situation that a user purchases goods or generates an order corresponding to the goods is detected, order data corresponding to the goods and purchase information corresponding to the goods are obtained.
Optionally, after step 101, the method may further include:
and detecting whether the fields contained in the mirror image data are complete, whether the format of the mirror image data conforms to the format defined by the system and whether the mirror image data is legally modified, and if so, continuing to execute the step of reading the mapping relation fields from the mirror image data.
102. And reading a mapping relation field from the mirror image data, wherein the mapping relation field is used for describing the mapping relation between the mirror image data and the original data.
103. And judging whether the mirror image data is the same as the mirror image data prestored by the system or not according to the mapping relation field, if so, updating the mirror image data prestored by the system through the mirror image data, and sending the updated mirror image data to equipment related to the goods.
Searching mirror image data which is stored in the system and is the same as the identifier according to the identifier of the mirror image data;
and judging whether the mapping relation of the mirror image data is the same as the mapping relation of the mirror image data pre-stored by the system, if so, judging that the mirror image data is the same as the mirror image data pre-stored by the system, and otherwise, judging that the mirror image data is different.
The embodiment of the invention provides a data processing method, which updates the mirror image data prestored in the system by judging whether the mirror image data is the same as the mirror image data prestored in the system or not and sends the updated mirror image data to equipment related to goods, so that the high efficiency of data processing of a database is improved.
The second embodiment is a data processing method provided by the embodiment of the present invention, and as shown in fig. 2, the method includes:
201. acquiring management data periodically transmitted by warehousing management equipment where the goods are located, wherein the management data is used for describing the warehousing state of the goods, and after step 201, executing step 204.
Specifically, the mirror image data includes management data of the warehouse where the goods are located.
The management data may be a location where the goods are stored, a state of the goods in the storage, where the state of the storage includes whether the goods are damaged, whether the goods are scheduled, whether the goods are sold in advance, and the like, and it should be noted that the management data may be periodically generated by a management device in the storage where the goods are stored, or may be generated by the management device in the storage where the goods are stored after detecting that the state of the goods changes, where a process of the management device in the storage generating the management data may be at least one of the following manners:
the warehousing management equipment generates description information of the situation and alarm information corresponding to the description information when detecting that goods are damaged, lost and the like through monitoring equipment connected with the warehousing management equipment, adds the description information and the alarm information to the state of the goods, and generates management data according to the position of the goods in warehousing and the state of the goods in warehousing. Or,
when receiving the preset information or the pre-selling information sent by an order system or a shopping system connected with the warehouse management equipment, the warehouse management equipment adds the preset information and the pre-selling information to the state of the goods, and generates management data according to the position of the goods in the warehouse and the state of the goods in the warehouse.
Through acquiring the management data periodically sent by the warehousing management equipment where the goods are located, the knowledge, management and query of the warehousing state where the goods are located are realized, the efficiency and reliability of goods management are improved, and the efficiency of data processing of the database is further improved.
The embodiment of the present invention does not limit the specific acquisition method.
202. Logistics data sent by the logistics management device after the goods logistics state is changed is acquired, and after step 202, step 204 is executed.
Specifically, the mirror image data includes logistics data corresponding to the cargo.
The logistics data can be generated after the goods logistics state is changed, the goods logistics state change comprises the goods storage place logistics state change and the goods transportation process logistics state change, and the change detection can be realized through logistics equipment; after the logistics equipment detects that the logistics state of the goods changes, the process of generating logistics data can be as follows:
after the logistics order occurs, the logistics device generates logistics data and sends the logistics data to related devices, and the related devices can be user maintenance devices, user devices or system maintenance devices.
The logistics equipment generates logistics data after detecting that the logistics state of the goods changes in the goods transportation process, wherein the logistics state of the goods changes comprises the current position of the goods changes, and a user submits a new logistics distribution requirement and whether the goods is damaged or not in the goods transportation process.
Through acquiring logistics data sent by logistics management equipment after the goods logistics state is changed, the knowledge, management and query of the goods logistics state are realized, the efficiency and reliability of goods logistics management are improved, and the efficiency of data processing of a database is further improved.
203. After detecting that the user purchases the goods or generates an order corresponding to the goods, acquiring order data corresponding to the goods and purchase information corresponding to the goods, and after step 203, executing step 204.
Specifically, the mirror image data includes order data corresponding to the goods and purchase information corresponding to the goods.
The purchase information may be generated according to the order data and the purchaser information corresponding to the order data after the order data is generated, or may be generated after the order data and the purchase information are changed after the order data is generated; the process of generating the purchase information may be:
detecting information sent by a shopping system or an order system after a user takes a purchasing behavior or submits an order;
according to the information, order data corresponding to the goods and purchase information corresponding to the goods are generated. Or,
detecting change information sent by a shopping system or an order system after a user changes an order;
according to the change information, order data corresponding to the goods and purchase information corresponding to the goods are generated.
Through obtaining the order data corresponding to the goods and the purchase information corresponding to the goods, the user can know, manage and inquire the goods state after purchasing the goods, the efficiency and the reliability of goods management are improved, and the efficiency of data processing of the database is further improved.
It should be noted that step 201 to step 203 are in a parallel relationship, and in practical applications, the process of acquiring the mirror image data describing the goods may be implemented by any one of step 201 to step 203.
204. Whether the fields included in the mirror image data are complete, whether the format of the mirror image data conforms to the format defined by the system, and whether the mirror image data is modified legally are detected, and if yes, step 205 is continued.
Specifically, the process of detecting whether the fields included in the mirror image data are complete may be:
analyzing and acquiring a data structure field and a data content field of the mirror image data;
comparing the data structure field and the contained data content field of the mirror image data with a standard data structure field and a data content field preset by a system;
if the number of the data structure fields and the number of the contained data content fields of the mirror image data are greater than or equal to the number of the standard data structure fields and the number of the data content fields preset by the system, the fields contained by the mirror image data are complete, otherwise, the fields are incomplete.
The usability of the data is ensured by detecting whether the fields contained in the mirror image data are complete, thereby avoiding the reduction of the data processing efficiency caused by incomplete data in the data processing process and further improving the efficiency of the database for processing the data.
The process of detecting whether the format of the mirrored data conforms to the format defined by the system may be:
analyzing and acquiring a format field of the mirror image data;
comparing the format field of the mirror image data with a format field pre-stored by a system;
if the format field of the mirror image data is the same as or compatible with the format field pre-stored by the system, the format of the mirror image data conforms to the format defined by the system, otherwise, the format of the mirror image data does not conform to the format defined by the system.
By detecting whether the format of the mirror image data conforms to the format defined by the system, the usability of the format of the data is ensured, thereby avoiding the reduction of the data processing efficiency caused by the incompatibility of the data formats in the data processing process and further improving the high efficiency of the database for processing the data.
The process of detecting whether the mirror data is legally modified may be:
analyzing and acquiring a modification mark field contained in the mirror image data;
detecting the validity of the modification mark, including detecting whether the device is a device supported by the system through the information of the added device included by the modification mark, and detecting whether the added person is an added person supported by the system through the information of the added person included by the modification mark;
if yes, detecting that the mirror image data is legal to modify, otherwise, detecting that the mirror image data is illegal.
By detecting whether the mirror image data is legally modified, the illegal modification of the data is avoided, and the safety and the reliability of the data are ensured.
It should be noted that the three detection processes may be performed separately, simultaneously, or in other orders, and the specific execution order is not limited in the embodiment of the present invention.
The detection process may be realized by a detection program preset by the system, and the embodiment of the present invention does not limit the specific detection method.
If not, outputting a prompt message of mirror image data error.
205. And reading a mapping relation field from the mirror image data, wherein the mapping relation field is used for describing the mapping relation between the mirror image data and the original data.
Specifically, the mapping relationship may be a mapping function or a mapping matrix, and the original data is mapped according to the mapping relationship to generate mirror image data.
The reading process may specifically be:
detecting field indicators of all fields contained in the mirror image data;
after detecting a start indicator of the mapping relation field, starting to read the mapping relation field;
and stopping reading after the end indicator of the mapping relation field is detected.
206. And searching the mirror data which is stored in the system and is identical to the identifier according to the identifier of the mirror data.
Specifically, the process may be:
comparing the identifier of the mirror image data with identifiers stored in a system, and determining the identifier which is the same as the identifier of the mirror image data;
and acquiring mirror image data corresponding to the identifier.
The above searching manner is only exemplary, and the specific searching manner is not limited in the embodiment of the present invention.
207. And judging whether the mapping relation of the mirror image data is the same as the mapping relation of the mirror image data pre-stored by the system, if so, judging that the mirror image data is the same as the mirror image data pre-stored by the system, and otherwise, judging that the mirror image data is different.
Specifically, the process of determining whether the mapping relationship of the mirror image data is the same as the mapping relationship of the mirror image data stored in advance by the system may be implemented by any one of the following operations:
and comparing the mapping relation field with the mapping relation of the mirror image data prestored in the system, wherein if the mapping relation field is different from the mapping relation field of the mirror image data prestored in the system except for different generation time, the other fields are the same, the mirror image data is the same as the mirror image data prestored in the system, and otherwise, the mirror image data is different. Or,
and obtaining parameters of a mapping function or a mapping matrix in the mapping relation field, comparing the parameters of the mapping function or the mapping matrix with the parameters of the mapping function or the mapping matrix stored in advance in the system, wherein the parameters of the mapping function or the mapping matrix are different in the generation time process, and the other parameters are the same, so that the mirror image data is the same as the mirror image data stored in advance in the system, otherwise, the mirror image data is different.
Whether the mapping relation of the mirror image data is the same as the mapping relation of the mirror image data pre-stored by the system is judged through the mapping relation of the mirror image data or the mapping function or the parameters of the mapping matrix in the mapping relation field, and compared with the method that whether the data is the same is directly judged through the mirror image data, the data processing amount is reduced, and therefore the high efficiency of the database for processing the data is further improved.
And comparing the mapping relation of the mirror image data with the mapping relation of the mirror image data stored in advance by the system, wherein the comparison process can be realized by comparing the parameters of a mapping function or a mapping matrix.
If different functions exist, the mirror image data is different from the mirror image data pre-stored by the system, otherwise, the mirror image data is the same.
It should be noted that steps 206 to 207 are processes for determining whether the mirror data is the same as the mirror data pre-stored in the system according to the mapping relationship field. Besides the above steps, the process may be implemented in other ways, and the embodiment of the present invention does not limit the specific implementation manner.
208. And updating the mirror image data stored in advance by the system through the mirror image data, and sending the updated mirror image data to equipment related to the goods.
Specifically, the updating process may be implemented by deleting the mirror image data pre-stored in the system and storing the new mirror image data, and the embodiment of the present invention does not limit the specific updating manner.
Because the current logistics management systems and the commodity management systems of the shopping platforms are more and different databases are adopted, under the scene of a plurality of logistics management systems or commodity management systems, the data of each logistics management system or each commodity management system can not be compatible due to different data types supported by the databases, and therefore the management of commodities under the scene of the plurality of logistics management systems or the commodity management systems can not be realized; or, the data of each logistics management system or commodity management system needs to be subjected to format conversion, so that the data processing amount is increased, and the data processing efficiency is reduced, thereby increasing the labor cost and time cost of commodity management, and reducing the commodity management efficiency.
The embodiment of the invention provides a data processing method, which updates the mirror image data prestored in the system by judging whether the mirror image data is the same as the mirror image data prestored in the system or not and sends the updated mirror image data to equipment related to goods, so that the high efficiency of data processing of a database is improved.
An electronic device provided by the third embodiment of the present invention is shown in fig. 3, and includes:
an obtaining module 31, configured to obtain mirror image data describing a cargo;
the processing module 32 is configured to read a mapping relationship field from the mirror image data, where the mapping relationship field is used to describe a mapping relationship between the mirror image data and the original data;
the judging module 33 is configured to judge whether the mirror image data is the same as mirror image data pre-stored in the system according to the mapping relationship field;
the judgment module 33 judges that the mirror image data is different from the mirror image data pre-stored by the system, updates the mirror image data pre-stored by the system through the mirror image data, and sends the updated mirror image data to the equipment related to the goods.
Optionally, the obtaining module 31 is configured to perform any one of the following operations:
the mirror image data comprises management data of the warehousing of the goods, and the management data is used for describing the warehousing state of the goods and acquiring the management data periodically sent by warehousing management equipment of the goods; or,
the mirror image data comprises logistics data of the goods, and the logistics data sent by the logistics management equipment after the logistics state of the goods is changed is obtained.
Optionally, the obtaining module 31 is specifically configured to:
the mirror image data includes order data corresponding to the goods and purchase information corresponding to the goods, and acquiring the mirror image data for describing the goods includes:
after the situation that a user purchases goods or generates an order corresponding to the goods is detected, order data corresponding to the goods and purchase information corresponding to the goods are obtained.
Optionally, the processing module 32 is specifically configured to:
detecting whether fields contained in the mirror image data are complete, whether the format of the mirror image data conforms to the format defined by the system and whether the mirror image data is legally modified; if yes, continuing to execute the step of reading the mapping relation field from the mirror image data.
Optionally, the decision module 33 is specifically configured to:
searching mirror image data which is stored in the system and is the same as the identifier according to the identifier of the mirror image data;
and judging whether the mapping relation of the mirror image data is the same as the mapping relation of the mirror image data pre-stored by the system, if so, judging that the mirror image data is the same as the mirror image data pre-stored by the system, and otherwise, judging that the mirror image data is different.
The embodiment of the invention provides electronic equipment, which updates the mirror image data prestored in the system by judging whether the mirror image data is the same as the mirror image data prestored in the system or not and sends the updated mirror image data to equipment related to goods, so that the high efficiency of data processing of a database is improved.
Fourth embodiment is an electronic device provided by an embodiment of the present invention, and as shown in fig. 4, the electronic device includes a memory 41 and a processor 42 connected to the memory, where the memory 41 is configured to store a set of program codes, and the processor 42 calls the program codes stored in the memory 41 to perform the following operations:
acquiring mirror image data for describing goods;
reading a mapping relation field from the mirror image data, wherein the mapping relation field is used for describing the mapping relation between the mirror image data and the original data; and judging whether the mirror image data is the same as the mirror image data prestored by the system or not according to the mapping relation field, if so, updating the mirror image data prestored by the system through the mirror image data, and sending the updated mirror image data to equipment related to the goods.
Optionally, the mirror image data includes at least one of management data of warehousing where the goods are located and logistics data of the goods, and the processor 42 calls the program code stored in the memory 41 to perform at least one of the following operations:
acquiring management data periodically transmitted by warehousing management equipment where goods are located, wherein the management data is used for describing the warehousing state of the goods; or
And acquiring logistics data sent by the logistics management equipment after the goods logistics state is changed.
Optionally, the mirror image data includes order data corresponding to the goods and purchase information corresponding to the goods, and the processor 42 calls the program code stored in the memory 41 to perform the following operations:
after the situation that a user purchases goods or generates an order corresponding to the goods is detected, order data corresponding to the goods and purchase information corresponding to the goods are obtained.
Optionally, the processor 42 calls the program code stored in the memory 41 for performing the following operations:
and detecting whether the fields contained in the mirror image data are complete, whether the format of the mirror image data conforms to the format defined by the system and whether the mirror image data is legally modified, and if so, continuing to execute the step of reading the mapping relation fields from the mirror image data.
Optionally, the processor 42 calls the program code stored in the memory 41 for performing the following operations:
searching mirror image data which is stored in the system and is the same as the identifier according to the identifier of the mirror image data;
and judging whether the mapping relation of the mirror image data is the same as the mapping relation of the mirror image data pre-stored by the system, if so, judging that the mirror image data is the same as the mirror image data pre-stored by the system, and otherwise, judging that the mirror image data is different.
The embodiment of the invention provides electronic equipment, which updates the mirror image data prestored in the system by judging whether the mirror image data is the same as the mirror image data prestored in the system or not and sends the updated mirror image data to equipment related to goods, so that the high efficiency of data processing of a database is improved.
Fifth embodiment is a data processing system provided in an embodiment of the present invention, and as shown in fig. 5, the system includes:
an acquisition device 51 for acquiring mirror image data describing the cargo;
the processing device 52 is configured to read a mapping relationship field from the mirror image data, where the mapping relationship field is used to describe a mapping relationship between the mirror image data and the original data;
a judging device 53, configured to judge whether the mirror image data is the same as mirror image data pre-stored in the system according to the mapping relationship field;
the decision device 53 judges that the mirror image data is different from the mirror image data stored in advance by the system, updates the mirror image data stored in advance by the system through the mirror image data, and transmits the updated mirror image data to the device related to the goods.
Optionally, the obtaining device 51 is configured to perform any one of the following operations:
the mirror image data comprises management data of the warehousing of the goods, and the management data is used for describing the warehousing state of the goods and acquiring the management data periodically sent by warehousing management equipment of the goods; or,
the mirror image data comprises logistics data of the goods, and the logistics data sent by the logistics management equipment after the logistics state of the goods is changed is obtained.
Optionally, the obtaining device 51 is specifically configured to:
the mirror image data includes order data corresponding to the goods and purchase information corresponding to the goods, and acquiring the mirror image data for describing the goods includes:
after the situation that a user purchases goods or generates an order corresponding to the goods is detected, order data corresponding to the goods and purchase information corresponding to the goods are obtained.
Optionally, the processing device 52 is specifically configured to:
detecting whether fields contained in the mirror image data are complete, whether the format of the mirror image data conforms to the format defined by the system and whether the mirror image data is legally modified; if yes, continuing to execute the step of reading the mapping relation field from the mirror image data.
Optionally, the decision device 53 is specifically configured to:
searching mirror image data which is stored in the system and is the same as the identifier according to the identifier of the mirror image data;
and judging whether the mapping relation of the mirror image data is the same as the mapping relation of the mirror image data pre-stored by the system, if so, judging that the mirror image data is the same as the mirror image data pre-stored by the system, and otherwise, judging that the mirror image data is different.
The embodiment of the invention provides a data processing system, which updates the mirror image data prestored in the system by judging whether the mirror image data is the same as the mirror image data prestored in the system or not and sends the updated mirror image data to equipment related to goods, so that the high efficiency of data processing of a database is improved.
All the above-mentioned optional technical solutions can be combined arbitrarily to form the optional embodiments of the present invention, and are not described herein again.
It should be noted that: in the electronic device provided in the foregoing embodiment, when executing the data processing method, only the division of the functional modules is illustrated, and in practical applications, the function distribution may be completed by different functional modules according to needs, that is, the internal structure of the electronic device is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the electronic device and the data processing method provided by the above embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments for details, which are not described herein again.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (10)

1. A method of data processing, the method comprising:
acquiring mirror image data for describing goods;
reading a mapping relation field from the mirror image data, wherein the mapping relation field is used for describing the mapping relation between the mirror image data and the original data;
and judging whether the mirror image data is the same as the mirror image data prestored by the system or not according to the mapping relation field, if so, updating the mirror image data prestored by the system through the mirror image data, and sending the updated mirror image data to equipment related to the goods.
2. The method of claim 1, wherein the mirrored data comprises at least one of management data of a warehouse where the goods are stored and logistics data of the goods, and the step of obtaining the mirrored data describing the goods is performed by at least one of:
acquiring management data periodically sent by warehousing management equipment where the goods are located, wherein the management data is used for describing the state of the goods in warehousing; or
And acquiring logistics data sent by the logistics management equipment after the goods logistics state is changed.
3. The method of claim 1, wherein the mirrored data comprises order data corresponding to the goods and purchase information corresponding to the goods, and wherein obtaining mirrored data describing the goods comprises:
and after detecting that the user purchases the goods or the order corresponding to the goods, acquiring order data corresponding to the goods and purchase information corresponding to the goods.
4. The method of claim 1, wherein before reading the mapping relationship field from the mirrored data, the method further comprises:
and detecting whether the fields contained in the mirror image data are complete, whether the format of the mirror image data conforms to the format defined by the system and whether the mirror image data is modified legally, and if so, continuing to execute the step of reading the mapping relation fields from the mirror image data.
5. The method according to claim 4, wherein the determining whether the mirror data is the same as mirror data pre-stored in a system according to the mapping relationship field comprises:
searching mirror image data which is stored in the system and is the same as the identifier according to the identifier of the mirror image data;
and judging whether the mapping relation of the mirror image data is the same as that of the mirror image data prestored by the system or not, if so, judging that the mirror image data is the same as that of the mirror image data prestored by the system, otherwise, judging that the mirror image data is different.
6. An electronic device, characterized in that the electronic device comprises:
the acquisition module is used for acquiring mirror image data describing goods;
the processing module is used for reading a mapping relation field from the mirror image data, wherein the mapping relation field is used for describing the mapping relation between the mirror image data and the original data;
the judging module is used for judging whether the mirror image data is the same as the mirror image data prestored by the system or not according to the mapping relation field;
and the judging module judges that the mirror image data is different from the mirror image data prestored by the system, updates the mirror image data prestored by the system through the mirror image data and sends the updated mirror image data to equipment related to the goods.
7. The device of claim 6, wherein the obtaining module is configured to perform any one of the following operations:
the mirror image data comprises management data of the warehousing of the goods, and the management data is used for describing the state of the goods in the warehousing and acquiring the management data periodically sent by warehousing management equipment of the goods; or,
the mirror image data comprises logistics data of the goods, and the logistics data sent by the logistics management equipment after the logistics state of the goods is changed is obtained.
8. The device of claim 6, wherein the obtaining module is specifically configured to:
the mirror image data includes order data corresponding to the goods and purchase information corresponding to the goods, and the acquiring mirror image data for describing the goods includes:
and after detecting that the user purchases the goods or generates an order corresponding to the goods, acquiring order data corresponding to the goods and purchase information corresponding to the goods.
9. The device of claim 6, wherein the processing module is specifically configured to:
detecting whether fields contained in the mirror image data are complete, whether the format of the mirror image data conforms to a format defined by a system and whether the mirror image data is legally modified; if yes, continuing to execute the step of reading the mapping relation field from the mirror image data.
10. The device of claim 9, wherein the decision module is specifically configured to:
searching mirror image data which is stored in the system and is the same as the identifier according to the identifier of the mirror image data;
and judging whether the mapping relation of the mirror image data is the same as that of the mirror image data prestored by the system or not, if so, judging that the mirror image data is the same as that of the mirror image data prestored by the system, otherwise, judging that the mirror image data is different.
CN201610207622.0A 2016-04-01 2016-04-01 A kind of data processing method and electronic equipment Active CN105808787B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610207622.0A CN105808787B (en) 2016-04-01 2016-04-01 A kind of data processing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610207622.0A CN105808787B (en) 2016-04-01 2016-04-01 A kind of data processing method and electronic equipment

Publications (2)

Publication Number Publication Date
CN105808787A true CN105808787A (en) 2016-07-27
CN105808787B CN105808787B (en) 2019-10-11

Family

ID=56459577

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610207622.0A Active CN105808787B (en) 2016-04-01 2016-04-01 A kind of data processing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN105808787B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201689418U (en) * 2010-04-14 2010-12-29 北京喻龙恒瑞科技有限公司 Management data sheet updating device and managing system
CN102426582A (en) * 2011-09-29 2012-04-25 用友软件股份有限公司 Data operation management device and data operation management method
CN103034636A (en) * 2011-09-29 2013-04-10 盛乐信息技术(上海)有限公司 Roll-back method, device and system of non relational database
CN104156832A (en) * 2014-08-28 2014-11-19 国家电网公司 Intersystem data verification method and device
CN104809553A (en) * 2015-04-20 2015-07-29 广东工业大学 Multi-source electronic commerce data processing platform and method for heterogeneous data

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201689418U (en) * 2010-04-14 2010-12-29 北京喻龙恒瑞科技有限公司 Management data sheet updating device and managing system
CN102426582A (en) * 2011-09-29 2012-04-25 用友软件股份有限公司 Data operation management device and data operation management method
CN103034636A (en) * 2011-09-29 2013-04-10 盛乐信息技术(上海)有限公司 Roll-back method, device and system of non relational database
CN104156832A (en) * 2014-08-28 2014-11-19 国家电网公司 Intersystem data verification method and device
CN104809553A (en) * 2015-04-20 2015-07-29 广东工业大学 Multi-source electronic commerce data processing platform and method for heterogeneous data

Also Published As

Publication number Publication date
CN105808787B (en) 2019-10-11

Similar Documents

Publication Publication Date Title
EP3373516B1 (en) Method and device for processing service calling information
CN102214187B (en) Complex event processing method and device
CN107798617B (en) Insurance business processing method and device
CN109299177A (en) Data pick-up method, apparatus, storage medium and electronic equipment
CN110109656B (en) Interface simulation method, device, computer equipment and storage medium
CN114549068A (en) Short link generation method, equipment, device and computer readable storage medium
CN114841722B (en) Product verification method and system based on industrial internet identification, equipment and medium
CN109918385A (en) Tripartite's account checking method, electronic device and readable storage medium storing program for executing
CN116167860A (en) Account checking processing method and device, electronic equipment and storage medium
CN116523457A (en) Workflow processing method, device, equipment and storage medium based on business process
CN109871408B (en) Multi-type database adaptation method, device, electronic equipment and storage medium
CN111045983B (en) Nuclear power station electronic file management method, device, terminal equipment and medium
CN111324645B (en) Block chain data processing method and device
CN105808787B (en) A kind of data processing method and electronic equipment
CN107133205A (en) A kind of cloud form component implementation method and device based on data, services
CN113793093B (en) Track query display method, track query display equipment and readable storage medium
CN115587701A (en) Enterprise risk assessment processing method and device and electronic equipment
CN105868380A (en) Heterogenous data reading method and electronic equipment
CN116644123A (en) Business process data query method, device, storage medium and server
CN110020906B (en) Order information detection method and device
CN115731013A (en) Intelligent registration method, electronic equipment and related products
CN108154321A (en) Package warehousing method and related equipment, article weighing method and related equipment
CN112632132A (en) Method, device and equipment for processing abnormal import data
CN113065935A (en) Data processing method, device, equipment and storage medium
CN106569791B (en) Data object processing method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20180117

Address after: 510370 Guangzhou City, Guangzhou, Guangdong, Fangcun Avenue, one of the 314 self compiled

Applicant after: Guangzhou Pinwei Software Co., Ltd.

Address before: No. 20, Liwan District Huahai street, Guangzhou, Guangdong Province

Applicant before: GUANGZHOU VIP NETWORK TECHNOLOGY CO., LTD.

GR01 Patent grant
GR01 Patent grant