Online quotation supervision method and device, equipment and storage medium
The online quotation supervision method is used for authority verification, logic verification and exception handling, which solves the problem of difficulty for logistics companies to supervise outlet quotations, achieves the rationality and consistency of quotations, and improves management efficiency.
Patent Information
- Application Number
- CN202410624864.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-20
- Publication Date
- 2024-09-10
AI Technical Summary
It is difficult for logistics companies to effectively supervise and manage courier quotations at various outlets, resulting in frequent illegal extra charges or excessive quotations, which affects customer expansion activities.
The online quotation supervision method is used to perform permission verification when receiving quotation requests, generate quotation pages, logically verify and review quotation information, and store it in the database; perform permission verification on query requests, generate quotation pictures, and generate quotation pictures under abnormal circumstances. Update the exception reminder table.
It achieves centralized management and monitoring of quotations at each outlet, quickly identifies abnormalities at fixed points, improves management efficiency, and ensures the rationality and consistency of quotations.
Smart Images

Figure CN118628009A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data management technology, and in particular to an online quotation supervision method, device, equipment and storage medium. Background Art
[0002] Currently, in order to expand their business, logistics companies are vigorously supporting couriers in various outlets to expand their customer base independently. This requires couriers to have clear and reasonable cost prices so that they can gain an advantage when expanding their customer base.
[0003] However, at present, the cost prices charged by various outlets to couriers are all conducted offline, and the charging standards of different outlets are prone to inconsistencies. It is difficult for logistics companies to view and supervise the quotations of various outlets, which can easily lead to illegal additional charges or overly high quotations, which is not conducive to couriers' customer development activities.
[0004] It can be seen that the existing technology still needs to be improved and enhanced. Summary of the invention
[0005] In order to overcome the shortcomings of the prior art, the purpose of the present invention is to provide an online quotation supervision method, device, equipment and storage medium, which adopts the online quotation method to facilitate logistics companies to manage and monitor the quotation situation of each outlet, and facilitate couriers to query quotation information for business development activities.
[0006] The first aspect of the present invention provides an online quotation supervision method, including: when an online quotation request is received, obtaining quotation requester information and performing quotation authority verification, and when the quotation authority verification passes, generating a quotation page; obtaining quotation information fed back by the quotation page, and performing a logic verification on the quotation information; when the quotation information passes the logic verification, reviewing the quotation information, and storing the reviewed quotation information in a database; when a quotation query request is received, obtaining query requester information and performing a query authority verification, and when the query authority verification passes, generating a query page; obtaining query information fed back by the query page, and generating a quotation picture according to the query information; when abnormal feedback is received, obtaining the abnormal type, generating an abnormal reminder instruction according to the abnormal type, and using the generated abnormal reminder instruction to update a pre-built abnormal reminder table.
[0007] Optionally, in a first implementation manner of the first aspect of the present invention, when an online quotation request is received, the quotation requester information is obtained and a quotation authority check is performed, and when the quotation authority check is passed, a quotation page is generated, specifically including: when an online quotation request is received, the quotation requester information is obtained, and the quotation requester information includes a login account, a login password, a quotation requester role, and an authority identifier corresponding to the role; user records associated with the login account are retrieved from the database, and when the corresponding user records are matched, the login password is hashed, and the hash processing result is compared with a preset hash value; when the hash processing result is consistent with the preset hash value, a KMP algorithm is used to match the authority identifier and the preset user role association table to obtain the authority information corresponding to the quotation requester; based on the obtained authority information, a basic filling page is constructed based on the Django backend framework and the React front-end framework; an HTML structure is added to the basic filling page, and CSS is used to set the style and layout of the page to obtain a quotation page.
[0008] Optionally, in a second implementation of the first aspect of the present invention, the obtaining of quotation information fed back by the quotation page and the performing of logical verification on the quotation information specifically include: obtaining quotation information fed back by the quotation page, the quotation information including multiple fields, the multiple fields being used to record quotation group information, courier information, and region and quotation information; using JavaScript code to verify whether each field included in the quotation information is empty, and if there is no empty field, using regular expressions to verify whether each field conforms to a preset data format and a preset type; when each field conforms to a preset data format and a preset type, constructing an SQL statement based on the quotation information, and using the constructed SQL statement to query a pre-constructed quotation group information table and a quotation group information association table to perform a logical verification on the quotation information.
[0009] Optionally, in a third implementation of the first aspect of the present invention, after the quotation information passes the logical verification, the quotation information is reviewed and the reviewed quotation information is stored in a database, specifically including: after the quotation information passes the logical verification, using a rule engine to filter key data and sensitive data from the quotation information; inputting the filtered key data and sensitive data into a pre-built anomaly recognition model based on a random forest algorithm to determine whether there is abnormal data; when there is no abnormal data, it indicates that the quotation information has passed the review; using database constraints to perform storage verification on the reviewed quotation information, and based on the HTTPS security protocol, storing the quotation information that has passed the storage verification in the database.
[0010] Optionally, in a fourth implementation of the first aspect of the present invention, when a quotation query request is received, the query requester information is obtained and a query authority check is performed, and when the query authority check is passed, a query page is generated, specifically including: when a quotation query request is received, the quotation inquirer information is obtained, and the quotation inquirer information includes the courier authority level; according to the courier authority level, the courier role is confirmed, and the courier roles include ordinary couriers and senior couriers; according to the courier role, a query basic page is constructed based on the Thymeleaf back-end template engine and the React front-end framework; an HTML structure is added to the query basic page, and CSS is used to set the style and layout of the page to obtain a query page.
[0011] Optionally, in a fifth implementation of the first aspect of the present invention, the query information fed back by the query page is obtained, and a quotation image is generated based on the query information, specifically including: obtaining the query information fed back by the query page, the query information including the quotation records for the current time period and the quotation records for the previous time period, the quotation records being quotation group information; obtaining a preset image template, and using a template engine to fill the obtained query information into a corresponding position of the image template to obtain a preprocessed image; using the alignment, spacing and color adjustment functions in the design tool to optimize the preprocessed image, adjusting the optimized preprocessed image to a preset resolution, and saving it as a preset image format to obtain a quotation image.
[0012] Optionally, in a sixth embodiment of the first aspect of the present invention, when exception feedback is received, the exception type is obtained, an exception reminder instruction is generated according to the exception type, and the generated exception reminder instruction is used to update the pre-built exception reminder table, specifically including: when exception feedback is received, the exception type and exception information are obtained, and the exception types include abnormal additional charges and abnormally high charges; the exception template is matched according to the exception type, and the exception information is filled into the matched exception template using string replacement technology to generate an exception reminder instruction; the generated exception reminder instruction is input into the pre-built exception reminder table, and the exception reminder instructions in the exception reminder table are sorted according to a preset timestamp using an ORDER BY statement to complete the update of the exception reminder table.
[0013] The second aspect of the present invention provides an online quotation supervision device, including: a quotation module, which is used to obtain the quotation requester information and perform quotation authority verification when an online quotation request is received, and generate a quotation page when the quotation authority verification is passed; a verification module, which is used to obtain the quotation information fed back by the quotation page, and perform a logical verification on the quotation information; an audit module, which is used to audit the quotation information after the quotation information passes the logical verification, and store the reviewed quotation information in a database; a query module, which is used to obtain the query requester information and perform a query authority verification when a quotation query request is received, and generate a query page when the query authority verification is passed; a generation module, which is used to obtain the query information fed back by the query page, and generate a quotation picture according to the query information; an update module, which is used to obtain the exception type when an exception feedback is received, generate an exception reminder instruction according to the exception type, and use the generated exception reminder instruction to update the pre-built exception reminder table.
[0014] Optionally, in a first implementation method of the second aspect of the present invention, the quotation module includes: a first acquisition unit, used to obtain quotation requester information when an online quotation request is received, the quotation requester information including a login account, a login password, a quotation requester role, and an authority identifier corresponding to the role; a processing unit, used to retrieve user records associated with the login account from a database, and when a corresponding user record is matched, hash the login password, and compare the hash processing result with a preset hash value; a matching unit, used to match the authority identifier and a preset user role association table using a KMP algorithm when the hash processing result is consistent with the preset hash value, so as to obtain authority information corresponding to the quotation requester; a first construction unit, used to construct a basic filling page based on the Django backend framework and the React front-end framework according to the obtained authority information; a first adjustment unit, used to add an HTML structure to the basic filling page, and use CSS to set the style and layout of the page to obtain a quotation page.
[0015] Optionally, in a second implementation of the second aspect of the present invention, the verification module includes: a second acquisition unit, used to obtain quotation information fed back by the quotation page, the quotation information including multiple fields, and the multiple fields are used to record quotation group information, courier information, and region and quotation information; a first verification unit, used to use JavaScript code to verify whether each field included in the quotation information is empty, and if there is no empty field, use a regular expression to verify whether each field conforms to a preset data format and a preset type; a second verification unit, used to construct an SQL statement based on the quotation information when each field conforms to a preset data format and a preset type, and use the constructed SQL statement to query a pre-constructed quotation group information table and a quotation group information association table to perform a logical check on the quotation information.
[0016] Optionally, in a third implementation of the second aspect of the present invention, the audit module includes: a screening unit, used to use a rule engine to screen key data and sensitive data from the quotation information after the quotation information passes the logical verification; an audit unit, used to input the screened key data and sensitive data into an anomaly recognition model pre-built based on a random forest algorithm to determine whether there is abnormal data; when there is no abnormal data, it indicates that the quotation information has passed the review; a storage unit, used to use the constraints of the database to perform storage verification on the quotation information that has passed the review, and based on the HTTPS security protocol, store the quotation information that has passed the storage verification in the database.
[0017] Optionally, in a fourth implementation of the second aspect of the present invention, the query module includes: a third acquisition unit, used to obtain quotation inquirer information when a quotation query request is received, the quotation inquirer information including the courier authority level; a confirmation unit, used to confirm the courier role according to the courier authority level, the courier role including ordinary couriers and senior couriers; a second construction unit, used to construct a query basic page based on the Thymeleaf backend template engine and the React front-end framework according to the courier role; a second adjustment unit, used to add an HTML structure to the query basic page, and use CSS to set the style and layout of the page to obtain a query page.
[0018] Optionally, in a fifth implementation of the second aspect of the present invention, the generation module includes: a fourth acquisition unit, used to obtain query information fed back by a query page, the query information including quotation records for a current time period and quotation records for a previous time period, the quotation records being quotation group information; a first filling unit, used to obtain a preset image template, and use a template engine to fill the obtained query information into a corresponding position of the image template to obtain a preprocessed image; an optimization unit, used to optimize the preprocessed image using the alignment, spacing and color adjustment functions in the design tool, adjust the optimized preprocessed image to a preset resolution, and save it in a preset image format to obtain a quotation image.
[0019] Optionally, in a sixth implementation of the second aspect of the present invention, the update module includes: a fifth acquisition unit, used to obtain the exception type and exception information when receiving exception feedback, the exception type including abnormal additional charges and abnormally high charges; a second filling unit, used to match the exception template according to the exception type, and use string replacement technology to fill the exception information into the matched exception template to generate an exception reminder instruction; an update unit, used to input the generated exception reminder instruction into a pre-built exception reminder table, use an ORDER BY statement to sort the exception reminder instructions in the exception reminder table according to a preset timestamp, and complete the update of the exception reminder table.
[0020] A third aspect of the present invention provides an online quotation supervision device, comprising: a memory and at least one processor, wherein the memory stores instructions; at least one of the processors calls the instructions in the memory so that the online quotation supervision device executes each step of any one of the above-mentioned online quotation supervision methods.
[0021] A fourth aspect of the present invention provides a computer-readable storage medium having instructions stored thereon, and when the instructions are executed by a processor, the various steps of any of the above-mentioned online quotation supervision methods are implemented.
[0022] In the technical solution of the present invention, a quotation authority check is performed on the quotation requester. If the quotation authority check passes, a quotation page is generated to obtain quotation information, a logic check is performed on the quotation information, if the logic check passes, the quotation information is reviewed, and the reviewed quotation information is stored in a database; a query authority check is performed on the query requester. If the query authority check passes, a query page is generated to obtain query information fed back by the query page, and a quotation picture is generated according to the query information; when abnormal feedback is received, the abnormal type is obtained to generate an abnormal reminder instruction, and the abnormal reminder instruction is used to update a pre-built abnormal reminder table; the method disclosed in the present application adopts an online quotation method, which is convenient for logistics companies to manage and monitor the quotation situation of each outlet, and is convenient for couriers to query quotation information for business development activities; further, couriers can provide timely feedback on abnormal quotation situations, so that logistics companies can quickly confirm abnormal situations at a fixed point, thereby improving management efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 A first flow chart of the online quotation supervision method provided by an embodiment of the present invention;
[0024] Figure 2 A second flow chart of the online quotation supervision method provided by an embodiment of the present invention;
[0025] Figure 3 A third flow chart of the online quotation supervision method provided by an embodiment of the present invention;
[0026] Figure 4 A fourth flow chart of the online quotation supervision method provided by an embodiment of the present invention;
[0027] Figure 5 A fifth flow chart of the online quotation supervision method provided by an embodiment of the present invention;
[0028] Figure 6 A sixth flow chart of the online quotation supervision method provided by an embodiment of the present invention;
[0029] Figure 7A seventh flow chart of the online quotation supervision method provided by an embodiment of the present invention;
[0030] Figure 8 A schematic diagram of the structure of an online quotation supervision device provided by an embodiment of the present invention;
[0031] Fig. 9 A schematic diagram of the structure of an online quotation supervision device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0032] The present invention provides an online quotation supervision method, device, equipment and storage medium. The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" or "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0033] For ease of understanding, the specific process of the embodiment of the present invention is described below. Figure 1 An embodiment of the online quotation supervision method in the embodiment of the present invention includes:
[0034] 101. When receiving an online quotation request, obtain the quotation requester information and perform quotation authority verification. When the quotation authority verification is passed, generate a quotation page;
[0035] In this embodiment, the quotation requester may be a branch administrator, and verifying the authority of the quotation requester is an important step in ensuring system data security and business logic correctness.
[0036] 102. Obtain the quotation information fed back from the quotation page and perform logic verification on the quotation information;
[0037] In this embodiment, by performing logical verification on the quotation information, it is ensured that the association between the data is correct and that all fields are filled in without omission, which helps to improve the quality and accuracy of the data.
[0038] 103. When the quotation information passes the logic check, the quotation information is reviewed and the reviewed quotation information is stored in the database;
[0039] In this embodiment, the quotation information is stored in a database, which facilitates tracking and debugging of the data when abnormal problems occur; the database may be a MySQL database.
[0040] 104. When receiving a quotation inquiry request, obtain the inquiry requester information and perform inquiry authority verification. When the inquiry authority verification passes, generate an inquiry page;
[0041] In this embodiment, the query requester may be a courier, and verifying the authority of the query requester is an important step in ensuring system data security and business logic correctness.
[0042] 105. Obtain query information fed back from the query page, and generate a quotation picture according to the query information;
[0043] In this embodiment, by generating a quotation picture, the courier can store the generated quotation picture in the mobile phone album for easy viewing and calling at any time.
[0044] 106. When receiving an exception feedback, obtain the exception type, generate an exception reminder instruction according to the exception type, and use the generated exception reminder instruction to update the pre-built exception reminder table;
[0045] In this embodiment, the pre-built exception reminder table includes several historical exception reminder instructions and the processing results corresponding to the exception reminder instructions, which is convenient for querying and tracing abnormal problems and their corresponding processing results, and can also be used to remind relevant personnel to handle abnormal problems in a timely manner.
[0046] The present application discloses an online quotation supervision method, which includes performing quotation authority verification on the quotation requester, generating a quotation page to obtain quotation information if the quotation authority verification passes, performing logic verification on the quotation information, reviewing the quotation information if the logic verification passes, and storing the reviewed quotation information in a database; performing query authority verification on the query requester, generating a query page to obtain query information fed back by the query page if the query authority verification passes, and generating a quotation picture according to the query information; when receiving abnormal feedback, obtaining the abnormal type to generate an abnormal reminder instruction, and using the abnormal reminder instruction to update a pre-built abnormal reminder table; the method disclosed in the present application adopts an online quotation method, which is convenient for logistics companies to manage and monitor the quotation situation of each outlet, and convenient for couriers to query quotation information for business development activities; further, couriers can provide timely feedback on abnormal quotation situations, so that logistics companies can quickly confirm abnormal situations at a fixed point, thereby improving management efficiency.
[0047] See also Figure 2 The second embodiment of the online quotation supervision method in the embodiment of the present invention includes:
[0048] 201. When receiving an online quotation request, obtain quotation requester information, wherein the quotation requester information includes a login account, a login password, a quotation requester role, and an authority identifier corresponding to the role;
[0049] In this embodiment, the permission identifier may be a string, a number, or a bit mask, and is used to identify the operations that the role can perform.
[0050] 202. Retrieve the user record associated with the login account from the database, and when a corresponding user record is matched, perform hash processing on the login password, and compare the hash processing result with a preset hash value;
[0051] In this embodiment, a regular expression may be used to retrieve user records associated with a login account from a database. Since passwords are typically stored in encrypted form (such as a hash), the same hash algorithm may be used to hash the input login password to obtain a hash result.
[0052] 203. When the hash processing result is consistent with the preset hash value, the KMP algorithm is used to match the authority identifier and the preset user role association table to obtain the authority information corresponding to the quotation requester;
[0053] In this embodiment, the preset user role association table is filled with role information and permission identifiers and access permission information corresponding to the role information; according to the permission identifier, the KMP algorithm can be used to match and obtain the access permission information corresponding to the role.
[0054] 204. Based on the obtained permission information, build and fill in the basic page based on the Django backend framework and the React frontend framework;
[0055] In this embodiment, the Django backend framework is used to process the server-side logic and the interaction with the database, and the React frontend framework is used to build the user interface of the quotation page.
[0056] 205. Add HTML structure to the basic page, and use CSS to set the style and layout of the page to get the quotation page;
[0057] In this embodiment, HTML structures such as forms, input boxes, buttons, etc. are added to realize the interactive function between the quotation page and the quotation requester; by using CSS to set the style and layout of the page, the style of the web page (such as color, font, layout, etc.) can be separated from the HTML content, that is, the appearance of the entire website can be changed without modifying the HTML, thereby improving the maintainability of the code, and CSS can help create a clearer and easier to understand page layout, thereby improving the accessibility of the website.
[0058] See also Figure 3 The third embodiment of the online quotation supervision method in the embodiment of the present invention includes:
[0059] 301. Obtain quotation information fed back from a quotation page, where the quotation information includes multiple fields, and the multiple fields are used to record quotation group information, courier information, and region and quotation information;
[0060] In this embodiment, the quotation group information refers to the bidder's quotation based on the bill of quantities issued by the tenderer, including factors such as later installation, technical services, after-sales, transportation, insurance, tax rates, etc., to determine the final bid price.
[0061] 302. Using JavaScript code to verify whether each field included in the quotation information is empty, if there is no empty field, using regular expressions to verify whether each field conforms to a preset data format and a preset type;
[0062] In this embodiment, when there are empty fields, data submission is blocked and a corresponding error message is given; the data format and type are verified through regular expressions, for example, the freight should be a numeric type, the quotation group name should be a string type, etc.
[0063] 303. When all fields conform to the preset data format and the preset type, construct an SQL statement based on the quotation information, and use the constructed SQL statement to query the pre-constructed quotation group information table and the quotation group information association table to perform logic verification on the quotation information;
[0064] In this embodiment, the pre-constructed quotation group information table stores multiple quotation group information, and the pre-constructed quotation group information association table stores association information between quotation groups, couriers and regions; the pre-constructed quotation group information table is queried through the constructed SQL statement to confirm whether the quotation group exists to avoid duplicate storage; the pre-constructed quotation group information association table is queried through the constructed SQL statement to ensure that the association between the quotation group, region and courier is correct, that is, to ensure the validity of the association.
[0065] See also Figure 4 The fourth embodiment of the online quotation supervision method in the embodiment of the present invention includes:
[0066] 401. After the quotation information passes the logic check, the rule engine is used to filter key data and sensitive data from the quotation information;
[0067] In this embodiment, the key data may be price, quotation group name, etc., and the sensitive data may be courier information.
[0068] In this embodiment, a rule engine is used to perform preliminary screening of quotation information. The rule engine is an execution system that is used to define business rules for specific operations (such as quotation review) and make decisions based on these rules. Specifically, the rule engine will traverse all rules and check whether the quotation information meets the requirements of each rule. If the quotation information violates any rule, the engine will generate an alarm or reject the quotation.
[0069] 402. Input the selected key data and sensitive data into the pre-built anomaly identification model based on the random forest algorithm to determine whether there is abnormal data; when there is no abnormal data, it indicates that the quotation information has been reviewed and approved;
[0070] In this embodiment, the quotation information is further classified and judged using a pre-built anomaly recognition model based on a random forest algorithm. The anomaly recognition model can identify the pattern of abnormal quotations to determine whether there is abnormal data. If the model determines that the quotation is abnormal, further manual review or rejection of the quotation can be performed.
[0071] 403. Use database constraints to perform storage verification on the approved quotation information, and store the verified quotation information in the database based on the HTTPS security protocol;
[0072] In this embodiment, database constraints, such as non-null constraints and foreign key constraints, are used to store and verify the approved quotation information to ensure the integrity and accuracy of the data; HTTPS security protocol is used for data transmission to ensure data security.
[0073] See also Figure 5 The fifth embodiment of the online quotation supervision method in the embodiment of the present invention includes:
[0074] 501. When receiving a quotation inquiry request, obtaining quotation inquiry person information, wherein the quotation inquiry person information includes the courier authority level;
[0075] 502. Confirm the courier role according to the courier authority level, where the courier role includes ordinary courier and senior courier;
[0076] In this embodiment, ordinary couriers can query the quotation records related to themselves in the current period, and senior couriers can query all quotation records in the current period.
[0077] 503. According to the courier role, build the basic query page based on the Thymeleaf backend template engine and the React frontend framework;
[0078] In this embodiment, using the Thymeleaf backend template engine, different page templates can be dynamically rendered according to the permission data passed in from the backend; in the React frontend framework, conditional rendering can be used to decide which components or elements should be displayed or hidden according to the permission data.
[0079] 504. Add HTML structure to the query basic page, and use CSS to set the style and layout of the page to obtain the query page.
[0080] See also Figure 6 The sixth embodiment of the online quotation supervision method in the embodiment of the present invention includes:
[0081] 601. Acquire query information fed back by the query page, wherein the query information includes quotation records of the current time period and quotation records of the previous time period, and the quotation records are quotation group information;
[0082] 602. Obtain a preset picture template, and use a template engine to fill the obtained query information into a corresponding position of the picture template to obtain a preprocessed picture;
[0083] In this embodiment, the preset image template can be designed through the MAKA design platform, and the preset image template has a clear layout and a professional appearance.
[0084] In this embodiment, a template engine is used to fill the acquired query information into the corresponding position of the image template. The template engine allows the definition of a template file containing placeholders and replaces these placeholders with actual data at runtime. The Jinja2 template engine can be used. The Jinja2 template engine is widely used in Python and supports variable replacement, control structure and template inheritance.
[0085] 603. Use the alignment, spacing and color adjustment functions in the design tool to optimize the pre-processed image, adjust the optimized pre-processed image to a preset resolution, and save it in a preset image format to obtain a quotation image;
[0086] In this embodiment, the design tool is Figma, which is a cloud-based collaborative design tool that can collaborate and share designs in real time. By aligning, adjusting the spacing and adjusting the color of the pre-processed images, the consistency of the generated quotation images can be ensured; the preset image format can be jpg format. By generating the quotation images, it is convenient for the couriers to save the quotation images to the mobile phone albums for calling and viewing.
[0087] See also Figure 7 The seventh embodiment of the online quotation supervision method in the embodiment of the present invention includes:
[0088] 701. When receiving abnormal feedback, obtain abnormal type and abnormal information, wherein the abnormal type includes abnormal additional charge and abnormally high charge;
[0089] In this embodiment, the abnormal additional charges refer to the problem of additional charges in addition to necessary charges, and the abnormally high charges refer to the problem of actual charges being higher than the average charges of peers.
[0090] 702. Match the exception template according to the exception type, and use string replacement technology to fill the exception information into the matched exception template to generate an exception reminder instruction;
[0091] In this embodiment, the format method of the string or the % operator is used to replace the characters of the exception information into the exception template.
[0092] 703. Input the generated exception reminder instruction into the pre-built exception reminder table, use the ORDER BY statement to sort the exception reminder instructions in the exception reminder table according to the preset timestamp, and complete the update of the exception reminder table;
[0093] In this embodiment, the preset timestamp is a field of DATETIME or TIMESTAMP type, which is used to sort the exception reminder instructions according to the order of input time, that is, in reverse order of submission time, the later the submission, the earlier the order; the exception reminder table also records the processing feedback results corresponding to the exception reminder instructions to display the processing status of the exception reminder instructions.
[0094] The above describes the online quotation supervision method in the embodiment of the present invention. The following describes the online quotation supervision device in the embodiment of the present invention. Figure 8 , an embodiment of the online quotation supervision device in the embodiment of the present invention includes:
[0095] The quotation module 801 is used to obtain the quotation requester information and perform quotation authority verification when an online quotation request is received, and generate a quotation page when the quotation authority verification is passed; the verification module 802 is used to obtain the quotation information fed back by the quotation page and perform logic verification on the quotation information; the review module 803 is used to review the quotation information after the quotation information passes the logic verification, and store the reviewed quotation information in the database; the query module 804 is used to obtain the query requester information and perform query authority verification when a quotation query request is received, and generate a query page when the query authority verification is passed; the generation module 805 is used to obtain the query information fed back by the query page, and generate a quotation picture according to the query information; the update module 806 is used to obtain the exception type when an exception feedback is received, generate an exception reminder instruction according to the exception type, and use the generated exception reminder instruction to update the pre-built exception reminder table.
[0096] In this embodiment, the quotation module 801 includes: a first acquisition unit 8011, which is used to obtain the quotation requester information when receiving an online quotation request, and the quotation requester information includes a login account, a login password, a quotation requester role and an authority identifier corresponding to the role; a processing unit 8012, which is used to retrieve the user record associated with the login account from the database, and when the corresponding user record is matched, the login password is hashed, and the hash processing result is compared with the preset hash value; a matching unit 8013, which is used to use the KMP algorithm to match the authority identifier and the preset user role association table when the hash processing result is consistent with the preset hash value, so as to obtain the authority information corresponding to the quotation requester; a first construction unit 8014, which is used to construct a basic filling page based on the Django backend framework and the React front-end framework according to the obtained authority information; a first adjustment unit 8015, which is used to add an HTML structure to the basic filling page, and use CSS to set the style and layout of the page to obtain a quotation page.
[0097] In this embodiment, the verification module 802 includes: a second acquisition unit 8021, used to obtain the quotation information fed back by the quotation page, the quotation information includes multiple fields, and the multiple fields are used to record quotation group information, courier information, and region and quotation information; a first verification unit 8022, used to use JavaScript code to verify whether each field included in the quotation information is empty. If there is no empty field, use a regular expression to verify whether each field conforms to a preset data format and a preset type; a second verification unit 8023, used to construct an SQL statement based on the quotation information when each field conforms to a preset data format and a preset type, and use the constructed SQL statement to query a pre-constructed quotation group information table and a quotation group information association table to perform a logical check on the quotation information.
[0098] In this embodiment, the audit module 803 includes: a screening unit 8031, which is used to use a rule engine to screen key data and sensitive data from the quotation information after the quotation information passes the logical verification; an audit unit 8032, which is used to input the screened key data and sensitive data into an abnormality recognition model pre-built based on a random forest algorithm to determine whether there is abnormal data; when there is no abnormal data, it indicates that the quotation information has passed the review; a storage unit 8033, which is used to use the constraints of the database to perform storage verification on the quotation information that has passed the review, and based on the HTTPS security protocol, the quotation information that has passed the storage verification is stored in the database.
[0099] In this embodiment, the query module 804 includes: a third acquisition unit 8041, which is used to obtain the quotation inquirer information when receiving a quotation query request, and the quotation inquirer information includes the courier's authority level; a confirmation unit 8042, which is used to confirm the courier role according to the courier's authority level, and the courier role includes an ordinary courier and a senior courier; a second construction unit 8043, which is used to construct a query basic page based on the Thymeleaf backend template engine and the React front-end framework according to the courier role; a second adjustment unit 8044, which is used to add an HTML structure to the query basic page, and use CSS to set the style and layout of the page to obtain a query page.
[0100] In this embodiment, the generation module 805 includes: a fourth acquisition unit 8051, used to obtain query information fed back by the query page, the query information includes quotation records for the current time period and quotation records for the previous time period, and the quotation records are quotation group information; a first filling unit 8052, used to obtain a preset image template, and use a template engine to fill the obtained query information into the corresponding position of the image template to obtain a preprocessed image; an optimization unit 8053, used to optimize the preprocessed image using the alignment, spacing and color adjustment functions in the design tool, adjust the optimized preprocessed image to a preset resolution, and save it as a preset image format to obtain a quotation image.
[0101] In this embodiment, the update module 806 includes: a fifth acquisition unit 8061, which is used to obtain the exception type and exception information when receiving exception feedback, and the exception type includes abnormal additional charges and abnormally high charges; a second filling unit 8062, which is used to match the exception template according to the exception type, and use string replacement technology to fill the exception information into the matched exception template to generate an exception reminder instruction; an update unit 8063, which is used to input the generated exception reminder instruction into a pre-built exception reminder table, use an ORDER BY statement to sort the exception reminder instructions in the exception reminder table according to a preset timestamp, and complete the update of the exception reminder table.
[0102] above Figure 8 The online quotation supervision device in the embodiment of the present invention is described in detail from the perspective of modular functional entities. The online quotation supervision device in the embodiment of the present invention is described in detail from the perspective of hardware processing.
[0103] Fig. 91 is a schematic diagram of the structure of an online quotation supervision device provided by an embodiment of the present invention. The online quotation supervision device 900 may have relatively large differences due to different configurations or performances, and may include one or more processors (central processing units, CPU) 910 (for example, one or more processors) and a memory 920, and one or more storage media 930 (for example, one or more mass storage devices) storing application programs 933 or data 932. Among them, the memory 920 and the storage medium 930 can be short-term storage or permanent storage. The program stored in the storage medium 930 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the online quotation supervision device 900. Furthermore, the processor 910 can be configured to communicate with the storage medium 930, and execute a series of instruction operations in the storage medium 930 on the online quotation supervision device 900 to implement the steps of the online quotation supervision method provided by the above-mentioned method embodiments.
[0104] The online quotation supervision device 900 may also include one or more power supplies 940, one or more wired or wireless network interfaces 950, one or more input and output interfaces 960, and / or one or more operating systems 931, such as Windows Serve, Mac OS X, Unix, Linux, FreeBSD, etc. Those skilled in the art will appreciate that the online quotation supervision device structure shown in the present application does not constitute a limitation on the online quotation supervision device, and may include more or less components than shown in the figure, or combine certain components, or arrange components differently.
[0105] The present invention also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium. Instructions are stored in the computer-readable storage medium. When the instructions are executed on a computer, the computer executes the steps of the online quotation supervision method.
[0106] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described system, device, or unit can refer to the corresponding process in the aforementioned method embodiment and will not be repeated here.
[0107] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program codes.
[0108] Finally, it should be noted that the above description is only a preferred example of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art can still modify the technical solutions described in the aforementioned embodiments or replace some of the technical features therein by equivalents. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. An online quotation supervision method, It is characterized in that include: When receiving an online quotation request, obtain the quotation requester information and perform quotation authority verification. When the quotation authority verification is passed, generate a quotation page; Obtain the quotation information fed back from the quotation page and perform logical verification on the quotation information; When the quotation information passes the logic check, the quotation information is reviewed and the reviewed quotation information is stored in the database; When receiving a quotation inquiry request, obtain the inquiry requester information and perform inquiry authority verification. When the inquiry authority verification passes, generate an inquiry page; Obtain the query information fed back by the query page, and generate a quotation picture based on the query information; When an exception feedback is received, the exception type is obtained, an exception reminder instruction is generated according to the exception type, and the pre-built exception reminder table is updated using the generated exception reminder instruction.
2. An online quotation supervision method according to claim 1, It is characterized in that When an online quotation request is received, the quotation requester information is obtained and the quotation authority verification is performed. When the quotation authority verification is passed, a quotation page is generated, which specifically includes: When receiving an online quotation request, obtaining quotation requester information, the quotation requester information including login account, login password, quotation requester role and authority identifier corresponding to the role; Retrieve the user record associated with the login account from the database, and when the corresponding user record is matched, perform hash processing on the login password, and compare the hash processing result with the preset hash value; When the hash processing result is consistent with the preset hash value, the KMP algorithm is used to match the permission identifier and the preset user role association table to obtain the permission information corresponding to the quotation requester; According to the obtained permission information, build and fill in the basic page based on the Django backend framework and the React front-end framework; Add HTML structure to the basic page and use CSS to set the style and layout of the page to get the quotation page.
3. An online quotation supervision method according to claim 1, It is characterized in that The obtaining of the quotation information fed back by the quotation page and the logical verification of the quotation information specifically include: Obtaining quotation information fed back from the quotation page, the quotation information including multiple fields, the multiple fields being used to record quotation group information, courier information, and region and quotation information; Use JavaScript code to verify whether each field included in the quotation information is empty. If there is no empty field, use regular expressions to verify whether each field conforms to the preset data format and preset type; When all fields conform to the preset data format and preset type, an SQL statement is constructed based on the quotation information, and the constructed SQL statement is used to query the pre-constructed quotation group information table and quotation group information association table to perform logical verification on the quotation information.
4. The online quotation supervision method according to claim 1, It is characterized in that After the quotation information passes the logic check, the quotation information is reviewed and the reviewed quotation information is stored in the database, specifically including: When the quotation information passes the logical verification, the rule engine is used to filter key data and sensitive data from the quotation information; The selected key data and sensitive data are input into the pre-built anomaly identification model based on the random forest algorithm to determine whether there is abnormal data; when there is no abnormal data, it indicates that the quotation information has been reviewed and approved; Use database constraints to perform storage verification on the reviewed quotation information, and store the verified quotation information in the database based on the HTTPS security protocol.
5. An online quotation supervision method according to claim 1, It is characterized in that When a quotation query request is received, the query requester information is obtained and the query authority verification is performed. When the query authority verification is passed, a query page is generated, which specifically includes: When receiving a quotation inquiry request, obtaining quotation inquiry person information, the quotation inquiry person information including the courier authority level; According to the courier's authority level, confirm the courier role, which includes ordinary couriers and senior couriers; According to the courier role, the basic query page is built based on the Thymeleaf backend template engine and the React frontend framework; Add HTML structure to the query basic page, and use CSS to set the style and layout of the page to obtain the query page.
6. An online quotation supervision method according to claim 1, It is characterized in that The obtaining of query information fed back by the query page and generating a quotation picture according to the query information specifically includes: Acquire query information fed back by the query page, the query information including the quotation record of the current time period and the quotation record of the previous time period, the quotation record being quotation group information; Obtain a preset image template, and use the template engine to fill the obtained query information into the corresponding position of the image template to obtain a preprocessed image; Use the alignment, spacing, and color adjustment functions in the design tool to optimize the pre-processed image, adjust the optimized pre-processed image to the preset resolution, and save it in the preset image format to obtain the quotation image.
7. An online quotation supervision method according to claim 1, It is characterized in that When receiving the abnormal feedback, obtaining the abnormal type, generating an abnormal reminder instruction according to the abnormal type, and using the generated abnormal reminder instruction to update the pre-built abnormal reminder table specifically includes: When receiving abnormal feedback, obtaining abnormal type and abnormal information, wherein the abnormal type includes abnormal additional charges and abnormally high charges; Match the exception template according to the exception type, and use string replacement technology to fill the exception information into the matched exception template to generate an exception reminder instruction; The generated exception reminder instructions are input into the pre-built exception reminder table, and the exception reminder instructions in the exception reminder table are sorted according to the preset timestamp using the ORDER BY statement to complete the update of the exception reminder table.
8. An online quotation monitoring device, It is characterized in that include: The quotation module is used to obtain the quotation requester information and perform quotation authority verification when receiving an online quotation request. When the quotation authority verification is passed, a quotation page is generated; The verification module is used to obtain the quotation information fed back from the quotation page and perform logical verification on the quotation information; The review module is used to review the quotation information after it passes the logic check, and store the reviewed quotation information in the database; The query module is used to obtain the query requester information and perform query authority verification when receiving a quotation query request, and generate a query page when the query authority verification passes; A generation module is used to obtain the query information fed back by the query page and generate a quotation picture according to the query information; The update module is used to obtain the exception type when receiving exception feedback, generate an exception reminder instruction according to the exception type, and use the generated exception reminder instruction to update the pre-built exception reminder table.
9. An online quotation supervision device, It is characterized in that The online quotation supervision device comprises: a memory and at least one processor, wherein instructions are stored in the memory; At least one of the processors calls the instructions in the memory to enable the online quotation supervision device to execute each step of the online quotation supervision method according to any one of claims 1 to 7.
10. A computer-readable storage medium having instructions stored thereon, It is characterized in that When the instructions are executed by the processor, the various steps of the online quotation supervision method as described in any one of claims 1-7 are implemented.
Citation Information
Cited By
Behavioral threat detection definition and compilation
US12292968B2
Behavioral threat detection definition and compilation
US12675572B2
Behavioral Threat Detection Definition and Compilation
US20240354400A1
