CN111414367A - Method and device for acquiring parameters - Google Patents

Method and device for acquiring parameters Download PDF

Info

Publication number
CN111414367A
CN111414367A CN202010245978.XA CN202010245978A CN111414367A CN 111414367 A CN111414367 A CN 111414367A CN 202010245978 A CN202010245978 A CN 202010245978A CN 111414367 A CN111414367 A CN 111414367A
Authority
CN
China
Prior art keywords
parameter
determining
bitmap block
product
parameters
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010245978.XA
Other languages
Chinese (zh)
Inventor
罗莹莹
刘啸
周小伟
陈颢
韦珺瀚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Construction Bank Corp
Original Assignee
China Construction Bank Corp
CCB Finetech Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Construction Bank Corp, CCB Finetech Co Ltd filed Critical China Construction Bank Corp
Priority to CN202010245978.XA priority Critical patent/CN111414367A/en
Publication of CN111414367A publication Critical patent/CN111414367A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a method and a device for acquiring parameters, and relates to the technical field of computers. One embodiment of the method comprises: acquiring a parameter number, a product number and a commission number; determining index information according to the parameter number and the product number; determining a bitmap block corresponding to the entrusted number; and determining the parameter value corresponding to the parameter number in the bitmap block by using the index information. The implementation method avoids the technical defect of high pipe cost and poor expandability in the prior art, and further achieves the technical effect of improving the parameter obtaining efficiency.

Description

Method and device for acquiring parameters
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for obtaining a parameter.
Background
In the prior art, a single parameter list is maintained, a system administrator initializes and maintains parameters corresponding to a central mechanism in a manual mode, and then obtains the parameters from the single parameter list when obtaining the parameters
In the process of implementing the invention, the inventor finds that at least the following problems exist in the prior art:
1. when the prior art is adopted to maintain parameters, the method is more complex and has a larger maintenance system;
2. in the prior art, after the program and the parameters are separated, the parameter management can affect the stability, the expandability and the maintainability of the system version and the service logic.
3. When the number of parameters is large and the change is frequent, the defects of high manual maintenance cost, low parameter management efficiency and high labor cost exist.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method and an apparatus for acquiring a parameter, which can achieve the technical effect of improving efficiency of acquiring a parameter.
To achieve the above object, according to an aspect of an embodiment of the present invention, there is provided a method of acquiring a parameter, including:
acquiring a parameter number, a product number and a commission number;
determining index information according to the parameter number and the product number;
determining a bitmap block corresponding to the entrusted number;
and determining the parameter value corresponding to the parameter number in the bitmap block by using the index information.
Optionally, the bitmap block includes: a first bitmap block and a second bitmap block;
determining a parameter value corresponding to the parameter number in the bitmap block by using the index information, including:
determining the product index corresponding to the parameter number in the bitmap block by using the index information;
judging whether the parameter number has a corresponding numerical value or not by using the product index and the first bitmap block;
and if so, determining a parameter value corresponding to the parameter number by using the product index and the second bitmap block.
Optionally, the determining, by using the product index and the first bitmap block, whether the parameter number has a corresponding value includes:
determining a first position of the first bitmap block corresponding to the parameter number according to the product index;
and judging whether the parameter number has a corresponding numerical value or not according to the numerical value corresponding to the first position.
Optionally, determining, by using the product index and the second bitmap block, a parameter value corresponding to the parameter number includes:
determining the starting position of the second bitmap block corresponding to the parameter number and the length of the second bitmap block corresponding to the parameter number according to the product index;
and determining the value from the initial position of the second bitmap block to the value corresponding to the preset length as the parameter value corresponding to the parameter number.
Optionally, before determining the index information according to the parameter number and the product number, the method includes:
configuring a database in a file import mode or a manual configuration mode;
and configuring the bitmap block according to the database.
Optionally, before configuring the database by means of file import, the method includes:
establishing a file related to the parameters according to the central mechanism, the product type and the account type;
and importing the built file into a database.
Optionally, establishing a file about the parameters according to the central authority, the product type and the account type, including:
establishing a first mapping relation table among a central mechanism, a product type and an account type;
establishing a second mapping relation table between the product type and the product parameter;
and integrating the first mapping relation table and the second mapping relation table to generate a file about the parameters.
According to still another aspect of the embodiments of the present invention, there is provided an apparatus for acquiring a parameter, including:
the acquisition module is used for acquiring a parameter number, a product number and a commission number;
the index information determining module is used for determining index information according to the parameter number and the product number;
the bitmap block determining module is used for determining the bitmap block corresponding to the entrusted number;
and the parameter value determining module is used for determining the parameter value corresponding to the parameter number in the bitmap block by using the index information.
According to another aspect of the embodiments of the present invention, there is provided an electronic device for acquiring a parameter, including:
one or more processors;
a storage device for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors implement the method for acquiring parameters provided by the present invention.
According to a further aspect of the embodiments of the present invention, there is provided a computer readable medium, on which a computer program is stored, which when executed by a processor, implements the method for acquiring parameters provided by the present invention.
One embodiment of the above invention has the following advantages or benefits:
according to the optional embodiment of the application, through the technical means of separating the parameters and the index information corresponding to the parameters, each dimension can be managed independently when the parameters are managed, and the technical effect of improving the efficiency of obtaining the parameter values is achieved on the basis of reducing the cost of the management parameters.
Further effects of the above-mentioned non-conventional alternatives will be described below in connection with the embodiments.
Drawings
The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:
fig. 1 is a schematic diagram of a main flow of a method of acquiring parameters according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a first embodiment of a method of obtaining parameters according to an embodiment of the invention;
FIG. 3 is a diagram illustrating a second embodiment of determining a parameter value corresponding to the parameter number in a bitmap block according to the embodiment of the present invention;
FIG. 4 is a partial screenshot of a first mapping relationship table;
FIG. 5 is a partial screenshot of a second mapping table;
FIG. 6 is a schematic diagram of the main modules of an apparatus for obtaining parameters according to an embodiment of the present invention;
FIG. 7 is an exemplary system architecture diagram in which embodiments of the present invention may be employed;
fig. 8 is a schematic structural diagram of a computer system suitable for implementing a terminal device or a server according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present invention are described below with reference to the accompanying drawings, in which various details of embodiments of the invention are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Fig. 1 is a schematic diagram of a main flow of a method for acquiring parameters according to an embodiment of the present invention, as shown in fig. 1, including:
s101, acquiring a parameter number, a product number and a commission number;
step S102, determining index information according to the parameter number and the product number;
step S103, determining a bitmap block corresponding to the entrusted number;
and step S104, determining a parameter value corresponding to the parameter number in the bitmap block by using the index information.
In practical applications, most of the storage types of the parameters are numeric type parameters (mainly Boolean type and integer within 100), and only a few types of the parameters are character parameters. Therefore, the parameter storage mode can be set as a bitmap block (also called array bitmap) for storing the parameter in the cache according to the above parameter characteristics.
In the bitmap block, the parameters are stored in the form of a string type.
Before the parameters of the central mechanism are called, the parameters to be called can be stored in the bitmap block through the information related to the parameters to be called, so that the parameters to be called can be conveniently and efficiently read, and the technical defects of poor stability, poor expandability and poor maintainability of parameter management in the prior art are overcome.
In the embodiment of the present application, the bitmap block storing the parameter is separated from the table storing the index information. When the parameter information needs to be read, the stored bitmap block of the parameter can be roughly determined; and acquiring parameter values in the bitmap block according to the index information.
Because the storage space of the bitmap block is limited, when the parameter to be acquired is not stored in the bitmap block, the parameter value of the parameter can be acquired according to the cache or the database of the stored parameter; the parameter value to be acquired can also be synchronized to the cache from the database and then synchronized to the bitmap block, so that the process of reading the parameter value is conveniently executed.
The following describes the steps of acquiring parameters in detail in the first embodiment.
Fig. 2 is a schematic diagram of a first embodiment of a method for acquiring parameters according to an embodiment of the present invention, as shown in fig. 2.
When reading the parameters, the parameter number P10001, the product number 1057600000, and the commission number 05 are determined.
Determining a corresponding bitmap block according to the entrusted number 05;
generating an index ID P1000105 according to the parameter number P10001 and the product number 1057600000;
determining corresponding index information by using the index ID;
reading parameter information in the bitmap block according to the index information.
According to the optional embodiment of the application, through the technical means of separating the parameters and the index information corresponding to the parameters, the parameters of each dimension can be managed independently when the parameters are managed, and the technical effect of improving the efficiency of acquiring the parameters is achieved on the basis of reducing the management cost.
Through the technical means of separating and managing the bitmap blocks for storing the parameters and the index information, the overall complexity is greatly reduced, the technical defect that the parameters are maintained more complexly in the prior art is overcome, the technical effects that the parameters are easily maintained and the expandability is good can be achieved, and the technical effect of reducing the management cost is achieved on the basis of improving the efficiency of acquiring the parameters.
The bitmap blocks corresponding to a central mechanism may comprise a first bitmap block and a second bitmap block; the first bitmap block is used for storing whether the value corresponding to the parameter exists in the second bitmap block, and the second bitmap block is used for storing the specific value of the parameter.
In some optional embodiments, determining, in the bitmap block, a parameter value corresponding to the parameter number using the index information includes:
determining the product index corresponding to the parameter number in the bitmap block by using the index information;
judging whether the parameter number has a corresponding numerical value or not by using the product index and the first bitmap block;
and if so, determining a parameter value corresponding to the parameter number by using the product index and the second bitmap block.
The following describes in detail the steps of determining the parameter value corresponding to the parameter number in the bit block according to a second embodiment.
Fig. 3 is a schematic diagram of a second embodiment of determining a parameter value corresponding to the parameter number in a bitmap block according to an embodiment of the present invention, as shown in fig. 3.
Determining index information; wherein the index information includes: the product index, the first position of the parameter in the first bitmap block, the starting position of the second bitmap block and the parameter number correspond to the length of the second bitmap block. Specifically, in this embodiment, the values corresponding to the index information are respectively: 0. 2, 3 and 3.
In this embodiment, when the value of the product index is 0, the corresponding product number is 05.
The value of the first position of the first bitmap block is 2, since the count is started from 0 in this embodiment, and the 3 rd bit of the corresponding array in the first bitmap block product 05, the value of the parameter at the first position of the first bitmap block can be determined to be 1; in this embodiment, it can be determined that the parameter has a value in the second bitmap block by the value of the first position in the first bitmap block being 1.
When the parameter is determined to have a value in the second bitmap block, the parameter number is used to correspond to the start position of the second bitmap block (the value is 3, that is, the 4 th bit of the corresponding array of the second bitmap block product 05 is the start bit of the acquired parameter), and 3 values including the start bit are determined as the parameter value corresponding to the parameter number.
Optionally, before determining the index information according to the parameter number and the product number, the method includes:
configuring a database in a file import mode or a manual configuration mode;
and configuring the bitmap block according to the database.
In practical application, the parameters can be maintained in a research table of system parameters, so that the parameters can be automatically written into a database conveniently.
Basic characteristic information, such as name, reference value, description, etc., of a central agency or different types of products may be configured prior to configuring the parameters.
Wherein the parameters further comprise a parameter number, an account type, etc. configured for the system, optionally the parameter configuration for the system may be hidden from the principal.
The central authority may export the parameter configuration file from the database, modify it and upload it back to the database. During manual configuration, the central mechanism corresponding to the parameters to be configured is firstly confirmed, and then products required by the central mechanism are automatically selected according to preset rules. After the products are determined, the parameters associated with the central facility and the parameters of each product may be configured.
Optionally, before configuring the database by means of file import, the method includes:
files related to parameters can be established according to three dimensions of a central mechanism, a product type and an account type;
and importing the built file into a database.
Optionally, establishing a file about the parameters according to the central authority, the product type and the account type, including:
establishing a first mapping relation table among a central mechanism, a product type and an account type;
establishing a second mapping relation table between the product type and the product parameter;
and integrating the first mapping relation table and the second mapping relation table to generate a file about the parameters.
Fig. 4 is a partial screenshot of the first mapping table, and as shown in fig. 4, the central mechanism mainly controls the basic functions and processes, and the central mechanism can freely configure products, each of which has its own product parameters. The central organization or product parameters are divided into functional parameters which can only be configured by technicians and service type parameters which are configured by the center, and the functional parameters are distinguished according to the account number type.
FIG. 5 is a partial screenshot of a second mapping table, as shown in FIG. 5.
The central authority can control the service functions by configuring the service type parameters, such as the types of the used products, whether the used products are interest, the extraction sequence of the principal and the income when the payment is made, and the like. These traffic type parameters can be freely controlled for use by the central authority. The specific code number corresponds to an account level of a product and other unchangeable parameters, the normal operation of the system can be influenced after the change, the client can be hidden, and the values of the parameters are controlled by developers.
FIG. 6 is a schematic diagram of the main modules of an apparatus for obtaining parameters according to an embodiment of the present invention; as shown in fig. 6, according to still another aspect of the embodiment of the present invention, there is provided an apparatus 600 for acquiring parameters, including:
an obtaining module 601, configured to obtain a parameter number, a product number, and a commission number;
an index information determining module 602, configured to determine index information according to the parameter number and the product number;
a bitmap block determination module 603, configured to determine a bitmap block corresponding to the delegation number;
a parameter value determining module 604, configured to determine, by using the index information, a parameter value corresponding to the parameter number in the bitmap block.
Optionally, the bitmap block includes: a first bitmap block and a second bitmap block;
determining a parameter value corresponding to the parameter number in the bitmap block by using the index information, including:
determining the product index corresponding to the parameter number in the bitmap block by using the index information;
judging whether the parameter number has a corresponding numerical value or not by using the product index and the first bitmap block;
and if so, determining a parameter value corresponding to the parameter number by using the product index and the second bitmap block.
Optionally, the determining, by using the product index and the first bitmap block, whether the parameter number has a corresponding value includes:
determining a first position of the first bitmap block corresponding to the parameter number according to the product index;
and judging whether the parameter number has a corresponding numerical value or not according to the numerical value corresponding to the first position.
Optionally, determining, by using the product index and the second bitmap block, a parameter value corresponding to the parameter number includes:
determining the starting position of the second bitmap block corresponding to the parameter number and the length of the second bitmap block corresponding to the parameter number according to the product index;
and determining the value from the initial position of the second bitmap block to the value corresponding to the preset length as the parameter value corresponding to the parameter number.
Optionally, before determining the index information according to the parameter number and the product number, the method includes:
configuring a database in a file import mode or a manual configuration mode;
and configuring the bitmap block according to the database.
Optionally, before configuring the database by means of file import, the method includes:
establishing a file related to the parameters according to the central mechanism, the product type and the account type;
and importing the built file into a database.
Optionally, establishing a file about the parameters according to the central authority, the product type and the account type, including:
establishing a first mapping relation table among a central mechanism, a product type and an account type;
establishing a second mapping relation table between the product type and the product parameter;
and integrating the first mapping relation table and the second mapping relation table to generate a file about the parameters.
Fig. 7 illustrates an exemplary system architecture 700 to which a parameter obtaining method or parameter obtaining apparatus of an embodiment of the present invention may be applied.
As shown in fig. 7, the system architecture 700 may include terminal devices 701, 702, 703, a network 704, and a server 705. The network 704 serves to provide a medium for communication links between the terminal devices 701, 702, 703 and the server 705. Network 704 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
A user may use the terminal devices 701, 702, 703 to interact with a server 705 over a network 704, to receive or send messages or the like. The terminal devices 701, 702, 703 may have installed thereon various communication client applications, such as a shopping-like application, a web browser application, a search-like application, an instant messaging tool, a mailbox client, social platform software, etc. (by way of example only).
The terminal devices 701, 702, 703 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 705 may be a server providing various services, such as a background management server (for example only) providing support for shopping websites browsed by users using the terminal devices 701, 702, 703. The backend management server may analyze and perform other processing on the received data such as the product information query request, and feed back a processing result (for example, target push information, product information — just an example) to the terminal device.
It should be noted that the method for obtaining parameters provided in the embodiment of the present invention is generally executed by the server 705, and accordingly, the device for obtaining parameters is generally disposed in the server 705.
It should be understood that the number of terminal devices, networks, and servers in fig. 7 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to FIG. 8, shown is a block diagram of a computer system 800 suitable for use with a terminal device implementing an embodiment of the present invention. The terminal device shown in fig. 8 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 8, the computer system 800 includes a Central Processing Unit (CPU)801 that can perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)802 or a program loaded from a storage section 808 into a Random Access Memory (RAM) 803. In the RAM 803, various programs and data necessary for the operation of the system 800 are also stored. The CPU 801, ROM 802, and RAM 803 are connected to each other via a bus 804. An input/output (I/O) interface 805 is also connected to bus 804.
To the I/O interface 805, AN input section 806 including a keyboard, a mouse, and the like, AN output section 807 including a network interface card such as a Cathode Ray Tube (CRT), a liquid crystal display (L CD), and the like, a speaker, and the like, a storage section 808 including a hard disk, and the like, and a communication section 809 including a network interface card such as a L AN card, a modem, and the like are connected, the communication section 809 performs communication processing via a network such as the internet, a drive 810 is also connected to the I/O interface 805 as necessary, a removable medium 811 such as a magnetic disk, AN optical disk, a magneto-optical disk, a semiconductor memory, and the like is mounted on the drive 810 as necessary, so that a computer program read out therefrom is mounted into the storage section 808 as.
In particular, according to the embodiments of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program can be downloaded and installed from a network through the communication section 809 and/or installed from the removable medium 811. The computer program executes the above-described functions defined in the system of the present invention when executed by the Central Processing Unit (CPU) 801.
It should be noted that the computer readable medium shown in the present invention can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present invention may be implemented by software or hardware. The described modules may also be provided in a processor, which may be described as: a processor includes a sending module, an obtaining module, a determining module, and a first processing module. The names of these modules do not form a limitation on the modules themselves in some cases, and for example, the sending module may also be described as a "module sending a picture acquisition request to a connected server".
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be separate and not incorporated into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device to comprise:
acquiring a parameter number, a product number and a commission number;
determining index information according to the parameter number and the product number;
determining a bitmap block corresponding to the entrusted number;
and determining the parameter value corresponding to the parameter number in the bitmap block by using the index information.
According to the technical scheme of the embodiment of the invention, the following technical effects can be achieved:
according to the optional embodiment of the application, the parameters and the index information corresponding to the parameters are separated, so that each dimension can be managed independently when the parameters are managed, and the technical effect of improving the efficiency of acquiring the parameters is achieved on the basis of reducing the management cost.
By means of the technical means of separating and managing the bitmap blocks for storing the parameters and the index information, the complexity of parameter acquisition is greatly reduced, the technical defects of complex parameter maintenance and large system in the prior art are overcome, the technical effects of easy parameter maintenance and good expandability can be achieved, and the technical effect of reducing the management cost is achieved on the basis of improving the parameter acquisition efficiency.
The above-described embodiments should not be construed as limiting the scope of the invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions can occur, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A method of obtaining a parameter, comprising:
acquiring a parameter number, a product number and a commission number;
determining index information according to the parameter number and the product number;
determining a bitmap block corresponding to the entrusted number;
and determining the parameter value corresponding to the parameter number in the bitmap block by using the index information.
2. The method of claim 1, wherein the bitmap block comprises: a first bitmap block and a second bitmap block;
determining a parameter value corresponding to the parameter number in the bitmap block by using the index information, including:
determining the product index corresponding to the parameter number in the bitmap block by using the index information;
judging whether the parameter number has a corresponding numerical value or not by using the product index and the first bitmap block;
and if so, determining a parameter value corresponding to the parameter number by using the product index and the second bitmap block.
3. The method of claim 2, wherein determining whether the parameter number has a corresponding value using the product index and the first bitmap block comprises:
determining a first position of the first bitmap block corresponding to the parameter number according to the product index;
and judging whether the parameter number has a corresponding numerical value or not according to the numerical value corresponding to the first position.
4. The method of claim 2, wherein determining the parameter value corresponding to the parameter number using the product index and the second bitmap block comprises:
determining the starting position of the second bitmap block corresponding to the parameter number and the length of the second bitmap block corresponding to the parameter number according to the product index;
and determining the value from the initial position of the second bitmap block to the value corresponding to the preset length as the parameter value corresponding to the parameter number.
5. The method of claim 2, wherein prior to determining the index information based on the parameter number and the product number, comprising:
configuring a database in a file import mode or a manual configuration mode;
and configuring the bitmap block according to the database.
6. The method of claim 5, wherein before configuring the database by means of file import, the method comprises:
establishing a file related to the parameters according to the central mechanism, the product type and the account type;
and importing the built file into a database.
7. The method of claim 6, wherein creating a file of parameters based on the central agency, the product type, and the account type comprises:
establishing a first mapping relation table among a central mechanism, a product type and an account type;
establishing a second mapping relation table between the product type and the product parameter;
and integrating the first mapping relation table and the second mapping relation table to generate a file about the parameters.
8. An apparatus for obtaining parameters, comprising:
the acquisition module is used for acquiring a parameter number, a product number and a commission number;
the index information determining module is used for determining index information according to the parameter number and the product number;
the bitmap block determining module is used for determining the bitmap block corresponding to the entrusted number;
and the parameter value determining module is used for determining the parameter value corresponding to the parameter number in the bitmap block by using the index information.
9. An electronic device for obtaining a parameter, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-7.
10. A computer-readable medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1-7.
CN202010245978.XA 2020-03-31 2020-03-31 Method and device for acquiring parameters Pending CN111414367A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010245978.XA CN111414367A (en) 2020-03-31 2020-03-31 Method and device for acquiring parameters

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010245978.XA CN111414367A (en) 2020-03-31 2020-03-31 Method and device for acquiring parameters

Publications (1)

Publication Number Publication Date
CN111414367A true CN111414367A (en) 2020-07-14

Family

ID=71491745

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010245978.XA Pending CN111414367A (en) 2020-03-31 2020-03-31 Method and device for acquiring parameters

Country Status (1)

Country Link
CN (1) CN111414367A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6763457B1 (en) * 2000-11-09 2004-07-13 International Business Machines Corporation Network station suitable for supplying indicated default values for boot parameters
TW201224805A (en) * 2010-12-15 2012-06-16 Inventec Corp A method of building the index of the data blocks
CN104346357A (en) * 2013-07-29 2015-02-11 中国科学院声学研究所 File accessing method and system for embedded terminal
CN105589894A (en) * 2014-11-13 2016-05-18 腾讯数码(深圳)有限公司 Document index establishing method and device as well as document retrieving method and device
US20170344573A1 (en) * 2016-05-26 2017-11-30 Research & Business Foundation Sungkyunkwan University Data discard method for journaling file system and memory management apparatus thereof
CN108062200A (en) * 2016-11-08 2018-05-22 杭州海康威视数字技术股份有限公司 A kind of data in magnetic disk reading/writing method and device
CN110866001A (en) * 2018-08-21 2020-03-06 北京京东尚科信息技术有限公司 Method and device for determining order to be processed

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6763457B1 (en) * 2000-11-09 2004-07-13 International Business Machines Corporation Network station suitable for supplying indicated default values for boot parameters
TW201224805A (en) * 2010-12-15 2012-06-16 Inventec Corp A method of building the index of the data blocks
CN104346357A (en) * 2013-07-29 2015-02-11 中国科学院声学研究所 File accessing method and system for embedded terminal
CN105589894A (en) * 2014-11-13 2016-05-18 腾讯数码(深圳)有限公司 Document index establishing method and device as well as document retrieving method and device
US20170344573A1 (en) * 2016-05-26 2017-11-30 Research & Business Foundation Sungkyunkwan University Data discard method for journaling file system and memory management apparatus thereof
CN108062200A (en) * 2016-11-08 2018-05-22 杭州海康威视数字技术股份有限公司 A kind of data in magnetic disk reading/writing method and device
CN110866001A (en) * 2018-08-21 2020-03-06 北京京东尚科信息技术有限公司 Method and device for determining order to be processed

Similar Documents

Publication Publication Date Title
CN110737726B (en) Method and device for determining test data of interface to be tested
CN110795147A (en) Interface protocol file management method and device
CN112597126A (en) Data migration method and device
CN109753424B (en) AB test method and device
CN111444077A (en) Method and device for generating flow node test data
CN111984234A (en) Method and device for processing work order
CN113190517B (en) Data integration method and device, electronic equipment and computer readable medium
CN111339743B (en) Account number generation method and device
CN113378346A (en) Method and device for model simulation
CN116204428A (en) Test case generation method and device
CN112100168A (en) Method and device for determining data association relationship
CN112988583A (en) Method and device for testing syntax compatibility of database
CN111414367A (en) Method and device for acquiring parameters
CN113722007A (en) Configuration method, device and system of VPN branch equipment
CN113760928A (en) Cache data updating system and method
CN113821430A (en) Multi-service testing method and device
CN113742321A (en) Data updating method and device
CN112711572A (en) Online capacity expansion method and device suitable for sub-warehouse and sub-meter
CN112099841A (en) Method and system for generating configuration file
CN113704242A (en) Data processing method and device
CN113448960A (en) Method and device for importing form file
CN113448602A (en) Version updating method and device
CN112579428A (en) Interface testing method and device, electronic equipment and storage medium
CN112131287A (en) Method and device for reading data
CN109656519B (en) Method and device for automatically accessing service data

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20220920

Address after: 25 Financial Street, Xicheng District, Beijing 100033

Applicant after: CHINA CONSTRUCTION BANK Corp.

Address before: 25 Financial Street, Xicheng District, Beijing 100033

Applicant before: CHINA CONSTRUCTION BANK Corp.

Applicant before: Jianxin Financial Science and Technology Co.,Ltd.