CN111105249B - Supply chain data tracing method and device and computer equipment - Google Patents

Supply chain data tracing method and device and computer equipment Download PDF

Info

Publication number
CN111105249B
CN111105249B CN201911249997.3A CN201911249997A CN111105249B CN 111105249 B CN111105249 B CN 111105249B CN 201911249997 A CN201911249997 A CN 201911249997A CN 111105249 B CN111105249 B CN 111105249B
Authority
CN
China
Prior art keywords
data
metadata
material operation
temporary
dynamically
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911249997.3A
Other languages
Chinese (zh)
Other versions
CN111105249A (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.)
Kingdee Software China Co Ltd
Original Assignee
Kingdee Software China 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 Kingdee Software China Co Ltd filed Critical Kingdee Software China Co Ltd
Priority to CN201911249997.3A priority Critical patent/CN111105249B/en
Publication of CN111105249A publication Critical patent/CN111105249A/en
Application granted granted Critical
Publication of CN111105249B publication Critical patent/CN111105249B/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
    • G06Q30/00Commerce
    • G06Q30/018Certifying business or products
    • 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/22Indexing; Data structures therefor; Storage structures
    • G06F16/2291User-Defined Types; Storage management thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • G06F16/252Integrating or interfacing systems involving database management systems between a Database Management System and a front-end application
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

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

Abstract

The application relates to a supply chain data tracing method, a supply chain data tracing device, computer equipment and a storage medium. The method comprises the following steps: receiving a material data tracing instruction, and creating a corresponding temporary backup table according to the material data tracing instruction; backing up the state data of the current material operation through the temporary backup table; registering a material operation logic class by relying on an injection framework, instantiating the material operation logic class, and dynamically initializing the service model metadata; according to the initialized business model metadata; and dynamically calling the service model metadata corresponding to the material operation identification, and loading the material data tracing operation corresponding to the corresponding backed-up line. By adopting the method, the accuracy of supply chain data tracing can be improved.

Description

Supply chain data tracing method and device and computer equipment
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a supply chain data tracing method, apparatus, computer device, and storage medium.
Background
With the development of computer technology, more and more enterprises adopt a unified service management information platform to uniformly manage all resources and information on supply and demand chains inside and outside the enterprises, and the integration can eliminate various information gaps and information islands caused by division inside the enterprises, so that the enterprise resource planning system can be utilized to effectively manage the whole supply chain.
However, the results of supply-demand matching of supply-chain data in the current enterprise resource planning system are all displayed through reports, and it is not possible to precisely trace back how the supply-chain data is matched.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a supply chain data tracing method, apparatus, computer device, and storage medium that can improve the accuracy of supply chain data tracing.
A method of traceability of supply chain data, the method comprising:
receiving a material data tracing instruction, and creating a corresponding temporary backup table according to the material data tracing instruction;
backing up the state data of the current material operation through the temporary backup table;
registering a material operation logic class by relying on an injection framework, and instantiating the material operation logic class;
dynamically calling service model metadata corresponding to the material operation identification, loading corresponding backed-up state data, and dynamically initializing the service model metadata;
and performing corresponding material data tracing operation according to the initialized service model metadata.
In one embodiment, the receiving the material data tracing instruction, before creating the corresponding temporary backup table according to the material data tracing instruction, further includes:
generating check boxes in the management interface by saving the configuration parameters into a database;
and when the check box is checked, generating the material data tracing instruction.
In one embodiment, registering the material operation logic class by relying on the injection framework instantiates the material operation logic class, including:
intercepting the call of a material operation function by registering a dependency injection framework plug-in;
and obtaining interface parameters corresponding to the material operation, and instantiating logic classes corresponding to the material operation according to the interface parameters.
In one embodiment, before the material calculation logic class is instantiated by registering the material calculation logic class by relying on the injection framework, the method further includes:
acquiring a corresponding relation between the material operation identification and the temporary backup table;
and recording the corresponding relation between the material operation identification and the temporary backup table into a backup management physical table.
In one embodiment, after the recording the relationship between the material operation identifier and the temporary backup table in the backup management physical table, the method further includes:
acquiring the name of the temporary backup table from the backup management physical table;
and binding the name of the temporary backup table into a business physical table dynamically created by the current material operation.
In one embodiment, the dynamically calling the service model metadata corresponding to the material operation identifier, loading the corresponding backed up state data, and dynamically initializing the service model metadata includes:
copying the business metadata from the original business metadata;
dynamically creating a business physical temporary table according to the field information of the business metadata module;
and replacing the name of the business physical table of the business metadata with the name of the business physical temporary table.
A traceability apparatus of supply chain data, the apparatus comprising:
the receiving module is used for receiving the material data tracing instruction and creating a corresponding temporary backup table according to the material data tracing instruction;
the backup module is used for backing up the state data of the current material operation through the temporary backup table;
the registration module is used for registering the material operation logic class through relying on the injection framework and instantiating the material operation logic class;
the calling module is used for dynamically calling the service model metadata corresponding to the material operation identification, loading the corresponding backed-up state data and dynamically initializing the service model metadata;
and the operation module is used for carrying out corresponding material data tracing operation according to the initialized service model metadata.
In one embodiment, the apparatus further comprises:
the creation module is used for copying the service metadata from the original service metadata, dynamically creating a service physical temporary table according to the field information described by the service metadata, and replacing the name of the service physical table of the service metadata with the name of the service physical temporary table.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of:
receiving a material data tracing instruction, and creating a corresponding temporary backup table according to the material data tracing instruction;
backing up the state data of the current material operation through the temporary backup table;
registering a material operation logic class by relying on an injection framework, and instantiating the material operation logic class;
dynamically calling service model metadata corresponding to the material operation identification, loading corresponding backed-up state data, and dynamically initializing the service model metadata;
and performing corresponding material data tracing operation according to the initialized service model metadata.
A computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
receiving a material data tracing instruction, and creating a corresponding temporary backup table according to the material data tracing instruction;
backing up the state data of the current material operation through the temporary backup table;
registering a material operation logic class by relying on an injection framework, and instantiating the material operation logic class;
dynamically calling service model metadata corresponding to the material operation identification, loading corresponding backed-up state data, and dynamically initializing the service model metadata;
and performing corresponding material data tracing operation according to the initialized service model metadata.
According to the supply chain data tracing method, the supply chain data tracing device, the computer equipment and the storage medium, the corresponding temporary backup table is created according to the material data tracing instruction by receiving the material data tracing instruction. And backing up the state data of the current material operation through the temporary backup table, registering the material operation logic class through the dependency injection framework, and instantiating the material operation logic class. And dynamically calling service model metadata corresponding to the material operation identification, loading corresponding backed-up state data, dynamically initializing the service model metadata, and performing corresponding material data tracing operation according to the initialized service model metadata. Compared with the traditional tracing mode of the supply chain data, the tracing method has the advantages that the material operation logic class is registered by relying on the injection framework, and the service model metadata corresponding to the material operation identification is dynamically called, so that the normal logic of standard operation is multiplexed in tracing operation, the isolation of service data and operation data and the isolation of service codes and log codes can be ensured, and the accuracy of tracing the supply chain data is improved.
Drawings
FIG. 1 is an application scenario diagram of a traceability method of supply chain data in one embodiment;
FIG. 2 is a flow chart of a method for tracing supply chain data in one embodiment;
FIG. 3 is a flow chart illustrating the steps for dynamically initializing business model metadata in one embodiment;
FIG. 4 is a block diagram of a supply chain data trace back device in one embodiment;
fig. 5 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
The traceability method of the supply chain data can be applied to an application environment shown in fig. 1. Wherein the terminal 102 communicates with the server 104 via a network. The server 104 receives the material data tracing instruction sent by the terminal 102, and creates a corresponding temporary backup table according to the material data tracing instruction. The server 104 backs up the state data of the current material operation through the temporary backup table, and instantiates the material operation logic class by registering the material operation logic class depending on the injection framework. The server 104 dynamically invokes the service model metadata corresponding to the material operation identifier, loads the corresponding backed-up state data, dynamically initializes the service model metadata, performs corresponding material data tracing operation according to the initialized service model metadata, and returns the result parameters corresponding to the material data tracing operation to the terminal 102. The terminal 102 may be, but not limited to, various personal computers, notebook computers, smartphones, tablet computers, and portable wearable devices, and the server 104 may be implemented by a stand-alone server or a server cluster composed of a plurality of servers.
In one embodiment, as shown in fig. 2, a method for tracing supply chain data is provided, and the method is applied to the server in fig. 1 for illustration, and includes the following steps:
and 202, receiving a material data tracing instruction, and creating a corresponding temporary backup table according to the material data tracing instruction.
In the enterprise resource planning system, according to different demands of users, the users can select check boxes for tracing different material data through triggering operation in a material operation management interface of the terminal, a corresponding material data tracing instruction is generated, and the terminal sends the material data tracing instruction to the server. And the server receives the material data tracing instruction sent by the terminal and creates a corresponding temporary backup table according to the material data tracing instruction. The material data may include related data corresponding to a material demand plan (Material Requirement Planning, MRP), such as demand bill data, which may include product forecast orders, sales orders, export orders, and the like.
And 204, backing up the state data of the current material operation through the temporary backup table.
The server creates a corresponding temporary backup table according to the material data tracing instruction, and backups each state data of the current material operation through the temporary backup table, wherein the backup content can comprise a plurality of temporary tables of different types of state data. The status data of the current material operation may include, among other things, a demand, inventory, net demand, planned (ordered) volume, etc. of the current material operation. The inventory status data of the current materials operation may also include auxiliary data items such as order status, inventory records, outstanding orders, changes in demand, etc. For example, the server may create a corresponding temporary backup table according to an MRP tracing instruction selected by the user, and backup each state data of the current MRP operation through the temporary backup table, where the state data of the MRP may include a total required amount, an expected amount of goods, an existing number, a net required amount, a planned reception order, a planned delivery order, and the like, and store the state data in the corresponding temporary backup table.
At step 206, the asset operation logic class is instantiated by registering the asset operation logic class in dependence upon the injection framework.
The server instantiates the asset operation logic class by relying on the injection (Dependency Injection, DI) framework to register the asset operation logic class, i.e., load DI components. For example, registering the MRP operation logic class by adopting the Unity, and instantiating the MRP operation logic class.
Step 208, dynamically calling the service model metadata corresponding to the material operation identifier, loading the corresponding backed-up state data, and dynamically initializing the service model metadata.
The server dynamically calls the service model metadata corresponding to the material operation identification, loads the corresponding backed-up state data, namely each temporary table corresponding to the backed-up state data, and dynamically initializes the service model metadata according to the state data backed-up by the temporary tables. The business model metadata are a plurality of bill data established according to a business model established in the BOS product visual design platform. For example, the business model may include MRP operational receipts, planning orders, reservation relationships, and the like. The contents of the receipt data may include different types of table bodies and corresponding fields, and the server may dynamically initialize metadata of a plurality of service models according to the different contents of the receipt data. In addition, fields in the business model may be dynamically expanded, for example, each time an MRP operation is performed, a corresponding operation table is generated.
And 210, performing corresponding material data tracing operation according to the initialized business model metadata.
And the server dynamically invokes the service model metadata corresponding to the material operation identification, loads the corresponding backed-up state data, and performs corresponding material data tracing operation according to the initialized service model metadata after dynamically initializing the service model metadata. For example, the server dynamically invokes the service model metadata corresponding to the MRP operation identifier, loads the corresponding backed-up demand bill data, obtains the corresponding service physical temporary table after dynamic initialization, and performs corresponding MRP tracing operation according to the initial service physical temporary table.
In this embodiment, by receiving the material data tracing instruction, a corresponding temporary backup table is created according to the material data tracing instruction. And backing up the state data of the current material operation through the temporary backup table, registering the material operation logic class through the dependency injection framework, and instantiating the material operation logic class. And dynamically calling service model metadata corresponding to the material operation identification, loading corresponding backed-up state data, dynamically initializing the service model metadata, and performing corresponding material data tracing operation according to the initialized service model metadata. Compared with the traditional tracing mode of the supply chain data, the tracing operation multiplexes the normal logic of standard operation by adopting the mode of instantiating the material operation logic class and dynamically calling the service model metadata by relying on the injection framework, and simultaneously can ensure the isolation of the service data and the operation data and the isolation of the service code and the log code, thereby improving the accuracy of the tracing of the supply chain data.
In one embodiment, the method further includes, before receiving the material data tracing instruction and creating the corresponding temporary backup table according to the material data tracing instruction:
check boxes are generated in the management interface by saving the configuration parameters into the database.
And when the check box is checked, generating a material data tracing instruction.
In the traditional material data operation, log codes are closely connected with the business document data, when material data tracing operation is needed, technicians need to reconfigure related data to perform corresponding simulation operation, the technicians need to read data from a business data table, write the corresponding operation data back to the business document, re-write codes for recording detailed logs before and after a calling method, and simulate standard material operation to perform material data tracing operation.
In this embodiment, the server stores the configuration parameters in the database in advance, generates corresponding check boxes in the material operation management interface, and returns the material management page to the terminal. When a user browses a page containing a newly added check box on the terminal, different check boxes can be selected through triggering operations according to different requirements of the user. When the check box is checked, a corresponding material data tracing instruction is generated, the terminal sends the material data tracing instruction to the server, and the server performs corresponding material data tracing operation according to the received material data tracing instruction. For example, the server may store in advance whether the parameters of the MRP operation need to be traced back into the database, generate a corresponding check box, and return the material management page to the terminal. When a user selects the check box through triggering operation, a corresponding MRP operation tracing instruction is generated, the terminal sends the material data tracing instruction to the server, and the server performs corresponding material data tracing operation according to the received material data tracing instruction. Therefore, when the traceability operation is required, the user can directly select the check box corresponding to the traceability operation from the management interface through triggering operation, and a corresponding material data traceability instruction is generated. The server calls the corresponding material data tracing operation according to the received material data tracing instruction, a technician is not required to read data from the service data table again, the corresponding operation data is written back to the service document, the tracing operation flow is simplified, the operation is simplified, and therefore the material data operation efficiency is improved.
In one embodiment, the step of instantiating the asset operation logic class by registering the asset operation logic class in dependence upon the injection framework comprises:
calls to the material calculation function are intercepted by registering the dependent injection framework plugin.
And obtaining interface parameters corresponding to the material operation, and instantiating logic classes corresponding to the material operation according to the interface parameters.
After the server backs up the state data of the current material operation through the temporary backup table, the server intercepts the call of the material operation function through the registration dependent injection framework plug-in, obtains the interface parameters corresponding to the material operation, and instantiates the logic class corresponding to the material operation according to the interface parameters. Illustrated by the MRP operation. After the server backs up the state data of the current MRP operation through the temporary backup table, when a certain algorithm type method of the MRP operation is called, the server intercepts the call of the current MRP operation method through the DI plug-in, then the server can insert a corresponding logic code in front of the method in the DI plug-in according to the actual requirement of a user, and obtains interface parameters corresponding to the current MRP operation through the DI plug-in, wherein the interface parameters can comprise input parameters and output parameters. And the server calls a logic class corresponding to the corresponding interface instantiation MRP operation according to the input parameter and the output parameter. Therefore, when the tracing operation is carried out, the business codes are isolated from the log codes, the operation of standard operation is not affected, and the accuracy of the tracing of the supply chain data is improved.
In one embodiment, before instantiating the asset operation logic class by relying on the injection framework to register the asset operation logic class, the method further comprises:
and obtaining the corresponding relation between the material operation identification and the temporary backup table.
And recording the corresponding relation between the material operation identification and the temporary backup table into the backup management physical table.
After the server backs up the state data of the current material operation through the temporary backup table, the server further obtains the corresponding relation between the material operation identifier and the temporary backup table, and records the corresponding relation between the material operation identifier and the temporary backup table into the backup management physical table. Illustrated by the MRP operation. After the server backs up the state data of the current MRP operation through the temporary backup table, further, the server obtains the corresponding relation between the current MRP operation identifier and the temporary backup table, and records the corresponding relation between the current MRP operation identifier and the temporary backup table into the MRP backup management physical table.
In one embodiment, after the relationship between the material operation identifier and the temporary backup table is recorded in the backup management physical table, the method further includes:
and acquiring the name of the temporary backup table from the backup management physical table, and binding the name of the temporary backup table into the business physical table dynamically created by the current material operation.
After the server records the corresponding relation between the material operation identification and the temporary backup table in the backup management physical table, the server acquires the name of the temporary backup table from the backup management physical table, and binds the name of the temporary backup table into the service physical table dynamically created by the current material operation. Illustrated by the MRP operation. After the server records the corresponding relation between the MRP operation identification and the temporary backup table in the MRP backup management physical table, the server acquires the name of the temporary backup table from the MRP backup management physical table, and binds the name of the temporary backup table into the service physical table dynamically created by the current MRP operation. Therefore, when the tracing operation is carried out, the server can directly retrieve the backup simulation data from the backup management physical table, and call the interface of the normal MRP operation according to the binding relation between the MRP operation identification and the dynamically created business physical table so as to ensure that the tracing operation can reproduce the standard MRP operation process.
In one embodiment, as shown in fig. 3, the step of dynamically calling the service model metadata corresponding to the material operation identifier, loading the corresponding backed up state data, and dynamically initializing the service model metadata includes:
step 302, the service metadata is copied from the original service metadata.
And step 304, dynamically creating a business physical temporary table according to the field information described by the business metadata module.
And 306, replacing the name of the business physical table of the business metadata with the name of the business physical temporary table.
The server registers the material operation logic class by relying on the injection framework, and after instantiating the material operation logic class, the server dynamically invokes the service model metadata corresponding to the material operation identifier, loads the corresponding backed-up state data and dynamically initializes the service model metadata. Specifically, the server copies the service metadata from the original service metadata, dynamically creates a service physical temporary table according to the field information described by the service metadata, and replaces the name of the service physical table of the service metadata with the name of the service physical temporary table. Illustrated by the MRP operation. The server replicates service metadata from the original service metadata, which may include demand bill data and corresponding service physical tables. And the server dynamically creates a corresponding business physical temporary table according to the field information described by the demand bill data module, and replaces the name of the business physical table of the demand bill data with the name of the business physical temporary table. Therefore, the server dynamically establishes a dynamic table required in the operation process according to the description information of the field information on the service model, and binds the dynamic table to the service model, so that isolation of service data and operation data and dynamic expansion of the field are realized, and the accuracy of supply chain data tracing is improved.
It should be understood that, although the steps in the flowcharts of fig. 1-3 are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in fig. 1-3 may include multiple sub-steps or phases that are not necessarily performed at the same time, but may be performed at different times, nor does the order in which the sub-steps or phases are performed necessarily occur sequentially, but may be performed alternately or alternately with at least a portion of the sub-steps or phases of other steps or other steps.
In one embodiment, as shown in fig. 4, there is provided a traceability device of supply chain data, including: a receiving module 402, a backup module 404, a registration module 406, a calling module 408, and an operation module 410, wherein:
and the receiving module 402 is configured to receive a material data tracing instruction, and create a corresponding temporary backup table according to the material data tracing instruction.
And the backup module 404 is configured to backup the status data of the current material operation through the temporary backup table.
The registration module 406 is configured to register the material operation logic class by relying on the injection framework to instantiate the material operation logic class.
And the calling module 408 is used for dynamically calling the service model metadata corresponding to the material operation identifier, loading the corresponding backed-up state data and dynamically initializing the service model metadata.
The operation module 410 is configured to perform a corresponding material data traceback operation according to the initialized service model metadata.
In one embodiment, the apparatus further comprises: and a storage module.
The storage module is used for generating check boxes in the management interface by storing the configuration parameters into the database, and generating a material data tracing instruction when the check boxes are checked.
In one embodiment, the apparatus further comprises: and an acquisition module.
Registration module 406 is also used to intercept calls to the material calculation function by registering the dependency injection framework plug-in. The acquisition module is used for acquiring the interface parameters corresponding to the material operation, and instantiating the logic class corresponding to the material operation according to the interface parameters.
In one embodiment, the obtaining module is further configured to obtain a relationship between the material operation identifier and the temporary backup table, and record the relationship between the material operation identifier and the temporary backup table in the backup management physical table.
In one embodiment, the obtaining module is further configured to obtain a name of the temporary backup table from the backup management physical table, and bind the name of the temporary backup table to the service physical table dynamically created by the current material operation.
In one embodiment, the apparatus further comprises: a module is created.
The creation module is used for copying the business metadata from the original business metadata, dynamically creating a business physical temporary table according to the field information described by the business metadata, and replacing the name of the business physical table of the business metadata with the name of the business physical temporary table.
The specific limitation of the traceability device of the supply chain data can be referred to the limitation of the traceability method of the supply chain data, and the description thereof is omitted herein. The above-described respective modules in the traceability device of the supply chain data may be implemented in whole or in part by software, hardware, or a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 5. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is used to store traceability data of the supply chain data. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program, when executed by a processor, implements a method of traceability of supply chain data.
It will be appreciated by those skilled in the art that the structure shown in fig. 5 is merely a block diagram of some of the structures associated with the present application and is not limiting of the computer device to which the present application may be applied, and that a particular computer device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided that includes a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the various method embodiments described above when the computer program is executed.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the various embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples merely represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the invention. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application is to be determined by the claims appended hereto.

Claims (10)

1. A method of traceability of supply chain data, the method comprising:
receiving a material data tracing instruction, and creating a corresponding temporary backup table according to the material data tracing instruction;
backing up the state data of the current material operation through the temporary backup table;
acquiring a corresponding relation between a material operation identifier of the current material operation and the temporary backup table, and recording the corresponding relation between the material operation identifier and the temporary backup table into a backup management physical table; acquiring the name of the temporary backup table from the backup management physical table, and binding the name of the temporary backup table into a business physical table dynamically created by current material operation;
registering the material operation logic class by relying on the injection framework, instantiating the material operation logic class, including: intercepting the call of a material operation function by registering a dependency injection framework plug-in; obtaining interface parameters corresponding to material operation, and instantiating logic classes corresponding to the material operation according to the interface parameters;
dynamically calling service model metadata corresponding to the material operation identifier, loading corresponding backed-up state data, and dynamically initializing the service model metadata;
and performing corresponding material data tracing operation according to the initialized service model metadata.
2. The method of claim 1, wherein the receiving the material data trace back instruction, before creating the corresponding temporary backup table according to the material data trace back instruction, further comprises:
generating check boxes in the management interface by saving the configuration parameters into a database;
and when the check box is checked, generating the material data tracing instruction.
3. The method of claim 1, wherein dynamically invoking the business model metadata corresponding to the asset operation identifier, loading the corresponding backed up state data, and dynamically initializing the business model metadata comprises:
copying the business metadata from the original business metadata;
dynamically creating a business physical temporary table according to the field information of the business metadata module;
and replacing the name of the business physical table of the business metadata with the name of the business physical temporary table.
4. A method according to claim 3, wherein the business metadata comprises demand document data.
5. The method of claim 1, wherein the status data includes demand, inventory, net demand, and planned emission for a current materials operation.
6. A traceability apparatus for supply chain data, said apparatus comprising:
the receiving module is used for receiving the material data tracing instruction and creating a corresponding temporary backup table according to the material data tracing instruction;
the backup module is used for backing up the state data of the current material operation through the temporary backup table;
the acquisition module is used for acquiring the corresponding relation between the material operation identifier of the current material operation and the temporary backup table and recording the corresponding relation between the material operation identifier and the temporary backup table into a backup management physical table; acquiring the name of the temporary backup table from the backup management physical table, and binding the name of the temporary backup table into a business physical table dynamically created by current material operation;
the registration module is used for registering the material operation logic class through relying on the injection framework, and instantiating the material operation logic class, and comprises the following steps: intercepting the call of a material operation function by registering a dependency injection framework plug-in;
the acquisition module is also used for acquiring interface parameters corresponding to the material operation, and instantiating logic classes corresponding to the material operation according to the interface parameters;
the calling module is used for dynamically calling the service model metadata corresponding to the material operation identifier, loading the corresponding backed-up state data and dynamically initializing the service model metadata;
and the operation module is used for carrying out corresponding material data tracing operation according to the initialized service model metadata.
7. The supply chain data traceback device of claim 6, wherein the device further comprises:
the storage module is used for generating check boxes in the management interface by storing the configuration parameters into the database; and when the check box is checked, generating the material data tracing instruction.
8. The supply chain data traceback device of claim 6, wherein the device further comprises:
the creation module is used for copying the service metadata from the original service metadata, dynamically creating a service physical temporary table according to the field information described by the service metadata, and replacing the name of the service physical table of the service metadata with the name of the service physical temporary table.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any one of claims 1 to 5 when the computer program is executed by the processor.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 5.
CN201911249997.3A 2019-12-09 2019-12-09 Supply chain data tracing method and device and computer equipment Active CN111105249B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911249997.3A CN111105249B (en) 2019-12-09 2019-12-09 Supply chain data tracing method and device and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911249997.3A CN111105249B (en) 2019-12-09 2019-12-09 Supply chain data tracing method and device and computer equipment

Publications (2)

Publication Number Publication Date
CN111105249A CN111105249A (en) 2020-05-05
CN111105249B true CN111105249B (en) 2024-02-20

Family

ID=70422012

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911249997.3A Active CN111105249B (en) 2019-12-09 2019-12-09 Supply chain data tracing method and device and computer equipment

Country Status (1)

Country Link
CN (1) CN111105249B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101655795A (en) * 2009-09-25 2010-02-24 金蝶软件(中国)有限公司 Method for creating service embodiment and enterprise resource planning system
JP2015225511A (en) * 2014-05-28 2015-12-14 株式会社日立製作所 Required amount calculation device, required amount calculation method, and program
CN105303306A (en) * 2015-10-15 2016-02-03 国家电网公司 Electric power material dispatching platform system
CN105447660A (en) * 2014-09-01 2016-03-30 国网浙江省电力公司温州供电公司 Auxiliary material management system
CN109857759A (en) * 2018-11-06 2019-06-07 金蝶软件(中国)有限公司 Processing method, device, computer equipment and the storage medium of concurrent data
CN110414938A (en) * 2019-07-30 2019-11-05 北京飞利信电子技术有限公司 A kind of retrospect source system and method based on the building of platform of internet of things configurationization

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101655795A (en) * 2009-09-25 2010-02-24 金蝶软件(中国)有限公司 Method for creating service embodiment and enterprise resource planning system
JP2015225511A (en) * 2014-05-28 2015-12-14 株式会社日立製作所 Required amount calculation device, required amount calculation method, and program
CN105447660A (en) * 2014-09-01 2016-03-30 国网浙江省电力公司温州供电公司 Auxiliary material management system
CN105303306A (en) * 2015-10-15 2016-02-03 国家电网公司 Electric power material dispatching platform system
CN109857759A (en) * 2018-11-06 2019-06-07 金蝶软件(中国)有限公司 Processing method, device, computer equipment and the storage medium of concurrent data
CN110414938A (en) * 2019-07-30 2019-11-05 北京飞利信电子技术有限公司 A kind of retrospect source system and method based on the building of platform of internet of things configurationization

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张霞.杭州海康希牧科技公司ERP***的设计与实现.中国优秀硕士学位论文全文数据库.2014,全文. *

Also Published As

Publication number Publication date
CN111105249A (en) 2020-05-05

Similar Documents

Publication Publication Date Title
CN108958714B (en) Business component type development method and device, computer equipment and storage medium
CN108446116B (en) Application program page generation method and device, computer equipment and storage medium
CN108573371B (en) Data approval method, device, computer equipment and storage medium
CN111061475B (en) Software code generating method, device, computer equipment and storage medium
CN111027295B (en) Data processing method, device, computer equipment and storage medium
CN109816503A (en) Financial details data creation method, device, computer equipment and storage medium
CN108492005B (en) Project data processing method and device, computer equipment and storage medium
CN104699712A (en) Method and device for updating stock record information in database
CN102831069A (en) Memory processing method and memory management equipment
CN113656149B (en) Application processing method and device and related equipment
CN104516794A (en) Database document backup method, device and system
CN109933338A (en) Block chain dispositions method, device, computer equipment and storage medium
CN114327374A (en) Business process generation method and device and computer equipment
US20070094239A1 (en) Communicating part number detail data between enterprise and part supplier
CN112785248B (en) Human resource data cross-organization interaction method, device, equipment and storage medium
CN111105249B (en) Supply chain data tracing method and device and computer equipment
US20080163200A1 (en) Methods and systems for distributing software
CN109460229A (en) Code file generation method, device, computer equipment and storage medium
CN105677427A (en) Module upgrading method and device
CN113296891A (en) Multi-scene knowledge graph processing method and device based on platform
CN114416530A (en) Byte code modification method and device, computer equipment and storage medium
CN115269040A (en) Tenant business application expanding method, device and system
CN105630526A (en) Load control method and device for script
CN112564979B (en) Execution method and device of construction task, computer equipment and storage medium
CN109271431A (en) Data pick-up method, apparatus, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant