CN107169845B - Merchant attribute query method and device and server - Google Patents

Merchant attribute query method and device and server Download PDF

Info

Publication number
CN107169845B
CN107169845B CN201710425291.2A CN201710425291A CN107169845B CN 107169845 B CN107169845 B CN 107169845B CN 201710425291 A CN201710425291 A CN 201710425291A CN 107169845 B CN107169845 B CN 107169845B
Authority
CN
China
Prior art keywords
attribute
time point
target
merchant
changed
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.)
Expired - Fee Related
Application number
CN201710425291.2A
Other languages
Chinese (zh)
Other versions
CN107169845A (en
Inventor
申蒙蒙
王刚
李中豪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xingxuan Technology Co Ltd
Original Assignee
Beijing Xingxuan 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 Beijing Xingxuan Technology Co Ltd filed Critical Beijing Xingxuan Technology Co Ltd
Priority to CN201710425291.2A priority Critical patent/CN107169845B/en
Publication of CN107169845A publication Critical patent/CN107169845A/en
Application granted granted Critical
Publication of CN107169845B publication Critical patent/CN107169845B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • 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/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0607Regulated
    • 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/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0623Item investigation

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Software Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Development Economics (AREA)
  • Data Mining & Analysis (AREA)
  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention provides a merchant attribute query method, a merchant attribute query device and a server, wherein the method comprises the following steps: acquiring merchant identification and inquiry date; determining a starting time point and an ending time point according to the query date; determining a target time point when the attribute corresponding to the merchant identifier changes between the starting time point and the ending time point; and according to the merchant identification, obtaining a target attribute set which comprises at least one attribute and corresponds to the target time point, further finding out the target attribute set which changes within the query date, and simultaneously visually displaying the change process of the attribute so as to explain the reason of the change of the attribute to be queried, wherein the realization method is simple, time-saving and labor-saving.

Description

Merchant attribute query method and device and server
Technical Field
The embodiment of the invention relates to the technical field of internet, in particular to a merchant attribute query method, a merchant attribute query device and a server.
Background
At present, online ordering is gradually widely used, and in a take-out distribution system, attributes such as distribution fees, distribution time lengths and the like of merchants are greatly changed due to time factors, for example, the distribution fees are increased at night, the distribution time lengths are increased at a distribution peak period and the like. Ordering users or merchants often ask questions about the attributes of the merchant that change, and customer service needs to explain the reason for the change for the ordering user or merchant.
In the existing method for inquiring about the attribute change of the merchant, research and development personnel search out the influencing factors of the attribute of the merchant at that time, such as time factors, distance factors and the like, through background backup data and background logs in a command line mode, and synthesize the factors to calculate the specific attribute value of the merchant at that time.
However, background logs are maintained in different places in a scattered manner, the number of logs is large, influence factors are also large, workload for searching the influence factors of the merchant attributes at that time is large, and finally obtaining the merchant attribute value usually consumes much labor and long time.
Disclosure of Invention
The embodiment of the invention provides a merchant attribute query method and a merchant attribute query device, which are used for solving the problems of large workload, time consumption and labor consumption of the existing merchant attribute query scheme.
In a first aspect, an embodiment of the present invention provides a method for querying a merchant attribute, including:
acquiring merchant identification and inquiry date;
determining a starting time point and an ending time point according to the query date;
determining a target time point when the attribute corresponding to the merchant identifier changes between the starting time point and the ending time point;
and obtaining a target attribute set comprising at least one attribute corresponding to the target time point according to the merchant identifier.
Further, the step of determining a target time point at which the attribute corresponding to the merchant identifier changes between the starting time point and the ending time point includes:
inquiring the attribute change time point corresponding to the merchant identifier between the starting time point and the end time point of the inquiry date;
setting the attribute change time point as a target time point in response to that no time rule according to which the attribute is changed at the attribute change time point is changed;
and determining a target time point corresponding to the time rule between the current attribute change time point and the tail time point in response to the change of the time rule according to which the attribute changes at the attribute change time point.
Further, according to the merchant identifier, a step of obtaining a target attribute set including at least one attribute corresponding to the target time point includes:
acquiring an initial attribute set corresponding to the initial time point according to the merchant identifier;
acquiring the changed attribute corresponding to the target time point according to the merchant identifier;
and obtaining a target attribute set which comprises at least one attribute and corresponds to the target time point according to the initial attribute set and the changed attribute.
Further, according to the merchant identifier, a step of obtaining a target attribute set corresponding to the target time point and including at least one attribute further includes:
sequencing the target time points according to the time sequence;
and obtaining a target attribute set which comprises at least one attribute and corresponds to the current target time point according to the target attribute set which corresponds to the last target time point of the current target time point and the changed attribute which corresponds to the current target time point.
Further, after the step of obtaining a target attribute set including at least one attribute corresponding to the target time point according to the merchant identifier, the method includes:
sequencing the obtained target attribute sets according to the time sequence;
acquiring an attribute to be queried;
sequentially comparing a target attribute set corresponding to the current target time point with a target attribute set corresponding to the previous target time point, and judging whether the attributes to be inquired in the target attribute sets are changed or not;
in response to the fact that the attribute to be inquired does not change, deleting a target attribute set corresponding to the current target time point;
and screening the target attribute set in the query date.
In a second aspect, an embodiment of the present invention provides a merchant attribute query apparatus, including:
the information acquisition module is used for acquiring the merchant identification and the query date;
the first determining module is used for determining a starting time point and an ending time point according to the query date;
a second determining module, configured to determine a target time point at which an attribute corresponding to the merchant identifier changes between the start time point and the end time point;
and the attribute set obtaining module is used for obtaining a target attribute set which comprises at least one attribute and corresponds to the target time point according to the merchant identifier.
Further, the second determining module includes:
the query unit is used for querying an attribute change time point corresponding to the merchant identifier between the starting time point and the tail time point of the query date;
a setting unit configured to set the attribute change time point as a target time point in response to a change of a time rule according to which no attribute is changed at the attribute change time point;
and the determining unit is used for responding to the change of the time rule according to which the attribute changes at the attribute changing time point, and determining a target time point corresponding to the time rule from the current attribute changing time point to the tail time point.
Further, the attribute set obtaining module includes:
an initial attribute set obtaining unit, configured to obtain, according to the merchant identifier, an initial attribute set corresponding to the initial time point;
the attribute acquisition unit is used for acquiring the changed attribute corresponding to the target time point according to the merchant identifier;
and the target attribute set obtaining unit is used for obtaining a target attribute set which comprises at least one attribute and corresponds to the target time point according to the initial attribute set and the changed attribute.
Further, the apparatus further comprises:
the second sequencing unit is used for sequencing the obtained target attribute set according to the time sequence;
the acquiring unit is used for acquiring the attribute to be inquired;
the comparison unit is used for sequentially comparing a target attribute set corresponding to the current target time point with a target attribute set corresponding to the previous target time point and judging whether the attributes to be inquired in the target attribute sets are changed or not;
a deleting unit, configured to delete a target attribute set corresponding to a current target time point in response to that the attribute to be queried does not change;
and the screening unit is used for screening the target attribute set in the query date.
In a third aspect, an embodiment of the present invention provides a server, including a memory and a processor; wherein the content of the first and second substances,
the memory is to store one or more computer instructions, wherein the one or more computer instructions are for the processor to invoke for execution;
the processor is configured to:
acquiring merchant identification and inquiry date;
determining a starting time point and an ending time point according to the query date;
determining a target time point when the attribute corresponding to the merchant identifier changes between the starting time point and the ending time point;
and obtaining a target attribute set comprising at least one attribute corresponding to the target time point according to the merchant identifier.
In a fourth aspect, an embodiment of the present invention provides a computer storage medium storing one or more computer instructions that, when executed, implement the method described in the first aspect.
The embodiment of the invention provides a statistical method for loading a webpage picture, which comprises the steps of obtaining a merchant identifier and an inquiry date, determining a starting time point and an ending time point according to the inquiry date, determining a target time point with a changed attribute corresponding to the merchant identifier between the starting time point and the ending time point, and finally obtaining a target attribute set which corresponds to the target time point and comprises at least one attribute according to the merchant identifier, so as to find out the target attribute set which changes in the inquiry date, and simultaneously, the change process of the attribute can be visually displayed, so that the reason of the change of the attribute to be inquired can be conveniently explained, and the method is simple, time-saving and labor-saving.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
Fig. 1 is a flowchart illustrating a method for saving merchant attribute information according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a method for querying merchant attributes according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating another merchant attribute query method according to an embodiment of the present invention;
fig. 4 is a block diagram illustrating a merchant attribute query device according to an embodiment of the present invention;
fig. 5 is a block diagram of a server according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention.
In some of the flows described in the present specification and claims and in the above figures, a number of operations are included that occur in a particular order, but it should be clearly understood that these operations may be performed out of order or in parallel as they occur herein, with the order of the operations being indicated as 101, 102, etc. merely to distinguish between the various operations, and the order of the operations by themselves does not represent any order of performance. Additionally, the flows may include more or fewer operations, and the operations may be performed sequentially or in parallel. It should be noted that, the descriptions of "first", "second", etc. in this document are used for distinguishing different messages, devices, modules, etc., and do not represent a sequential order, nor limit the types of "first" and "second" to be different.
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, a flowchart of a method for storing merchant attribute information according to an embodiment of the present invention is shown, where the method specifically includes the following steps:
step 101, storing the changed attribute and the attribute change time point in a merchant attribute increment table.
In the embodiment of the present invention, the attributes of the merchant may include a starting price, a delivery range, a delivery duration, a basic delivery fee, a time-share delivery fee, a delivery fee, and the like.
In example 1, when the basic distribution fee is changed from 5 to 6 at 10:00 on day 5/month and 17, the attribute change time point in the merchant attribute incremental table corresponds to 10:00 on day 5/month and 17, and the changed attribute corresponds to 6 at the basic distribution fee.
In a specific implementation, each merchant identifier may correspond to a merchant attribute increment table, and data in the merchant attribute increment table may be stored only for a limited period of time, for example, data stored for 10 days.
When the time rule according to which the attribute change needs to be performed changes, the changed time rule may be stored in the merchant attribute increment table in the form of an array, and the attribute change time point corresponding to the array is the time point when the time rule changes.
Example 2, at 13:00 on day 5, month 17, the time rule for the time-share distribution fee is changed to: the 12:00 timesharing distribution fee is 2 yuan, and the 21:00 timesharing distribution fee is 5 yuan. The attribute change time point in the merchant attribute increment table corresponds to 13:00 of 5 months and 17 days, the changed attribute corresponds to an array, the array comprises a time column and an attribute column, and the time column is 12:00 and 21:00 in sequence; accordingly, the attribute column is composed of a time-share distribution fee of 2 and a time-share distribution fee of 5 in this order.
And step 102, updating the merchant attribute data table in real time according to the data in the merchant attribute increment table.
The business attribute data table stores the total data of the business attributes, such as business state, distribution range, basic distribution fee, time-share distribution fee, etc.
Step 102 may implement that, once the attribute of the merchant changes, the merchant attribute data table is updated according to the changed attribute, so as to ensure that real-time data is displayed to the ordering user on the webpage. For example, the basic distribution fee in the merchant attribute data table is 5-yuan, and when data for changing the basic distribution fee into 6-yuan is added to the merchant attribute incremental table, the basic distribution fee in the merchant attribute data table is changed into 6-yuan, and the distribution fee displayed on the web page is changed accordingly.
Step 103, storing the data in the merchant attribute data table into a backup file according to a preset backup frequency.
In a specific implementation, the data in the merchant attribute data table may be backed up at 6:00 a day.
Referring to fig. 2, a flowchart of a merchant attribute query method according to an embodiment of the present invention is shown, where the method specifically includes the following steps.
Step 201, acquiring a merchant identifier and a query date.
For example, the merchant identifier may be named as the store name corresponding to the merchant, and the query date may be 5 months and 18 days.
Step 202, determining a starting time point and an ending time point according to the query date.
In a specific implementation, the starting time point may be set to 6:00 of the day before the search _ date is queried, i.e., the search _ date-1 day, i.e., the time point of data backup for the merchant attribute data table every day. If the query date is the date of the current query time, the end time point is set as the current query time, and if the query date is not the date of the current query time, the end time point is set as 23:59:59 of the search _ date.
Step 203, determining a target time point when the attribute corresponding to the merchant identifier changes between the starting time point and the ending time point.
In a preferred example of the embodiment of the present invention, step 203 may specifically include:
and 11, inquiring the attribute change time point corresponding to the merchant identifier between the starting time point and the end time point of the inquiry date.
In a specific implementation, the attribute change time point corresponding to the merchant identifier may be queried in the merchant attribute increment table. For example, based on example 1 and example 2 in the embodiment of fig. 1, two attribute change time points of 10:00 for day 5/month 17 and 13:00 for day 5/month 17 can be found.
And step 12, responding to the time rule that no attribute change basis exists on the attribute change time point, and setting the attribute change time point as a target time point.
In a specific implementation, the queried attribute change time points may be sorted according to a time sequence, and then whether a time rule according to which the attribute is changed changes at the attribute change time points is sequentially determined.
For example, if the time rule according to which no attribute is changed changes in 10:00 on day 5/month and 17, 10:00 on day 5/month and 17 is set as the target time point.
Step 13, in response to the change of the time rule according to which the attribute is changed at the attribute change time point, determining a target time point corresponding to the time rule between the current attribute change time point and the tail time point.
For example, the time rule for which 13:00 on day 5/month and 17 has attribute change criteria changes, specifically, the time rule corresponding to the time-share distribution fee changes: the 12:00 timesharing distribution fee is 2 yuan, and the 21:00 timesharing distribution fee is 5 yuan.
If the query date is not the date of the current query time, the end time point is set to 23:59:59 of the search _ date. According to the time rule, it is determined that the time-share distribution fees corresponding to 21:00 on day 5-month-17 and 12:00 on day 5-month-18 will change, and 21:00 on day 5-month-17 and 12:00 on day 5-month-18 are set as the target time points.
The target time point of all the attribute changes can be obtained through step 203, so as to obtain the complete process of the attribute change.
Step 204, obtaining a target attribute set including at least one attribute corresponding to the target time point according to the merchant identifier.
In a preferred example of the embodiment of the present invention, step 204 may specifically include:
and step 21, acquiring an initial attribute set corresponding to the initial time point according to the merchant identifier.
In the embodiment of the present invention, a time point for backing up the merchant attribute data table may be set as a starting time point, so as to use the full amount of data of the merchant attributes stored in the backup file as the initial attribute set.
If the attribute corresponding to the merchant identifier is not found in the backup file, the attribute corresponding to the merchant identifier is found in a merchant attribute increment table or a merchant attribute data table, and if the attribute corresponding to the merchant identifier exists, the first piece of increment information corresponding to the merchant identifier in the merchant attribute increment table is used as an initial attribute set.
If the attribute corresponding to the merchant identifier is not found in the backup file, the merchant attribute increment table or the merchant attribute data table, the information corresponding to the merchant identifier is not considered to exist.
And step 22, acquiring the changed attribute corresponding to the target time point according to the merchant identifier.
For example, if the changed attribute corresponding to 10:00 on day 5/month and 17 is the basic distribution fee of 6 yuan, the information of "basic distribution fee of 6 yuan" is acquired.
Step 23, obtaining a target attribute set corresponding to the target time point and including at least one attribute according to the initial attribute set and the changed attributes.
The set of target attributes may include: basic distribution fees, time-share distribution fees, starting prices, distribution distances, distribution times, and the like.
For example, the initial set of attributes includes: the basic distribution cost is 5 yuan, and the initial delivery price is 20 yuan. Then the target attribute set obtained according to the changed basic delivery fee of 6 yuan corresponding to 10:00 of 5 month and 17 days comprises: the basic distribution fee is 6 yuan, and the initial price is 20 yuan.
In the embodiment of the invention, the distance between the delivery address and the merchant address can be obtained according to the specific delivery address, and then the corresponding basic delivery fee is obtained according to the business logic. The distribution fee can also be obtained according to the basic distribution fee, the time-share distribution fee and the business logic, namely, the distribution fee is the basic distribution fee plus the time-share distribution fee.
In the embodiment of the present invention, the target time points may be sorted according to a time sequence, and then a target attribute set including at least one attribute corresponding to a current target time point is obtained according to a target attribute set corresponding to a previous target time point of the current target time point and a changed attribute corresponding to the current target time point.
For example, the target time point includes 10:00 on day 5/17 and 21:00 on day 5/17, and the target attribute set corresponding to 10:00 on day 5/17 includes: 6 yuan for basic delivery, 4 yuan for time-share delivery and 20 yuan for starting delivery price; if the split-time distribution fee after the 21:00 change on day 5/month and 17 is 5 yuan, the target attribute set corresponding to the 21:00 on day 5/month and 17 includes: the basic distribution fee is 6 yuan, the time-share distribution fee is 5 yuan, and the starting price is 20 yuan.
Step 205, obtaining a target attribute set to be displayed.
In a preferred example of the embodiment of the present invention, step 205 may specifically include:
and 31, sequencing the obtained target attribute sets according to the time sequence.
Step 32, obtaining the attribute to be inquired.
And step 33, sequentially comparing the target attribute set corresponding to the current target time point with the target attribute set corresponding to the previous target time point, and judging whether the attributes to be queried change in the target attribute sets.
And step 34, in response to that the attribute to be queried does not change, deleting the target attribute set corresponding to the current target time point.
And step 35, screening out the target attribute set in the query date.
For example, if the target attribute set of the current target time point includes 6 units of delivery cost, the delivery time is 30 minutes, the target attribute set of the previous target time point includes 6 units of delivery cost, the delivery time is 40 minutes, and the merchant attribute to be queried is the delivery cost, the target attribute set of the current target time point is deleted, so that the data of interest is displayed more intuitively and clearly, and the reason for the change of the merchant attribute is explained conveniently.
Before step 35, the obtained target attribute set is located between the starting time point and the ending time point, and the target attribute set between query dates 0:00 and 23:59:59 can be obtained through screening for presentation.
After the target attribute sets to be displayed are obtained, the target attribute sets corresponding to each target time point can be displayed item by item according to the time sequence.
When the delivery address to be queried is not within the delivery range of the merchant, a message that the delivery range is not present may be presented at the head end.
If the target attribute set comprises the distribution range, the distribution range can be displayed in the form of a map, and the distribution range is marked on the map so as to be visually displayed.
In the embodiment of the invention, the target attribute set corresponding to the target time point with the changed attribute in the query date can be obtained, so that the whole process of attribute change can be visually displayed, the reason of attribute change to be queried can be conveniently explained, and the implementation method is simple, time-saving and labor-saving.
Referring to fig. 3, fig. 3 is a flowchart illustrating another merchant attribute query method according to an embodiment of the present invention. The embodiment shown in fig. 3 is an embodiment refined based on steps 201 to 204 in fig. 2, so the same contents as fig. 2 can be referred to the embodiment shown in fig. 2. The method shown in fig. 3 may include the following steps.
Step 301, determining a starting time point and an ending time point according to the query date; the start time point is located before the query date.
In an embodiment of the present invention, the start time point may be set to 6:00 of the search _ date-1 day and the end time point may be set to 23:59:59 of the search _ date day.
Step 302, arranging the starting time point and the ending time point in a time list according to the time sequence.
Step 303, looking up an attribute change time point corresponding to the merchant identifier between the starting time point and the ending time point in the merchant attribute increment table.
And 304, arranging the attribute change time points found in the merchant attribute increment table in the time list according to the time sequence.
Step 305, sequentially judging whether the time rule according to which the attribute is changed changes exists at the time points in the current time list according to the time sequence; if yes, turning to the next step; if not, go to step 308.
Step 306, responding to the change of the time rule at the current time point in the time list, and determining the time point corresponding to the change of the attribute between the current attribute change time point and the tail time point according to the time rule.
And 307, arranging the time points corresponding to the attribute change determined according to the time rule in the time list according to the time sequence.
And 308, responding to that no time rule of the current time point in the time list changes, and acquiring a target attribute set which corresponds to the current time point and comprises at least one attribute.
The starting time point is set as the time point when the complete merchant attribute can be obtained and changed as early as the query date. Because a changing time rule is often included in the merchant attribute increment table, such as at search _ date-1 day 13:00, the time rule for the time-share distribution fee is changed to: the 12:00 timesharing distribution fee is 2 yuan, and the 21:00 timesharing distribution fee is 5 yuan. Although the split-period distribution fee does not occur at 13:00 on the search _ date-1 day, it varies between 21:00 on the search _ date-1 day and 12:00 on the search _ date. Therefore, 21:00 of the search _ date-1 day and 12:00 of the search _ date need to be added into the time list according to the changed time rule, so as to obtain a complete merchant attribute change process.
In the embodiment of the invention, the target attribute set corresponding to the target time point with the changed attribute in the query date can be obtained, so that the whole process of attribute change can be visually displayed, the reason of attribute change to be queried can be conveniently explained, and the implementation method is simple, time-saving and labor-saving.
Referring to fig. 4, a block diagram of a merchant attribute query apparatus provided in an embodiment of the present invention is shown, where the apparatus may specifically include:
the information obtaining module 401 is configured to obtain a merchant identifier and a query date.
A first determining module 402, configured to determine a starting time point and an ending time point according to the query date.
A second determining module 403, configured to determine a target time point when an attribute corresponding to the merchant identifier changes between the starting time point and the ending time point.
In a preferred example of the embodiment of the present invention, the second determining module 403 may specifically include:
the query unit is used for querying an attribute change time point corresponding to the merchant identifier between the starting time point and the tail time point of the query date;
a setting unit configured to set the attribute change time point as a target time point in response to a change of a time rule according to which no attribute is changed at the attribute change time point;
and the determining unit is used for responding to the change of the time rule according to which the attribute changes at the attribute changing time point, and determining a target time point corresponding to the time rule from the current attribute changing time point to the tail time point.
An attribute set obtaining module 404, configured to obtain, according to the merchant identifier, a target attribute set that includes at least one attribute and corresponds to the target time point.
In a preferred example of the embodiment of the present invention, the attribute set obtaining module 404 may specifically include:
an initial attribute set obtaining unit, configured to obtain, according to the merchant identifier, an initial attribute set corresponding to the initial time point;
the attribute acquisition unit is used for acquiring the changed attribute corresponding to the target time point according to the merchant identifier;
and the target attribute set obtaining unit is used for obtaining a target attribute set which comprises at least one attribute and corresponds to the target time point according to the initial attribute set and the changed attribute.
Further, the attribute set obtaining module 404 may further include:
and the first sequencing unit is used for sequencing the target time points according to the time sequence.
Then, the target attribute set obtaining unit may be further configured to obtain, according to a target attribute set corresponding to a previous target time point of the current target time point and the changed attribute corresponding to the current target time point, a target attribute set corresponding to the current target time point and including at least one attribute.
An attribute set obtaining module 405, configured to obtain a target attribute set to be displayed.
In a preferred example of the embodiment of the present invention, the attribute set obtaining module 405 may specifically include:
the second sequencing unit is used for sequencing the obtained target attribute set according to the time sequence;
the acquiring unit is used for acquiring the attribute to be inquired;
the comparison unit is used for sequentially comparing a target attribute set corresponding to the current target time point with a target attribute set corresponding to the previous target time point and judging whether the attributes to be inquired in the target attribute sets are changed or not;
a deleting unit, configured to delete a target attribute set corresponding to a current target time point in response to that the attribute to be queried does not change;
and the screening unit is used for screening the target attribute set in the query date.
In the embodiment of the invention, the target attribute set corresponding to the target time point with the changed attribute in the query date can be obtained, so that the whole process of attribute change can be visually displayed, the reason of attribute change to be queried can be conveniently explained, and the implementation method is simple, time-saving and labor-saving.
Referring to fig. 5, a block diagram of a server provided by an embodiment of the present invention is shown, where the server may specifically include a memory 501 and a processor 502; wherein the content of the first and second substances,
the memory 501 is configured to store one or more computer instructions, where the one or more computer instructions are invoked for execution by the processor 502;
the processor 502 is configured to:
acquiring merchant identification and inquiry date;
determining a starting time point and an ending time point according to the query date;
determining a target time point when the attribute corresponding to the merchant identifier changes between the starting time point and the ending time point;
and obtaining a target attribute set comprising at least one attribute corresponding to the target time point according to the merchant identifier.
An embodiment of the present invention further provides a computer storage medium, where one or more computer instructions are stored, and when executed, the computer instructions implement the merchant attribute query method in the embodiments shown in fig. 2 and fig. 3.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.
The invention discloses a1 merchant attribute query method, which comprises the following steps:
acquiring merchant identification and inquiry date;
determining a starting time point and an ending time point according to the query date;
determining a target time point when the attribute corresponding to the merchant identifier changes between the starting time point and the ending time point;
and obtaining a target attribute set comprising at least one attribute corresponding to the target time point according to the merchant identifier.
A2, the method as in a1, wherein the step of determining the target time point when the corresponding attribute changes between the starting time point and the ending time point comprises:
inquiring the attribute change time point corresponding to the merchant identifier between the starting time point and the end time point of the inquiry date;
setting the attribute change time point as a target time point in response to that no time rule according to which the attribute is changed at the attribute change time point is changed;
and determining a target time point corresponding to the time rule between the current attribute change time point and the tail time point in response to the change of the time rule according to which the attribute changes at the attribute change time point.
A3, wherein in the method described in a1, the step of obtaining a target attribute set corresponding to the target time point and including at least one attribute according to the merchant identifier includes:
acquiring an initial attribute set corresponding to the initial time point according to the merchant identifier;
acquiring the changed attribute corresponding to the target time point according to the merchant identifier;
and obtaining a target attribute set which comprises at least one attribute and corresponds to the target time point according to the initial attribute set and the changed attribute.
A4, the method as in A3, wherein the step of obtaining a target attribute set corresponding to the target time point and including at least one attribute according to the merchant identifier further includes:
sequencing the target time points according to the time sequence;
and obtaining a target attribute set which comprises at least one attribute and corresponds to the current target time point according to the target attribute set which corresponds to the last target time point of the current target time point and the changed attribute which corresponds to the current target time point.
A5, wherein the method according to any of a1-a4, after the step of obtaining a target attribute set corresponding to the target time point and including at least one attribute according to the merchant identifier, comprises:
sequencing the obtained target attribute sets according to the time sequence;
acquiring an attribute to be queried;
sequentially comparing a target attribute set corresponding to the current target time point with a target attribute set corresponding to the previous target time point, and judging whether the attributes to be inquired in the target attribute sets are changed or not;
in response to the fact that the attribute to be inquired does not change, deleting a target attribute set corresponding to the current target time point;
and screening the target attribute set in the query date.
The invention also discloses B6, a merchant attribute inquiry device, comprising:
the information acquisition module is used for acquiring the merchant identification and the query date;
the first determining module is used for determining a starting time point and an ending time point according to the query date;
a second determining module, configured to determine a target time point at which an attribute corresponding to the merchant identifier changes between the start time point and the end time point;
and the attribute set obtaining module is used for obtaining a target attribute set which comprises at least one attribute and corresponds to the target time point according to the merchant identifier.
B7, the apparatus as described in B6, the second determining module comprising:
the query unit is used for querying an attribute change time point corresponding to the merchant identifier between the starting time point and the tail time point of the query date;
a setting unit configured to set the attribute change time point as a target time point in response to a change of a time rule according to which no attribute is changed at the attribute change time point;
and the determining unit is used for responding to the change of the time rule according to which the attribute changes at the attribute changing time point, and determining a target time point corresponding to the time rule from the current attribute changing time point to the tail time point.
B8, the apparatus as described in B6, the attribute set obtaining module comprising:
an initial attribute set obtaining unit, configured to obtain, according to the merchant identifier, an initial attribute set corresponding to the initial time point;
the attribute acquisition unit is used for acquiring the changed attribute corresponding to the target time point according to the merchant identifier;
and the target attribute set obtaining unit is used for obtaining a target attribute set which comprises at least one attribute and corresponds to the target time point according to the initial attribute set and the changed attribute.
B9, the apparatus of B8, wherein the attribute set obtaining module further comprises:
the first sequencing unit is used for sequencing the target time points according to the time sequence;
the target attribute set obtaining unit is further configured to obtain a target attribute set corresponding to the current target time point and including at least one attribute according to a target attribute set corresponding to a previous target time point of the current target time point and the changed attribute corresponding to the current target time point.
B10, the device of any one of B6-B9, further comprising:
the second sequencing unit is used for sequencing the obtained target attribute set according to the time sequence;
the acquiring unit is used for acquiring the attribute to be inquired;
the comparison unit is used for sequentially comparing a target attribute set corresponding to the current target time point with a target attribute set corresponding to the previous target time point and judging whether the attributes to be inquired in the target attribute sets are changed or not;
a deleting unit, configured to delete a target attribute set corresponding to a current target time point in response to that the attribute to be queried does not change;
and the screening unit is used for screening the target attribute set in the query date.
The invention also discloses C11, a server, comprising a memory and a processor; wherein the content of the first and second substances,
the memory is to store one or more computer instructions, wherein the one or more computer instructions are for the processor to invoke for execution;
the processor is configured to:
acquiring merchant identification and inquiry date;
determining a starting time point and an ending time point according to the query date;
determining a target time point when the attribute corresponding to the merchant identifier changes between the starting time point and the ending time point;
and obtaining a target attribute set comprising at least one attribute corresponding to the target time point according to the merchant identifier.
Also disclosed is D12, a computer storage medium storing one or more computer instructions that, when executed, implement the method of any one of a1-a 5.

Claims (10)

1. A merchant attribute query method is characterized by comprising the following steps:
acquiring merchant identifications and query dates, wherein each merchant identification corresponds to a merchant attribute increment table, and only limited-term data is stored in the merchant attribute increment table;
determining a starting time point and an ending time point according to the query date;
determining a target time point when the attribute corresponding to the merchant identifier changes between the initial time point and the tail time point according to records in a merchant attribute increment table corresponding to the merchant identifier;
acquiring an initial attribute set corresponding to the initial time point and a changed attribute corresponding to a target time point according to the merchant identifier, wherein the initial attribute set is full data of merchant attributes stored in a backup file, and the changed attribute is stored in the merchant attribute increment table;
and modifying the attribute corresponding to the changed attribute in the initial attribute set into the changed attribute to obtain a target attribute set which comprises at least one attribute and corresponds to the target time point.
2. The method of claim 1, wherein determining a target time point between the start time point and the end time point at which the merchant identifier corresponding to the attribute changes comprises:
inquiring the attribute change time point corresponding to the merchant identifier between the starting time point and the end time point of the inquiry date;
setting the attribute change time point as a target time point in response to that no time rule according to which the attribute is changed at the attribute change time point is changed;
and determining a target time point corresponding to the time rule between the current attribute change time point and the tail time point in response to the change of the time rule according to which the attribute changes at the attribute change time point.
3. The method of claim 1, further comprising:
sequencing the target time points according to the time sequence;
and obtaining a target attribute set which comprises at least one attribute and corresponds to the current target time point according to the target attribute set which corresponds to the last target time point of the current target time point and the changed attribute which corresponds to the current target time point.
4. The method according to any one of claims 1-3, further comprising:
sequencing the obtained target attribute sets according to the time sequence;
acquiring an attribute to be queried;
sequentially comparing a target attribute set corresponding to the current target time point with a target attribute set corresponding to the previous target time point, and judging whether the attributes to be inquired in the target attribute sets are changed or not;
in response to the fact that the attribute to be inquired does not change, deleting a target attribute set corresponding to the current target time point;
and screening the target attribute set in the query date.
5. A merchant attribute inquiry apparatus, comprising:
the information acquisition module is used for acquiring merchant identifications and inquiry dates, each merchant identification corresponds to one merchant attribute increment table, and only limited-term data are stored in the merchant attribute increment table;
the first determining module is used for determining a starting time point and an ending time point according to the query date;
a second determining module, configured to determine, according to a record in a merchant attribute increment table corresponding to the merchant identifier, a target time point at which an attribute corresponding to the merchant identifier changes between the start time point and the end time point;
an attribute set obtaining module, configured to obtain, according to the merchant identifier, a target attribute set including at least one attribute corresponding to the target time point;
the attribute set obtaining module includes:
an initial attribute set obtaining unit, configured to obtain, according to the merchant identifier, an initial attribute set corresponding to the initial time point;
an attribute obtaining unit, configured to obtain, according to the merchant identifier, a modified attribute corresponding to the target time point, where the initial attribute set is full data of merchant attributes stored in a backup file, and the modified attribute is stored in the merchant attribute incremental table;
and the target attribute set obtaining unit is used for modifying the attribute corresponding to the changed attribute in the initial attribute set into the changed attribute and obtaining a target attribute set which comprises at least one attribute and corresponds to the target time point.
6. The apparatus of claim 5, wherein the second determining module comprises:
the query unit is used for querying an attribute change time point corresponding to the merchant identifier between the starting time point and the tail time point of the query date;
a setting unit configured to set the attribute change time point as a target time point in response to a change of a time rule according to which no attribute is changed at the attribute change time point;
and the determining unit is used for responding to the change of the time rule according to which the attribute changes at the attribute changing time point, and determining a target time point corresponding to the time rule from the current attribute changing time point to the tail time point.
7. The apparatus of claim 6, wherein:
the attribute set obtaining module further includes:
the first sequencing unit is used for sequencing the target time points according to the time sequence;
the target attribute set obtaining unit is further configured to obtain a target attribute set corresponding to the current target time point and including at least one attribute according to a target attribute set corresponding to a previous target time point of the current target time point and the changed attribute corresponding to the current target time point.
8. The apparatus of any one of claims 5-7, further comprising:
the second sequencing unit is used for sequencing the obtained target attribute set according to the time sequence;
the acquiring unit is used for acquiring the attribute to be inquired;
the comparison unit is used for sequentially comparing a target attribute set corresponding to the current target time point with a target attribute set corresponding to the previous target time point and judging whether the attributes to be inquired in the target attribute sets are changed or not;
a deleting unit, configured to delete a target attribute set corresponding to a current target time point in response to that the attribute to be queried does not change;
and the screening unit is used for screening the target attribute set in the query date.
9. A server, comprising a memory and a processor; wherein the content of the first and second substances,
the memory is to store one or more computer instructions, wherein the one or more computer instructions are for the processor to invoke for execution;
the processor is configured to:
acquiring merchant identifications and query dates, wherein each merchant identification corresponds to a merchant attribute increment table, and only limited-term data is stored in the merchant attribute increment table;
determining a starting time point and an ending time point according to the query date;
determining a target time point when the attribute corresponding to the merchant identifier changes between the initial time point and the tail time point according to records in a merchant attribute increment table corresponding to the merchant identifier;
acquiring an initial attribute set corresponding to the initial time point and a changed attribute corresponding to a target time point according to the merchant identifier, wherein the initial attribute set is full data of merchant attributes stored in a backup file, and the changed attribute is stored in the merchant attribute increment table;
and modifying the attribute corresponding to the changed attribute in the initial attribute set into the changed attribute to obtain a target attribute set which comprises at least one attribute and corresponds to the target time point.
10. A computer storage medium having one or more computer instructions stored thereon that, when executed, implement the method of any one of claims 1-4.
CN201710425291.2A 2017-06-07 2017-06-07 Merchant attribute query method and device and server Expired - Fee Related CN107169845B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710425291.2A CN107169845B (en) 2017-06-07 2017-06-07 Merchant attribute query method and device and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710425291.2A CN107169845B (en) 2017-06-07 2017-06-07 Merchant attribute query method and device and server

Publications (2)

Publication Number Publication Date
CN107169845A CN107169845A (en) 2017-09-15
CN107169845B true CN107169845B (en) 2020-12-01

Family

ID=59825858

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710425291.2A Expired - Fee Related CN107169845B (en) 2017-06-07 2017-06-07 Merchant attribute query method and device and server

Country Status (1)

Country Link
CN (1) CN107169845B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112597376A (en) * 2020-12-16 2021-04-02 北京五八信息技术有限公司 Information query method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6615204B1 (en) * 1996-05-31 2003-09-02 Silicon Graphics, Inc. Method and system for hybrid mapping of objects into a relational data base to provide high-speed performance and update flexibility
CN102822855A (en) * 2010-03-23 2012-12-12 亚马逊技术股份有限公司 User profile and geolocation for efficient transactions
CN104318460A (en) * 2014-11-17 2015-01-28 北京金和软件股份有限公司 Electronic-merchant operating platform capable of synchronously displaying interface of mobile terminal
CN106780176A (en) * 2016-12-15 2017-05-31 东莞市讯易机电科技有限公司 A kind of food delivery personnel computer Dispatching Control System and method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FI111620B (en) * 1995-12-21 2003-08-29 Kone Corp Method and apparatus for displaying the elevator operations
CN102117445A (en) * 2011-02-23 2011-07-06 电子科技大学 Method for monitoring goods in real time in logistics management
CN103794053B (en) * 2014-03-05 2015-04-01 中商商业发展规划院有限公司 Vague predicting method for city short-distance logistics simple target delivering time
CN104809200B (en) * 2015-04-24 2018-11-16 联动优势科技有限公司 A kind of method and apparatus of database synchronization

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6615204B1 (en) * 1996-05-31 2003-09-02 Silicon Graphics, Inc. Method and system for hybrid mapping of objects into a relational data base to provide high-speed performance and update flexibility
CN102822855A (en) * 2010-03-23 2012-12-12 亚马逊技术股份有限公司 User profile and geolocation for efficient transactions
CN104318460A (en) * 2014-11-17 2015-01-28 北京金和软件股份有限公司 Electronic-merchant operating platform capable of synchronously displaying interface of mobile terminal
CN106780176A (en) * 2016-12-15 2017-05-31 东莞市讯易机电科技有限公司 A kind of food delivery personnel computer Dispatching Control System and method

Also Published As

Publication number Publication date
CN107169845A (en) 2017-09-15

Similar Documents

Publication Publication Date Title
CN108805622B (en) Commodity recommendation method, commodity recommendation device, commodity recommendation equipment and storage medium
WO2017167065A1 (en) Page resource delivery method and apparatus
CN103678365B (en) The dynamic acquisition method of data, apparatus and system
CN111008869A (en) Advertisement recommendation method and device, electronic equipment and storage medium
KR102225729B1 (en) Product information processing apparatus for multiple online shopping mall product registration and method thereof
US20200074509A1 (en) Business data promotion method, device, terminal and computer-readable storage medium
CN110910203A (en) Method and device for displaying content of commodity page
CN111144970B (en) Order splitting method and device, electronic equipment and readable medium
EP2524345A1 (en) Attribute aggregation for standard product unit
CN110766521A (en) Method, device and system for generating purchase order and storage medium
CN112749863A (en) Keyword price adjusting method and device and electronic equipment
US20130339136A1 (en) Detection of events from bursts of activity indicators
CN107169845B (en) Merchant attribute query method and device and server
CN110069499B (en) Data management method, device, system and storage medium
CN109035070B (en) Catering system based on internet of things search
CN108549722B (en) Multi-platform data publishing method, system and medium
CN111026963A (en) Data query method and device, and configuration information setting method and device
CN116166820A (en) Visualized knowledge graph generation method and device based on provider data
WO2005098653A2 (en) Automatic creation of output file from images in database
CN115409014A (en) Document template generation method and device, computer equipment and storage medium
CN113139835A (en) Data processing method, data processing device, nonvolatile storage medium and processor
CN114153860A (en) Business data management method and device, electronic equipment and storage medium
CA3151181A1 (en) Scalable interactive data collection system
CN110852743A (en) Data acquisition method and device
US20150006342A1 (en) Generating a Simulated Invoice

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 100085 Beijing, Haidian District on the road to the information on the ground floor of the 1 to the 3 floor of the 2 floor, room 11, 202

Applicant after: Beijing Xingxuan Technology Co.,Ltd.

Address before: 100085 Beijing, Haidian District on the road to the information on the ground floor of the 1 to the 3 floor of the 2 floor, room 11, 202

Applicant before: Beijing Xiaodu Information Technology Co.,Ltd.

GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20201201