CN111782120A - Expense calculation method and device - Google Patents

Expense calculation method and device Download PDF

Info

Publication number
CN111782120A
CN111782120A CN202010684023.4A CN202010684023A CN111782120A CN 111782120 A CN111782120 A CN 111782120A CN 202010684023 A CN202010684023 A CN 202010684023A CN 111782120 A CN111782120 A CN 111782120A
Authority
CN
China
Prior art keywords
parameter
value
configuration information
available
acquiring
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
CN202010684023.4A
Other languages
Chinese (zh)
Inventor
黄玉磊
刘四亚
曹达兴
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Qianzhen Information Technology Co ltd
Original Assignee
Shanghai Qianzhen Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Qianzhen Information Technology Co ltd filed Critical Shanghai Qianzhen Information Technology Co ltd
Priority to CN202010684023.4A priority Critical patent/CN111782120A/en
Publication of CN111782120A publication Critical patent/CN111782120A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0283Price estimation or determination

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Development Economics (AREA)
  • Accounting & Taxation (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • Human Computer Interaction (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Game Theory and Decision Science (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • General Business, Economics & Management (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The application provides a fee calculation method and a device, wherein the method comprises the following steps: acquiring a parameter group for calculating the expense; acquiring a page value of at least one parameter in the parameter group; acquiring configuration information, wherein the configuration information is used for indicating whether a page value of each parameter in the parameter group is available or not; determining a parameter value of each parameter in the parameter group according to the configuration information and the page value of the at least one parameter; and calculating the cost according to the parameter value of each parameter in the parameter group. The dynamic parameter values are acquired in a configuration mode, cost calculation and test work under different cost calculation schemes is adapted, developers only need to configure parameter sets for cost calculation on a configuration interface, parameter packaging is completed, a cost calculation interface is called to complete cost calculation, secondary development on background codes is not needed, and therefore cost calculation parameter configurability is achieved, transverse expansion of the cost calculation scheme is achieved, and high availability and high compatibility are achieved.

Description

Expense calculation method and device
Technical Field
The present application relates to the field of information processing technologies, and in particular, to a method and an apparatus for calculating a fee, an electronic device, and a computer-readable storage medium.
Background
When the cost or the quoted price is calculated, parameters required by different cost calculation schemes are different, if a service is changed and the parameter corresponding to a certain cost calculation scheme is changed, the background code needs to be developed for the second time, and the workload of developers is greatly increased.
For example, the calculation scheme a originally needs to use parameters a, b, c and d, while the parameter values of the parameters a and b are obtained from the page, and the parameter values of the parameters c and d use default values; parameters a, b, c, d and e are needed after the service is changed, parameter values of the parameters a and c are obtained from a page, and parameter values of the parameters b, d and e use default values. Due to the change of logic, background codes need to be changed, development burden is caused, and the horizontal extension of a computing scheme is not facilitated.
Disclosure of Invention
The application aims to provide a cost calculation method and device, electronic equipment and a computer readable storage medium, and solve the problem that the conventional cost calculation technology needs to perform secondary development on background codes when parameters for cost calculation change.
The purpose of the application is realized by adopting the following technical scheme:
in a first aspect, the present application provides a fee calculation method, comprising: acquiring a parameter group for calculating the expense; acquiring a page value of at least one parameter in the parameter group; acquiring configuration information, wherein the configuration information is used for indicating whether a page value of each parameter in the parameter group is available or not; determining a parameter value of each parameter in the parameter group according to the configuration information and the page value of the at least one parameter; and calculating the cost according to the parameter value of each parameter in the parameter group. The technical scheme has the advantages that after parameter groups and page values of each parameter are obtained, the parameter values of the parameters are determined by using the configuration information and the page values of the parameters, the cost is calculated, dynamic parameter values are obtained in a configuration mode, cost calculation and test work under different cost calculation schemes are adapted, developers only need to configure the parameter groups for cost calculation on a configuration interface, parameter packaging is completed, and cost calculation interfaces are called to complete cost calculation.
In some possible implementations, the obtaining the parameter set for the fee calculation includes: acquiring a charge type for charge calculation; acquiring a parameter group corresponding to the expense type; the acquiring the configuration information includes: and acquiring configuration information corresponding to the expense type. The technical scheme has the advantages that different expense types are configured, each expense type corresponds to different parameter groups, the configuration information corresponding to each expense type is maintained, and because each expense type corresponds to one expense calculation scheme, a user can select different expense calculation schemes through the expense type, so that the user can compare the expense calculation schemes.
In some possible implementations, the method further includes: adding a new cost type; maintaining the parameter group corresponding to the new expense type; and maintaining the configuration information corresponding to the new expense type. The technical scheme has the advantages that the user is allowed to add the self-defined expense type, the corresponding parameter group is configured, the corresponding configuration information is maintained, the user can conveniently add the expense type and maintain the expense type according to the self requirement in practical application, and therefore the expense calculation of the added expense type is carried out, and the operation is more flexible and convenient.
In some possible implementations, the obtaining the configuration information includes: and acquiring the configuration information from a database. The technical scheme has the advantages that the configuration information is stored in the database in advance, and the configuration information is read from the database during charge calculation.
In some possible implementations, the determining a parameter value of each parameter in the parameter group according to the configuration information and the page value of the at least one parameter includes: detecting whether a page value of each parameter in the parameter group is available according to the configuration information; if the parameter is available, acquiring a page value of the parameter as a parameter value of the parameter; and if the parameter is unavailable, acquiring a default value of the parameter as a parameter value of the parameter. The technical scheme has the advantages that whether the page value of the parameter is available or not is detected by using the configuration information, and the page value or the default value of the parameter is determined as the parameter value of the parameter.
In some possible implementations, the configuration information includes an available type of the parameter; the detecting whether the page value of the parameter is available according to the configuration information includes: obtaining the available type of the parameter from the configuration information; if the available type of the parameter is a first available type, determining that the page value of the parameter is available; determining that the page value of the parameter is unavailable if the available type of the parameter is a second available type. The technical scheme has the advantages that the configuration information comprises the available type of the parameter, and the available state of the page value is identified by using the available type.
In some possible implementation manners, the obtaining, if available, a page value of the parameter as a parameter value of the parameter includes: if the parameter identification is available, detecting whether the parameter identification of the parameter is empty; and if not, using the parameter identifier to obtain the page value of the parameter as the parameter value of the parameter. The technical scheme has the beneficial effect that the corresponding page value is obtained by using the parameter identifier as the parameter value in the state that the page value is available.
In some possible implementation manners, if the parameter value is available, acquiring a page value of the parameter as the parameter value of the parameter, further includes: and if the parameter value is empty, acquiring a default value of the parameter as the parameter value of the parameter. The technical scheme has the advantages that in the state that the page values are available, when the page values are empty, the default values are used as parameter values, so that the taking sequence of the page values when the page values are available is embodied, and the taking sequence of the page values is higher than the default values.
In some possible implementations, the configuration information includes a default value of the parameter; if the parameter value is not available, acquiring a default value of the parameter as a parameter value of the parameter, including: and if the parameter is not available, acquiring a default value of the parameter from the configuration information as a parameter value of the parameter. The technical scheme has the beneficial effects that the configuration information contains the default values of the parameters, so that the default values of the parameters are obtained from the configuration information.
In a second aspect, the present application provides a fare calculation apparatus comprising: the system comprises a parameter group acquisition module, a cost calculation module and a cost calculation module, wherein the parameter group acquisition module is used for acquiring a parameter group for cost calculation; a page value obtaining module, configured to obtain a page value of at least one parameter in the parameter group; a configuration obtaining module, configured to obtain configuration information, where the configuration information is used to indicate whether a page value of each parameter in the parameter group is available; a parameter value determining module, configured to determine a parameter value of each parameter in the parameter group according to the configuration information and the page value of the at least one parameter; and the cost calculation module is used for calculating cost according to the parameter value of each parameter in the parameter group.
In some possible implementations, the parameter set obtaining module is configured to: acquiring a charge type for charge calculation; acquiring a parameter group corresponding to the expense type; the configuration acquisition module is used for acquiring the configuration information corresponding to the expense type.
In some possible implementations, the apparatus further includes a type maintenance module, and the type maintenance module is further configured to: adding a new cost type; maintaining the parameter group corresponding to the new expense type; and maintaining the configuration information corresponding to the new expense type.
In some possible implementations, the configuration obtaining module is configured to obtain the configuration information from a database.
In some possible implementations, the parameter value determination module is further configured to: detecting whether a page value of each parameter in the parameter group is available according to the configuration information; if the parameter is available, acquiring a page value of the parameter as a parameter value of the parameter; and if the parameter is unavailable, acquiring a default value of the parameter as a parameter value of the parameter.
In some possible implementations, the configuration information includes an available type of the parameter; the parameter value determination module is further configured to: obtaining the available type of the parameter from the configuration information; if the available type of the parameter is a first available type, determining that the page value of the parameter is available; determining that the page value of the parameter is unavailable if the available type of the parameter is a second available type.
In some possible implementations, the parameter value determination module is further configured to: if the parameter identification is available, detecting whether the parameter identification of the parameter is empty; and if not, using the parameter identifier to obtain the page value of the parameter as the parameter value of the parameter.
In some possible implementations, the parameter value determining module is further configured to, if the parameter value is null, obtain a default value of the parameter as the parameter value of the parameter.
In some possible implementations, the configuration information includes a default value of the parameter; and the parameter value determining module is further used for acquiring a default value of the parameter from the configuration information as the parameter value of the parameter if the parameter value determining module is not available.
In a third aspect, the present application provides an electronic device comprising a memory and a processor, the memory storing a computer program, the processor implementing the steps of any of the above methods when executing the computer program.
In a fourth aspect, the present application provides a computer-readable storage medium storing a computer program which, when executed by a processor, implements the steps of any of the methods described above.
Drawings
The present application is further described below with reference to the drawings and examples.
FIG. 1 is a schematic diagram of a cost calculation method of the prior art;
FIG. 2 is a schematic diagram of a fee calculation method provided by an embodiment of the present application;
FIG. 3 is a schematic flow chart of a fee calculation method according to an embodiment of the present application;
fig. 4 is a schematic flowchart of a parameter set obtaining process provided in an embodiment of the present application;
FIG. 5 is a schematic flow chart illustrating a new charge type according to an embodiment of the present disclosure;
fig. 6 is a schematic flowchart of a process for obtaining a parameter value according to an embodiment of the present application;
FIG. 7 is a schematic diagram of a process for determining whether a page value is available according to an embodiment of the present application;
fig. 8 is a schematic flowchart of a process for obtaining a parameter value according to an embodiment of the present application;
FIG. 9 is a schematic flow chart of a fee calculation method according to an embodiment of the present application;
FIG. 10 is a schematic flow chart diagram illustrating a method for calculating a fee according to an embodiment of the present application;
FIG. 11 is a flow chart illustrating a method for calculating a fee according to an embodiment of the present application;
FIG. 12 is a schematic flow chart diagram illustrating a method for calculating a fee according to an embodiment of the present application;
FIG. 13 is a schematic structural diagram of a fee calculation device according to an embodiment of the present application;
fig. 14 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 15 is a schematic structural diagram of a program product for implementing a fee calculation method according to an embodiment of the present application.
Detailed Description
The present application is further described with reference to the accompanying drawings and the detailed description, and it should be noted that, in the present application, the embodiments or technical features described below may be arbitrarily combined to form a new embodiment without conflict.
The principle of the cost calculation method in the prior art is shown in fig. 1, taking import cost and transfer cost as an example, the calculation of the two types of cost respectively corresponds to one type of Function (), and the two types of Function () are respectively provided for a calculation interface for cost calculation, so that developers need to develop two sets of codes. When the cost calculation scheme is changed and the import cost or the transfer cost corresponding parameter needs to be increased or decreased, a developer needs to perform secondary development on the code.
The embodiment of the application provides a cost calculation method, which is used for the occasion of cost calculation, in particular for the cost calculation in a test stage. The principle of the fee calculation method provided by the embodiment of the application is shown in fig. 2. The calculation of the import fee, the transfer fee and even more fees uses a dynamically configured Function (), and developers only need to develop a set of codes and provide the codes to a calculation interface for the calculation of the fees. Even if the fee calculation scheme is changed and the parameters corresponding to a certain fee type need to be increased or reduced, the new Function () can be automatically configured without carrying out secondary development on the code.
Referring to fig. 3, the fee calculation method provided by the embodiment of the present application includes steps S101 to S105.
Step S101: a set of parameters for a cost calculation is obtained. Wherein the parameter set may comprise one or more parameters. When calculating different types of fees, the corresponding parameter sets are different.
Step S102: a page value of at least one parameter of the set of parameters is obtained. Wherein the page values of the parameters may be derived from user input. Accordingly, step S102 may include: and receiving input operation of a user, and acquiring a page value of at least one parameter in the parameter group in response to the input operation. In particular implementations, the user may enter page values for only some of the parameters, and not for others. In one implementation, the user may not enter page values for any parameters.
Step S103: and acquiring configuration information, wherein the configuration information is used for indicating whether the page value of each parameter in the parameter group is available. Wherein the configuration information is used to indicate whether a page value of the parameter is available. In particular implementations, the configuration information may include an availability type for each parameter, which may include, for example, a first availability type to indicate that a page value for the parameter is available and a second availability type to indicate that a page value for the parameter is not available.
In some possible implementations, the configuration information may be stored in a database in advance, and read from the database at the time of the fee calculation. The step S103 may include: and acquiring the configuration information from a database.
Step S104: and determining the parameter value of each parameter in the parameter group according to the configuration information and the page value of the at least one parameter.
Step S105: and calculating the cost according to the parameter value of each parameter in the parameter group.
In some possible implementation manners, different fee types can be configured, each fee type corresponds to a different parameter group, and the configuration information corresponding to each fee type is maintained. Specifically, referring to fig. 4, the step S101 may include steps S201 to S202.
Step S201: a cost type for the cost calculation is obtained.
Step S202: and acquiring a parameter group corresponding to the expense type.
The step S103 may include: and acquiring configuration information corresponding to the expense type.
The fee type and the parameter group are in one-to-one correspondence, and the corresponding parameter group can be obtained through the fee type.
The parameter set corresponding to the fee type may be maintained, and with reference to fig. 4, the step S101 may further include: and receiving a first maintenance operation of a user, and responding to the first maintenance operation to maintain the parameter group corresponding to the expense type. The first maintenance operation may include addition and deletion. Adding refers to adding one or more parameters in the parameter set, and deleting refers to deleting one or more parameters from the parameter set.
The configuration information corresponding to the fee type may also be maintained, and before step S103, the method may further include: and receiving a second maintenance operation of the user, and responding to the second maintenance operation to maintain the configuration information corresponding to the expense type. The second maintenance operation may include addition, deletion, and modification. The modification is, for example, to modify parameter a from being unavailable to being available, and to modify parameter B from being available to being unavailable.
In some possible implementation modes, a user is allowed to add a self-defined expense type, configure a corresponding parameter group and maintain corresponding configuration information, and the user can conveniently add and maintain the expense type according to the requirement of the user in practical application, so that expense calculation of the added expense type is carried out, and the operation is more flexible and convenient. Specifically, referring to fig. 5, the method may further include steps S301 to S303.
Step S301: a new cost type is added. Wherein, the step S301 may include: and receiving an adding operation of a user, and adding a new expense type in response to the adding operation.
Step S302: and maintaining the parameter group corresponding to the new expense type. Wherein, step S302 may include: and receiving a third maintenance operation of the user, and responding to the third maintenance operation to maintain the parameter group corresponding to the new expense type. The third maintenance operation may include additions and deletions.
Step S303: and maintaining the configuration information corresponding to the new expense type. Wherein, step S303 may include: and receiving fourth maintenance operation of the user, and responding to the fourth maintenance operation to maintain the configuration information corresponding to the new expense type. The fourth maintenance operation may include addition, deletion, and modification.
In some possible implementations, the configuration information may be used to detect whether a page value of the parameter is available, thereby determining the page value or a default value of the parameter as the parameter value of the parameter. Specifically, referring to fig. 6, the step S104 may include steps S401 to S403.
Step S401: and detecting whether the page value of each parameter in the parameter group is available according to the configuration information.
In some possible implementations, the configuration information includes an available type of the parameter, and the available type may be used to identify an available state of the page value. In particular, the configuration information comprises available types of the parameters; referring to fig. 7, the step of detecting whether the page value of the parameter is available according to the configuration information may include steps S501 to S503.
Step S501: and obtaining the available type of the parameter from the configuration information.
Step S502: determining that a page value of the parameter is available if the available type of the parameter is a first available type. The first availability type may be identified as "available," for example.
Step S503: determining that the page value of the parameter is unavailable if the available type of the parameter is a second available type. The second availability type may be identified as "unavailable," for example.
Step S402: and if the parameter value is available, acquiring the page value of the parameter as the parameter value of the parameter.
In some possible implementations, in a state where the page value is available, the corresponding page value is obtained as the parameter value using the parameter identifier. Specifically, referring to fig. 8, the step S402 may include steps S601 to S602.
Step S601: and if the parameter identification of the parameter is available, detecting whether the parameter identification of the parameter is empty. The parameter identifier is, for example, a parameter ID.
Step S602: and if not, using the parameter identifier to obtain the page value of the parameter as the parameter value of the parameter. The corresponding page value may be identified, for example, by a js fetch parameter.
In some possible implementations, with continued reference to fig. 8, the step S402 may further include a step S603: and if the parameter value is empty, acquiring a default value of the parameter as the parameter value of the parameter. When the page value is empty in a state where the page value is available, a default value may be used as a parameter value, thereby embodying a fetching order when the page value is available, the fetching order of the page value being higher than the default value.
Step S403: and if the parameter is unavailable, acquiring a default value of the parameter as a parameter value of the parameter.
In some possible implementations, the configuration information includes a default value of the parameter, so that the default value of the parameter can be obtained from the configuration information. In particular, the configuration information comprises default values for the parameters; the step S403 may include: and if the parameter is not available, acquiring a default value of the parameter from the configuration information as a parameter value of the parameter.
According to the embodiment of the application, after the parameter group and the page value of each parameter are obtained, the parameter values of the parameters are determined by using the configuration information and the page value of the parameters, the cost is calculated, the dynamic parameter values are obtained in a configuration mode, the cost calculation and test process under different cost calculation schemes is adapted, developers only need to configure the parameter group for cost calculation on a configuration interface, parameter packaging is completed, and the cost calculation interface is called to complete cost calculation. When a plurality of expense calculation schemes are tested, the configuration parameters are easier to change in the test process, so that the method has a particularly remarkable effect when applied to expense calculation in the test stage.
Referring to fig. 9, an embodiment of the present application further provides a fee calculation method, where the method includes steps S701 to S708.
Step S701: the original two types of fee calculation are as follows: import and transit charges, one charge type is now added.
Step S702: and configuring the newly added expense type on the parameter configuration page, acquiring corresponding configuration information and storing the configuration information in a database. Wherein each cost type corresponds to a unique type ID.
Step S703: and acquiring the type ID according to the currently calculated charge type, and acquiring corresponding configuration information from the database by using the type ID.
Step S704: and detecting whether the page value of each parameter in the parameter group corresponding to the current expense type is available or not by using the configuration information, if so, executing the step S705, and otherwise, executing the step S706.
Step S705: the page value of the parameter is used as the parameter value of the parameter.
Step S706: default values of the parameters are used as parameter values of the parameters.
Step S707: and acquiring the parameter value of each parameter.
Step S708: and packaging the parameters and the parameter values to calculate the cost.
Referring to fig. 10, an embodiment of the present application further provides a fee calculation method, where the method includes steps S801 to S809.
Step S801: and starting.
Step S802: a new cost type is added.
Step S803: for a new cost type, a corresponding set of parameters and default values for several parameters are configured.
Step S804: the type of cost to be measured is selected. Measurement and calculation, namely calculation test and calculation in the test stage.
Step S805: page values of a number of parameters filled in by a user are received.
Step S806: the configuration information corresponding to the new fee type is acquired from the database, and if yes, step S807 is executed, and if no, step S803 is executed.
Step S807: and dynamically acquiring parameter values according to the configuration information.
Step S808: and calling an external interface for measurement and calculation.
Step S809: and (6) ending.
Referring to fig. 11, an embodiment of the present application further provides a fee calculation method, where the method includes steps S901 to S906.
Step S901: a cost type is added for the quote test.
Step S902: and selecting a new expense type, configuring a parameter group corresponding to the expense type, wherein each expense type corresponds to a plurality of parameters. The configuration process includes the following operations: inputting a plurality of parameters; giving default values to several of the parameters; the parameters needed to calculate the page values are selected to make their page values available. It should be noted that, when the page value of the parameter is not available, if the parameter identifier is not empty, the input box corresponding to the parameter identifier may be disabled, so as to prevent the user from doing useless work in inputting the page value.
Step S903: a user-entered page value is received. When the page value is not available, a default value is used as the parameter value.
Step S904: and clicking a measuring and calculating button, and extracting parameters according to the configuration information corresponding to the expense type. The extraction process comprises the following steps: acquiring configuration information corresponding to the expense type from a database; extracting the parameter value of each parameter; regarding parameters with unavailable page values, taking default values as parameter values; judging whether the parameter ID is empty or not for the available parameters of the page values, if so, measuring and calculating by taking the default values of the parameters as parameter values and prompting the user that the parameter ID is empty; and if the parameter ID is not null, acquiring the corresponding page value as the parameter value through js.
Step S905: and finishing parameter extraction, packaging the parameters and the parameter values into json character strings, and calling a background interface so that the background interface transmits the packaged json character strings to the measuring and calculating interface through httpparent.
Step S906: and finishing measurement and calculation, and displaying the measurement and calculation result returned by the measurement and calculation interface to the user.
Referring to fig. 12, in an implementation of the above-mentioned charge calculation method, the method includes steps S1001 to S1006.
Step S1001: when the transfer fee is quoted and measured, the parameters delv _ org _ cd, frgt _ typ, fst _ dbct _ cd and if _ fragle need to be provided for the measurement interface for measurement and measurement.
Step S1002: and entering a quotation test parameter maintenance page.
Step S1003: clicking an adding button, popping up an operation box, clicking a plus sign icon, and adding parameter configuration information, wherein fields can comprise parameters, default values, parameter IDs, data types and whether page values are available or not.
Step S1004: one or more lines of parameter configuration information can be added, the configuration information corresponding to the parameters is sequentially input, and the data is clicked to be checked and saved to the database. For example, configuration information of the parameters delv _ org _ cd, frgt _ typ, fst _ dbct _ cd, if _ fragle may be entered.
Step S1005: and entering a 'quotation test' page, filling in a page value to be calculated except for a forbidden input box, clicking a calculation button, and waiting for a moment. For a fillable input box, it can be configured in the background to have to be filled with values, otherwise it cannot be verified, thus avoiding user missing when page values are available.
Step S1006: and the background interface takes the measuring and calculating interface to return a result, and the result data is displayed to the user.
Referring to fig. 13, an embodiment of the present application further provides a fee calculation apparatus, including: a parameter set obtaining module 101, configured to obtain a parameter set for calculating a cost; a page value obtaining module 102, configured to obtain a page value of at least one parameter in the parameter group; a configuration obtaining module 103, configured to obtain configuration information, where the configuration information is used to indicate whether a page value of each parameter in the parameter group is available; a parameter value determining module 104, configured to determine a parameter value of each parameter in the parameter group according to the configuration information and the page value of the at least one parameter; a cost calculation module 105, configured to calculate a cost according to the parameter value of each parameter in the parameter group.
In some possible implementations, the parameter group obtaining module 101 may be configured to: acquiring a charge type for charge calculation; acquiring a parameter group corresponding to the expense type; the configuration obtaining module 103 may be configured to obtain configuration information corresponding to the fee type.
In some possible implementations, the apparatus may further include a type maintenance module 106, and the type maintenance module 106 may be further configured to: adding a new cost type; maintaining the parameter group corresponding to the new expense type; and maintaining the configuration information corresponding to the new expense type.
In some possible implementations, the configuration obtaining module 103 may be configured to obtain the configuration information from a database.
In some possible implementations, the parameter value determination module 104 may be further configured to: detecting whether a page value of each parameter in the parameter group is available according to the configuration information; if the parameter is available, acquiring a page value of the parameter as a parameter value of the parameter; and if the parameter is unavailable, acquiring a default value of the parameter as a parameter value of the parameter.
In some possible implementations, the configuration information includes an available type of the parameter; the parameter value determination module 104 may be further configured to: obtaining the available type of the parameter from the configuration information; if the available type of the parameter is a first available type, determining that the page value of the parameter is available; determining that the page value of the parameter is unavailable if the available type of the parameter is a second available type.
In some possible implementations, the parameter value determination module 104 may be further configured to: if the parameter identification is available, detecting whether the parameter identification of the parameter is empty; and if not, using the parameter identifier to obtain the page value of the parameter as the parameter value of the parameter.
In some possible implementations, the parameter value determining module 104 may be further configured to, if the parameter value is empty, obtain a default value of the parameter as the parameter value of the parameter.
In some possible implementations, the configuration information includes a default value of the parameter; the parameter value determining module 104 may be further configured to obtain a default value of the parameter from the configuration information as the parameter value of the parameter if the parameter value is not available.
Referring to fig. 14, an embodiment of the present application further provides an electronic device 200, where the electronic device 200 includes at least one memory 210, at least one processor 220, and a bus 230 connecting different platform systems.
The memory 210 may include readable media in the form of volatile memory, such as Random Access Memory (RAM)211 and/or cache memory 212, and may further include Read Only Memory (ROM) 213.
The memory 210 further stores a computer program, which can be executed by the processor 220, so that the processor 220 executes the steps of the fee calculating method in the embodiment (as shown in fig. 1). Memory 210 may also include a program/utility 214 having a set (at least one) of program modules 215, including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
Accordingly, processor 220 may execute the computer programs described above, as well as may execute programs/utilities 214.
Bus 230 may be a local bus representing one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or any other type of bus structure.
The electronic device 200 may also communicate with one or more external devices 240, such as a keyboard, pointing device, Bluetooth device, etc., and may also communicate with one or more devices capable of interacting with the electronic device 200, and/or with any devices (e.g., routers, modems, etc.) that enable the electronic device 200 to communicate with one or more other computing devices. Such communication may occur via an input/output (I/O) interface 250. Also, the electronic device 200 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the Internet) via the network adapter 260. The network adapter 260 may communicate with other modules of the electronic device 200 via the bus 230. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the electronic device 200, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives, and data backup storage platforms, to name a few.
Embodiments of the present application also provide a computer-readable storage medium for storing a computer program, where the computer program is executed to implement the steps of the fee calculation method in the embodiments of the present application (as shown in fig. 1). Fig. 15 shows a program product 300 provided by the present embodiment for implementing the method, which may employ a portable compact disc read only memory (CD-ROM) and include program codes, and may be run on a terminal device, such as a personal computer. However, the program product 300 of the present invention is not so limited, and in this document, a 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. Program product 300 may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A 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 (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, 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.
A computer readable storage medium may include a propagated data signal with 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 readable storage medium may also be any readable medium that is not a 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 readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing. Program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
The foregoing description and drawings are only for purposes of illustrating the preferred embodiments of the present application and are not intended to limit the present application, which is, therefore, to the contrary, the intention is to cover all modifications, equivalents, and alternatives falling within the spirit and scope of the present application.

Claims (10)

1. A method of calculating a fee, the method comprising:
acquiring a parameter group for calculating the expense;
acquiring a page value of at least one parameter in the parameter group;
acquiring configuration information, wherein the configuration information is used for indicating whether a page value of each parameter in the parameter group is available or not;
determining a parameter value of each parameter in the parameter group according to the configuration information and the page value of the at least one parameter;
and calculating the cost according to the parameter value of each parameter in the parameter group.
2. The fee calculation method of claim 1, wherein said obtaining a set of parameters for fee calculation comprises:
acquiring a charge type for charge calculation;
acquiring a parameter group corresponding to the expense type;
the acquiring the configuration information includes:
and acquiring configuration information corresponding to the expense type.
3. The fare calculation method according to claim 2, characterized in that the method further comprises:
adding a new cost type;
maintaining the parameter group corresponding to the new expense type;
and maintaining the configuration information corresponding to the new expense type.
4. The fare calculation method of claim 1 wherein the obtaining configuration information includes:
and acquiring the configuration information from a database.
5. The fare calculation method of claim 1, wherein the determining a parameter value for each parameter of the set of parameters from the configuration information and a page value of the at least one parameter comprises:
detecting whether a page value of each parameter in the parameter group is available according to the configuration information;
if the parameter is available, acquiring a page value of the parameter as a parameter value of the parameter;
and if the parameter is unavailable, acquiring a default value of the parameter as a parameter value of the parameter.
6. The fare calculation method according to claim 5, characterized in that the configuration information includes the available types of the parameters;
the detecting whether the page value of the parameter is available according to the configuration information includes:
obtaining the available type of the parameter from the configuration information;
if the available type of the parameter is a first available type, determining that the page value of the parameter is available;
determining that the page value of the parameter is unavailable if the available type of the parameter is a second available type.
7. The method of claim 5, wherein the obtaining the page value of the parameter as the parameter value of the parameter if available comprises:
if the parameter identification is available, detecting whether the parameter identification of the parameter is empty;
and if not, using the parameter identifier to obtain the page value of the parameter as the parameter value of the parameter.
8. The method of claim 7, wherein the obtaining the page value of the parameter as the parameter value of the parameter if available further comprises:
and if the parameter value is empty, acquiring a default value of the parameter as the parameter value of the parameter.
9. The fare calculation method of claim 5, in which the configuration information includes default values for the parameters;
if the parameter value is not available, acquiring a default value of the parameter as a parameter value of the parameter, including:
and if the parameter is not available, acquiring a default value of the parameter from the configuration information as a parameter value of the parameter.
10. A fare calculation apparatus, characterized in that the apparatus comprises:
the system comprises a parameter group acquisition module, a cost calculation module and a cost calculation module, wherein the parameter group acquisition module is used for acquiring a parameter group for cost calculation;
a page value obtaining module, configured to obtain a page value of at least one parameter in the parameter group;
a configuration obtaining module, configured to obtain configuration information, where the configuration information is used to indicate whether a page value of each parameter in the parameter group is available;
a parameter value determining module, configured to determine a parameter value of each parameter in the parameter group according to the configuration information and the page value of the at least one parameter;
and the cost calculation module is used for calculating cost according to the parameter value of each parameter in the parameter group.
CN202010684023.4A 2020-07-16 2020-07-16 Expense calculation method and device Pending CN111782120A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010684023.4A CN111782120A (en) 2020-07-16 2020-07-16 Expense calculation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010684023.4A CN111782120A (en) 2020-07-16 2020-07-16 Expense calculation method and device

Publications (1)

Publication Number Publication Date
CN111782120A true CN111782120A (en) 2020-10-16

Family

ID=72768823

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010684023.4A Pending CN111782120A (en) 2020-07-16 2020-07-16 Expense calculation method and device

Country Status (1)

Country Link
CN (1) CN111782120A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102222296A (en) * 2010-04-15 2011-10-19 江苏风云网络服务有限公司 Charging method of SaaS (software as a service) software
CN105354730A (en) * 2015-12-15 2016-02-24 佛山市明扬软件科技有限公司 Realization method based on commodity price adjustment management
CN109636631A (en) * 2018-12-11 2019-04-16 泰康保险集团股份有限公司 Insurance money calculation method, device, medium and electronic equipment
CN109634934A (en) * 2018-11-02 2019-04-16 深圳壹账通智能科技有限公司 Exchange method, apparatus, computer equipment and the storage medium of finance data
CN109903148A (en) * 2019-01-31 2019-06-18 平安科技(深圳)有限公司 Cost of contract calculation method, device and computer equipment based on disaggregated model
CN109978678A (en) * 2019-03-29 2019-07-05 北京乐我无限科技有限责任公司 A kind of parameter management method and relevant device
CN110428341A (en) * 2019-08-06 2019-11-08 哈尔滨工业大学软件工程股份有限公司 Medical insurance settlement method, equipment and computer readable storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102222296A (en) * 2010-04-15 2011-10-19 江苏风云网络服务有限公司 Charging method of SaaS (software as a service) software
CN105354730A (en) * 2015-12-15 2016-02-24 佛山市明扬软件科技有限公司 Realization method based on commodity price adjustment management
CN109634934A (en) * 2018-11-02 2019-04-16 深圳壹账通智能科技有限公司 Exchange method, apparatus, computer equipment and the storage medium of finance data
CN109636631A (en) * 2018-12-11 2019-04-16 泰康保险集团股份有限公司 Insurance money calculation method, device, medium and electronic equipment
CN109903148A (en) * 2019-01-31 2019-06-18 平安科技(深圳)有限公司 Cost of contract calculation method, device and computer equipment based on disaggregated model
CN109978678A (en) * 2019-03-29 2019-07-05 北京乐我无限科技有限责任公司 A kind of parameter management method and relevant device
CN110428341A (en) * 2019-08-06 2019-11-08 哈尔滨工业大学软件工程股份有限公司 Medical insurance settlement method, equipment and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN111639287A (en) Page processing method and device, terminal equipment and readable storage medium
CN110287117A (en) RESTful interface test method, system, equipment and storage medium
CN111813641B (en) Method, device, medium and equipment for collecting crash information
CN110781658B (en) Resume analysis method, resume analysis device, electronic equipment and storage medium
CN111917579A (en) Distributed training method, device, equipment and storage medium
US11165665B2 (en) Apparatus and method to improve precision of identifying a range of effects of a failure in a system providing a multilayer structure of services
CN113220573B (en) Test method and device for micro-service architecture and electronic equipment
CN116662039B (en) Industrial information parallel detection method, device and medium based on shared memory
CN109240928A (en) Test method, device, equipment and storage medium
CN109977005B (en) End-to-end test method, medium, device and computing equipment
CN112988578A (en) Automatic testing method and device
CN111782120A (en) Expense calculation method and device
CN112416746A (en) Test case generation method, device, equipment and medium
CN112463574A (en) Software testing method, device, system, equipment and storage medium
CN112445473A (en) Client layout method and device, storage medium and electronic equipment
CN112379967B (en) Simulator detection method, device, equipment and medium
CN113392002B (en) Test system construction method, device, equipment and storage medium
CN114817003A (en) Test information processing method, device, equipment and storage medium
CN114201729A (en) Method, device and equipment for selecting matrix operation mode and storage medium
CN114138367A (en) Service implementation method, device, equipment and storage medium on self-service equipment
CN114675978A (en) Operation framework of algorithm application element, data processing method, equipment and storage medium
CN111782196A (en) MVP architecture-based development method and device
CN109697167A (en) Management method, system, electronic equipment and the storage medium of test variable
CN111813664B (en) Crash information collection method, device, medium and equipment
CN110955549B (en) Fault memory judging method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20201016