CN104360850A - Method and device for processing service code - Google Patents

Method and device for processing service code Download PDF

Info

Publication number
CN104360850A
CN104360850A CN201410594862.1A CN201410594862A CN104360850A CN 104360850 A CN104360850 A CN 104360850A CN 201410594862 A CN201410594862 A CN 201410594862A CN 104360850 A CN104360850 A CN 104360850A
Authority
CN
China
Prior art keywords
code
address translation
translation map
map relation
relation table
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
CN201410594862.1A
Other languages
Chinese (zh)
Other versions
CN104360850B (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.)
China Construction Bank Corp
Original Assignee
China Construction Bank Corp
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 China Construction Bank Corp filed Critical China Construction Bank Corp
Priority to CN201410594862.1A priority Critical patent/CN104360850B/en
Publication of CN104360850A publication Critical patent/CN104360850A/en
Application granted granted Critical
Publication of CN104360850B publication Critical patent/CN104360850B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The embodiment of the invention discloses a method and a device for processing a service code. The method comprises the following steps: receiving a request of obtaining code description sent by an external application program, wherein the request comprises the associated information of the code description, and the associated information comprises code type and code value; judging whether the code type has already been loaded in a pregenerated code translation mapping relation table, if yes, obtaining the code description corresponding to the code value from the code translation mapping relation table; sending the code description corresponding to the code value obtained from the code translation mapping relation table to the external application program. Through the method and the device, the spending and redundancy of internal storage of the application program can be reduced, efficient and convenient translation of the service code and synchronous sharing of a code translation mapping relation are realized.

Description

A kind of service code disposal route and device
Technical field
The present invention relates to areas of information technology, be specifically related to a kind of service code disposal route and device.
Background technology
In on-line transaction processing procedure, need the scene code value of service code being translated to the description of corresponding code flexible and efficiently.So-called code is translated, and refers to the code mapping relation good according to predefined, by a certain code value (being generally insignificant character string), being converted to corresponding code and describing (significant language description).Such as, a service code is had to be Currency Code, the corresponding code of code designation value " 001 " describes " Renminbi ", the corresponding code of code value " 002 " describes " dollar ", namely code is translated is in routine processes process, " 001 " is converted to accordingly " Renminbi ".In routine processes process, usually only use code value to process, only when needs are shown to user, just code is translated.
Common way be code value and code are described between code address translation map relation be stored in advance in application program internal memory, to reduce the access expense of application program to database.But, code address translation map relation is directly stored in application program internal memory, code address translation map relation repeated storage can be caused, need additionally take application program internal memory, in addition, the time of reloading code address translation map relation due to each application example cannot be completely the same, easily causes different application programs to describe the inconsistent intermediateness of result according to the code that same code value is translated out.
Summary of the invention
Embodiments provide a kind of service code disposal route and device, expense and the redundancy of application program internal memory can be reduced, realize service code and to translate efficiently, easily and the synchronous of code address translation map relation is shared.
A kind of service code disposal route, comprising:
Receive the request of the acquisition code description that external application sends, described request comprises the related information that described code describes, and described related information comprises type of code and code value;
Judge whether described type of code has been carried in the code address translation map relation table generated in advance, from described code address translation map relation table, if so, then obtain the code corresponding with described code value describe;
Send to described external application the code corresponding with described code value obtained from described code address translation map relation table to describe.
A kind of service code treating apparatus, comprising:
First receiving element, the request that the acquisition code sent for receiving external application describes, described request comprises the related information that described code describes, and described related information comprises type of code and code value;
Judging unit, for judging whether described type of code has been carried in the code address translation map relation table generated in advance;
Acquiring unit, describes for obtaining the code corresponding with described code value from described code address translation map relation table;
Transmitting element, for when the judged result of described judging unit is for being, the code sending the acquisition of described acquiring unit to described external application describes.
In the embodiment of the present invention, after the request receiving the acquisition code description that external application sends, first judge whether the type of code comprised in asking has been carried in the code address translation map relation table generated in advance, if so, from this code address translation map relation table, then obtain the code corresponding with the code value comprised in request describe; Then externally application program sends this code description corresponding with code value obtained from code address translation map relation table.Compared with prior art, code address translation map relation is obtained by unified interface, need not the service code table of direct control bottom go to read code address translation map relation, the embodiment of the present invention can reduce expense and the redundancy of application program internal memory, realizes service code and to translate efficiently, easily and the synchronous of code address translation map relation is shared.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme of the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the first embodiment schematic flow sheet of a kind of service code disposal route that the embodiment of the present invention provides;
Fig. 2 is the second embodiment schematic flow sheet of a kind of service code disposal route that the embodiment of the present invention provides;
Fig. 3 is the 3rd embodiment schematic flow sheet of a kind of service code disposal route that the embodiment of the present invention provides;
Fig. 4 is the first example structure schematic diagram of a kind of service code treating apparatus that the embodiment of the present invention provides;
Fig. 5 is the second example structure schematic diagram of a kind of service code treating apparatus that the embodiment of the present invention provides;
Fig. 6 is the 3rd example structure schematic diagram of a kind of service code treating apparatus that the embodiment of the present invention provides.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the present invention provides a kind of service code disposal route and device, can reduce expense and the redundancy of application program internal memory, realizes service code and to translate efficiently, easily and the synchronous of code address translation map relation is shared.
Referring to Fig. 1, is the first embodiment schematic flow sheet of a kind of service code disposal route that the embodiment of the present invention provides.As shown in Figure 1, this service code disposal route can comprise the following steps:
The request that S101, the acquisition code receiving external application transmission describe, described request comprises the related information that described code describes, and described related information comprises type of code and code value.
In specific implementation, external application refers to the application example for realizing some concrete function of translating server independent of code.Above-mentioned code describes and refers to that one section of significant language describes, and is a kind of expression way directly perceived and understandable, as: " Renminbi ", " dollar " etc.Above-mentioned code value is generally insignificant character string, is a kind of more abstract expression way, as: " 001 ", " 002 " etc.Above-mentioned type of code refers to the differentiation to the field representated by code, as: " Currency Type ", " messenger service " etc.Above-mentioned code is described, the particular content embodiment of the present invention of code value and type of code is all not construed as limiting.
S102, judge whether described type of code has been carried in the code address translation map relation table generated in advance, from described code address translation map relation table, if so, then obtain the code corresponding with described code value describe.
In specific implementation, code is translated and is referred to the code address translation map relation good according to predefined, a certain code value is converted to corresponding code and describes.Such as, a service code type is had to be Currency Type, the corresponding code of code designation value " 001 " describes " Renminbi ", the corresponding code of code value " 002 " describes " dollar ", namely code is translated is in routine processes process, " 001 " is converted to " Renminbi " accordingly, " 002 " is converted to " dollar " accordingly.In routine processes process, usually only use code value to process, only when needs are shown to user, just code is translated.Above-mentioned code address translation map relation table be represent code value and code describe between the set of code address translation map relation, wherein store but under being not limited only to the type of code of specifying all code values and code describe between code address translation map relation and above-mentioned type of code.
Such as, code translates server after the request that the code receiving acquisition code value " 001 " correspondence that external application sends describes, whether the type of code " Currency Type " first comprised in inquiry request is pre-loaded in above-mentioned code address translation map relation table, if loaded, then code is translated server and from above-mentioned code address translation map relation table, is read the code corresponding with the code value " 001 " comprised in above-mentioned request describe " Renminbi ".
S103, send to described external application the code corresponding with described code value obtained from described code address translation map relation table and describe.
In the embodiment of the present invention, after the request receiving the acquisition code description that external application sends, whether code is translated the type of code that first server judge to comprise in this request and has been carried in the code address translation map relation table generated in advance, if so, from this code address translation map relation table, then obtain the code corresponding with the code value comprised in this request describe; Then code translate server externally application program send this code corresponding with code value obtained from code address translation map relation table and describe.Compared with prior art, code address translation map relation is obtained by unified interface, need not the service code table of direct control bottom go to read code address translation map relation, the embodiment of the present invention can reduce expense and the redundancy of application program internal memory, realizes service code and to translate efficiently, easily and the synchronous of code address translation map relation is shared.
Referring to Fig. 2, is the second embodiment schematic flow sheet of a kind of service code disposal route that the embodiment of the present invention provides.As shown in Figure 2, this service code disposal route can comprise the following steps:
The information configuration instruction of S201, reception user input, the identification information of target service code is carried in described information configuration instruction.
In specific implementation, by user select in patterned configuration interface first time need configuration or before configured but needed to reload the identification information of the target service code of renewal, above-mentioned identification information can include but not limited to that code table name, code value and code describe.Utilize the code between all code values and code description comprised in identification information to translate relation generating code and translate allocation list.
S202, store the code generated according to described identification information translate allocation list structure code address translation map relation table.
In specific implementation, above-mentioned code is translated allocation list and is stored as a record by the identification information that information configuration instruction above-mentioned in step S201 comprises.The code address translation map relation utilizing above-mentioned code to translate between the code value of allocation list storage and code description constructs above-mentioned code address translation map relation table.The storage of above-mentioned code address translation map relation table can adopt but be not limited only to distributed caching.In above-mentioned distributed caching, data can store with the form of key-value pair.
The request that S203, the acquisition code receiving external application transmission describe, described request comprises the related information that described code describes, and described related information comprises type of code and code value.
In specific implementation, external application refers to the application example for realizing some concrete function of translating server independent of code.Above-mentioned code describes and refers to that one section of significant language describes, and is a kind of expression way directly perceived and understandable, as: " Renminbi ", " dollar " etc.Above-mentioned code value is generally insignificant character string, is a kind of more abstract expression way, as: " 001 ", " 002 " etc.Above-mentioned type of code refers to the differentiation to the field representated by code, as: " Currency Type ", " messenger service " etc.Above-mentioned code is described, the particular content embodiment of the present invention of code value and type of code is all not construed as limiting.
S204, judge that whether described related information is empty, if so, then perform step S205, if not, then perform step S206.
In specific implementation, when the type of code comprised in above-mentioned related information and code value have one for sky or both for judging that above-mentioned related information is as sky time empty, now perform step S205; When the type of code comprised in above-mentioned related information and code value be not both for just judging above-mentioned related information non-NULL time empty, now perform step S206.
S205, send miscue information to described external application.
S206, judge whether described type of code has been carried in the code address translation map relation table generated in advance, if so, then perform step S208 and S209, if not, then perform step S207.
In specific implementation, code is translated and is referred to the code address translation map relation good according to predefined, a certain code value is converted to corresponding code and describes.Such as, a service code type is had to be Currency Type, the corresponding code of code designation value " 001 " describes " Renminbi ", the corresponding code of code value " 002 " describes " dollar ", namely code is translated is in routine processes process, " 001 " is converted to " Renminbi " accordingly, " 002 " is converted to " dollar " accordingly.In routine processes process, usually only use code value to process, only when needs are shown to user, just code is translated.Above-mentioned code address translation map relation table be represent code value and code describe between the set of code address translation map relation, wherein store but under being not limited only to the type of code of specifying all code values and code describe between code address translation map relation and above-mentioned type of code.
Such as, code translates server after the request that the code receiving acquisition code value " 001 " correspondence that external application sends describes, whether the type of code " Currency Type " first comprised in inquiry request is pre-loaded in above-mentioned code address translation map relation table, if loaded, then perform step S208 and S209.If do not loaded, then perform step S207.
S207, to send content to described external application be that empty code describes.
S208, from described code address translation map relation table obtain the code corresponding with described code value describe.
In specific implementation, such as, code translates server after the request that the code receiving acquisition code value " 001 " correspondence that external application sends describes, whether the type of code " Currency Type " first comprised in inquiry request is pre-loaded in above-mentioned code address translation map relation table, if loaded, then code is translated server and from above-mentioned code address translation map relation table, is read the code corresponding with the code value " 001 " comprised in above-mentioned request describe " Renminbi ".
S209, send to described external application the code corresponding with described code value obtained from described code address translation map relation table and describe.
In specific implementation, such as, code translates server after the request that the code receiving acquisition code value " 001 " correspondence that external application sends describes, whether the type of code " Currency Type " first comprised in inquiry request is pre-loaded in above-mentioned code address translation map relation table, if loaded, then the code corresponding with code value " 001 " read from above-mentioned code address translation map relation table is described " Renminbi " and send to external application.
In the embodiment of the present invention, the information configuration instruction of server receives user input translated by code, can realize user configure flexibly code address translation map relation table according to this instruction.Code translates server after the request receiving the acquisition code description that external application sends, first judge whether the related information comprised in this request is empty, if, then externally application program sends miscue information, if not, then code translate server continue judge whether the type of code comprised in this request has been carried in the code address translation map relation table generated in advance, if, then externally application program sends the code description corresponding with code value obtained from this code address translation map relation table, if not, then externally application program sends content is that empty code describes.Compared with prior art, code address translation map relation is obtained by unified interface, need not the service code table of direct control bottom go to read code address translation map relation, the embodiment of the present invention can reduce expense and the redundancy of application program internal memory, realizes service code and to translate efficiently, easily and the synchronous of code address translation map relation is shared.
Referring to Fig. 3, is the 3rd embodiment schematic flow sheet of a kind of service code disposal route that the embodiment of the present invention provides.As shown in Figure 3, this service code disposal route can comprise the following steps:
The information configuration instruction of S301, reception user input, the identification information of target service code is carried in described information configuration instruction.
In specific implementation, by user select in patterned configuration interface first time need configuration or before configured but needed to reload the identification information of the target service code of renewal, above-mentioned identification information can include but not limited to that code table name, code value and code describe.Utilize the code between all code values and code description comprised in identification information to translate relation generating code and translate allocation list.
S302, translate allocation list from the code generated in advance the identification information reading and configured.
S303, the designated word segment value that inquiry is corresponding with translating the identification information configured that reads in allocation list from described code from the code table prestored, described designated word segment value comprises described code value and the description of described code.
In specific implementation, according to the CODE_TABLE (code table name) in above-mentioned identification information, CODE_VALUE (code value), CODE_DESC (code description), the query sentence of database of structure corresponding inquiry code table, then by query sentence of database, the designated word segment value in code table is read.
S304, store described code address translation map relation table according to described designated word segment value structure.
In specific implementation, describe by type of code, code value and code the code address translation map relation tuple formed according to the designated word segment value structure that step S303 reads, above-mentioned code address translation map relation tuple is saved in above-mentioned code address translation map relation table.The storage of above-mentioned code address translation map relation table can adopt but be not limited only to distributed caching.In above-mentioned distributed caching, data can store with the form of key-value pair.
S305, to translate allocation list from described code and read up-to-date identification information.
If S306 described code address translation map relation table does not comprise code address translation map relation corresponding to described up-to-date identification information, then code address translation map relation corresponding for described up-to-date identification information is added in described code address translation map relation table.
In specific implementation, the up-to-date identification information structure query statement that server reads according to step S305 translated by code, whether utilize above-mentioned query statement to inquire about the code address translation map relation corresponding with above-mentioned up-to-date identification information is present in above-mentioned code address translation map relation table, if do not exist, then code is translated server and code address translation map relation corresponding for above-mentioned up-to-date identification information is added in above-mentioned code address translation map relation table.
If there is identification information corresponding to code address translation map relation in S307 described code address translation map relation table is not included in described up-to-date identification information, then described code address translation map relation is deleted from described code address translation map relation table.
In specific implementation, the up-to-date identification information structure query statement that server reads according to step S305 translated by code, utilize above-mentioned query statement to inquire about in above-mentioned code address translation map relation table whether to there is identification information corresponding to code address translation map relation and be not included in above-mentioned up-to-date identification information, if exist, then above-mentioned code address translation map relation is deleted from above-mentioned code address translation map relation table.
The request that S308, the acquisition code receiving external application transmission describe, described request comprises the related information that described code describes, and described related information comprises type of code and code value.
In specific implementation, external application refers to the application example for realizing some concrete function of translating server independent of code.Above-mentioned code describes and refers to that one section of significant language describes, and is a kind of expression way directly perceived and understandable, as: " Renminbi ", " dollar " etc.Above-mentioned code value is generally insignificant character string, is a kind of more abstract expression way, as: " 001 ", " 002 " etc.Above-mentioned type of code refers to the differentiation to the field representated by code, as: " Currency Type ", " messenger service " etc.Above-mentioned code is described, the particular content embodiment of the present invention of code value and type of code is all not construed as limiting.
S309, judge whether described type of code has been carried in the code address translation map relation table generated in advance, from described code address translation map relation table, if so, then obtain the code corresponding with described code value describe.
In specific implementation, code is translated and is referred to the code address translation map relation good according to predefined, a certain code value is converted to corresponding code and describes.Such as, a service code type is had to be Currency Type, the corresponding code of code designation value " 001 " describes " Renminbi ", the corresponding code of code value " 002 " describes " dollar ", namely code is translated is in routine processes process, " 001 " is converted to " Renminbi " accordingly, " 002 " is converted to " dollar " accordingly.In routine processes process, usually only use code value to process, only when needs are shown to user, just code is translated.Above-mentioned code address translation map relation table be represent code value and code describe between the set of code address translation map relation, wherein store but under being not limited only to the type of code of specifying all code values and code describe between code address translation map relation and above-mentioned type of code.
Such as, code translates server after the request that the code receiving acquisition code value " 001 " correspondence that external application sends describes, whether the type of code " Currency Type " first comprised in inquiry request is pre-loaded in above-mentioned code address translation map relation table, if loaded, then code is translated server and from above-mentioned code address translation map relation table, is read the code corresponding with the code value " 001 " comprised in above-mentioned request describe " Renminbi ".
S310, send to described external application the code corresponding with described code value obtained from described code address translation map relation table and describe.
In the embodiment of the present invention, the information configuration instruction of server receives user input translated by code, can realize user configure flexibly code address translation map relation table according to this instruction.Code translates server according to the code table of translating the identification information-enquiry that reads in allocation list from code and prestoring, and utilizes the code value inquiring about and obtain and code to describe structure code address translation map relation table; Code is translated server and is translated allocation list from code and read up-to-date identification information, if this code address translation map relation table does not comprise code address translation map relation corresponding to this up-to-date identification information, then code address translation map relation corresponding for this up-to-date identification information is added in this code address translation map relation table; If there is identification information corresponding to code address translation map relation in this code address translation map relation table is not included in this up-to-date identification information, then this code address translation map relation is deleted from this code address translation map relation table; Code translates server after the request receiving the acquisition code description that external application sends, judge whether the type of code comprised in this request has been carried in the code address translation map relation table generated in advance, if so, then externally application program sends the code description corresponding with code value obtained from this code address translation map relation table.Compared with prior art, code address translation map relation is obtained by unified interface, need not the service code table of direct control bottom go to read code address translation map relation, the embodiment of the present invention can reduce expense and the redundancy of application program internal memory, realizes service code and to translate efficiently, easily and the synchronous of code address translation map relation is shared.
Referring to Fig. 4, is the first example structure schematic diagram of a kind of service code treating apparatus that the embodiment of the present invention provides.As shown in Figure 4, this device can comprise:
First receiving element 10, the request that the acquisition code sent for receiving external application describes, described request comprises the related information that described code describes, and described related information comprises type of code and code value.
Judging unit 20, for judging whether described type of code has been carried in the code address translation map relation table generated in advance.
Acquiring unit 30, describes for obtaining the code corresponding with described code value from described code address translation map relation table.
Transmitting element 40, for when the judged result of described judging unit is for being, the code sending the acquisition of described acquiring unit to described external application describes.
In the embodiment of the present invention, first receiving element 10 is after the request receiving the acquisition code description that external application sends, judging unit 20 judges whether the type of code comprised in the request that the first receiving element 10 receives has been carried in the code address translation map relation table generated in advance, if so, then acquiring unit 30 obtains the code corresponding with the code value that comprises in request and describes from this code address translation map relation table; Then transmitting element 40 code that externally application program transmission acquiring unit 30 obtains describes.Compared with prior art, code address translation map relation is obtained by unified interface, need not the service code table of direct control bottom go to read code address translation map relation, the embodiment of the present invention can reduce expense and the redundancy of application program internal memory, realizes service code and to translate efficiently, easily and the synchronous of code address translation map relation is shared.
Referring to Fig. 5, is the second example structure schematic diagram of a kind of service code treating apparatus that the embodiment of the present invention provides.Wherein, the service code treating apparatus shown in Fig. 5 is that service code treating apparatus is as shown in Figure 4 optimized and obtains.This device can also comprise:
Second receiving element 50, before the request that the acquisition code sent for receiving external application at the first receiving element 10 describes, receive the information configuration instruction of user's input, the identification information of target service code is carried in described information configuration instruction.
Storage unit 60, translates the described code address translation map relation table of allocation list structure for storing the code generated according to described identification information.
In the embodiment of the present invention, the second receiving element 50 receives the information configuration instruction of carrying target service marking code information of user's input, stores by storage unit 60 the code address translation map relation table that allocation list structure translated by the code generated according to this identification information.First receiving element 10 is after the request receiving the acquisition code description that external application sends, first judging unit 20 judges whether the related information comprised in this request is empty, if, then transmitting element 40 externally application program transmission miscue information, if not, then judging unit 20 continues to judge whether the type of code comprised in this request has been carried in the code address translation map relation table generated in advance, if, then transmitting element 40 code corresponding with code value that externally application program transmission is obtained from this code address translation map relation table by acquiring unit 30 describes, if not, then externally application program sends content to transmitting element 40 is that empty code describes.Compared with prior art, code address translation map relation is obtained by unified interface, need not the service code table of direct control bottom go to read code address translation map relation, the embodiment of the present invention can reduce expense and the redundancy of application program internal memory, realizes service code and to translate efficiently, easily and the synchronous of code address translation map relation is shared.
Referring to Fig. 6, is the second example structure schematic diagram of a kind of service code treating apparatus that the embodiment of the present invention provides.Wherein, the service code treating apparatus shown in Fig. 6 is that service code treating apparatus is as shown in Figure 4 optimized and obtains.This device can also comprise:
Second receiving element 50, for receiving the information configuration instruction of user's input, the identification information of target service code is carried in described information configuration instruction.
Storage unit 60, translates the described code address translation map relation table of allocation list structure for storing the code generated according to described identification information.
Described storage unit 60 specifically can comprise:
Read subelement 601, for translating the identification information reading in allocation list and configured from the code generated in advance.
Inquiry subelement 602, for the designated word segment value that inquiry from the code table prestored is corresponding with translating the identification information configured that reads in allocation list from described code, described designated word segment value comprises described code value and the description of described code.
Constructor unit 603, for constructing described code address translation map relation table according to described designated word segment value.
Storing sub-units 604, for storing described code address translation map relation table.
Adding device 70, during for not comprising code address translation map relation corresponding to up-to-date identification information that described reading subelement 601 reads at described code address translation map relation table, code address translation map relation corresponding for described up-to-date identification information is added in described code address translation map relation table.
Delete cells 80, for exist in described code address translation map relation table identification information corresponding to code address translation map relation be not included in the up-to-date identification information that described reading subelement 601 reads time, described code address translation map relation is deleted from described code address translation map relation table.
In the embodiment of the present invention, second receiving element 50 receives the information configuration instruction of carrying target service marking code information of user's input, inquiry subelement 602 translates from code the code table that the identification information-enquiry that reads allocation list prestores according to reading subelement 601, and constructor unit 603 utilizes the code value inquiring about and obtain and code to describe structure code address translation map relation table; Reading subelement 601 is translated allocation list from code and is read up-to-date identification information, if this code address translation map relation table does not comprise read code address translation map relation corresponding to the up-to-date identification information that reads of subelement 601, then code address translation map relation corresponding for this up-to-date identification information is added in this code address translation map relation table by adding device 70; If there is identification information corresponding to code address translation map relation in this code address translation map relation table not to be included in and to read in the up-to-date identification information that reads of subelement 601, then this code address translation map relation is deleted by delete cells 80 from this code address translation map relation table; First receiving element 10 is after the request receiving the acquisition code description that external application sends, judging unit 20 judges whether the type of code comprised in this request has been carried in the code address translation map relation table generated in advance, if so, then transmitting element 40 code corresponding with code value that externally application program transmission is obtained from this code address translation map relation table by acquiring unit 30 describes.Compared with prior art, code address translation map relation is obtained by unified interface, need not the service code table of direct control bottom go to read code address translation map relation, the embodiment of the present invention can reduce expense and the redundancy of application program internal memory, realizes service code and to translate efficiently, easily and the synchronous of code address translation map relation is shared.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in a computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random access memory (Random Access Memory is called for short RAM) etc.
A kind of service code disposal route provided the embodiment of the present invention above and device are described in detail, apply specific case herein to set forth principle of the present invention and embodiment, the explanation of above embodiment just understands method of the present invention and core concept thereof for helping; Meanwhile, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (16)

1. a service code disposal route, is characterized in that, comprising:
Receive the request of the acquisition code description that external application sends, described request comprises the related information that described code describes, and described related information comprises type of code and code value;
Judge whether described type of code has been carried in the code address translation map relation table generated in advance, from described code address translation map relation table, if so, then obtain the code corresponding with described code value describe;
Send to described external application the code corresponding with described code value obtained from described code address translation map relation table to describe.
2. method according to claim 1, is characterized in that, before the request that the acquisition code that described reception external application sends describes, also comprises:
Receive the information configuration instruction of user's input, the identification information of target service code is carried in described information configuration instruction;
Store the described code address translation map relation table that allocation list structure translated by the code generated according to described identification information.
3. method according to claim 1, is characterized in that, after the request that the acquisition code that described reception external application sends describes, also comprises:
Judge whether described related information is empty, if so, then sends miscue information to described external application.
4. method according to claim 1, is characterized in that, also comprises:
Judge whether described type of code has been carried in the described code address translation map relation table generated in advance, if not, then sending content to described external application is that empty code describes.
5. method according to claim 2, is characterized in that, described storage translates the described code address translation map relation table of allocation list structure according to the code that described identification information generates, and comprising:
The identification information reading and configured is translated allocation list from described code;
The designated word segment value that inquiry is corresponding with translating the identification information configured that reads in allocation list from described code from the code table prestored, described designated word segment value comprises described code value and the description of described code;
Store the described code address translation map relation table according to described designated word segment value structure.
6. method according to claim 5, is characterized in that, also comprises:
Translate allocation list from described code and read up-to-date identification information;
If described code address translation map relation table does not comprise code address translation map relation corresponding to described up-to-date identification information, then code address translation map relation corresponding for described up-to-date identification information is added in described code address translation map relation table;
If there is identification information corresponding to code address translation map relation in described code address translation map relation table is not included in described up-to-date identification information, then described code address translation map relation is deleted from described code address translation map relation table.
7. the method according to any one of claim 1 ~ 6, is characterized in that,
Described code address translation map relation table is stored in code and translates in buffer memory;
Described code translates buffer memory independent of described external application.
8. the method according to any one of claim 1 ~ 6, is characterized in that,
In described code address translation map relation table, the storage mode of data comprises distributed storage;
In described distributed storage, data exist with the form of key-value pair.
9. a service code treating apparatus, is characterized in that, comprising:
First receiving element, the request that the acquisition code sent for receiving external application describes, described request comprises the related information that described code describes, and described related information comprises type of code and code value;
Judging unit, for judging whether described type of code has been carried in the code address translation map relation table generated in advance;
Acquiring unit, for when the judged result of described judging unit is for being, obtains the code corresponding with described code value and describing from described code address translation map relation table;
Transmitting element, the code obtained for sending described acquiring unit to described external application describes.
10. device according to claim 9, is characterized in that, also comprises:
Second receiving element, for described first receiving element for receive external application send acquisition code describe request before, receive user input information configuration instruction, the identification information of target service code is carried in described information configuration instruction;
Storage unit, translates the described code address translation map relation table of allocation list structure for storing the code generated according to described identification information.
11. devices according to claim 9, is characterized in that,
Described judging unit, after the request that the acquisition code also sent for receiving external application at described first receiving element describes, judges whether described related information is empty;
Described transmitting element, also for described judging unit for judge described related information be whether empty judged result for being time, send miscue information to described external application.
12. devices according to claim 9, is characterized in that,
Described transmitting element, also for when described judging unit is for judging that the described type of code judged result whether be carried in the described code address translation map relation table generated in advance is no, sending content to described external application is that empty code describes.
13. devices according to claim 10, is characterized in that, described storage unit translates the described code address translation map relation table of allocation list structure for storing the code generated according to described identification information, comprising:
Read subelement, for translating in allocation list the identification information reading and configured from described code;
Inquiry subelement, for the designated word segment value that inquiry from the code table prestored is corresponding with the identification information configured that described reading subelement reads, described designated word segment value comprises described code value and described code describes;
Constructor unit, for constructing described code address translation map relation table according to described designated word segment value;
Storing sub-units, for storing described code address translation map relation table.
14. devices according to claim 13, is characterized in that,
Described reading subelement, also reads up-to-date identification information for translating in allocation list from described code;
Described device also comprises:
Adding device, during for not comprising code address translation map relation corresponding to described up-to-date identification information at described code address translation map relation table, code address translation map relation corresponding for described up-to-date identification information is added in described code address translation map relation table;
Delete cells, for exist in described code address translation map relation table identification information corresponding to code address translation map relation be not included in described up-to-date identification information time, described code address translation map relation is deleted from described code address translation map relation table.
15. devices according to any one of claim 9 ~ 14, is characterized in that,
Described code address translation map relation table is stored in code and translates in buffer memory;
Described code translates buffer memory independent of described external application.
16. devices according to any one of claim 9 ~ 14, is characterized in that,
In described code address translation map relation table, the storage mode of data comprises distributed storage;
In described distributed storage, data exist with the form of key-value pair.
CN201410594862.1A 2014-10-29 2014-10-29 A kind of service code processing method and processing device Active CN104360850B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410594862.1A CN104360850B (en) 2014-10-29 2014-10-29 A kind of service code processing method and processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410594862.1A CN104360850B (en) 2014-10-29 2014-10-29 A kind of service code processing method and processing device

Publications (2)

Publication Number Publication Date
CN104360850A true CN104360850A (en) 2015-02-18
CN104360850B CN104360850B (en) 2019-06-07

Family

ID=52528114

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410594862.1A Active CN104360850B (en) 2014-10-29 2014-10-29 A kind of service code processing method and processing device

Country Status (1)

Country Link
CN (1) CN104360850B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104636149A (en) * 2015-03-11 2015-05-20 中国农业银行股份有限公司 Method and device for obtaining interface information
WO2017211309A1 (en) * 2016-06-08 2017-12-14 广州广电运通金融电子股份有限公司 Method and device for encoding and decoding negotiable instrument information, processing system, and financial self-service equipment
CN112860580A (en) * 2021-03-17 2021-05-28 厦门极致互动网络技术股份有限公司 Data detection method based on Erlang

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080133465A1 (en) * 2006-12-04 2008-06-05 Electronics And Telecommunications Research Institute Continuous query processing apparatus and method using operation sharable among multiple queries on xml data stream
CN101446962A (en) * 2008-12-31 2009-06-03 中国建设银行股份有限公司 Data conversion method, device thereof and data processing system
CN101751217A (en) * 2008-12-03 2010-06-23 索尼株式会社 Apparatus, method, and program for information processing and recording medium for the same
CN102063506A (en) * 2011-01-06 2011-05-18 中国工商银行股份有限公司 Service system host computer, decoding method thereof and service system
CN102573012A (en) * 2012-02-24 2012-07-11 北京黑米天成科技有限公司 Service set identifier (SSID) alias naming method of wireless access point (AP) based on global positioning system (GPS) position information of mobile terminal
CN102867377A (en) * 2012-09-20 2013-01-09 中国农业银行股份有限公司 Method and system for realizing services on point-of-sale (POS) terminal machine and POS terminal machine
CN104063314A (en) * 2014-05-20 2014-09-24 中国工商银行股份有限公司 Test data automatic generation device and test data automatic generation method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080133465A1 (en) * 2006-12-04 2008-06-05 Electronics And Telecommunications Research Institute Continuous query processing apparatus and method using operation sharable among multiple queries on xml data stream
CN101751217A (en) * 2008-12-03 2010-06-23 索尼株式会社 Apparatus, method, and program for information processing and recording medium for the same
CN101446962A (en) * 2008-12-31 2009-06-03 中国建设银行股份有限公司 Data conversion method, device thereof and data processing system
CN102063506A (en) * 2011-01-06 2011-05-18 中国工商银行股份有限公司 Service system host computer, decoding method thereof and service system
CN102573012A (en) * 2012-02-24 2012-07-11 北京黑米天成科技有限公司 Service set identifier (SSID) alias naming method of wireless access point (AP) based on global positioning system (GPS) position information of mobile terminal
CN102867377A (en) * 2012-09-20 2013-01-09 中国农业银行股份有限公司 Method and system for realizing services on point-of-sale (POS) terminal machine and POS terminal machine
CN104063314A (en) * 2014-05-20 2014-09-24 中国工商银行股份有限公司 Test data automatic generation device and test data automatic generation method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104636149A (en) * 2015-03-11 2015-05-20 中国农业银行股份有限公司 Method and device for obtaining interface information
CN104636149B (en) * 2015-03-11 2018-03-27 中国农业银行股份有限公司 The acquisition methods and device of a kind of interface message
WO2017211309A1 (en) * 2016-06-08 2017-12-14 广州广电运通金融电子股份有限公司 Method and device for encoding and decoding negotiable instrument information, processing system, and financial self-service equipment
CN112860580A (en) * 2021-03-17 2021-05-28 厦门极致互动网络技术股份有限公司 Data detection method based on Erlang

Also Published As

Publication number Publication date
CN104360850B (en) 2019-06-07

Similar Documents

Publication Publication Date Title
CN104954468A (en) Resource allocation method and resource allocation device
CN107229415B (en) Data writing method, data reading method, related equipment and system
US20140189674A1 (en) Information processing apparatus and information processing method
CN109656889B (en) File system implementation method, device, equipment and storage medium based on block chain
CN103038763A (en) On-demand translation of application text
JPH0962558A (en) Method and system for database management
US11074208B1 (en) Routing network using global address map with adaptive main memory expansion for a plurality of home agents
US20200334168A1 (en) Virtual memory pool within a network which is accessible from multiple platforms
KR101941641B1 (en) Efficiently providing multiple metadata representations of the same type
CN105094691A (en) Data manipulation methods and system, and devices
CN105138481A (en) Stored data processing method and apparatus and system
CN104360850A (en) Method and device for processing service code
CN107181802B (en) Intelligent hardware control method and device, server and storage medium
CN105491082B (en) Remote resource access method and switching equipment
CN102340552A (en) Information processing apparatus, information processing method, and program
CN103514052A (en) Multi-application mutually-accessing method and smart card
CN114048169A (en) Document access method, device, server and storage medium
CN112395245B (en) Access device and method of processor and computer equipment
CN114331745A (en) Data processing method, system, program product, medium, and electronic device
CN114296651A (en) Method and equipment for storing user-defined data information
CN105912477A (en) Directory reading method, device and system
KR20180000023A (en) Method, apparatus, and computer program stored in computer readable medium for reading block in database system
US7743385B2 (en) System and method for simplification of data structure in wireless communications
KR101220695B1 (en) System for supporting multi-file access common interface and for menaging file in thee system
WO2021135693A1 (en) Communication method and device

Legal Events

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