CN111105249A - 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
CN111105249A
CN111105249A CN201911249997.3A CN201911249997A CN111105249A CN 111105249 A CN111105249 A CN 111105249A CN 201911249997 A CN201911249997 A CN 201911249997A CN 111105249 A CN111105249 A CN 111105249A
Authority
CN
China
Prior art keywords
metadata
service
data
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.)
Granted
Application number
CN201911249997.3A
Other languages
Chinese (zh)
Other versions
CN111105249B (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

Images

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 and 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 depending on an injection framework, carrying out real-state data on the material operation logic class, and dynamically initializing the service model metadata; instantiating according to the initial 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 state row. 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 application relates to the field of computer technologies, and in particular, to a method and an apparatus for tracing supply chain data, a computer device, and a storage medium.
Background
With the development of computer technology, more and more enterprises adopt a uniform service management information platform to uniformly manage all resources and information on supply and demand chains inside and outside the enterprises, the integration can eliminate various information gaps and information islands inside the enterprises caused by division of departments, and the effective management of the whole supply chain can be realized by utilizing an enterprise resource planning system.
However, the results of supply chain data supply and demand matching in the current enterprise resource planning system are all displayed through reports, and the process of how supply chain data supply and demand matching is performed cannot be accurately traced.
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 capable of improving the accuracy of tracing supply chain data.
A method of tracing 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 initial metadata.
In one embodiment, before the receiving the material data tracing instruction and creating the corresponding temporary backup table according to the material data tracing instruction, the method further includes:
generating a check box in a management interface by storing 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 calculation logic class by the dependency injection framework to instantiate the material calculation logic class includes:
intercepting the call of a material operation function by registering a dependence injection framework plug-in;
and acquiring interface parameters corresponding to the material operation, and instantiating a logic class corresponding to the material operation according to the interface parameters.
In one embodiment, before registering a material calculation logic class by a dependency injection framework and instantiating the material calculation logic class, the method further includes:
acquiring 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 a backup management physical table.
In one embodiment, after the recording the relationship between the material operation identifier and the temporary backup table into 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 to a service physical table dynamically created by current material operation.
In one embodiment, the dynamically invoking service model metadata corresponding to the material operation identifier, loading corresponding backed-up state data, and dynamically initializing the service model metadata includes:
copying service metadata from the original service metadata;
dynamically creating a service physical temporary table according to the field information stated by the service metadata;
and replacing the name of the business physical table of the business metadata with the name of the business physical temporary table.
A device for tracing supply chain data, the device comprising:
the receiving module is used for receiving a 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 by depending 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 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 metadata.
In one embodiment, the apparatus further comprises:
the creating 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 stated 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 following steps when executing the computer program:
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 initial metadata.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out 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 initial 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 a temporary backup table, and instantiating the material operation logic class by depending on the injection framework to register the material operation logic class. And dynamically calling the service model metadata corresponding to the material operation identifier, loading corresponding backed-up state data, dynamically initializing the service model metadata, and performing corresponding material data tracing operation according to the initialized metadata. Compared with the traditional supply chain data tracing mode, the method has the advantages that the material operation logic class is registered by depending on the injection frame, and the service model metadata corresponding to the material operation identifier is dynamically called, so that the normal logic of standard operation is reused in the tracing operation, and meanwhile, the isolation of service data and operation data and the isolation of service codes and log codes can be ensured, and the accuracy of supply chain data tracing is improved.
Drawings
FIG. 1 is a diagram illustrating an exemplary implementation of a method for tracing supply chain data;
FIG. 2 is a flow diagram illustrating a method for tracing back supply chain data in one embodiment;
FIG. 3 is a flow diagram that illustrates 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 a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The supply chain data tracing method provided by the application can be applied to the 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 calls the service model metadata corresponding to the material operation identifier, loads corresponding backed-up state data, dynamically initializes the service model metadata, and the server 104 performs corresponding material data tracing operation according to the initialized metadata and returns a result parameter 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, smart phones, tablet computers, and portable wearable devices, and the server 104 may be implemented by an independent server or a server cluster formed by a plurality of servers.
In one embodiment, as shown in fig. 2, a method for tracing supply chain data is provided, which is described by taking the method as an example applied to the server in fig. 1, and includes the following steps:
step 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 requirements of users, the users can select check boxes for tracing different material data in a material operation management interface of the terminal through triggering operation to generate corresponding material data tracing instructions, and the terminal sends the material data tracing instructions 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 Requirement Planning (MRP), for example, demand document data, which may include a product forecast order, a sales order, an export order, and the like.
And step 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 backs up 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 a demand amount, an inventory amount, a net demand amount, a planned delivery (order) amount, and the like of the current material operation. The stock state data of the current material calculation may also include auxiliary data items, such as order condition, inventory record, unsolved order, change of demand, and the like. For example, the server may create a corresponding temporary backup table according to an MRP trace instruction selected by a user, and backup each state data of the current MRP operation through the temporary backup table, where the MRP state data may include a total demand, a predicted quantity of goods to be expected, an existing number, a net demand, a planned order to be received, a planned order to be issued, and the like, and store the state data in the corresponding temporary backup table.
Step 206, registering the material operation logic class by the dependency injection framework, and instantiating the material operation logic class.
The server registers the material operation logic class through a Dependency Injection (DI) framework, that is, loads a DI component, and instantiates the material operation logic class. For example, the MRP operation logic class is registered by Unity and instantiated.
And step 208, dynamically calling the service model metadata corresponding to the material operation identifier, loading 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 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 is a plurality of document data established according to a business model established in a visual design platform of a BOS product. For example, the business model may include MRP calculation documents, plan orders, reservation relationships, and the like. The document data content can include different types of form bodies and corresponding fields, and the server can dynamically initialize metadata of a plurality of business models according to the different document data content. In addition, the fields in the service model may also be dynamically expanded, for example, each time an MRP operation is run, a corresponding operation table is generated.
And step 210, performing corresponding material data tracing operation according to the initial metadata.
And after the service model metadata is dynamically initialized, the server performs corresponding material data tracing operation according to the initialized metadata. For example, the server dynamically calls the service model metadata corresponding to the MRP operation identifier, loads the corresponding backed-up required document data, obtains a corresponding service physical temporary table after dynamic initialization, and performs corresponding MRP trace back operation according to the initial service physical temporary table.
In this embodiment, 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 a temporary backup table, and instantiating the material operation logic class by depending on the injection framework to register the material operation logic class. And dynamically calling the service model metadata corresponding to the material operation identifier, loading corresponding backed-up state data, dynamically initializing the service model metadata, and performing corresponding material data tracing operation according to the initialized metadata. Compared with the traditional supply chain data tracing mode, the mode of instantiating the material operation logic class and dynamically calling the service model metadata by depending on the injection framework is adopted, so that the normal logic of standard operation is reused in the tracing operation, and meanwhile, the isolation of service data and operation data and the isolation of service codes and log codes can be ensured, and the accuracy of the supply chain data tracing is improved.
In one embodiment, before receiving the material data tracing instruction and creating the corresponding temporary backup table according to the material data tracing instruction, the method further includes:
by saving the configuration parameters to the database, check boxes are generated in the management interface.
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 business document data, when material data tracing operation is needed, technicians need to reconfigure related data to carry out corresponding simulation operation, the technicians need to read data from a business data table, write the corresponding operation data back to the business document, rewrite codes for recording detailed logs before and after calling a method, and simulate standard material operation to carry out material data tracing operation.
In this embodiment, the server generates a corresponding check box in the material calculation management interface by saving the configuration parameters in the database in advance, and returns the material management page to the terminal. When a user browses a page containing the newly added check boxes on the terminal, different check boxes can be selected through triggering operation according to different requirements of the user. When the check boxes are selected, corresponding material data tracing instructions are generated, the terminal sends the material data tracing instructions to the server, and the server conducts corresponding material data tracing operation according to the received material data tracing instructions. For example, the server may store in advance a parameter that requires the MRP operation to be traced back in the database, generate a corresponding check box, and return the material management page to the terminal. When the 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 conducts corresponding material data tracing operation according to the received material data tracing instruction. Therefore, when the tracing operation is needed, a user can directly select the check box corresponding to the tracing operation from the management interface through triggering operation to generate a corresponding material data tracing instruction. The server calls the corresponding material data tracing operation according to the received material data tracing instruction, technical personnel do not need to read data from the business data table again, and the corresponding operation data is written back to the business document, so that the tracing operation flow is simplified, the operation is simplified, and the material data operation efficiency is improved.
In one embodiment, the step of instantiating the material calculation logic class by registering the material calculation logic class in dependence on the injection framework includes:
and intercepting the calling of the material operation function by registering the dependency injection framework plug-in.
And acquiring interface parameters corresponding to material operation, and instantiating a logic class 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 calling of the material operation function through the registration dependence injection framework plug-in, obtains the interface parameters corresponding to the material operation, and instantiates the logic classes corresponding to the material operation according to the interface parameters. The MRP operation is exemplified. After the server backs up the state data of the current MRP operation through the temporary backup table, when a certain algorithm class method of the MRP operation is called, the server intercepts the calling of the current MRP operation method through the DI plug-in, then the server inserts a corresponding logic code in the DI plug-in front of the method according to the actual requirement of a user, and acquires an interface parameter corresponding to the current MRP operation through the DI plug-in, wherein the interface parameter can comprise an input parameter and an output parameter. And calling the corresponding interface to instantiate the logic class corresponding to the MRP operation by the server according to the input parameter and the output parameter. Therefore, when backtracking operation is carried out, the service code is isolated from the log code, the operation of standard operation cannot be influenced, and the accuracy of supply chain data backtracking is improved.
In one embodiment, before the material operation logic class is instantiated by registering the material operation logic class in the dependency injection framework, the method further comprises:
and acquiring 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 a backup management physical table.
After the server backs up the current material operation state data 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. The MRP operation is exemplified. After the server backs up the state data of the current MRP operation through the temporary backup table, the server further obtains the corresponding relationship between the current MRP operation identifier and the temporary backup table, and records the corresponding relationship between the current MRP operation identifier and the temporary backup table into the MRP backup management physical table.
In one embodiment, after recording the relationship between the material operation identifier and the temporary backup table 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 to a service physical table dynamically created by current material operation.
After the server records the corresponding relation between the material operation identifier and the temporary backup table into 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. The MRP operation is exemplified. After the server records the corresponding relation between the MRP operation identification and the temporary backup table into 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 a 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 identifier and the dynamically created service physical table, so as to ensure that the tracing operation can reproduce the process of the standard MRP operation.
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, copying service metadata from the original service metadata.
Step 304, dynamically creating a business physical temporary table according to the field information stated by the business metadata.
Step 306, the name of the business physical table of the business metadata is replaced by the name of the business physical temporary table.
The server registers the material operation logic class by relying on the injection framework, dynamically calls the service model metadata corresponding to the material operation identification after instantiating the material operation logic class, loads 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. The MRP operation is exemplified. The server copies the service metadata from the original service metadata, and the service metadata can comprise the requirement document data and the corresponding service physical table. And the server dynamically creates a corresponding business physical temporary table according to the field information stated by the demand document data, and replaces the name of the business physical table of the demand document data with the name of the business physical temporary table. Therefore, the server dynamically establishes the 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 the isolation of service data and operation data and the dynamic expansion of the field are realized, and the accuracy of supply chain data tracing is improved.
It should be understood that although the various steps in the flow diagrams of fig. 1-3 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 1-3 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 4, there is provided a tracing apparatus for 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:
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.
The backup module 404 is configured to backup the state data of the current material operation through the temporary backup table.
The registration module 406 is configured to instantiate the material operation logic class by registering the material operation logic class in dependence on the injection framework.
The calling module 408 is configured to dynamically call the service model metadata corresponding to the material operation identifier, load corresponding backed-up state data, and dynamically initialize the service model metadata.
And the operation module 410 is configured to perform corresponding material data tracing operation according to the initialized 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 material data tracing instructions when the check boxes are checked.
In one embodiment, the apparatus further comprises: and an acquisition module.
The registration module 406 is also used to intercept the invocation of the material calculation function by registering the dependency injection framework plug-in. The acquisition module is used for acquiring interface parameters corresponding to material operation and instantiating logic classes 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 an 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 creating 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 stated 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.
For specific limitations of the supply chain data tracing device, reference may be made to the above limitations of the supply chain data tracing method, which are not described herein again. The modules in the above-mentioned tracing device for supply chain data can be wholly or partially implemented by software, hardware and their combination. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the 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 comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing the tracing 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 is executed by a processor to implement a method of tracing supply chain data.
Those skilled in the art will appreciate that the architecture shown in fig. 5 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the steps of the above-described method embodiments being implemented when the computer program is executed by the processor.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile 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), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method of tracing 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 initial metadata.
2. The method of claim 1, wherein before receiving the material data tracing instruction and creating the corresponding temporary backup table according to the material data tracing instruction, the method further comprises:
generating a check box in a management interface by storing 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 instantiating the material calculation logic class by registering the material calculation logic class in dependence on an injection framework comprises:
intercepting the call of a material operation function by registering a dependence injection framework plug-in;
and acquiring interface parameters corresponding to the material operation, and instantiating a logic class corresponding to the material operation according to the interface parameters.
4. The method of claim 1, wherein prior to instantiating the material calculation logic class by registering the material calculation logic class with the dependency injection framework, the method further comprises:
acquiring 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 a backup management physical table.
5. The method of claim 4, wherein after recording the relationship between the material operation identifier and the temporary backup table in a backup management physical table, the method further comprises:
acquiring the name of the temporary backup table from the backup management physical table;
and binding the name of the temporary backup table to a service physical table dynamically created by current material operation.
6. The method of claim 1, wherein dynamically invoking business model metadata corresponding to the material operation identifier, loading corresponding backed-up state data, and dynamically initializing the business model metadata comprises:
copying service metadata from the original service metadata;
dynamically creating a service physical temporary table according to the field information stated by the service metadata;
and replacing the name of the business physical table of the business metadata with the name of the business physical temporary table.
7. An apparatus for tracing supply chain data, the apparatus comprising:
the receiving module is used for receiving a 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 by depending 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 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 metadata.
8. A device for tracing supply chain data according to claim 7, characterized in that said device further comprises:
the creating 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 stated 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 steps of the method of any of claims 1 to 6 are implemented when the computer program is executed by the processor.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6.
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 true CN111105249A (en) 2020-05-05
CN111105249B 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 (2)

* Cited by examiner, † Cited by third party
Title
WEINXIN_34294649: "《金蝶ERP-K_3完全使用详解》——6.4 MRP计算" *
张霞: "杭州海康希牧科技公司ERP系统的设计与实现" *

Also Published As

Publication number Publication date
CN111105249B (en) 2024-02-20

Similar Documents

Publication Publication Date Title
CN108958714B (en) Business component type development 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
CN108492005B (en) Project data processing method and device, computer equipment and storage medium
CN112380213B (en) Information acquisition method and device, computer equipment and storage medium
CN109816503A (en) Financial details data creation method, device, computer equipment and storage medium
CN112286779A (en) Test task processing method and device, storage medium and computer equipment
CN115993966A (en) Application development system and method
CN112882769B (en) Skill pack data processing method, skill pack data processing device, computer equipment and storage medium
CN111209061A (en) Method and device for filling in user information, computer equipment and storage medium
CN112596746B (en) Application installation package generation method and device, computer equipment and storage medium
CN113032398B (en) Service processing method, computer equipment and storage medium for multi-type service
CN113535563A (en) Test case duplication removing method and device, computer equipment and storage medium
US20070094239A1 (en) Communicating part number detail data between enterprise and part supplier
CN111105249B (en) Supply chain data tracing method and device and computer equipment
CN114006815A (en) Automatic deployment method and device for cloud platform nodes, nodes and storage medium
CN114527974B (en) Method and device for realizing business function of software product and computer equipment
CN115269040B (en) Tenant business application expanding method, device and system
CN110532533B (en) Form precision collocation method, device, computer equipment and storage medium
CN114416530A (en) Byte code modification method and device, computer equipment and storage medium
CN114296789A (en) Business processing method, device, equipment and storage medium based on full-flow configuration
CN114116664A (en) Database table building statement processing method and device, computer equipment and storage medium
CN112686010A (en) Resource data report generation method and device, computer equipment and storage medium
CN113157754A (en) Method, device and equipment for displaying flow form data and storage medium
Oliveira et al. ETL Development using Patterns: A Service-Oriented Approach.

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