CN106326425A - Data classification processing method and device - Google Patents

Data classification processing method and device Download PDF

Info

Publication number
CN106326425A
CN106326425A CN201610720678.6A CN201610720678A CN106326425A CN 106326425 A CN106326425 A CN 106326425A CN 201610720678 A CN201610720678 A CN 201610720678A CN 106326425 A CN106326425 A CN 106326425A
Authority
CN
China
Prior art keywords
sorting item
data
record
version
historical
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
CN201610720678.6A
Other languages
Chinese (zh)
Other versions
CN106326425B (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.)
Ming Yuan Technology (beijing) Ltd By Share Ltd
Original Assignee
Ming Yuan Technology (beijing) Ltd By Share 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 Ming Yuan Technology (beijing) Ltd By Share Ltd filed Critical Ming Yuan Technology (beijing) Ltd By Share Ltd
Priority to CN201610720678.6A priority Critical patent/CN106326425B/en
Publication of CN106326425A publication Critical patent/CN106326425A/en
Application granted granted Critical
Publication of CN106326425B publication Critical patent/CN106326425B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/24Querying
    • G06F16/245Query processing
    • G06F16/2457Query processing with adaptation to user needs

Abstract

The invention discloses a data classification processing method and device. The method comprises the following steps of receiving data classification item data input by a user, wherein the data classification item data comprises classification item codes and classification item names; obtaining information of a historical data classification item, wherein the historical data classification item comprises a plurality of records, and each record at least comprises a historical classification item code, a historical classification item name and a classification item version; determining whether a first historical record identical to the classification item code exists in the plurality of records or not; if so, determining whether the name of the classification item is identical to the historical classification item name of the first historical record or not; if not, adding the data classification item data into the historical data classification item to form a newly added record, wherein the classification item version of the newly added record is the next version of the classification item version of the first historical record.

Description

Data classification processing method and device
Technical field
The present invention relates to technical field of data processing, particularly relate to a kind of data classification processing method and device.
Background technology
In data record, the relation of object and classification is typically all close coupling relation, thus causes becoming in classification During change, object also can change with the relation of classification, thus does not reaches the effect that version is reviewed, and brings many to operator Inconvenience.
As a example by financial management, the classification of financial data can be changed along with situations such as business event adjustment often.This Plant the trackability of data record before change can directly influence.Such as: the data of certain enterprise last year are grouped into according to certain Row sets, and have adjusted classification this year, just influences whether the data classification of last year, causes historical record to become inaccurate.
Summary of the invention
In view of this, the invention provides a kind of data classification processing method and device, Version Control set up for classification, Can review according to the different editions of classification, even if classification is changed, also not interfere with historical record, effectively protect Hinder the trackability of data.
First aspect, embodiments provides a kind of data classification processing method, including:
Receive the data sorting item data of user's input;Described data sorting item data include sorting item coding and sorting item Title;
Obtain historical data sorting item;Described historical data sorting item includes a plurality of record, and every record at least includes: go through History sorting item coding, history sorting item title and sorting item version;
Determine and whether described a plurality of record exists first historical record identical with described sorting item coding;
If it is present determine described sorting item title whether with the history sorting item title phase of described first historical record With;If it is not the same, then add in described historical data sorting item by described data sorting item data, form newly-increased record;Institute State next version of the sorting item version that sorting item version is described first historical record of newly-increased record.
Preferably, if described a plurality of record not existing first historical record identical with described sorting item coding, then Described data sorting item data are added in described historical data sorting item and form newly-increased record;The sorting item of described newly-increased record Version is initial version.
Preferably, described sorting item version record in a digital format.
Preferably, described record also includes sorting item rank and parent coding.
It is further preferred that the sorting item rank of described newly-increased record and parent coding are all in accordance with described sorting item coding really Fixed.
Preferably, described method also includes:
Receive the operational order of the data sorting item of user's input;Described operational order includes operational motion information, waits to grasp Make sorting item coding and sorting item version;
Determine in described historical data sorting item accordingly according to described sorting item to be operated coding and sorting item version Record to be operated;
According to described operational motion information, described record to be operated is operated accordingly;Described operation includes: amendment And deletion.
Second aspect, embodiments provides a kind of data classification processing means, including:
Receive unit, for receiving the data sorting item data of user's input;Described data sorting item data include classification Item coding and sorting item title;
Memory element, for store historical data sorting item;
Acquiring unit, is used for obtaining historical data sorting item;Described historical data sorting item includes a plurality of record, every note Record at least includes: history sorting item coding, history sorting item title and sorting item version;
Processing unit, for determining whether there is first history identical with described sorting item coding in described a plurality of record Record;
If it is present described processing unit determine described sorting item title whether with the history of described first historical record Sorting item title is identical;If it is not the same, described data sorting item data are added described historical data by the most described processing unit In sorting item, form newly-increased record;The sorting item version of described newly-increased record is the sorting item version of described first historical record Next version.
Preferably, if described a plurality of record not existing first historical record identical with described sorting item coding, then Described data sorting item data are added the newly-increased record of formation in described historical data sorting item by described processing means;Described newly-increased The sorting item version of record is initial version.
Preferably, described record also includes sorting item rank and parent coding, and described processing unit is additionally operable to, according to described Sorting item coding determines sorting item rank and the parent coding of described newly-increased record.
Preferably, described reception unit is additionally operable to, and receives the operational order of the data sorting item of user's input;Described operation Instruction includes operational motion information, sorting item to be operated coding and sorting item version;
Described processing unit is additionally operable to, according to described sorting item to be operated coding with sorting item version in described historical data Sorting item determines corresponding record to be operated;
Described processing unit is additionally operable to, and according to described operational motion information, grasps described record to be operated accordingly Make;Described operation includes: revises and deletes.
The data classification processing method that the embodiment of the present invention provides, sets up Version Control for classification, can be according to classification Different editions review, even if classification is changed, do not interfere with historical record yet, effectively ensured data can Retrospective.
Accompanying drawing explanation
The flow chart of the data classification processing method that Fig. 1 provides for the embodiment of the present invention;
The schematic diagram of the data classification processing means that Fig. 2 provides for the embodiment of the present invention;
The entity structure schematic diagram of the data classification processing means that Fig. 3 provides for the embodiment of the present invention.
Detailed description of the invention
In order to make the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing the present invention made into One step ground describes in detail, it is clear that described embodiment is only some embodiments of the present invention rather than whole enforcement Example.Based on the embodiment in the present invention, those of ordinary skill in the art are obtained under not making creative work premise All other embodiments, broadly fall into the scope of protection of the invention.
The data classification processing method that the embodiment of the present invention provides, comprises the steps, the most as shown in Figure 1.
Step 110, receives the data sorting item data of user's input;
Concrete, data sorting item data include sorting item coding and sorting item title;
Such as in a specific example, the data sorting item data of user's input are " 101102, business demand portion ". Wherein 101102 encoding for sorting item, business demand portion is sorting item title.
Step 120, obtains historical data sorting item;
Concrete, historical data sorting item includes that a plurality of record, every record at least include: history sorting item encodes, goes through History sorting item title and sorting item version;Additionally can include sorting item rank and parent coding.
Sorting item version is which time record under same sorting item encodes for recording this sorting item.Sorting item rank Refer to the hierarchical relationship in sorting item record, if sorting item rank is 1, illustrate that this sorting item is mother stock category, if 2, illustrate into the subclassification item under mother stock category, if 3, to illustrate as the classification event under subclassification item ... by that analogy. Parent coding refers to the attaching relation of this sorting item, can be found by the parent coding of a sorting item and encode with this parent Identical sorting item, illustrates the subclassification item under the sorting item that this sorting item is belonging to be searched.
In a specific example, historical data sorting item is as shown in table 1 below.
Table 1
In Table 1, historical data sorting item includes three records.
Step 130, determines and whether there is first historical record identical with sorting item coding in a plurality of record;
If it does, perform step 140, otherwise perform step 160.
The sorting item of aforementioned user input is encoded to 101102, there is identical sorting item coding in Table 1, therefore performs Step 140.
Step 140, determines that sorting item title is the most identical with the history sorting item title of the first historical record;
If identical, then terminate flow process;If it is different, perform step 150.
In this example, the sorting item entitled " business demand portion " of user's input, and in the record of historical data sorting item " business department " different, therefore perform step 150.
Step 150, sorts data into item data and adds in historical data sorting item, form newly-increased record;Wherein, newly-increased note Next version of the sorting item version that sorting item version is the first historical record of record.
In this example, data sorting item data user inputted are that " 101102, business demand portion " join history number According in sorting item, form new record, table 2 specific as follows.In record, also include sorting item rank accordingly and parent is compiled The information of code.These information i.e. be can confirm that by sorting item coding and preset rules.
Table 2
Because the sorting item version of the first historical record is " 1 ", therefore the sorting item version of newly-increased record is " 2 ".Certainly, The most not limiting sorting item version can only be numeral, it is also possible to is otherwise to carry out record, such as uses English alphabet a, b, c ..., or use Roman number, or other modes carry out colophon.
Described data sorting item data are added in described historical data sorting item and form newly-increased record by step 160;Its In, the sorting item version of newly-increased record is initial version.
Concrete, initial version can be configured by user.
Further, it is also possible to be managed classification safeguarding, such as revise or delete.
By receiving the operational order of the data sorting item of user's input;According to sorting item to be operated coding and sorting item version This determines corresponding record to be operated in described historical data sorting item;Wherein include that operational motion is believed at operational order Breath, sorting item to be operated coding and the information of sorting item version;Afterwards according to operational motion information, treat operation note and carry out phase The operation answered, such as revises or deletes.
The data classification processing method that the present invention provides, sets up Version Control for classification, can be according to the difference of classification Version is reviewed, even if classification is changed, does not also interfere with historical record, has effectively ensured reviewing of data Property.
Accordingly, the embodiment of the present invention additionally provides a kind of data classification processing means, as in figure 2 it is shown, include receiving list Unit 1, memory element 2, acquiring unit 3 and processing unit 4
Wherein, reception unit 1, memory element 2, acquiring unit 3 are connected with processing unit 4 respectively;Acquiring unit 3 and storage Also connect between unit 2;
Receive unit 1, for receiving the data sorting item data of user's input;Described data sorting item data include classification Item coding and sorting item title;
Memory element 2, for store historical data sorting item;
Acquiring unit 3, is used for obtaining historical data sorting item;Described historical data sorting item includes a plurality of record, every Record at least includes: history sorting item coding, history sorting item title and sorting item version;
Processing unit 4, for determining that whether there is first identical with described sorting item coding in described a plurality of record goes through The Records of the Historian is recorded;
If it is present processing unit 4 determine sorting item title whether with the history sorting item title of the first historical record Identical;If it is not the same, then described data sorting item data are added in historical data sorting item by processing unit, form newly-increased note Record;Next version of the sorting item version that sorting item version is the first historical record of newly-increased record.
If there is not first historical record identical with sorting item coding in a plurality of record, then data are divided by processing means Class item data adds the newly-increased record of formation in historical data sorting item;The sorting item version of newly-increased record is initial version.
Historical data sorting item after data update is stored in memory element 2.
Additionally, record also includes sorting item rank and parent coding, processing unit 4 is additionally operable to, according to sorting item coding really The sorting item rank of fixed newly-increased record and parent coding.
It is additionally operable to additionally, receive unit 1, receives the operational order of the data sorting item of user's input;Described operational order Including operational motion information, sorting item to be operated coding and sorting item version;
Processing unit 4 is additionally operable to, and divides in described historical data according to described sorting item to be operated coding and sorting item version Category determines corresponding record to be operated;Further, according to described operational motion information, described record to be operated is carried out accordingly Operation;Described operation includes: revises and deletes.
The entity of above-mentioned data classification processing means realizes can being a server, its organizational structure schematic diagram such as Fig. 3 Shown in, including processor 31, memorizer 32, communication interface 33 and bus 34.Wherein, processor 31, memorizer 32 connect with communicating Mouth 33 realizes communication connection each other by bus 34.
Processor 31 can use general central processing unit (Central Processing Unit, CPU), micro-process Device, application specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or Multiple integrated circuits, are used for performing relative program, to realize the processing unit that present invention is proposed.
Memorizer 32 can include read only memory (Read Only Memory, ROM), static storage device, dynamically deposits Storage equipment or random access memory (Random Access Memory, RAM).It is aforementioned that memorizer 32 can realize the present invention The memory element that embodiment is proposed.
Communication interface 33 can realize reception unit and the acquiring unit that present invention is proposed.
Bus 34 can include a path, in server all parts (such as processor 31, memorizer 32 and communication interface 33) information is transmitted between.
The data classification processing means that the embodiment of the present invention provides, sets up Version Control for classification, can be according to classification Different editions review, even if classification is changed, do not interfere with historical record yet, effectively ensured data can Retrospective.
Professional should further appreciate that, each example described in conjunction with the embodiments described herein Unit and algorithm steps, it is possible to realize with electronic hardware, the most generally describe respectively according to function The composition of example and step.Each specifically should being used for is used different methods to realize described function, but this reality Existing it is not considered that exceed the scope of the embodiment of the present invention.Specifically, described computing and control part can dredging collateral logic hardware Realizing, it can be the logical integrated circuit using integrated circuit technology to manufacture, and this is not construed as limiting by the present embodiment.
The method described in conjunction with the embodiments described herein or the step of algorithm can use hardware, processor to perform Software module, or the combination of the two implements.Software module can be placed in random access memory (RAM), internal memory, read only memory (ROM), electrically programmable ROM, electrically erasable ROM, depositor, hard disk, moveable magnetic disc, CD-ROM or technical field In any other form of storage medium well known in.
Above-described detailed description of the invention, is carried out purpose, technical scheme and the beneficial effect of the embodiment of the present invention Further describe, be it should be understood that the detailed description of the invention that the foregoing is only the embodiment of the present invention, and need not In limiting the protection domain of the embodiment of the present invention, within all spirit in the embodiment of the present invention and principle, any amendment of being made, Equivalent, improvement etc., within should be included in the protection domain of the embodiment of the present invention.

Claims (10)

1. a data classification processing method, it is characterised in that described method includes:
Receive the data sorting item data of user's input;Described data sorting item data include sorting item coding and classification key name Claim;
Obtain historical data sorting item;Described historical data sorting item includes that a plurality of record, every record at least include: history is divided Category coding, history sorting item title and sorting item version;
Determine and whether described a plurality of record exists first historical record identical with described sorting item coding;
If it is present determine that described sorting item title is the most identical with the history sorting item title of described first historical record; If it is not the same, then add in described historical data sorting item by described data sorting item data, form newly-increased record;Described newly Increase next version of the sorting item version that sorting item version is described first historical record of record.
Data classification processing method the most according to claim 1, it is characterised in that if do not existed in described a plurality of record First historical record identical with described sorting item coding, then add the classification of described historical data by described data sorting item data Newly-increased record is formed in Xiang;The sorting item version of described newly-increased record is initial version.
Data classification processing method the most according to claim 1, it is characterised in that described sorting item version is in a digital format Record.
Data classification processing method the most according to claim 1, it is characterised in that described record also includes sorting item rank Encode with parent.
Data classification processing method the most according to claim 4, it is characterised in that the sorting item rank of described newly-increased record Determine all in accordance with described sorting item coding with parent coding.
Data classification processing method the most according to claim 1, it is characterised in that described method also includes:
Receive the operational order of the data sorting item of user's input;Described operational order include operational motion information, to be operated point Category coding and sorting item version;
Determine in described historical data sorting item according to described sorting item to be operated coding and sorting item version and wait accordingly to grasp Note down;
According to described operational motion information, described record to be operated is operated accordingly;Described operation includes: revises and deletes Remove.
7. a data classification processing means, it is characterised in that described device includes:
Receive unit, for receiving the data sorting item data of user's input;Described data sorting item data include that sorting item is compiled Code and sorting item title;
Memory element, for store historical data sorting item;
Acquiring unit, is used for obtaining historical data sorting item;Described historical data sorting item includes a plurality of record, and every record is extremely Include less: history sorting item coding, history sorting item title and sorting item version;
Whether processing unit, exist the first history note identical with described sorting item coding for determining in described a plurality of record Record;
If it is present described processing unit determines that the described sorting item title history whether with described first historical record is classified Item title is identical;If it is not the same, described data sorting item data are added the classification of described historical data by the most described processing unit Xiang Zhong, forms newly-increased record;The sorting item version of described newly-increased record is under the sorting item version of described first historical record One version.
Data the most according to claim 7 classification processing means, it is characterised in that if do not existed in described a plurality of record First historical record identical with described sorting item coding, described data sorting item data are added described by the most described processing means Historical data sorting item is formed newly-increased record;The sorting item version of described newly-increased record is initial version.
Data the most according to claim 7 classification processing means, it is characterised in that described record also includes sorting item rank Encoding with parent, described processing unit is additionally operable to, and determines the sorting item rank of described newly-increased record according to described sorting item coding Encode with parent.
Data the most according to claim 7 classification processing means, it is characterised in that described reception unit is additionally operable to, and receives The operational order of the data sorting item of user's input;Described operational order includes that operational motion information, sorting item to be operated encode With sorting item version;
Described processing unit is additionally operable to, and classifies in described historical data according to described sorting item to be operated coding and sorting item version Corresponding record to be operated is determined in Xiang;
Described processing unit is additionally operable to, and according to described operational motion information, operates described record to be operated accordingly;Institute State operation to include: revise and delete.
CN201610720678.6A 2016-08-24 2016-08-24 Data classification treating method and apparatus Active CN106326425B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610720678.6A CN106326425B (en) 2016-08-24 2016-08-24 Data classification treating method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610720678.6A CN106326425B (en) 2016-08-24 2016-08-24 Data classification treating method and apparatus

Publications (2)

Publication Number Publication Date
CN106326425A true CN106326425A (en) 2017-01-11
CN106326425B CN106326425B (en) 2019-11-05

Family

ID=57790249

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610720678.6A Active CN106326425B (en) 2016-08-24 2016-08-24 Data classification treating method and apparatus

Country Status (1)

Country Link
CN (1) CN106326425B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114139510A (en) * 2021-11-08 2022-03-04 盟拓软件(苏州)有限公司 Excel table-based process operation method and device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040199540A1 (en) * 2000-03-30 2004-10-07 Hiroshi Nojima Database-file link system and method therefor
CN102110121A (en) * 2009-12-24 2011-06-29 阿里巴巴集团控股有限公司 Method and system for processing data
CN102682127A (en) * 2012-05-16 2012-09-19 北京像素软件科技股份有限公司 Data version control method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040199540A1 (en) * 2000-03-30 2004-10-07 Hiroshi Nojima Database-file link system and method therefor
CN102110121A (en) * 2009-12-24 2011-06-29 阿里巴巴集团控股有限公司 Method and system for processing data
CN102682127A (en) * 2012-05-16 2012-09-19 北京像素软件科技股份有限公司 Data version control method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114139510A (en) * 2021-11-08 2022-03-04 盟拓软件(苏州)有限公司 Excel table-based process operation method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN106326425B (en) 2019-11-05

Similar Documents

Publication Publication Date Title
US20200005325A1 (en) Platform connector
CN102096644B (en) system and method for permanently deleting file data
WO2017189933A1 (en) System, method, and apparatus for operating a unified document surface workspace
US9665600B2 (en) Method for implementing database
JP2007531115A (en) Database management system with persistent and user accessible bitmap values
US20240126817A1 (en) Graph data query
US20190018878A1 (en) Dual overlay query processing
US11853279B2 (en) Data storage using vectors of vectors
CN104680070A (en) Method, device and system for managing files used by user
CN109614599A (en) Report form generation method, device, computer equipment and storage medium
Targowski The architecture and planning of enterprise-wide information management systems
US8838615B2 (en) Computer implemented method for automatically managing stored checkpoint data
CN110471903B (en) Heterogeneous system node information summarizing and trade database generating method and device
CN103593447A (en) Data processing method and device applied to database table
CN113468118B (en) File increment storage method, device and storage medium based on blockchain
CN112912870A (en) Tenant identifier conversion
CN107784091B (en) Operation authority query method and terminal device
CN106326425A (en) Data classification processing method and device
US10002145B2 (en) Declaring directives in a data store
CN105404828A (en) Method and system for data security
US8126929B2 (en) Method and apparatus for encoding list of variable length structures to support bi-directional scans
CN109886318A (en) A kind of information processing method, device and computer readable storage medium
Borysenko et al. The Fibonacci numeral system for computer vision
CN114118944A (en) Forensic laboratory grading management method, terminal device and storage medium
US7603376B1 (en) File and folder scanning method and apparatus

Legal Events

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