CN113626451A - Self-adaptive data updating method and device - Google Patents

Self-adaptive data updating method and device Download PDF

Info

Publication number
CN113626451A
CN113626451A CN202110854590.4A CN202110854590A CN113626451A CN 113626451 A CN113626451 A CN 113626451A CN 202110854590 A CN202110854590 A CN 202110854590A CN 113626451 A CN113626451 A CN 113626451A
Authority
CN
China
Prior art keywords
data
period
initial
service period
service
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.)
Pending
Application number
CN202110854590.4A
Other languages
Chinese (zh)
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.)
Shandong Inspur Genersoft Information Technology Co Ltd
Original Assignee
Shandong Inspur Genersoft Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shandong Inspur Genersoft Information Technology Co Ltd filed Critical Shandong Inspur Genersoft Information Technology Co Ltd
Priority to CN202110854590.4A priority Critical patent/CN113626451A/en
Publication of CN113626451A publication Critical patent/CN113626451A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • G06F16/2379Updates performed during online database operations; commit processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • G06F16/2358Change logging, detection, and notification
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/08Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
    • G06Q10/087Inventory or stock management, e.g. order filling, procurement or balancing against orders
    • G06Q10/0875Itemisation or classification of parts, supplies or services, e.g. bill of materials

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Economics (AREA)
  • Development Economics (AREA)
  • Finance (AREA)
  • Accounting & Taxation (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Human Resources & Organizations (AREA)
  • Marketing (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Strategic Management (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

An embodiment of the present specification provides a method and an apparatus for updating adaptive data, where the method includes: storing initial period data into a first data space selected in advance; acquiring each service period in an open state; and updating data of each service period in the second data space in an open state according to the initial period data in the first data space. Since the data during the initial period and the data during the service period are stored in different positions, the recording, modification and the like of the data during the initial period can be carried out during any service period and are not required to be completed before the service period. Therefore, in practical application, when the initial data is incomplete or needs to be supplemented, the data in the initial period can be continuously modified at any time, and then the data in the opened service period is updated, so that self-adaptive updating is realized, and the data processing efficiency can be greatly improved.

Description

Self-adaptive data updating method and device
Technical Field
One or more embodiments of the present disclosure relate to the field of data processing technologies, and in particular, to a method and an apparatus for adaptive data update.
Background
Most software in the industry today, data in an initial period needs to be completed before data in a subsequent period begins. For example, the data for january of a year is to be completed before the rest of the months, which are obtained on the basis of the data for january. Therefore, once the data in the initial period is completed, the data in the initial period cannot be modified after the data processing in the rest months is started. In actual application, software often encounters the situation that initial data is incomplete or needs to be supplemented. Since the data in the initial period cannot be modified, the data can only be compensated by other flexible ways, for example, manual modification, which greatly affects the processing efficiency of the data.
Disclosure of Invention
One or more embodiments of the present specification describe an adaptive data update method and apparatus.
A first aspect provides an adaptive data update method, including:
storing initial period data into a first data space selected in advance; the first data space is independent of a second data space, and the second data space is used for storing data of each service period except for an initial period;
acquiring each service period in an open state;
and updating data of each service period in the second data space in an open state according to the initial period data in the first data space.
A second aspect provides an adaptive data updating apparatus, comprising:
the data storage module is used for storing data in an initial period into a first data space selected in advance; the first data space is independent of a second data space, and the second data space is used for storing data of each service period except for an initial period;
the period acquisition module is used for acquiring each service period in an open state;
and the data updating module is used for updating data of each service period in the second data space in an open state according to the initial period data in the first data space.
According to the adaptive data updating method and device provided by the embodiment of the specification, because the data storage positions during the initial period and the service period are different, the recording, modification and the like of the data during the initial period can be carried out during any service period, and the data does not need to be completed before the service period. Therefore, in practical application, when the initial data is incomplete or needs to be supplemented, the data in the initial period can be continuously modified at any time, and then the data in the opened service period is updated, so that self-adaptive updating is realized, and the data processing efficiency can be greatly improved.
Drawings
In order to more clearly illustrate the embodiments of the present specification or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present specification, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flow chart illustrating an adaptive data update method in one embodiment of the present specification.
Detailed Description
The scheme provided by the specification is described below with reference to the accompanying drawings.
An embodiment of the present application provides a method for updating adaptive data, as shown in fig. 1, the method includes the following steps S110 to S130:
s110, storing initial period data into a pre-selected first data space; the first data space is independent of a second data space, and the second data space is used for storing data of each service period except for an initial period;
for example, in every month of the year as one service period, there are 12 service periods in total, and the relevant data of these 12 service periods is stored in the second data space. The initial period is some data of the end of the last year, which is stored in the first data space.
In the prior art, the initial period corresponds to the foundation of the service period, and the data processing during the service period is performed on the basis of the initial period, which corresponds to the foundation in the building. In the present invention, the data of the service period is not obtained based on the initial period, for example, 12 service periods correspond to a 12-story building, and the elevator corresponding to the building in the initial period can be stopped at the floor where the access is allowed. For example, if the service period corresponding to month 10 is already opened, the data of the service period corresponding to month 10 may be updated according to the data of the initial period.
In particular implementations, the initial period data may include an initial inventory margin, a number of warehouses warehoused in a previous year, a number of warehoused in a previous year, and the like, wherein the initial inventory margin is relevant to the data update. The data of each service period may include an initial stock quantity and an end stock margin, where the initial stock quantity refers to a corresponding stock quantity at the beginning of the service period, a product undergoes various operations such as selling and returning during the service period, the product quantity may change during the service period, and the quantity of the product remaining at the end of the service period is the end stock margin.
At the beginning, the initial period data is stored into the pre-selected first data space, and the service period data outside the initial period can be updated according to the initial period data. When the initial period data needs to be changed, the modified initial period data needs to be stored in the first data space. That is, before performing S110, the method provided by the present invention may further include:
s100, judging whether the data in the initial period needs to be modified; if so, storing the modified initial period data into the first data space; otherwise, continuing to perform accounting processing on the data in the current service period according to a preset accounting program.
That is, if the initial period data needs to be modified, the modified initial period data is stored in the first data space, and if the initial period data does not need to be modified, the billing process continues with normal billing operations.
S120, acquiring each service period in an opening state;
it can be understood that there are various states during the business, such as open, unopened, closed account, monthly, etc., and only the business in the open state can process data, and whether to open or not is determined by the enterprise. For example, each service period in the on state may include a current service period and a last service period and a next service period of the current service period. For example, when accounting is currently being performed for month 5 data, then months 4, 5, and 6 are all on.
And S130, updating data of each service period in the open state in the second data space according to the initial period data in the first data space.
It can be understood that if the data during the service period is updated for the first time, it indicates that the data during the service period does not take the initial period data into account, so that only the related data need to be added when the data during the service period is updated for the first time. If the data in the service period is not updated for the first time, the data in the service period is considered before the data in the service period, but the data in the service period is changed, so that the data in the service period needs to be updated according to the change of the data in the service period.
That is, S130 may include the following two cases:
(1) if the service period in the open state is the first update, adding the initial inventory margin and the initial inventory amount of the service period in the open state to obtain the updated initial inventory amount of the service period, and adding the initial inventory margin and the end inventory margin of the service period in the open state to obtain the updated end inventory margin of the service period.
For example, if the service period of month 6 and 7 is in the on state and month 7 is the first update, it indicates that the data of the service period of month 7 is not obtained based on the initial period data, and does not include the components of the initial period data, so it is only necessary to add the initial inventory margin in the initial period data at this time and the initial inventory amount of month 7, and add the initial inventory margin in the initial period data at this time and the end inventory margin of month 7, thereby updating the initial inventory amount and the end inventory margin of month 7.
(2) If the service period in the open state is not updated for the first time, acquiring the variation of the initial inventory margin in the initial period data before the current modification after the current modification, adding the variation and the initial inventory quantity of the service period in the open state to obtain the updated initial inventory quantity of the service period, and adding the variation and the end inventory margin of the service period in the open state to obtain the updated end inventory margin of the service period.
If the data of the service period of month 6 is not the first update, it indicates that the data of the service period of month 6 is obtained based on the initial period data, and the data of the service period of month 6 includes the components of the initial period data, so that the variation of the initial period data after the current modification relative to that before the current modification is determined, then the variation is added to the initial inventory number in the service period of month 6, and the variation is added to the end inventory margin of month 6, thereby realizing the update of the initial inventory number and the end inventory margin of month 6.
Understandably, if the data in the initial period is modified for the first time, the service period is updated for the second time; if the initial period data is modified for the second time, the service period is updated for the third time.
It will be appreciated that the updating of data during a transaction is the first update when data is first recorded to the first data space during the initial period. And if the data in the initial period is modified, the data in the service period is updated to be not the first time.
The self-adaptive data updating method provided by the invention has the advantages that the data storage positions in the initial period and the service period are different, so that the recording, the modification and the like of the data in the initial period can be carried out in any service period, and the data do not need to be completed before the service period. Therefore, in practical application, when the initial data is incomplete or needs to be supplemented, the data in the initial period can be continuously modified at any time, and then the data in the opened service period is updated, so that self-adaptive updating is realized, and the data processing efficiency can be greatly improved.
In a second aspect, the present invention provides an adaptive data updating apparatus, including:
the data storage module is used for storing data in an initial period into a first data space selected in advance; the first data space is independent of a second data space, and the second data space is used for storing data of each service period except for an initial period;
the period acquisition module is used for acquiring each service period in an open state;
and the data updating module is used for updating data of each service period in the second data space in an open state according to the initial period data in the first data space.
In some embodiments, before the data storage module stores the initial period data into the pre-selected first data space, the data storage module may further be configured to: judging whether the data in the initial period needs to be modified; if so, storing the modified initial period data into the first data space; otherwise, continuing to perform accounting processing on the data in the current service period according to a preset accounting program.
In some embodiments, the initial period data includes an initial inventory balance, and the data for each business period other than the initial period includes an initial inventory quantity and an end inventory balance.
In some embodiments, the data update module is specifically configured to:
if the service period in the open state is the first update, adding the initial inventory allowance and the initial inventory amount of the service period in the open state to obtain an updated initial inventory amount of the service period, and adding the initial inventory allowance and the end inventory allowance of the service period in the open state to obtain an updated end inventory allowance of the service period;
if the service period in the open state is not updated for the first time, acquiring the variation of the initial inventory margin in the initial period data before the current modification after the current modification, adding the variation and the initial inventory quantity of the service period in the open state to obtain the updated initial inventory quantity of the service period, and adding the variation and the end inventory margin of the service period in the open state to obtain the updated end inventory margin of the service period.
In some embodiments, each of the service periods in the on state includes a current service period and a previous service period and a next service period of the current service period.
It is understood that the apparatus provided by the present invention corresponds to the method provided by the first aspect, and for the explanation, examples, and beneficial effects of the related contents, reference may be made to the corresponding parts in the first aspect, and details are not described here.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the apparatus embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
Those skilled in the art will recognize that, in one or more of the examples described above, the functions described in this disclosure may be implemented in hardware, software, hardware, or any combination thereof. When implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium.
The above-mentioned embodiments, objects, technical solutions and advantages of the present invention are further described in detail, it should be understood that the above-mentioned embodiments are only exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made on the basis of the technical solutions of the present invention should be included in the scope of the present invention.

Claims (10)

1. An adaptive data update method, comprising:
storing initial period data into a first data space selected in advance; the first data space is independent of a second data space, and the second data space is used for storing data of each service period except for an initial period;
acquiring each service period in an open state;
and updating data of each service period in the second data space in an open state according to the initial period data in the first data space.
2. The method of claim 1, wherein before storing the initial period data into the pre-selected first data space, the method further comprises:
judging whether the data in the initial period needs to be modified;
if so, storing the modified initial period data into the first data space;
otherwise, continuing to perform accounting processing on the data in the current service period according to a preset accounting program.
3. The method of claim 1, wherein the initial period data comprises an initial inventory balance, and wherein the data for each business period other than the initial period comprises an initial inventory quantity and an end inventory balance.
4. The method according to claim 3, wherein the updating data of each service period in the second data space in the on state according to the initial period data in the first data space comprises:
if the service period in the open state is the first update, adding the initial inventory allowance and the initial inventory amount of the service period in the open state to obtain an updated initial inventory amount of the service period, and adding the initial inventory allowance and the end inventory allowance of the service period in the open state to obtain an updated end inventory allowance of the service period;
if the service period in the open state is not updated for the first time, acquiring the variation of the initial inventory margin in the initial period data before the current modification after the current modification, adding the variation and the initial inventory quantity of the service period in the open state to obtain the updated initial inventory quantity of the service period, and adding the variation and the end inventory margin of the service period in the open state to obtain the updated end inventory margin of the service period.
5. The method of claim 1, wherein each of the service periods in the on state comprises a current service period and a previous service period and a next service period of the current service period.
6. An adaptive data update apparatus, comprising:
the data storage module is used for storing data in an initial period into a first data space selected in advance; the first data space is independent of a second data space, and the second data space is used for storing data of each service period except for an initial period;
the period acquisition module is used for acquiring each service period in an open state;
and the data updating module is used for updating data of each service period in the second data space in an open state according to the initial period data in the first data space.
7. The apparatus of claim 6, wherein before the data storage module stores the initial period data into the pre-selected first data space, the data storage module is further configured to: judging whether the data in the initial period needs to be modified; if so, storing the modified initial period data into the first data space; otherwise, continuing to perform accounting processing on the data in the current service period according to a preset accounting program.
8. The apparatus of claim 6, wherein the initial period data comprises an initial inventory balance, and wherein the data for each business period other than the initial period comprises an initial inventory quantity and an end inventory balance.
9. The apparatus of claim 8, wherein the data update module is specifically configured to: if the service period in the open state is the first update, adding the initial inventory allowance and the initial inventory amount of the service period in the open state to obtain an updated initial inventory amount of the service period, and adding the initial inventory allowance and the end inventory allowance of the service period in the open state to obtain an updated end inventory allowance of the service period;
if the service period in the open state is not updated for the first time, acquiring the variation of the initial inventory margin in the initial period data before the current modification after the current modification, adding the variation and the initial inventory quantity of the service period in the open state to obtain the updated initial inventory quantity of the service period, and adding the variation and the end inventory margin of the service period in the open state to obtain the updated end inventory margin of the service period.
10. The apparatus of claim 6, wherein each of the service periods in the on state comprises a current service period and a previous service period and a next service period of the current service period.
CN202110854590.4A 2021-07-28 2021-07-28 Self-adaptive data updating method and device Pending CN113626451A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110854590.4A CN113626451A (en) 2021-07-28 2021-07-28 Self-adaptive data updating method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110854590.4A CN113626451A (en) 2021-07-28 2021-07-28 Self-adaptive data updating method and device

Publications (1)

Publication Number Publication Date
CN113626451A true CN113626451A (en) 2021-11-09

Family

ID=78381273

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110854590.4A Pending CN113626451A (en) 2021-07-28 2021-07-28 Self-adaptive data updating method and device

Country Status (1)

Country Link
CN (1) CN113626451A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102945257A (en) * 2012-10-18 2013-02-27 北京京东世纪贸易有限公司 Method and device for initializing database
FR3079635A1 (en) * 2018-04-03 2019-10-04 Amadeus S.A.S. CACHE DATA UPDATE
CN110347672A (en) * 2019-05-27 2019-10-18 深圳壹账通智能科技有限公司 Verification method and device, the electronic equipment and storage medium of tables of data related update
CN111292028A (en) * 2018-12-06 2020-06-16 北京京东尚科信息技术有限公司 Inventory information processing method and system, computer system and readable storage medium
CN111506592A (en) * 2020-04-21 2020-08-07 腾讯科技(深圳)有限公司 Method and device for upgrading database
CN112231331A (en) * 2020-10-23 2021-01-15 金蝶云科技有限公司 Inventory data synchronization method and inventory data synchronization module

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102945257A (en) * 2012-10-18 2013-02-27 北京京东世纪贸易有限公司 Method and device for initializing database
FR3079635A1 (en) * 2018-04-03 2019-10-04 Amadeus S.A.S. CACHE DATA UPDATE
CN111292028A (en) * 2018-12-06 2020-06-16 北京京东尚科信息技术有限公司 Inventory information processing method and system, computer system and readable storage medium
CN110347672A (en) * 2019-05-27 2019-10-18 深圳壹账通智能科技有限公司 Verification method and device, the electronic equipment and storage medium of tables of data related update
CN111506592A (en) * 2020-04-21 2020-08-07 腾讯科技(深圳)有限公司 Method and device for upgrading database
CN112231331A (en) * 2020-10-23 2021-01-15 金蝶云科技有限公司 Inventory data synchronization method and inventory data synchronization module

Similar Documents

Publication Publication Date Title
US20070214162A1 (en) Method and system for managing data in a workflow process
US20030206621A1 (en) System and method to provide automated scripting for customer service representatives
US8490053B2 (en) Software domain model that enables simultaneous independent development of software components
US20080077935A1 (en) Method and System for Automated Handling of Resolvable and Non-resolvable Errors in Execution of System Management Flows Consisting of System Management Tasks
CN101371227A (en) Persistent maintenance of customization data on computing devices
US7840454B2 (en) Methods and systems for dynamic calculation of safety stock quantity
US20050283761A1 (en) Method and framework for test case management
CN111553699A (en) Resource scheduling method and device
CN111752740A (en) Microservice anomaly compensation method, microservice anomaly compensation device, microservice anomaly compensation equipment and computer readable storage medium
CN103366270A (en) Multi-platform data interaction method and system
CN113626451A (en) Self-adaptive data updating method and device
CN110275892A (en) Data managing method, device, equipment and storage medium towards block chain
US20090069919A1 (en) Intelligent mass production planning and routing system
CN108804178A (en) Information-pushing method, device, system and equipment
US20100057665A1 (en) Method and system for enhancing computer object rules and catalogs
US9336027B2 (en) System and method for modular business applications
CN111429125B (en) Account management method and device, storage medium and electronic equipment
Jana et al. Balancing benefits and flexibility losses in platform planning
CN112732807A (en) Interface calling method and device
CN111026701A (en) Method for intelligently selecting approval process based on file type
US10733170B2 (en) Integration of independent platforms
CN114385267B (en) Data pushing method for cash transaction service
CN111552534B (en) Transaction menu updating method and device, readable medium and equipment
CN111881091B (en) Data storage method, device, electronic equipment and storage medium
CN109325772B (en) Service settlement processing method and device

Legal Events

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