CN107247695A - Coding rule generation method, system and storage device - Google Patents
Coding rule generation method, system and storage device Download PDFInfo
- Publication number
- CN107247695A CN107247695A CN201710401177.6A CN201710401177A CN107247695A CN 107247695 A CN107247695 A CN 107247695A CN 201710401177 A CN201710401177 A CN 201710401177A CN 107247695 A CN107247695 A CN 107247695A
- Authority
- CN
- China
- Prior art keywords
- coding rule
- code
- coding
- rule generation
- composition
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/12—Use of codes for handling textual entities
- G06F40/126—Character encoding
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Storage Device Security (AREA)
Abstract
The invention discloses a kind of coding rule generation method, system and storage device, the coding rule generation method comprises the following steps:Obtain the coding rule generation code of input;Code inquiry in coding rule composition table composition list corresponding with coding rule generation code is generated according to the coding rule, wherein, the composition list includes several identifiers;The coding rule is generated according to pre-defined rule according to the composition list.Coding rule generation method, system and the storage device that the present invention is provided generate code according to the coding rule of input and corresponding composition list are inquired about from coding rule composition table, then according to composition list generation coding rule, can neatly according to the actual requirements configuration codes rule composition table, code is generated from the corresponding composition list of coding rule composition table acquisition according to the coding rule of input so that the coding rule of generation is adapted to various individual demands.
Description
Technical field
The invention belongs to technical field of data processing, especially a kind of coding rule generation method, system and storage device.
Background technology
Ensure customer accounting code, receipt number, teller's serial number, card number etc. are easy in core banking system to safeguard and pipe
Reason, core does unified generation, management with safeguarding using unified coding rule.Inventor is realizing the process of coding generation
In, invent existing coding rule underaction, it is difficult to tackle various special coding requirements.
The content of the invention
In view of this, it is an object of the invention to provide a kind of coding rule generation method, system and storage device, it is intended to
Solve the defect for being difficult to tackle a variety of coding requirements in existing coding generating process.
Therefore, the invention provides a kind of coding rule generation method, the coding rule generation method comprises the following steps:
Code obtaining step:Obtain the coding rule generation code of input;
Constitute list acquiring step:Code inquiry and the volume in coding rule composition table are generated according to the coding rule
The corresponding composition list of code rule generation code, wherein, the composition list includes several identifiers;
Coding rule generation step:The coding rule is generated according to pre-defined rule according to the composition list.
Preferably, after the Code obtaining step, and before the composition list acquiring step, this includes:
Constitute list query step:According to the coding rule generate code inquired about in a coding rule table whether have with
The corresponding record information of coding rule generation code, if so, then obtaining coding rule generation according to the record information
The corresponding coding rule of code.
Preferably, the coding rule obtaining step also includes:
The data type conversion that the coding rule of acquisition is generated into code is map types.
Preferably, the coding rule generation step includes:
The identifier includes particular value and handles mark, if the particular value processing mark of the composition list is fixed
Value, then into fixed value special handling procedure.
Preferably, the coding rule generation step also includes:If the particular value processing mark is not fixed value, and
And particular value processing be masked as be, then into particular value encoding process.
Preferably, the coding rule generation step includes:
The identifier includes component type mark, if the component type mark includes check bit, enters and examines
Position processing routine.
Preferably, the coding rule generation step also includes:
Include and generated according to serial number gencration method if the component type is masked as sequence number mark, in the coding rule
Coding;
If the component type is masked as random number mark, included in the coding rule according to random digit generation method
Generation coding.
Preferably, the coding rule generation step also includes:
The identifier includes encoded radio length mark, if the encoded radio length is unsatisfactory for preset value, according to pre-
If coding configuration rule to production coding carry out processing cause the coding length meet the preset value.
The beneficial effects of the invention are as follows:Coding rule generation method, system and the storage device that the present invention is provided are according to defeated
The coding rule generation code entered inquires about corresponding composition list from coding rule composition table, then according to composition list generation
Coding rule, can neatly according to the actual requirements configuration codes rule composition table, according to the coding rule of input generate code
Corresponding composition list is obtained from coding rule composition table so that the coding rule of generation, which is adapted to various personalizations, to be needed
Ask.
Coding rule generation method, system and the storage device that the present invention is provided can configure volume by visual mode
Code rule composition table, can support that public field processing, custom field input processing, module are special according to the identifier of composition list
Different processing, cover processing, fixed value processing, random number configuration, sequence number are automatically generated and reset cycle setting, and at check bit
Reason etc., disclosure satisfy that the demand of the coding rule of multiple personal.
Brief description of the drawings
Fig. 1 is the flow chart for the coding rule generation method that first embodiment of the invention is provided;
Fig. 2 is the flow chart for the coding rule generation method that second embodiment of the invention is provided;
Fig. 3 is the structural representation that the coding rule that third embodiment of the invention is provided generates system.
Embodiment
It is below in conjunction with the accompanying drawings and specific real in order to be more clearly understood that the above objects, features and advantages of the present invention
Applying mode, the present invention will be described in detail.It should be noted that in the case where not conflicting, presently filed embodiment and reality
Applying the feature in mode can be mutually combined.
Many details are elaborated in the following description to facilitate a thorough understanding of the present invention, described embodiment
Only a part of embodiment of the invention, rather than whole embodiments.Based on the embodiment in the present invention, this area
The every other embodiment that those of ordinary skill is obtained under the premise of creative work is not made, belongs to guarantor of the present invention
The scope of shield.
Unless otherwise defined, all of technologies and scientific terms used here by the article is with belonging to technical field of the invention
The implication that technical staff is generally understood that is identical.Term used in the description of the invention herein is intended merely to description tool
The purpose of the embodiment of body, it is not intended that in the limitation present invention.
Fig. 1 is the flow chart for the coding rule generation method that first embodiment of the invention is provided.As shown in figure 1, this implementation
The coding rule generation method that mode is provided includes step S11 (Code obtaining step), and (composition list obtains step to step S12
Suddenly) and step S13 (coding rule generation step).
Step S11 (Code obtaining step):Obtain the coding rule generation code of input;
Step S12 (composition list acquiring step):Code is generated in coding rule composition table according to the coding rule
Inquiry composition list corresponding with coding rule generation code, wherein, the composition list includes several identifiers;
Step S13 (coding rule generation step):Advised according to the composition list according to the pre-defined rule generation coding
Then.
In present embodiment, according to different identifiers, coding rule generation step has the difference is that constitution method.Institute
Stating coding rule generation step includes:
The identifier includes particular value and handles mark, if the particular value processing mark of the composition list is fixed
Value, then into fixed value special handling procedure;If the particular value processing mark is not at fixed value, and the particular value
Reason is masked as, then into particular value encoding process.
In addition, the coding rule generation step can also include:
The identifier includes component type mark, if the component type mark includes check bit, enters and examines
Position processing routine.
Or, the coding rule generation step can also include:
Include and generated according to serial number gencration method if the component type is masked as sequence number mark, in the coding rule
Coding;
If the component type is masked as random number mark, included in the coding rule according to random digit generation method
Generation coding.
Or, the coding rule generation step can also include:
The identifier includes encoded radio length mark, if the encoded radio length is unsatisfactory for preset value, according to pre-
If coding configuration rule to production coding carry out processing cause the coding length meet the preset value.
By the implementation of above-described embodiment, the coding rule generation method that present embodiment is provided is advised according to the coding of input
Then generation code inquires about corresponding composition list from coding rule composition table, then according to composition list generation coding rule,
Can neatly according to the actual requirements configuration codes rule composition table, according to the coding rule of input generate code from the coding advise
Then composition table obtains corresponding composition list so that the coding rule of generation is adapted to various individual demands.
Further, the coding rule generation method that present embodiment is provided can be advised by visual mode configuration codes
Table is then constituted, public field processing, custom field input processing, the special place of module can be supported according to the identifier of composition list
Reason, cover processing, fixed value processing, random number configuration, sequence number are automatically generated and reset cycle setting, and check bit processing
Deng disclosure satisfy that the demand of the coding rule of multiple personal.
Fig. 2 is the flow chart for the coding rule generation method that second embodiment of the invention is provided.Coding rule life of the present invention
Into method provide second embodiment be that first embodiment is further expanded, therefore pair with first embodiment of the invention identical
Step, will not be repeated here.It should be noted that in the scope of the present invention, it is adaptable to each in first embodiment
Concrete scheme can also be accordingly suitable for second embodiment.As shown in Fig. 2 the coding rule that this second embodiment is provided
Then generation method includes step S21~step S24.Wherein, step S21, S23, S24 in second embodiment are respectively with first
Embodiment S11, S12 are identical with S13, and here is omitted.
The coding rule generation method that second embodiment is provided is after the Code obtaining step, and at described group
Into before list acquiring step, in addition to:
Step S22:Constitute list query step:Code is generated according to the coding rule to inquire about in a coding rule table
Whether with coding rule generation code corresponding record information is had, if so, then obtaining the coding according to the record information
The corresponding coding rule of rule generation code.
In addition, also including in the step S23 (coding rule obtaining step) of first embodiment:
The data type conversion that the coding rule of acquisition is generated into code is map types.
This second embodiment is except with the technical scheme and its corresponding technology being previously mentioned in the first embodiment
Outside effect, also by the record information to inquiring about correlation in coding rule table, search whether exist accordingly according to record information
Coding rule, so as to directly obtain coding rule, improve coding rule formation efficiency.
Above is the detailed description carried out to method provided by the present invention.According to different demands, in shown flow chart
The execution sequence of square can change, and some squares can be omitted.System provided by the present invention is described below.
Fig. 3 generates the structural representation of system for the coding rule using the respective embodiments described above that the present invention is provided.
As shown in figure 3, coding rule generation system includes storage device 30 and processor 10.
Storage device 30 can include read-only storage 31 and random access memory 32, and provide instruction to processor 10
And data.The a part of of storage device 30 can also include nonvolatile RAM (NVRAM).
Each component of coding rule generation system is coupled by bus 20, and wherein bus 20 is total except data are included
Outside line, power bus, controlling bus and status signal bus in addition etc. can also be included.But for the sake of clear explanation, in figure
It is middle that various buses are all designated as bus 20.
Storage device 30 stores following element, can perform module either data structure or their subset, or
Their superset:
Operational order:Including various operational orders, for realizing various operations.
Operating system:Including various system programs, for realizing various basic businesses and handling hardware based task.
Processor 10 is adapted to carry out various instructions, controls the operation of associated components, and processor 10 can also be referred to as CPU
(Central Processing Unit, CPU).Processor 10 is probably a kind of IC chip, with letter
Number disposal ability.Processor 10 can also be general processor, digital signal processor (DSP), application specific integrated circuit
(ASIC), ready-made programmable gate array (FPGA) or other PLDs, discrete gate or transistor logic,
Discrete hardware components.General processor can be microprocessor or the processor can also be any conventional processor etc..
Storage device 10 is applied to store above-mentioned a plurality of instruction, the instruction be applied to be loaded by processor and performed with
Lower step:
Code obtaining step:Obtain the coding rule generation code of input;
Constitute list acquiring step:Code inquiry and the volume in coding rule composition table are generated according to the coding rule
The corresponding composition list of code rule generation code, wherein, the composition list includes several identifiers;
Coding rule generation step:The coding rule is generated according to pre-defined rule according to the composition list.
It should be noted that identical noun in each embodiment of above coding rule generation method, related terms and
Its specific explanation is readily applicable in present embodiment.For the sake of saving space and avoiding repetition, herein just no longer
Repeat.
Finally, the embodiment of the present invention additionally provides a kind of storage device, wherein a plurality of instruction that is stored with, the instruction is applicable
In being loaded by processor and perform following steps:
Code obtaining step:Obtain the coding rule generation code of input;
Constitute list acquiring step:Code inquiry and the volume in coding rule composition table are generated according to the coding rule
The corresponding composition list of code rule generation code, wherein, the composition list includes several identifiers;
Coding rule generation step:The coding rule is generated according to pre-defined rule according to the composition list.
The coding rule generation system and storage device that present embodiment is provided generate code according to the coding rule of input
Corresponding composition list is inquired about from coding rule composition table, can be neatly then according to composition list generation coding rule
Configuration codes rule composition table, generates code according to the coding rule of input and is obtained from the coding rule composition table according to the actual requirements
Take corresponding composition list so that the coding rule of generation is adapted to various individual demands.
Further, the coding rule generation system and storage device that present embodiment is provided can pass through visual mode
Configuration codes rule composition table, according to composition list identifier can support public field processing, custom field input processing,
Module specially treated, cover processing, fixed value processing, random number configuration, sequence number are automatically generated and reset cycle setting, and school
Position processing etc. is tested, the demand of the coding rule of multiple personal is disclosure satisfy that.
, can be by it in several embodiments provided by the present invention, it should be understood that disclosed apparatus and method
Its mode is realized.For example, equipment embodiment described above is only schematical, such as multiple units or component can
To combine or be desirably integrated into another system, or some features can be ignored, or not perform.It is another, it is shown or beg for
The coupling each other of opinion or direct-coupling or communication connection can be the INDIRECT COUPLINGs of device or unit by some interfaces
Or communication connection, can be electrical, machinery or other forms.
The unit illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit
The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can be selected to realize present embodiment scheme according to the actual needs
Purpose.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing unit, can also
That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list
Member can both be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
If the integrated unit is realized using in the form of SFU software functional unit and as independent production marketing or used
When, it can be stored in a computer read/write memory medium.Understood based on such, technical scheme is substantially
The part contributed in other words to prior art or all or part of the technical scheme can be in the form of software products
Embody, the computer software product is stored in a storage medium, including some instructions are to cause a computer
Equipment (can be personal computer, server, or network equipment etc.) or processor (processor) perform the present invention each
The all or part of step of embodiment methods described.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage
(ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD
Etc. it is various can be with the medium of store program codes.
Embodiments of the present invention are the foregoing is only, are not intended to limit the scope of the invention, it is every to utilize this
Equivalent structure or equivalent flow conversion that description of the invention and accompanying drawing content are made, or directly or indirectly it is used in other correlations
Technical field, is included within the scope of the present invention.
Claims (10)
1. a kind of coding rule generation method, it is characterised in that the coding rule generation method comprises the following steps:
Code obtaining step:Obtain the coding rule generation code of input;
Constitute list acquiring step:Code inquiry in coding rule composition table is generated according to the coding rule to advise with the coding
The then corresponding composition list of generation code, wherein, the composition list includes several identifiers;
Coding rule generation step:The coding rule is generated according to pre-defined rule according to the composition list.
2. coding rule generation method as claimed in claim 1, it is characterised in that after the Code obtaining step, and
And before the composition list acquiring step, this includes:
Constitute list query step:Whether generate code according to the coding rule and inquired about in a coding rule table has and the volume
The corresponding record information of code rule generation code, if so, then obtaining coding rule generation code according to the record information
Corresponding coding rule.
3. coding rule generation method as claimed in claim 1, it is characterised in that the coding rule obtaining step is also wrapped
Include:
The data type conversion that the coding rule of acquisition is generated into code is map types.
4. coding rule generation method as claimed in claim 1, it is characterised in that the coding rule generation step includes:
The identifier includes particular value and handles mark, if the particular value processing mark of the composition list is fixed value,
Into fixed value special handling procedure.
5. coding rule generation method as claimed in claim 4, it is characterised in that the coding rule generation step is also wrapped
Include:If the particular value processing mark is not fixed value, and particular value processing is masked as being then to enter particular value and compile
Code processing routine.
6. coding rule generation method as claimed in claim 1, it is characterised in that the coding rule generation step includes:
The identifier includes component type mark, if the component type mark includes check bit, at check bit
Reason program.
7. coding rule generation method as claimed in claim 6, it is characterised in that the coding rule generation step is also wrapped
Include:
Include to generate according to serial number gencration method if the component type is masked as sequence number mark, in the coding rule and compile
Code;
Include and generated according to random digit generation method if the component type is masked as random number mark, in the coding rule
Coding.
8. coding rule generation method as claimed in claim 1, it is characterised in that the coding rule generation step is also wrapped
Include:
The identifier includes encoded radio length mark, if the encoded radio length is unsatisfactory for preset value, according to default
Coding configuration rule carries out processing to the coding of production and causes the length of the coding to meet the preset value.
9. a kind of coding rule generates system, including:
Processor, it is adaptable to realize each instruction, and
Storage device, it is adaptable to store a plurality of instruction, the instruction is applied to be loaded by processor and perform following steps:
Code obtaining step:Obtain the coding rule generation code of input;
Constitute list acquiring step:Code inquiry in coding rule composition table is generated according to the coding rule to advise with the coding
The then corresponding composition list of generation code, wherein, the composition list includes several identifiers;
Coding rule generation step:The coding rule is generated according to pre-defined rule according to the composition list.
10. a kind of storage device, wherein a plurality of instruction that is stored with, the instruction is applied to be loaded by processor and perform following step
Suddenly:
Code obtaining step:Obtain the coding rule generation code of input;
Constitute list acquiring step:Code inquiry in coding rule composition table is generated according to the coding rule to advise with the coding
The then corresponding composition list of generation code, wherein, the composition list includes several identifiers;
Coding rule generation step:The coding rule is generated according to pre-defined rule according to the composition list.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710401177.6A CN107247695A (en) | 2017-05-31 | 2017-05-31 | Coding rule generation method, system and storage device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710401177.6A CN107247695A (en) | 2017-05-31 | 2017-05-31 | Coding rule generation method, system and storage device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107247695A true CN107247695A (en) | 2017-10-13 |
Family
ID=60017981
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710401177.6A Pending CN107247695A (en) | 2017-05-31 | 2017-05-31 | Coding rule generation method, system and storage device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107247695A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112104441A (en) * | 2020-11-05 | 2020-12-18 | 广州市玄武无线科技股份有限公司 | Method, device and system for encoding and decoding service data packet |
CN112199083A (en) * | 2020-10-16 | 2021-01-08 | 深圳无域科技技术有限公司 | Configurable ID generation system and method based on expression |
CN115688683A (en) * | 2023-01-05 | 2023-02-03 | 东方合智数据科技(广东)有限责任公司 | Document number issuing method, device, equipment and storage medium |
CN115757413A (en) * | 2022-11-23 | 2023-03-07 | 中电金信软件有限公司 | Data encoding method and device and electronic equipment |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101414301A (en) * | 2007-10-19 | 2009-04-22 | 国际商业机器公司 | Content management system that renders multiple types of data to different applications |
CN102609816A (en) * | 2012-02-13 | 2012-07-25 | 浪潮集团山东通用软件有限公司 | General material coding method capable of coding according to user-defined rule |
KR20180014124A (en) * | 2015-03-16 | 2018-02-07 | 후지쯔 가부시끼가이샤 | Information processing apparatus, and data management method |
-
2017
- 2017-05-31 CN CN201710401177.6A patent/CN107247695A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101414301A (en) * | 2007-10-19 | 2009-04-22 | 国际商业机器公司 | Content management system that renders multiple types of data to different applications |
CN102609816A (en) * | 2012-02-13 | 2012-07-25 | 浪潮集团山东通用软件有限公司 | General material coding method capable of coding according to user-defined rule |
KR20180014124A (en) * | 2015-03-16 | 2018-02-07 | 후지쯔 가부시끼가이샤 | Information processing apparatus, and data management method |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112199083A (en) * | 2020-10-16 | 2021-01-08 | 深圳无域科技技术有限公司 | Configurable ID generation system and method based on expression |
CN112104441A (en) * | 2020-11-05 | 2020-12-18 | 广州市玄武无线科技股份有限公司 | Method, device and system for encoding and decoding service data packet |
CN115757413A (en) * | 2022-11-23 | 2023-03-07 | 中电金信软件有限公司 | Data encoding method and device and electronic equipment |
CN115757413B (en) * | 2022-11-23 | 2024-01-19 | 中电金信软件有限公司 | Data coding method and device and electronic equipment |
CN115688683A (en) * | 2023-01-05 | 2023-02-03 | 东方合智数据科技(广东)有限责任公司 | Document number issuing method, device, equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107247695A (en) | Coding rule generation method, system and storage device | |
CN104599153B (en) | Commodity recommendation method, commodity recommendation server and commodity recommendation terminal | |
CN103544323B (en) | A kind of data-updating method and device | |
CN106326243B (en) | Data processing method and device | |
CN103425632B (en) | A kind of method of serializing, device and processor | |
CN107807982A (en) | A kind of consistency desired result method and device of heterogeneous database | |
CN104461649B (en) | chip compatible method and device | |
CN105893097A (en) | Method and device for processing option information of BIOS (basic input output system) | |
CN108228754A (en) | flow generation method and terminal device | |
CN105550851A (en) | Business flow generation method and system | |
CN104820604B (en) | A kind of browser applied to POS terminal | |
CN105913316A (en) | Rule configuration method and apparatus | |
CN106934027A (en) | Distributed reptile realization method and system | |
CN108255909A (en) | Tables of data backup method and server based on oracle database | |
CN110399387A (en) | Method and device based on table incidence relation dynamic generation query SQL | |
CN106878041A (en) | Log information processing method, apparatus and system | |
CN109948938A (en) | The bill of materials configuration method and device and equipment of a kind of enterprise resource planning | |
CN102486748B (en) | Method and device for performance test | |
CN110135798A (en) | Commission calculation method, platform, computer equipment and computer readable storage medium | |
CN107885878A (en) | A kind of power network CIM data query method, client, server and system | |
CN101211360A (en) | System and method for processing a plurality of data form of report forms data source | |
CN113034049A (en) | Business process arranging method, device, equipment and storage medium | |
CN109376063A (en) | A kind of blog search method and apparatus, storage medium | |
CN103901402A (en) | Reconstructed FPGA radar digital signal processing assembly and reconstructed FPGA radar digital signal processing method | |
CN103984540A (en) | Method and device for generating hardware interface running program |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20171013 |