[go: up one dir, main page]

CN114721638A - A kind of query logic code generation method and device - Google Patents

A kind of query logic code generation method and device Download PDF

Info

Publication number
CN114721638A
CN114721638A CN202210404865.9A CN202210404865A CN114721638A CN 114721638 A CN114721638 A CN 114721638A CN 202210404865 A CN202210404865 A CN 202210404865A CN 114721638 A CN114721638 A CN 114721638A
Authority
CN
China
Prior art keywords
logic code
target
code
template
target logic
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210404865.9A
Other languages
Chinese (zh)
Inventor
胡广伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lazas Network Technology Shanghai Co Ltd
Original Assignee
Lazas Network Technology Shanghai 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 Lazas Network Technology Shanghai Co Ltd filed Critical Lazas Network Technology Shanghai Co Ltd
Priority to CN202210404865.9A priority Critical patent/CN114721638A/en
Publication of CN114721638A publication Critical patent/CN114721638A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/31Programming languages or programming paradigms
    • G06F8/313Logic programming, e.g. PROLOG programming language
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/242Query formulation
    • G06F16/2433Query languages

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Stored Programmes (AREA)

Abstract

本申请提供本申请实施例提供一种查询逻辑代码生成方法,获取针对逻辑代码模板的需求信息,根据该需求信息,确定生成该查询逻辑代码需要的多个目标逻辑代码模板。其中,每个目标逻辑代码模板对应于查询线上到线下服务的目标指标所需的一个子功能。从服务端获得多个目标逻辑代码模板,根据多个目标逻辑代码模板,生成用于查询线上到线下服务的目标指标的查询逻辑代码。从服务端获取满足目标指标的子功能的目标逻辑代码模板,通过获得的多个目标逻辑代码模板生成查询逻辑代码,相比编辑代码的人员完整编辑代码生成查询逻辑代码的方法,提升了编辑代码的人员的代码编辑效率。

Figure 202210404865

The present application provides a query logic code generation method provided by the embodiments of the present application, which acquires demand information for a logic code template, and determines a plurality of target logic code templates required to generate the query logic code according to the demand information. Wherein, each target logic code template corresponds to a sub-function required for querying target indicators of online-to-offline services. Obtain multiple target logic code templates from the server, and generate query logic codes for querying target indicators of online to offline services according to the multiple target logic code templates. Obtain the target logic code template that satisfies the sub-function of the target index from the server, and generate the query logic code through the obtained multiple target logic code templates. Compared with the method of editing the code completely to generate the query logic code, the editing code is improved. code editing efficiency of people.

Figure 202210404865

Description

一种查询逻辑代码生成方法及装置A kind of query logic code generation method and device

技术领域technical field

本申请涉及计算机技术领域,尤其涉及一种查询逻辑代码生成方法、装置及电子设备。本申请同时还涉及一种应用于生成查询逻辑代码场景的信息处理方法、装置及电子设备。The present application relates to the field of computer technology, and in particular, to a query logic code generation method, device, and electronic device. The present application also relates to an information processing method, an apparatus and an electronic device applied to a scenario of generating a query logic code.

背景技术Background technique

目前,各个行业基于互联网技术生成自己的服务系统,用户使用服务系统查询需要的服务信息。例如,服务人员在时空数据的可视化平台查询相关的运单情况,实现上述功能,需要编辑代码的人员编写查询逻辑代码。At present, each industry generates its own service system based on Internet technology, and users use the service system to query the required service information. For example, service personnel query the relevant waybills on the visualization platform of spatiotemporal data to realize the above functions, and the personnel who need to edit the code write the query logic code.

现有技术中,编辑代码需要编写人员人工逐个编辑代码,然后对代码进行测试,测试成功后投入服务系统中,供服务人员实现查询相关服务信息。In the prior art, to edit codes, the programmers need to manually edit the codes one by one, and then test the codes. After the tests are successful, they are put into the service system for the service personnel to query related service information.

然而,上述通过编辑代码人员逐个编辑代码并测试代码的方式,编辑代码人员的编辑代码工作繁重,导致生成查询逻辑代码的效率低下。因此,如何提升生成查询逻辑代码的效率是需要解决的问题。However, in the above-mentioned manner of editing the codes one by one and testing the codes by the code editors, the code editing work of the code editors is heavy, resulting in low efficiency in generating the query logic code. Therefore, how to improve the efficiency of generating query logic code is a problem that needs to be solved.

发明内容SUMMARY OF THE INVENTION

本申请实施例提供一种查询逻辑代码生成方法,以提升生成查询逻辑代码的效率。本申请实施例还涉及一种查询逻辑代码生成装置及电子设备,本申请实施例同时涉及一种应用于生成查询逻辑代码场景的信息处理方法、装置及电子设备。The embodiments of the present application provide a method for generating query logic codes, so as to improve the efficiency of generating query logic codes. The embodiments of the present application also relate to a query logic code generating apparatus and electronic equipment, and the embodiments of the present application also relate to an information processing method, an apparatus, and an electronic device applied to a scenario of generating a query logic code.

本申请实施例提供一种查询逻辑代码生成方法,包括:获得针对逻辑代码模板的需求信息;根据所述需求信息,向服务端发送用于请求获得多个目标逻辑代码模板的第一请求消息,所述多个目标逻辑代码模板分别对应于查询线上到线下服务的目标指标所需的子功能,每个目标逻辑代码模板包括执行所需的子功能的基础代码;获得所述服务端返回的所述多个目标逻辑代码模板;根据所述多个目标逻辑代码模板,生成用于查询线上到线下服务的目标指标的查询逻辑代码。An embodiment of the present application provides a query logic code generation method, including: obtaining demand information for a logic code template; sending, according to the demand information, a first request message for requesting to obtain multiple target logic code templates to a server, The multiple target logic code templates respectively correspond to the sub-functions required for querying the target indicators of the online-to-offline service, and each target logic code template includes the basic code for executing the required sub-functions; obtaining the server returns the plurality of target logic code templates; and according to the plurality of target logic code templates, generate query logic codes for querying target indicators of online-to-offline services.

可选的,还包括:获得针对每个目标逻辑代码模板的编辑代码;所述根据所述多个目标逻辑代码模板,生成用于查询线上到线下服务的目标指标的查询逻辑代码,包括:根据每个目标逻辑代码模板的基础代码和编辑代码,生成每个目标逻辑代码模板对应的目标逻辑代码实例;根据生成的多个目标逻辑代码实例,生成用于查询线上到线下服务的目标指标的查询逻辑代码。Optionally, it also includes: obtaining editing codes for each target logic code template; generating a query logic code for querying the target indicators of the online-to-offline service according to the multiple target logic code templates, including: : Generate a target logic code instance corresponding to each target logic code template according to the basic code and editing code of each target logic code template; The query logic code of the target indicator.

可选的,所述根据所述需求信息,向服务端发送用于请求获得多个目标逻辑代码模板的第一请求消息,包括:根据所述需求信息,获取所述目标指标的标识信息;向所述服务端发送包括所述目标指标的标识信息的所述第一请求消息。Optionally, the sending, according to the demand information, to the server a first request message for requesting to obtain multiple target logic code templates includes: obtaining the identification information of the target indicators according to the demand information; The server sends the first request message including identification information of the target indicator.

可选的,所述根据所述需求信息,向服务端发送用于请求获得多个目标逻辑代码模板的第一请求消息,包括:根据所述需求信息,向服务端发送用于请求获得用于实现每个子功能对应需要的逻辑代码模板的第二请求消息;获得服务端返回的针对每个子功能的至少一种候选逻辑代码模板的标识信息;获得针对每个子功能的至少一种候选逻辑代码模板的标识信息的选择操作,将被选中的候选逻辑代码模板的标识信息作为针对实现每个子功能的目标逻辑代码模板的标识信息,向所述服务端发送用于请求获得多个目标逻辑代码模板的标识信息对应的目标逻辑代码模板的第一请求消息。Optionally, the sending a first request message for requesting to obtain multiple target logic code templates to the server according to the requirement information includes: Implement the second request message of the logic code template required for each sub-function; obtain the identification information of at least one candidate logic code template for each sub-function returned by the server; obtain at least one candidate logic code template for each sub-function The selection operation of the identification information, the identification information of the selected candidate logic code template is used as the identification information for the target logic code template for realizing each sub-function, and the server for requesting to obtain a plurality of target logic code templates is sent to the server. The first request message of the target logic code template corresponding to the identification information.

可选的,还包括:获得所述服务端返回的用于表示未查询到用于实现所述目标指标所需的子功能对应的目标逻辑代码模板的结果消息;在目标页面展示针对所述目标逻辑代码模板的获取失败信息;响应于检测到针对所述目标页面的编辑操作,获得用于实现所述目标指标所需的子功能对应的目标逻辑代码实例。Optionally, it also includes: obtaining a result message returned by the server to indicate that the target logic code template corresponding to the sub-function required for realizing the target indicator has not been queried; displaying on the target page the target logic code template for the target Obtaining failure information of a logic code template; in response to detecting an editing operation on the target page, obtaining a target logic code instance corresponding to a sub-function required for realizing the target indicator.

可选的,所述根据生成的多个目标逻辑代码实例,生成用于查询线上到线下服务的目标指标的查询逻辑代码,包括:获取每个目标逻辑代码模板实例包括的执行顺序参数;根据每个目标逻辑代码模板实例包括的执行顺序参数,对所述多个目标逻辑代码模板实例进行排序,获得排序后的目标逻辑代码实例,作为用于查询线上到线下服务的目标指标的查询逻辑代码。Optionally, generating the query logic code for querying the target indicator of the online-to-offline service according to the generated multiple target logic code instances includes: obtaining an execution sequence parameter included in each target logic code template instance; Sort the multiple target logic code template instances according to the execution order parameter included in each target logic code template instance, and obtain the sorted target logic code instances, which are used as the target indicators for querying online to offline services. Query logic code.

可选的,所述根据生成的多个目标逻辑代码实例,生成用于查询线上到线下服务的目标指标的查询逻辑代码,包括:根据每个目标逻辑代码模板实例所实现的子功能之间的逻辑关系,获取每个目标逻辑代码模板的相邻目标逻辑代码模板实例;将每个目标逻辑代码模板和相邻目标逻辑代码模板实例进行排列组合,获得用于查询线上到线下服务的目标指标的查询逻辑代码。Optionally, generating the query logic code for querying the target indicators of the online-to-offline service according to the generated multiple target logic code instances includes: according to one of the sub-functions implemented by each target logic code template instance. To obtain the adjacent target logic code template instance of each target logic code template; arrange and combine each target logic code template and adjacent target logic code template instances to obtain the online-to-offline service for querying The query logic code of the target indicator.

可选的,所述根据每个目标逻辑代码模板的基础代码和编辑代码,生成每个目标逻辑代码模板对应的目标逻辑代码实例,包括:将每个基础代码所需要的功能和每个编辑代码所实现的功能进行匹配,获取每个基础代码对应的编辑代码;根据每个目标逻辑代码中的每个基础代码和每个基础代码对应的编辑代码,生成每个目标逻辑代码模板对应的目标逻辑代码实例。Optionally, generating a target logic code instance corresponding to each target logic code template according to the basic code and editing code of each target logic code template, including: combining the functions required by each basic code and each editing code. The implemented functions are matched, and the editing code corresponding to each basic code is obtained; according to each basic code in each target logic code and the editing code corresponding to each basic code, the target logic corresponding to each target logic code template is generated Code example.

可选的,还包括:判断所述编辑代码所实现的功能是否为所述基础代码所需要的功能;若是,则确定所述基础代码与所述编辑代码匹配;若否,则展示用于表示所述基础代码与所述编辑代码不匹配的提示信息,获得针对所述基础代码的修改后编辑代码,继续执行判断所述编辑代码所实现的功能是否为所述基础代码所需要的功能的步骤。Optionally, it also includes: judging whether the function implemented by the editing code is the function required by the basic code; if so, determining that the basic code matches the editing code; The prompt information that the basic code does not match the editing code, obtain the modified editing code for the basic code, and continue to perform the step of judging whether the function realized by the editing code is the function required by the basic code .

可选的,所述查询线上到线下服务的目标指标包括查询目标区域的运单情况;所述根据生成的多个目标逻辑代码实例,生成用于查询线上到线下服务的目标指标的查询逻辑代码,包括:配置搜索目标逻辑代码实例为第一执行逻辑代码实例,所述第一执行逻辑代码实例用于根据针对目标指标的传入参数,获得针对所述目标指标的初步指标搜索结果;配置查询目标逻辑代码实例为第二执行逻辑代码实例,所述第二执行逻辑代码实例用于将所述初步指标搜索结果按照筛选条件进行查询,获得指标查询结果;配置过滤目标逻辑代码实例为第三执行逻辑代码实例,所述第三执行逻辑代码实例用于对所述指标查询结果按照预设的过滤条件进行过滤,获得所述目标指标;根据所述第一执行逻辑代码实例,所述第二执行逻辑代码实例以及所述第三执行逻辑代码实例,生成用于查询线上到线下服务的目标指标的查询逻辑代码。Optionally, the querying the target indicator of the online-to-offline service includes querying the waybill situation of the target area; the generated target indicator for querying the online-to-offline service is generated according to the generated multiple target logic code instances. The query logic code includes: configuring the search target logic code instance as a first execution logic code instance, and the first execution logic code instance is used to obtain a preliminary index search result for the target indicator according to the incoming parameters for the target indicator The configuration query target logic code instance is the second execution logic code instance, and the second execution logic code instance is used to query the preliminary index search results according to the screening conditions to obtain the index query results; the configuration filter target logic code instance is The third execution logic code instance is used to filter the index query result according to preset filter conditions to obtain the target index; according to the first execution logic code instance, the The second execution logic code instance and the third execution logic code instance generate query logic code for querying the target indicator of the online-to-offline service.

可选的,所述基础代码包括如下至少一种代码:函数名称代码,函数类型代码,字符串函数结果代码;所述编辑代码包括如下至少一种代码类型:针对每个目标逻辑代码模板的执行顺序代码,填充数据代码。Optionally, the basic code includes at least one of the following codes: function name code, function type code, and string function result code; the editing code includes at least one of the following code types: for each target logic code template execution Sequence code, fill data code.

本申请实施例还提供一种应用于生成查询逻辑代码场景的信息处理方法,包括:获得客户端发送的用于请求获得多个目标逻辑代码模板的第一请求消息,所述多个目标逻辑代码模板分别对应于查询线上到线下服务的目标指标所需的子功能;根据所述第一请求消息,查询所述多个目标逻辑代码模板;向所述客户端返回所述多个目标逻辑代码模板。The embodiment of the present application also provides an information processing method applied to a scenario of generating a query logic code, including: obtaining a first request message sent by a client for requesting to obtain multiple target logic code templates, the multiple target logic code templates The templates respectively correspond to the sub-functions required to query the target indicators of the online-to-offline service; according to the first request message, query the multiple target logic code templates; return the multiple target logics to the client code template.

可选的,所述第一请求消息包括所述目标指标的标识信息;所述根据所述第一请求消息,查询所述多个目标逻辑代码模板,包括:根据所述目标指标的标识信息,查询所述多个目标逻辑代码模板。Optionally, the first request message includes identification information of the target indicator; the querying the multiple target logic code templates according to the first request message includes: according to the identification information of the target indicator, The plurality of target logic code templates are queried.

可选的,还包括:获得所述客户端发送的用于请求获得用于实现每个子功能对应需要的逻辑代码模板的第二请求消息;根据所述第二请求消息,查询用于实现每个子功能对应需要的逻辑代码模板,获得针对每个子功能的至少一种候选逻辑代码模板的标识信息;向所述客户端返回针对每个子功能的至少一种候选逻辑代码模板的标识信息;所述获得客户端发送的用于请求获得多个目标逻辑代码模板的第一请求消息,包括:获得所述客户端发送的用于请求获得多个目标逻辑代码模板的标识信息对应的目标逻辑代码模板的第一请求消息,每个目标逻辑代码模板的标识信息为针对每个子功能的至少一种候选逻辑代码模板中被选中的逻辑代码模板的标识信息。Optionally, it also includes: obtaining a second request message sent by the client for requesting to obtain a logic code template corresponding to each sub-function; The function corresponds to the required logic code template, and the identification information of at least one candidate logic code template for each sub-function is obtained; the identification information of at least one candidate logic code template for each sub-function is returned to the client; the obtaining The first request message sent by the client for requesting to obtain multiple target logic code templates includes: obtaining the first request message of the target logic code template corresponding to the identification information sent by the client for requesting to obtain multiple target logic code templates. In a request message, the identification information of each target logic code template is the identification information of the selected logic code template among the at least one candidate logic code template for each sub-function.

可选的,还包括:如果未查询到所述多个目标逻辑代码模板中的至少一个目标逻辑代码模板,则向所述客户端发送用于表示未查询到用于实现所述目标指标所需的子功能对应的目标逻辑代码模板的结果消息。Optionally, it also includes: if at least one target logic code template in the plurality of target logic code templates is not queried, sending a message to the client indicating that the information required for realizing the target indicator has not been queried. The result message of the sub-function corresponding to the target logic code template.

本申请实施例还提供一种查询逻辑代码生成装置,包括:第一获得单元,用于获得针对逻辑代码模板的需求信息;第一请求消息发送单元,用于根据所述需求信息,向服务端发送用于请求获得多个目标逻辑代码模板的第一请求消息,所述多个目标逻辑代码模板分别对应于查询线上到线下服务的目标指标所需的子功能,每个目标逻辑代码模板包括执行所需的子功能的基础代码;第二获得单元,用于获得所述服务端返回的所述多个目标逻辑代码模板;生成单元,用于根据所述多个目标逻辑代码模板,生成用于查询线上到线下服务的目标指标的查询逻辑代码。An embodiment of the present application further provides an apparatus for generating a query logic code, including: a first obtaining unit, configured to obtain demand information for a logic code template; and a first request message sending unit, configured to send a request message to a server according to the demand information Send a first request message for requesting to obtain a plurality of target logic code templates, the plurality of target logic code templates respectively correspond to the sub-functions required for querying target indicators of online to offline services, each target logic code template Including the basic code for executing the required sub-function; the second obtaining unit is used for obtaining the multiple target logic code templates returned by the server; the generating unit is used for generating according to the multiple target logic code templates The query logic code used to query the target indicators of online-to-offline services.

可选的,还包括:第三获得单元,用于获得针对每个目标逻辑代码模板的编辑代码;所述生成单元包括第一生成子单元和第二生成子单元,所述第一生成子单元用于根据每个目标逻辑代码模板的基础代码和编辑代码,生成每个目标逻辑代码模板对应的目标逻辑代码实例;所述第二生成子单元用于根据生成的多个目标逻辑代码实例,生成用于查询线上到线下服务的目标指标的查询逻辑代码。Optionally, it also includes: a third obtaining unit for obtaining editing codes for each target logic code template; the generating unit includes a first generating subunit and a second generating subunit, the first generating subunit For generating a target logic code instance corresponding to each target logic code template according to the base code and editing code of each target logic code template; the second generation subunit is used to generate a plurality of target logic code instances according to the generated The query logic code used to query the target indicators of online-to-offline services.

可选的,所述第一请求消息发送单元具体用于根据所述需求信息,获取所述目标指标的标识信息;向所述服务端发送包括所述目标指标的标识信息的所述第一请求消息。Optionally, the first request message sending unit is specifically configured to acquire the identification information of the target indicator according to the demand information; send the first request including the identification information of the target indicator to the server information.

可选的,所述第一请求消息发送单元具体用于根据所述需求信息,向服务端发送用于请求获得用于实现每个子功能对应需要的逻辑代码模板的第二请求消息;获得服务端返回的针对每个子功能的至少一种候选逻辑代码模板的标识信息;获得针对每个子功能的至少一种候选逻辑代码模板的标识信息的选择操作,将被选中的候选逻辑代码模板的标识信息作为针对实现每个子功能的目标逻辑代码模板的标识信息,向所述服务端发送用于请求获得多个目标逻辑代码模板的标识信息对应的目标逻辑代码模板的第一请求消息。Optionally, the first request message sending unit is specifically configured to, according to the demand information, send to the server a second request message for requesting to obtain a logic code template required by each sub-function; obtain the server The returned identification information of at least one candidate logic code template for each sub-function; the selection operation for obtaining identification information of at least one candidate logic code template for each sub-function, using the identification information of the selected candidate logic code template as For the identification information of the target logic code template implementing each sub-function, a first request message for requesting to obtain target logic code templates corresponding to the identification information of multiple target logic code templates is sent to the server.

可选的,还包括:第四获得单元,用于获得所述服务端返回的用于表示未查询到用于实现所述目标指标所需的子功能对应的目标逻辑代码模板的结果消息;展示单元,用于在目标页面展示针对所述目标逻辑代码模板的获取失败信息;第五获得单元,用于响应于检测到针对所述目标页面的编辑操作,获得用于实现所述目标指标所需的子功能对应的目标逻辑代码实例。Optionally, it also includes: a fourth obtaining unit, configured to obtain a result message returned by the server and used to indicate that the target logic code template corresponding to the sub-function required for realizing the target indicator has not been queried; showing a unit, used for displaying the acquisition failure information for the target logic code template on the target page; a fifth obtaining unit, used for responding to detection of an editing operation for the target page, obtaining the required information for achieving the target indicator The target logic code instance corresponding to the sub-function of .

可选的,所述第二生成子单元具体用于获取每个目标逻辑代码模板实例包括的执行顺序参数;根据每个目标逻辑代码模板实例包括的执行顺序参数,对所述多个目标逻辑代码模板实例进行排序,获得排序后的目标逻辑代码实例,作为用于查询线上到线下服务的目标指标的查询逻辑代码。Optionally, the second generating subunit is specifically configured to obtain the execution sequence parameter included in each target logic code template instance; according to the execution sequence parameter included in each target logic code template instance, the The template instances are sorted, and the sorted target logic code instances are obtained, which are used as query logic codes for querying target indicators of online to offline services.

可选的,所述第二生成子单元具体用于根据每个目标逻辑代码模板实例所实现的子功能之间的逻辑关系,获取每个目标逻辑代码模板的相邻目标逻辑代码模板实例;将每个目标逻辑代码模板和相邻目标逻辑代码模板实例进行排列组合,获得用于查询线上到线下服务的目标指标的查询逻辑代码。Optionally, the second generating subunit is specifically used to obtain the adjacent target logic code template instance of each target logic code template according to the logical relationship between the sub-functions implemented by each target logic code template instance; Each target logic code template and adjacent target logic code template instances are arranged and combined to obtain query logic codes for querying target indicators of online-to-offline services.

可选的,所述第一生成子单元具体用于将每个基础代码所需要的功能和每个编辑代码所实现的功能进行匹配,获取每个基础代码对应的编辑代码;根据每个目标逻辑代码中的每个基础代码和每个基础代码对应的编辑代码,生成每个目标逻辑代码模板对应的目标逻辑代码实例。Optionally, the first generating subunit is specifically used to match the function required by each basic code with the function implemented by each editing code, and obtain the editing code corresponding to each basic code; according to each target logic For each basic code in the code and the editing code corresponding to each basic code, a target logic code instance corresponding to each target logic code template is generated.

可选的,还包括:判断单元,用于判断所述编辑代码所实现的功能是否为所述基础代码所需要的功能;若所述判断单元的结果为是,则第一判断结果单元用于确定所述基础代码与所述编辑代码匹配;若所述判断单元的结果为否,则第二判断结果单元用于展示用于表示所述基础代码与所述编辑代码不匹配的提示信息,获得针对所述基础代码的修改后编辑代码,继续执行判断所述编辑代码所实现的功能是否为所述基础代码所需要的功能的步骤。Optionally, it also includes: a judging unit for judging whether the function implemented by the editing code is the function required by the basic code; if the result of the judging unit is yes, the first judging result unit is used for It is determined that the basic code matches the editing code; if the result of the judgment unit is no, the second judgment result unit is used to display prompt information indicating that the basic code does not match the editing code, and obtain For the modified editing code of the basic code, continue to perform the step of judging whether the function implemented by the editing code is the function required by the basic code.

可选的,所述查询线上到线下服务的目标指标包括查询目标区域的运单情况;所述第二生成子单元包括第一配置单元,第二配置单元,第三配置单元,和合成单元,所述第一配置单元用于配置搜索目标逻辑代码实例为第一执行逻辑代码实例,所述第一执行逻辑代码实例用于根据针对目标指标的传入参数,获得针对所述目标指标的初步指标搜索结果;所述第二配置单元用于配置查询目标逻辑代码实例为第二执行逻辑代码实例,所述第二执行逻辑代码实例用于将所述初步指标搜索结果按照筛选条件进行查询,获得指标查询结果;所述第三配置单元用于配置过滤目标逻辑代码实例为第三执行逻辑代码实例,所述第三执行逻辑代码实例用于对所述指标查询结果按照预设的过滤条件进行过滤,获得所述目标指标;所述合成单元用于根据所述第一执行逻辑代码实例,所述第二执行逻辑代码实例以及所述第三执行逻辑代码实例,生成用于查询线上到线下服务的目标指标的查询逻辑代码。Optionally, the querying target indicators of the online-to-offline service includes querying the waybill situation of the target area; the second generating subunit includes a first configuration unit, a second configuration unit, a third configuration unit, and a synthesis unit. , the first configuration unit is used to configure the search target logic code instance to be the first execution logic code instance, and the first execution logic code instance is used to obtain preliminary information for the target indicator according to the incoming parameters for the target indicator Index search results; the second configuration unit is used to configure the query target logic code instance as a second execution logic code instance, and the second execution logic code instance is used to query the preliminary index search results according to the filtering conditions, and obtain The index query result; the third configuration unit is used to configure the filtering target logic code instance as a third execution logic code instance, and the third execution logic code instance is used to filter the index query result according to preset filter conditions , to obtain the target indicator; the synthesis unit is configured to generate an online-to-offline query based on the first execution logic code instance, the second execution logic code instance and the third execution logic code instance The query logic code for the target indicator of the service.

可选的,所述基础代码包括如下至少一种代码:函数名称代码,函数类型代码,字符串函数结果代码;所述编辑代码包括如下至少一种代码类型:针对每个目标逻辑代码模板的执行顺序代码,填充数据代码。Optionally, the basic code includes at least one of the following codes: function name code, function type code, and string function result code; the editing code includes at least one of the following code types: for each target logic code template execution Sequence code, fill data code.

本申请实施例还提供一种应用于生成查询逻辑代码场景的信息处理装置,包括:第一请求消息获得单元,用于获得客户端发送的用于请求获得多个目标逻辑代码模板的第一请求消息,所述多个目标逻辑代码模板分别对应于查询线上到线下服务的目标指标所需的子功能;第一查询单元,用于根据所述第一请求消息,查询所述多个目标逻辑代码模板;第一发送单元,用于向所述客户端返回所述多个目标逻辑代码模板。The embodiment of the present application also provides an information processing device applied to a scenario of generating a query logic code, including: a first request message obtaining unit configured to obtain a first request sent by a client for requesting to obtain multiple target logic code templates message, the multiple target logic code templates respectively correspond to the sub-functions required for querying the target indicators of the online-to-offline service; the first query unit is configured to query the multiple targets according to the first request message a logic code template; a first sending unit, configured to return the multiple target logic code templates to the client.

可选的,所述第一请求消息包括所述目标指标的标识信息;所述查询单元具体用于根据所述目标指标的标识信息,查询所述多个目标逻辑代码模板。Optionally, the first request message includes identification information of the target indicator; the query unit is specifically configured to query the plurality of target logic code templates according to the identification information of the target indicator.

可选的,还包括:第二请求消息获得单元,用于获得所述客户端发送的用于请求获得用于实现每个子功能对应需要的逻辑代码模板的第二请求消息;第二查询单元,用于根据所述第二请求消息,查询用于实现每个子功能对应需要的逻辑代码模板,获得针对每个子功能的至少一种候选逻辑代码模板的标识信息;返回单元,用于向所述客户端返回针对每个子功能的至少一种候选逻辑代码模板的标识信息;所述第一请求消息获得单元具体用于获得所述客户端发送的用于请求获得多个目标逻辑代码模板的标识信息对应的目标逻辑代码模板的第一请求消息,每个目标逻辑代码模板的标识信息为针对每个子功能的至少一种候选逻辑代码模板中被选中的逻辑代码模板的标识信息。Optionally, it also includes: a second request message obtaining unit for obtaining a second request message sent by the client and used for requesting to obtain a logic code template corresponding to each sub-function; a second query unit, is used to query the logic code template required for realizing each sub-function according to the second request message, and obtain the identification information of at least one candidate logic code template for each sub-function; a return unit is used to report to the customer The terminal returns the identification information of at least one candidate logic code template for each sub-function; the first request message obtaining unit is specifically used to obtain the identification information corresponding to the identification information sent by the client for requesting to obtain multiple target logic code templates The first request message of the target logic code template, the identification information of each target logic code template is the identification information of the selected logic code template in the at least one candidate logic code template for each sub-function.

可选的,还包括:第二发送单元,用于如果未查询到所述多个目标逻辑代码模板中的至少一个目标逻辑代码模板,则向所述客户端发送用于表示未查询到用于实现所述目标指标所需的子功能对应的目标逻辑代码模板的结果消息。Optionally, it also includes: a second sending unit, configured to send to the client if at least one target logic code template in the plurality of target logic code templates is not queried The result message of the target logic code template corresponding to the sub-function required to realize the target indicator.

本申请实施例还提供一种电子设备,所述电子设备包括处理器和存储器;所述存储器中存储有计算机程序,所述处理器运行所述计算机程序后,执行上述方法。An embodiment of the present application further provides an electronic device, the electronic device includes a processor and a memory; a computer program is stored in the memory, and the processor executes the above method after running the computer program.

本申请实施例还提供一种计算机存储介质,所述计算机存储介质存储有计算机程序,所述计算机程序被所述处理器运行后,执行上述方法。An embodiment of the present application further provides a computer storage medium, where the computer storage medium stores a computer program, and after the computer program is executed by the processor, the foregoing method is executed.

与现有技术相比,本申请具有以下优点:Compared with the prior art, the present application has the following advantages:

本申请实施例提供一种查询逻辑代码生成方法,包括:获得针对逻辑代码模板的需求信息;根据所述需求信息,向服务端发送用于请求获得多个目标逻辑代码模板的第一请求消息,所述多个目标逻辑代码模板分别对应于查询线上到线下服务的目标指标所需的子功能,每个目标逻辑代码模板包括执行所需的子功能的基础代码;获得所述服务端返回的所述多个目标逻辑代码模板;根据所述多个目标逻辑代码模板,生成用于查询线上到线下服务的目标指标的查询逻辑代码。An embodiment of the present application provides a query logic code generation method, including: obtaining demand information for a logic code template; sending, according to the demand information, a first request message for requesting to obtain multiple target logic code templates to a server, The multiple target logic code templates respectively correspond to the sub-functions required for querying the target indicators of the online-to-offline service, and each target logic code template includes the basic code for executing the required sub-functions; obtaining the server returns the plurality of target logic code templates; and according to the plurality of target logic code templates, generate query logic codes for querying target indicators of online-to-offline services.

上述方法中,获取针对逻辑代码模板的需求信息,根据该需求信息,确定生成该查询逻辑代码需要的多个目标逻辑代码模板。其中,每个目标逻辑代码模板对应于查询线上到线下服务的目标指标所需的一个子功能。从服务端获得多个目标逻辑代码模板,根据多个目标逻辑代码模板,生成用于查询线上到线下服务的目标指标的查询逻辑代码。从服务端获取满足目标指标的子功能的目标逻辑代码模板,通过获得的多个目标逻辑代码模板生成查询逻辑代码,相比编辑代码的人员完整编辑代码生成查询逻辑代码的方法,提升了编辑代码的人员的代码编辑效率。In the above method, the requirement information for the logic code template is obtained, and according to the requirement information, a plurality of target logic code templates required for generating the query logic code are determined. Wherein, each target logic code template corresponds to a sub-function required for querying target indicators of online-to-offline services. Obtain multiple target logic code templates from the server, and generate query logic codes for querying target indicators of online to offline services according to the multiple target logic code templates. Obtain the target logic code template that satisfies the sub-function of the target index from the server, and generate the query logic code by using the obtained multiple target logic code templates. Compared with the method of editing the code completely to generate the query logic code, the editing code is improved. code editing efficiency of people.

附图说明Description of drawings

图1为本申请提供的查询逻辑代码生成方法的应用场景示意图。FIG. 1 is a schematic diagram of an application scenario of the query logic code generation method provided by the present application.

图2为本申请第一实施例提供的一种查询逻辑代码生成方法的流程图。FIG. 2 is a flowchart of a query logic code generation method provided by the first embodiment of the present application.

图3为本申请第二实施例中提供的一种应用于生成查询逻辑代码场景的信息处理方法的流程图。FIG. 3 is a flowchart of an information processing method applied to a scenario of generating a query logic code according to the second embodiment of the present application.

图4为本申请第三实施例中提供的一种查询逻辑代码生成装置的示意图。FIG. 4 is a schematic diagram of an apparatus for generating a query logic code provided in a third embodiment of the present application.

图5为本申请第四实施例中提供的一种应用于生成查询逻辑代码场景的信息处理装置的示意图。FIG. 5 is a schematic diagram of an information processing apparatus applied to a scenario of generating a query logic code according to a fourth embodiment of the present application.

图6为本申请第五实施例中提供的一种电子设备的示意图。FIG. 6 is a schematic diagram of an electronic device provided in a fifth embodiment of the present application.

具体实施方式Detailed ways

在下面的描述中阐述了很多具体细节以便于充分理解本申请。但是本申请能够以很多不同于在此描述的其它方式来实施,本领域技术人员可以在不违背本申请内涵的情况下做类似推广,因此本申请不受下面公开的具体实施的限制。In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application. However, the present application can be implemented in many other ways different from those described herein, and those skilled in the art can make similar promotions without violating the connotation of the present application. Therefore, the present application is not limited by the specific implementation disclosed below.

本申请中使用的术语是仅仅出于对特定实施例描述的目的,而非旨在限制本申请。在本申请中和所附权利要求书中所使用的描述方式例如:“一种”、“第一”、和“第二”等,并非对数量上的限定或先后顺序上的限定,而是用来将同一类型的信息彼此区分。The terminology used in this application is for the purpose of describing particular embodiments only and is not intended to limit the application. The descriptions used in this application and the appended claims, such as "a", "first", and "second", etc., are not limitations on quantity or sequence, but Used to distinguish information of the same type from each other.

目前,各个行业基于互联网技术生成自己的服务系统,用户使用服务系统查询需要的服务信息。例如,服务人员在时空数据的可视化平台查询相关的运单情况,实现上述功能,需要编辑代码的人员编写查询逻辑代码。At present, each industry generates its own service system based on Internet technology, and users use the service system to query the required service information. For example, service personnel query the relevant waybills on the visualization platform of spatiotemporal data to realize the above functions, and the personnel who need to edit the code write the query logic code.

现有技术中,编辑代码需要编写人员人工逐个编辑代码,然后对代码进行测试,测试成功后投入服务系统中,供服务人员实现查询相关服务信息。In the prior art, to edit codes, the programmers need to manually edit the codes one by one, and then test the codes. After the tests are successful, they are put into the service system for the service personnel to query related service information.

然而,上述通过编辑代码人员逐个编辑代码并测试代码的方式,编辑代码人员的编辑代码工作繁重,导致生成查询逻辑代码的效率低下。因此,如何提升生成查询逻辑代码的效率是需要解决的问题。However, in the above-mentioned manner of editing the codes one by one and testing the codes by the code editors, the code editing work of the code editors is heavy, resulting in low efficiency in generating the query logic code. Therefore, how to improve the efficiency of generating query logic code is a problem that needs to be solved.

为了解决上述技术问题,本申请提供了多个实施例。下面分别介绍本申请提供的各个实施例。In order to solve the above technical problems, the present application provides multiple embodiments. Each of the embodiments provided by the present application will be introduced separately below.

请参照图1,其为本申请提供的查询逻辑代码生成方法的应用场景示意图。Please refer to FIG. 1 , which is a schematic diagram of an application scenario of the query logic code generation method provided by the present application.

在本场景实施例中,以服务人员查询目标区域的运单超时情况为例进行说明。服务人员在服务人员所使用的终端输入查询条件,例如,以目标区域的运单超时情况为查询条件,获得服务人员所使用的终端展示的运单超时情况的地图展示结果消息。其中,服务人员所使用的终端根据服务人员选择的查询条件,根据编辑代码人员编写的已经成功运行的查询逻辑代码,获得该查询条件对应的查询结果。In the embodiment of this scenario, the time-out situation of the service personnel querying the waybill of the target area is taken as an example for description. The service staff enters query conditions on the terminal used by the service staff, for example, taking the overtime condition of the waybill in the target area as the search condition, and obtains a map display result message of the overrun condition of the waybill displayed by the terminal used by the service staff. The terminal used by the service staff obtains the query result corresponding to the query condition according to the query condition selected by the service staff and according to the query logic code written by the code editor that has been successfully executed.

其中,编辑代码人员编写的查询逻辑代码通过如下方法获得:Among them, the query logic code written by the code editor is obtained by the following methods:

在本场景实施例中,编辑代码人员编写查询逻辑代码,用于查询线上到线下(O2O,Online to Offline)服务的目标指标。为了实现查询该目标指标,编辑代码人员需要预先构思为了实现该查询功能对应的多个逻辑代码,每个逻辑代码对应实现一个查询目标指标所需的子功能,将多个逻辑代码按照每个逻辑代码的执行参数顺序排序,排序后的逻辑代码生成查询逻辑代码。In the embodiment of this scenario, a code editor writes a query logic code for querying the target indicators of an online to offline (O2O, Online to Offline) service. In order to query the target indicator, code editors need to preconceive multiple logic codes corresponding to the query function. Each logic code corresponds to a sub-function required to realize a query target indicator. The execution parameters of the code are sorted in order, and the sorted logic code generates query logic code.

因此,客户端101检测到编辑代码人员提出的针对逻辑代码模板的需求信息,根据该需求信息,客户端101向服务端102发送用于请求获取多个目标逻辑代码模板的第一请求消息。其中,客户端101是指编辑代码人员所使用的客户端终端。服务端102根据第一请求消息,向客户端101发送多个目标逻辑代码模板。Therefore, the client 101 detects the demand information for the logic code template proposed by the code editor, and according to the demand information, the client 101 sends the server 102 a first request message for requesting acquisition of multiple target logic code templates. The client 101 refers to a client terminal used by code editors. The server 102 sends a plurality of target logic code templates to the client 101 according to the first request message.

其中,目标逻辑代码模板是指服务端存储的已经成功运行的逻辑代码模板,例如,根据历史逻辑代码生成的逻辑代码模板。已经成功运行的逻辑代码模板属于已经经过测试的代码,运行时不存在逻辑错误的问题。The target logic code template refers to a logic code template that has been successfully executed and stored in the server, for example, a logic code template generated according to historical logic codes. The logic code template that has been successfully run belongs to the code that has been tested, and there is no problem of logic error when running.

本申请实施例中,获取的多个目标逻辑代码模板分别对应于查询线上到线下服务系统的目标指标所需要的子功能。根据获得的多个目标逻辑代码模板生成查询逻辑代码。In the embodiment of the present application, the acquired multiple target logic code templates respectively correspond to the sub-functions required for querying the target indicators of the online-to-offline service system. Generate query logic code according to the obtained multiple target logic code templates.

此外,目标逻辑代码模板包括基础代码,基础代码包括如下至少一种代码:函数名称代码,函数类型代码,字符串函数结果代码。编辑代码人员在目标逻辑代码模板中编写编辑代码,编辑代码是指根据目标指标所需的子功能对应的编辑代码。例如,编辑代码包括如下至少一种代码:针对每个目标逻辑代码模板的执行顺序参数代码,以及每个目标逻辑代码模板中与基础代码匹配的编辑代码。In addition, the target logic code template includes basic code, and the basic code includes at least one of the following codes: function name code, function type code, and string function result code. The code editor writes the editing code in the target logic code template, and the editing code refers to the editing code corresponding to the sub-function required by the target indicator. For example, the editing code includes at least one of the following: an execution order parameter code for each target logic code template, and editing code matching the base code in each target logic code template.

例如,基础代码包括如下至少一种代码:“funcRes”函数结果,“funcType”函数类型,“funcClassName”函数类名称,“srcFuncRes”字符串函数结果。编辑代码包括如下至少一种代码:“res2”,“aoiFunc”,“gridInnerFunc”。其中,编辑代码与基础代码之间具有关联关系,例如,“funcRes”与“res2”之间具有关联关系,“funcType”与“aoiFunc”之间具有关联关系。For example, the base code includes at least one of the following codes: "funcRes" function result, "funcType" function type, "funcClassName" function class name, "srcFuncRes" string function result. The editing code includes at least one of the following codes: "res2", "aoiFunc", "gridInnerFunc". Among them, there is an association relationship between the editing code and the basic code, for example, there is an association relationship between "funcRes" and "res2", and an association relationship between "funcType" and "aoiFunc".

其中,客户端101根据获取的针对目标代码模板的需求信息,向服务端102发送用于请求获得多个目标逻辑代码模板的第一请求消息。其至少包括如下两种方式:The client 101 sends a first request message for requesting to obtain multiple target logic code templates to the server 102 according to the acquired demand information for the target code templates. It includes at least the following two ways:

第一种:根据需求信息,获取目标指标的标识信息;根据目标指标的标识信息,向服务端发送包括目标指标的标识信息的第一请求消息。服务端根据该目标指标的标识信息,确定实现查询该目标指标所需要的多个目标逻辑代码模板,向客户端返回多个目标逻辑代码模板。The first type: obtain the identification information of the target indicator according to the demand information; send a first request message including the identification information of the target indicator to the server according to the identification information of the target indicator. According to the identification information of the target indicator, the server determines a plurality of target logic code templates required for querying the target indicator, and returns the plurality of target logic code templates to the client.

第二种:客户端根据需求信息,向服务端发送用于请求获得用于实现每个子功能对应需要的逻辑代码模板的第二请求消息,服务端向客户端返回针对每个子功能的至少一种候选逻辑代码模板的标识信息;客户端检测到编辑代码人员针对每个子功能的至少一种候选逻辑代码模板的标识信息的选择操作,将被选中的候选逻辑代码模板的标识信息作为针对实现每个子功能的目标逻辑代码模板的标识信息。然后,客户端向服务端发送用于请求获得多个目标逻辑代码模板的标识信息对应的目标逻辑代码模板的第一请求消息。The second type: the client sends a second request message to the server for requesting to obtain a logic code template corresponding to each sub-function according to the demand information, and the server returns to the client at least one of the sub-functions. The identification information of the candidate logic code template; the client detects the selection operation of the code editor for the identification information of at least one candidate logic code template of each sub-function, and uses the identification information of the selected candidate logic code template as the identification information for each sub-function. Identification information for the function's target logic code template. Then, the client sends a first request message to the server for requesting to obtain target logic code templates corresponding to the identification information of multiple target logic code templates.

以上即为客户端通过需求信息,向服务端发送的用于请求获得多个目标逻辑代码模板的第一请求消息的两种发送方式,此外,还可以采用其他方式,此处不做限制。The above are the two sending modes of the first request message sent by the client to the server through the demand information for requesting to obtain multiple target logic code templates. In addition, other modes may also be used, which are not limited here.

此外,服务端根据第一请求消息,在预先存储的逻辑代码模板库中查询目标逻辑代码模板,如果逻辑代码模板库中包括目标逻辑代码模板,则向客户端返回该目标逻辑代码模板。如果逻辑代码模板库中不包括逻辑代码模板,则向客户端返回用于表示未查询到用于实现所述目标指标所需的子功能对应的目标逻辑代码模板的结果消息。In addition, the server searches the pre-stored logic code template library for the target logic code template according to the first request message, and returns the target logic code template to the client if the logic code template library includes the target logic code template. If the logic code template library does not include the logic code template, a result message indicating that the target logic code template corresponding to the sub-function required for realizing the target indicator is not queried is returned to the client.

客户端在目标页面展示针对目标逻辑代码模板的获取识别消息,此种情况,编辑代码人员则需要手动编写实现该子功能对应的目标逻辑代码实例。The client displays the acquisition identification message for the target logic code template on the target page. In this case, the code editor needs to manually write the target logic code instance corresponding to the sub-function.

以服务人员查询目标区域的运单超时情况为例进行具体说明。Take the service personnel querying the time-out of the waybill in the target area as an example for specific description.

首先,研发人员根据服务人员提供的目标指标的标识信息,此处为目标区域的标识信息,建立服务名称为aoi筛选的代码。为了编辑关于运单超时情况查询的查询逻辑代码,编辑代码人员根据服务人员提供的查询目标指标配置如下代码:First of all, according to the identification information of the target indicators provided by the service personnel, here is the identification information of the target area, the R&D personnel establish a code whose service name is aoi screening. In order to edit the query logic code for the query about the time-out of the waybill, the code editor configures the following code according to the query target indicators provided by the service personnel:

第一步,配置搜索目标逻辑代码实例为第一执行逻辑代码实例,所述第一执行逻辑代码实例用于根据针对目标指标的传入参数,获得针对所述目标指标的初步指标搜索结果。The first step is to configure the search target logic code instance as a first execution logic code instance, and the first execution logic code instance is used to obtain a preliminary index search result for the target indicator according to the incoming parameters for the target indicator.

其中,此处目标指标为目标区域的运单超时情况,因此,其传入参数可以包括时间范围,空间范围,目标区域范围。针对每个传入参数,获得针对每个传入参数的目标逻辑代码实例。通过如下方法将目标逻辑代码模板生成目标逻辑代码实例,具体是,对于每个目标逻辑代码模板,获取针对每个目标逻辑代码模板的编辑代码,其中,编辑代码与基础代码具有关联关系。例如,“funcRes”与“res2”之间具有关联关系,“funcType”与“aoiFunc”之间具有关联关系。Among them, the target indicator here is the time-out of the waybill in the target area. Therefore, the incoming parameters can include time range, space range, and target area range. For each incoming parameter, get the target logic code instance for each incoming parameter. A target logic code instance is generated from the target logic code template by the following method. Specifically, for each target logic code template, the editing code for each target logic code template is obtained, wherein the editing code has an associated relationship with the basic code. For example, "funcRes" has an association relationship with "res2", and "funcType" has an association relationship with "aoiFunc".

因此,可以分别获的关于时间范围的目标逻辑代码实例,关于空间范围的逻辑代码实例,以及关于目标区域范围的目标逻辑代码实例。并且,编辑代码人员生成的上述各个传入参数的目标逻辑代码实例中,包括每个目标逻辑代码实例对应的执行顺序参数,以便于根据执行顺序参数依次顺序执行各目标逻辑代码实例。Therefore, the target logic code instance for the time range, the logic code instance for the space range, and the target logic code instance for the target area range can be obtained separately. In addition, the target logic code instances of the above input parameters generated by the code editor include execution sequence parameters corresponding to each target logic code instance, so that each target logic code instance can be executed sequentially according to the execution sequence parameters.

第二步,配置查询目标逻辑代码实例为第二执行逻辑代码实例,所述第二执行逻辑代码实例用于将所述初步指标搜索结果按照筛选条件进行查询,获得指标查询结果。The second step is to configure the query target logic code instance as a second execution logic code instance, and the second execution logic code instance is used to query the preliminary index search results according to the filtering conditions to obtain index query results.

第二步中对初步指标搜索结果按照筛选条件进行查询之前,还包括对初步指标搜索结果按照字符串类型转换为数组类型的方式进行转换。此处包含关于函数类型为请求字符串类型转换为数组类型的目标逻辑代码实例。结合上述具体例子,此处将第一步获取的初步目标区域搜索结果的类型由字符串类型转换为数据类型。In the second step, before querying the preliminary index search results according to the filtering conditions, it also includes converting the preliminary index search results in a manner of converting the string type into the array type. This contains an example of the target logic code for the function type to request the conversion of string type to array type. Combining the above specific examples, here the type of the preliminary target area search result obtained in the first step is converted from a string type to a data type.

然后,将数据类型的初步目标区域搜索结果继续执行第二逻辑代码实例中,也就是针对查询函数的逻辑代码实例中。其中在针对查询函数的目标逻辑代码实例中,还配置有可查询的数据源以及对应的筛选条件,在该数据源中通过筛选条件获得目标区域的查询结果。Then, the preliminary target area search result of the data type is continued to be executed in the second logic code instance, that is, the logic code instance for the query function. In the target logic code instance for the query function, a queryable data source and a corresponding filter condition are also configured, and the query result of the target area is obtained through the filter condition in the data source.

第三步,配置过滤目标逻辑代码实例为第三执行逻辑代码实例,所述第三执行逻辑代码实例用于对所述指标查询结果按照预设的过滤条件进行过滤,获得所述目标指标。The third step is to configure the filtering target logic code instance as a third execution logic code instance, and the third execution logic code instance is used to filter the index query result according to preset filter conditions to obtain the target index.

其中,第三步在执行第三执行逻辑代码实例之前,还包括对目标区域的查询结果进行结果集字段转换的处理。因此,还包括针对结果集字段转换的目标逻辑代码实例,将目标区域的查询结果转换为针对目标区域的结果集。其中,针对目标区域的结果集包括至少一个候选目标区域。Wherein, before executing the third execution logic code instance, the third step further includes the process of converting the result set field to the query result of the target area. Therefore, the target logic code instance for field conversion of the result set is also included to convert the query result of the target area into a result set for the target area. Wherein, the result set for the target area includes at least one candidate target area.

然后,配置第三执行逻辑代码实例,用于对目标区域的结果集按照预设的过滤条件进行过滤,获得目标区域。Then, a third execution logic code instance is configured for filtering the result set of the target area according to preset filtering conditions to obtain the target area.

此外,获得目标区域的结果后,还包括对目标区域的结果转换为在地图页面上可以显示的形式,因此,还配置有前端地图显示数据转化的目标逻辑代码实例,用于获取可以在地图上显示的目标区域的结果。In addition, after obtaining the result of the target area, it also includes converting the result of the target area into a form that can be displayed on the map page. Therefore, an instance of the target logic code for the conversion of front-end map display data is also configured to obtain data that can be displayed on the map. Displays the results for the target area.

将所述第一执行逻辑代码实例,所述第二执行逻辑代码实例以及所述第三执行逻辑代码实例,以及第二执行逻辑代码实例,第三执行逻辑代码实例之间的数据形式转换的执行逻辑代码实例,按照其对应的执行顺序参数排序,生成用于查询线上到线下服务的目标指标的查询逻辑代码。Execute the data format conversion between the first execution logic code instance, the second execution logic code instance, the third execution logic code instance, the second execution logic code instance, and the third execution logic code instance Logic code instances are sorted according to their corresponding execution order parameters to generate query logic codes for querying target indicators of online-to-offline services.

本申请实施例提供一种查询逻辑代码生成方法,包括:获得针对逻辑代码模板的需求信息;根据所述需求信息,向服务端发送用于请求获得多个目标逻辑代码模板的第一请求消息,所述多个目标逻辑代码模板分别对应于查询线上到线下服务的目标指标所需的子功能,每个目标逻辑代码模板包括执行所需的子功能的基础代码;获得所述服务端返回的所述多个目标逻辑代码模板;根据所述多个目标逻辑代码模板,生成用于查询线上到线下服务的目标指标的查询逻辑代码。An embodiment of the present application provides a query logic code generation method, including: obtaining demand information for a logic code template; sending, according to the demand information, a first request message for requesting to obtain multiple target logic code templates to a server, The multiple target logic code templates respectively correspond to the sub-functions required for querying the target indicators of the online-to-offline service, and each target logic code template includes the basic code for executing the required sub-functions; obtaining the server returns the plurality of target logic code templates; and according to the plurality of target logic code templates, generate query logic codes for querying target indicators of online-to-offline services.

上述方法中,获取针对逻辑代码模板的需求信息,根据该需求信息,确定生成该查询逻辑代码需要的多个目标逻辑代码模板。其中,每个目标逻辑代码模板对应于查询线上到线下服务的目标指标所需的一个子功能。从服务端获得多个目标逻辑代码模板,根据多个目标逻辑代码模板,生成用于查询线上到线下服务的目标指标的查询逻辑代码。从服务端获取满足目标指标的子功能的目标逻辑代码模板,通过获得的多个目标逻辑代码模板生成查询逻辑代码,相比编辑代码的人员完整编辑代码生成查询逻辑代码的方法,提升了编辑代码的人员的代码编辑效率。In the above method, the requirement information for the logic code template is obtained, and according to the requirement information, a plurality of target logic code templates required for generating the query logic code are determined. Wherein, each target logic code template corresponds to a sub-function required for querying target indicators of online-to-offline services. Obtain multiple target logic code templates from the server, and generate query logic codes for querying target indicators of online to offline services according to the multiple target logic code templates. Obtain the target logic code template that satisfies the sub-function of the target index from the server, and generate the query logic code by using the obtained multiple target logic code templates. Compared with the method of editing the code completely to generate the query logic code, the editing code is improved. code editing efficiency of people.

第一实施例first embodiment

请参考图2,其为本申请第一实施例提供的一种查询逻辑代码生成方法的流程图。Please refer to FIG. 2 , which is a flowchart of a method for generating a query logic code according to the first embodiment of the present application.

如图2所示,在步骤S201中,获得针对逻辑代码模板的需求信息。As shown in FIG. 2, in step S201, the requirement information for the logic code template is obtained.

本步骤用户获得针对逻辑代码模板的需求信息。其中,该需求信息是由编辑代码人员根据服务人员的查询请求,确定编辑查询逻辑代码所需要的逻辑代码模板。In this step, the user obtains the requirement information for the logic code template. The requirement information is the logic code template required for editing the query logic code determined by the code editor according to the query request of the service personnel.

逻辑代码模板是指预先存储于服务端的,根据已经成功运行的历史逻辑代码生成的代码模板。为了生成用于查询线上到线下服务的目标指标的查询逻辑代码,本申请实施例通过采用已经成功运行的逻辑代码模板,将具有不同子功能的逻辑代码模板按照该子功能对应的执行顺序进行排序,然后生成查询逻辑代码。其相比于现有技术中,通过编辑代码人员硬编辑的方法,本申请实施例采用将不同子功能对应的目标逻辑代码模板进行排序组合,生成查询代码,提升了代码编辑速率,而且提升代码编辑的准确率。The logic code template refers to the code template stored in the server in advance and generated according to the historical logic code that has been successfully run. In order to generate the query logic code for querying the target indicators of the online-to-offline service, the embodiment of the present application uses the logic code template that has been successfully run to execute the logic code templates with different sub-functions according to the execution order corresponding to the sub-functions. Sort and generate query logic code. Compared with the prior art, in the method of hard editing by code editors, the embodiment of the present application adopts the sorting and combination of target logic code templates corresponding to different sub-functions to generate query codes, which improves the code editing speed and improves the code editing speed. Editing accuracy.

如图2所示,在步骤S202中,根据所述需求信息,向服务端发送用于请求获得多个目标逻辑代码模板的第一请求消息,所述多个目标逻辑代码模板分别对应于查询线上到线下服务的目标指标所需的子功能,每个目标逻辑代码模板包括执行所需的子功能的基础代码。As shown in FIG. 2, in step S202, according to the demand information, a first request message for requesting to obtain multiple target logic code templates is sent to the server, where the multiple target logic code templates correspond to query lines respectively The sub-functions required by the target indicators of the online-to-offline service, each target logic code template includes the basic code to execute the required sub-functions.

本步骤用于根据该需求信息,向服务端发送请求获取需求信息对应的目标逻辑代码模板。This step is used to send a request to the server to obtain a target logic code template corresponding to the demand information according to the demand information.

其中,所述根据所述需求信息,向服务端发送用于请求获得多个目标逻辑代码模板的第一请求消息,可以通过第一种方式发送第一请求消息:Wherein, according to the demand information, the first request message for requesting to obtain multiple target logic code templates is sent to the server, and the first request message may be sent in the first way:

根据所述需求信息,获取所述目标指标的标识信息;向所述服务端发送包括所述目标指标的标识信息的所述第一请求消息。According to the requirement information, the identification information of the target indicator is acquired; and the first request message including the identification information of the target indicator is sent to the server.

此外,所述根据所述需求信息,向服务端发送用于请求获得多个目标逻辑代码模板的第一请求消息,还可以通过第一种方式发送第二请求消息:In addition, according to the demand information, the first request message for requesting to obtain multiple target logic code templates is sent to the server, and the second request message may also be sent in the first way:

根据所述需求信息,向服务端发送用于请求获得用于实现每个子功能对应需要的逻辑代码模板的第二请求消息;获得服务端返回的针对每个子功能的至少一种候选逻辑代码模板的标识信息;获得针对每个子功能的至少一种候选逻辑代码模板的标识信息的选择操作,将被选中的候选逻辑代码模板的标识信息作为针对实现每个子功能的目标逻辑代码模板的标识信息,向所述服务端发送用于请求获得多个目标逻辑代码模板的标识信息对应的目标逻辑代码模板的第一请求消息。According to the demand information, send a second request message to the server for requesting to obtain the logic code template required for each sub-function; obtain at least one candidate logic code template for each sub-function returned by the server Identification information; a selection operation for obtaining identification information of at least one candidate logic code template for each sub-function, using the identification information of the selected candidate logic code template as identification information for the target logic code template for realizing each sub-function, and sending the identification information to the target logic code template for each sub-function. The server sends a first request message for requesting to obtain target logic code templates corresponding to the identification information of multiple target logic code templates.

如图2所示,在步骤S203中,获得所述服务端返回的所述多个目标逻辑代码模板。As shown in FIG. 2, in step S203, the multiple target logic code templates returned by the server are obtained.

本步骤用于获得服务端返回的多个目标逻辑代码模板,为步骤S204中生成查询逻辑代码提供数据基础。This step is used to obtain multiple target logic code templates returned by the server, and provide a data basis for generating the query logic code in step S204.

如图2所示,在步骤S204中,根据所述多个目标逻辑代码模板,生成用于查询线上到线下服务的目标指标的查询逻辑代码。As shown in FIG. 2, in step S204, according to the plurality of target logic code templates, a query logic code for querying the target indicators of the online-to-offline service is generated.

本步骤用于将多个目标逻辑代码模板进行预设的处理后,生成查询逻辑代码。This step is used to generate query logic codes after preset processing of multiple target logic code templates.

其中,获得服务端发送的多个目标逻辑代码模板后,目标逻辑代码模板中包括基础代码,还可以包括由编辑代码人员对目标逻辑代码模板进行编辑处理后的编辑代码。Wherein, after obtaining multiple target logic code templates sent by the server, the target logic code templates include basic codes, and may also include editing codes after editing and processing the target logic code templates by code editors.

因此,还包括:获得针对每个目标逻辑代码模板的编辑代码;所述根据所述多个目标逻辑代码模板,生成用于查询线上到线下服务的目标指标的查询逻辑代码,包括:根据每个目标逻辑代码模板的基础代码和编辑代码,生成每个目标逻辑代码模板对应的目标逻辑代码实例;根据生成的多个目标逻辑代码实例,生成用于查询线上到线下服务的目标指标的查询逻辑代码。Therefore, it also includes: obtaining an editing code for each target logic code template; generating, according to the multiple target logic code templates, a query logic code for querying the target indicators of the online-to-offline service, including: according to the Based on the basic code and editing code of each target logic code template, a target logic code instance corresponding to each target logic code template is generated; according to the generated multiple target logic code instances, target indicators for querying online to offline services are generated query logic code.

可选的,还包括:获得所述服务端返回的用于表示未查询到用于实现所述目标指标所需的子功能对应的目标逻辑代码模板的结果消息;在目标页面展示针对所述目标逻辑代码模板的获取失败信息;响应于检测到针对所述目标页面的编辑操作,获得用于实现所述目标指标所需的子功能对应的目标逻辑代码实例。Optionally, it also includes: obtaining a result message returned by the server to indicate that the target logic code template corresponding to the sub-function required for realizing the target indicator has not been queried; displaying on the target page the target logic code template for the target Obtaining failure information of a logic code template; in response to detecting an editing operation on the target page, obtaining a target logic code instance corresponding to a sub-function required for realizing the target indicator.

所述根据生成的多个目标逻辑代码实例,生成用于查询线上到线下服务的目标指标的查询逻辑代码,包括:获取每个目标逻辑代码模板实例包括的执行顺序参数;根据每个目标逻辑代码模板实例包括的执行顺序参数,对所述多个目标逻辑代码模板实例进行排序,获得排序后的目标逻辑代码实例,作为用于查询线上到线下服务的目标指标的查询逻辑代码。Generating query logic codes for querying target indicators of online-to-offline services according to the generated multiple target logic code instances includes: acquiring execution sequence parameters included in each target logic code template instance; The execution order parameter included in the logic code template instance is to sort the multiple target logic code template instances to obtain the sorted target logic code instance as the query logic code for querying the target index of the online-to-offline service.

根据多个目标逻辑代码实例,生成查询逻辑代码,可以根据每个目标逻辑代码实例包括执行顺序参数,将多个目标逻辑代码实例进行排序,获得排序后的目标逻辑代码实例,作为用于查询线上到线下服务的目标指标的查询逻辑代码。The query logic code is generated according to multiple target logic code instances, and the multiple target logic code instances can be sorted according to each target logic code instance including the execution order parameter, and the sorted target logic code instances can be obtained as the query line. The query logic code of the target indicator of the online to offline service.

可选的,所述根据生成的多个目标逻辑代码实例,生成用于查询线上到线下服务的目标指标的查询逻辑代码,包括:根据每个目标逻辑代码模板实例所实现的子功能之间的逻辑关系,获取每个目标逻辑代码模板的相邻目标逻辑代码模板实例;将每个目标逻辑代码模板和相邻目标逻辑代码模板实例进行排列组合,获得用于查询线上到线下服务的目标指标的查询逻辑代码。Optionally, generating the query logic code for querying the target indicators of the online-to-offline service according to the generated multiple target logic code instances includes: according to one of the sub-functions implemented by each target logic code template instance. To obtain the adjacent target logic code template instance of each target logic code template; arrange and combine each target logic code template and adjacent target logic code template instances to obtain the online-to-offline service for querying The query logic code of the target indicator.

可选的,所述根据每个目标逻辑代码模板的基础代码和编辑代码,生成每个目标逻辑代码模板对应的目标逻辑代码实例,包括:将每个基础代码所需要的功能和每个编辑代码所实现的功能进行匹配,获取每个基础代码对应的编辑代码;根据每个目标逻辑代码中的每个基础代码和每个基础代码对应的编辑代码,生成每个目标逻辑代码模板对应的目标逻辑代码实例。Optionally, generating a target logic code instance corresponding to each target logic code template according to the basic code and editing code of each target logic code template, including: combining the functions required by each basic code and each editing code. The implemented functions are matched, and the editing code corresponding to each basic code is obtained; according to each basic code in each target logic code and the editing code corresponding to each basic code, the target logic corresponding to each target logic code template is generated Code example.

可选的,还包括:判断所述编辑代码所实现的功能是否为所述基础代码所需要的功能;若是,则确定所述基础代码与所述编辑代码匹配;若否,则展示用于表示所述基础代码与所述编辑代码不匹配的提示信息,获得针对所述基础代码的修改后编辑代码,继续执行判断所述编辑代码所实现的功能是否为所述基础代码所需要的功能的步骤。Optionally, it also includes: judging whether the function implemented by the editing code is the function required by the basic code; if so, determining that the basic code matches the editing code; The prompt information that the basic code does not match the editing code, obtain the modified editing code for the basic code, and continue to perform the step of judging whether the function realized by the editing code is the function required by the basic code .

可选的,所述查询线上到线下服务的目标指标包括查询目标区域的运单情况;所述根据生成的多个目标逻辑代码实例,生成用于查询线上到线下服务的目标指标的查询逻辑代码,包括:配置搜索目标逻辑代码实例为第一执行逻辑代码实例,所述第一执行逻辑代码实例用于根据针对目标指标的传入参数,获得针对所述目标指标的初步指标搜索结果;配置查询目标逻辑代码实例为第二执行逻辑代码实例,所述第二执行逻辑代码实例用于将所述初步指标搜索结果按照筛选条件进行查询,获得指标查询结果;配置过滤目标逻辑代码实例为第三执行逻辑代码实例,所述第三执行逻辑代码实例用于对所述指标查询结果按照预设的过滤条件进行过滤,获得所述目标指标;根据所述第一执行逻辑代码实例,所述第二执行逻辑代码实例以及所述第三执行逻辑代码实例,生成用于查询线上到线下服务的目标指标的查询逻辑代码。Optionally, the querying the target indicator of the online-to-offline service includes querying the waybill situation of the target area; the generated target indicator for querying the online-to-offline service is generated according to the generated multiple target logic code instances. The query logic code includes: configuring the search target logic code instance as a first execution logic code instance, and the first execution logic code instance is used to obtain a preliminary index search result for the target indicator according to the incoming parameters for the target indicator The configuration query target logic code instance is the second execution logic code instance, and the second execution logic code instance is used to query the preliminary index search results according to the screening conditions to obtain the index query results; the configuration filter target logic code instance is The third execution logic code instance is used to filter the index query result according to preset filter conditions to obtain the target index; according to the first execution logic code instance, the The second execution logic code instance and the third execution logic code instance generate query logic code for querying the target indicator of the online-to-offline service.

可选的,所述基础代码包括如下至少一种代码:函数名称代码,函数类型代码,字符串函数结果代码;所述编辑代码包括如下至少一种代码类型:针对每个目标逻辑代码模板的执行顺序代码,填充数据代码。Optionally, the basic code includes at least one of the following codes: function name code, function type code, and string function result code; the editing code includes at least one of the following code types: for each target logic code template execution Sequence code, fill data code.

本申请实施例提供一种查询逻辑代码生成方法,包括:获得针对逻辑代码模板的需求信息;根据所述需求信息,向服务端发送用于请求获得多个目标逻辑代码模板的第一请求消息,所述多个目标逻辑代码模板分别对应于查询线上到线下服务的目标指标所需的子功能,每个目标逻辑代码模板包括执行所需的子功能的基础代码;获得所述服务端返回的所述多个目标逻辑代码模板;根据所述多个目标逻辑代码模板,生成用于查询线上到线下服务的目标指标的查询逻辑代码。An embodiment of the present application provides a query logic code generation method, including: obtaining demand information for a logic code template; sending, according to the demand information, a first request message for requesting to obtain multiple target logic code templates to a server, The multiple target logic code templates respectively correspond to the sub-functions required for querying the target indicators of the online-to-offline service, and each target logic code template includes the basic code for executing the required sub-functions; obtaining the server returns the plurality of target logic code templates; and according to the plurality of target logic code templates, generate query logic codes for querying target indicators of online-to-offline services.

上述方法中,获取针对逻辑代码模板的需求信息,根据该需求信息,确定生成该查询逻辑代码需要的多个目标逻辑代码模板。其中,每个目标逻辑代码模板对应于查询线上到线下服务的目标指标所需的一个子功能。从服务端获得多个目标逻辑代码模板,根据多个目标逻辑代码模板,生成用于查询线上到线下服务的目标指标的查询逻辑代码。从服务端获取满足目标指标的子功能的目标逻辑代码模板,通过获得的多个目标逻辑代码模板生成查询逻辑代码,相比编辑代码的人员完整编辑代码生成查询逻辑代码的方法,提升了编辑代码的人员的代码编辑效率。In the above method, the requirement information for the logic code template is obtained, and according to the requirement information, a plurality of target logic code templates required for generating the query logic code are determined. Wherein, each target logic code template corresponds to a sub-function required for querying target indicators of online-to-offline services. Obtain multiple target logic code templates from the server, and generate query logic codes for querying target indicators of online to offline services according to the multiple target logic code templates. Obtain the target logic code template that satisfies the sub-function of the target index from the server, and generate the query logic code by using the obtained multiple target logic code templates. Compared with the method of editing the code completely to generate the query logic code, the editing code is improved. code editing efficiency of people.

第二实施例Second Embodiment

与本申请提供的一种查询逻辑代码生成方法的应用场景对应的实施例以及第一实施例提供的一种查询逻辑代码生成方法相对应的,本申请第二实施例提供一种应用于生成查询逻辑代码场景的信息处理方法,具体流程如图3所示,其为本申请第二实施例中提供的一种应用于生成查询逻辑代码场景的信息处理方法的流程图。图3所示的应用于生成查询逻辑代码场景的信息处理方法,包括:步骤S301至步骤S303。第二实施例中与第一实施例相同的部分不再介绍,具体请参见第一实施例的相关部分。Corresponding to the embodiments corresponding to the application scenarios of the query logic code generation method provided by the present application and the query logic code generation method provided by the first embodiment, the second embodiment of the present application provides a method for generating a query logic code. The specific flow of the information processing method for the logic code scene is shown in FIG. 3 , which is a flow chart of the information processing method for generating a query logic code scene provided in the second embodiment of the present application. The information processing method applied to the scenario of generating a query logic code shown in FIG. 3 includes steps S301 to S303. The parts of the second embodiment that are the same as those of the first embodiment will not be described again. For details, please refer to the relevant parts of the first embodiment.

如图3所示,在步骤S301中,获得客户端发送的用于请求获得多个目标逻辑代码模板的第一请求消息,所述多个目标逻辑代码模板分别对应于查询线上到线下服务的目标指标所需的子功能。As shown in FIG. 3 , in step S301, a first request message sent by the client for requesting to obtain a plurality of target logic code templates is obtained, and the plurality of target logic code templates respectively correspond to query online to offline services The desired subfunction of the target indicator.

如图3所示,在步骤S302中,根据所述第一请求消息,查询所述多个目标逻辑代码模板。As shown in FIG. 3, in step S302, the multiple target logic code templates are queried according to the first request message.

如图3所示,在步骤S303中,向所述客户端返回所述多个目标逻辑代码模板。As shown in FIG. 3, in step S303, the multiple target logic code templates are returned to the client.

可选的,所述第一请求消息包括所述目标指标的标识信息;所述根据所述第一请求消息,查询所述多个目标逻辑代码模板,包括:根据所述目标指标的标识信息,查询所述多个目标逻辑代码模板。Optionally, the first request message includes identification information of the target indicator; the querying the multiple target logic code templates according to the first request message includes: according to the identification information of the target indicator, The plurality of target logic code templates are queried.

可选的,还包括:获得所述客户端发送的用于请求获得用于实现每个子功能对应需要的逻辑代码模板的第二请求消息;根据所述第二请求消息,查询用于实现每个子功能对应需要的逻辑代码模板,获得针对每个子功能的至少一种候选逻辑代码模板的标识信息;向所述客户端返回针对每个子功能的至少一种候选逻辑代码模板的标识信息;所述获得客户端发送的用于请求获得多个目标逻辑代码模板的第一请求消息,包括:获得所述客户端发送的用于请求获得多个目标逻辑代码模板的标识信息对应的目标逻辑代码模板的第一请求消息,每个目标逻辑代码模板的标识信息为针对每个子功能的至少一种候选逻辑代码模板中被选中的逻辑代码模板的标识信息。Optionally, it also includes: obtaining a second request message sent by the client for requesting to obtain a logic code template corresponding to each sub-function; The function corresponds to the required logic code template, and the identification information of at least one candidate logic code template for each sub-function is obtained; the identification information of at least one candidate logic code template for each sub-function is returned to the client; the obtaining The first request message sent by the client for requesting to obtain multiple target logic code templates includes: obtaining the first request message of the target logic code template corresponding to the identification information sent by the client for requesting to obtain multiple target logic code templates. In a request message, the identification information of each target logic code template is the identification information of the selected logic code template among the at least one candidate logic code template for each sub-function.

可选的,还包括:如果未查询到所述多个目标逻辑代码模板中的至少一个目标逻辑代码模板,则向所述客户端发送用于表示未查询到用于实现所述目标指标所需的子功能对应的目标逻辑代码模板的结果消息。Optionally, it also includes: if at least one target logic code template in the plurality of target logic code templates is not queried, sending a message to the client indicating that the information required for realizing the target indicator has not been queried. The result message of the sub-function corresponding to the target logic code template.

第三实施例Third Embodiment

与本申请提供的一种查询逻辑代码生成方法的应用场景对应的实施例以及第一实施例提供的一种查询逻辑代码生成方法相对应的,本申请第三实施例提供一种查询逻辑代码生成装置,如图4所示,其为本申请第三实施例中提供的一种查询逻辑代码生成装置的示意图。由于装置实施例基本相似于方法实施例,所以描述得比较简单,相关之处参见方法实施例的部分说明即可。下述描述的装置实施例仅仅是示意性的。Corresponding to the embodiments corresponding to the application scenarios of the query logic code generation method provided by the present application and the query logic code generation method provided by the first embodiment, the third embodiment of the present application provides a query logic code generation method The device, as shown in FIG. 4 , is a schematic diagram of a query logic code generation device provided in the third embodiment of the present application. Since the apparatus embodiment is basically similar to the method embodiment, the description is relatively simple, and reference may be made to part of the description of the method embodiment for related parts. The apparatus embodiments described below are merely illustrative.

本申请第三实施例提供的查询逻辑代码生成装置,包括:The query logic code generation device provided by the third embodiment of the present application includes:

第一获得单元401,用于获得针对逻辑代码模板的需求信息。The first obtaining unit 401 is configured to obtain requirement information for the logic code template.

第一请求消息发送单元402,用于根据所述需求信息,向服务端发送用于请求获得多个目标逻辑代码模板的第一请求消息,所述多个目标逻辑代码模板分别对应于查询线上到线下服务的目标指标所需的子功能,每个目标逻辑代码模板包括执行所需的子功能的基础代码。The first request message sending unit 402 is configured to send, according to the demand information, to the server a first request message for requesting to obtain multiple target logic code templates, the multiple target logic code templates corresponding to the query online To the sub-functions required by the target indicators of the offline service, each target logic code template includes the basic code to execute the required sub-functions.

第二获得单元403,用于获得所述服务端返回的所述多个目标逻辑代码模板。The second obtaining unit 403 is configured to obtain the multiple target logic code templates returned by the server.

生成单元404,用于根据所述多个目标逻辑代码模板,生成用于查询线上到线下服务的目标指标的查询逻辑代码。The generating unit 404 is configured to generate, according to the multiple target logic code templates, a query logic code for querying the target indicator of the online-to-offline service.

可选的,还包括:第三获得单元,用于获得针对每个目标逻辑代码模板的编辑代码;所述生成单元包括第一生成子单元和第二生成子单元,所述第一生成子单元用于根据每个目标逻辑代码模板的基础代码和编辑代码,生成每个目标逻辑代码模板对应的目标逻辑代码实例;所述第二生成子单元用于根据生成的多个目标逻辑代码实例,生成用于查询线上到线下服务的目标指标的查询逻辑代码。Optionally, it also includes: a third obtaining unit for obtaining editing codes for each target logic code template; the generating unit includes a first generating subunit and a second generating subunit, the first generating subunit For generating a target logic code instance corresponding to each target logic code template according to the base code and editing code of each target logic code template; the second generation subunit is used to generate a plurality of target logic code instances according to the generated The query logic code used to query the target indicators of online-to-offline services.

可选的,所述第一请求消息发送单元402具体用于根据所述需求信息,获取所述目标指标的标识信息;向所述服务端发送包括所述目标指标的标识信息的所述第一请求消息。Optionally, the first request message sending unit 402 is specifically configured to acquire the identification information of the target indicator according to the demand information; send the first request message including the identification information of the target indicator to the server. request message.

可选的,所述第一请求消息发送单元402具体用于根据所述需求信息,向服务端发送用于请求获得用于实现每个子功能对应需要的逻辑代码模板的第二请求消息;获得服务端返回的针对每个子功能的至少一种候选逻辑代码模板的标识信息;获得针对每个子功能的至少一种候选逻辑代码模板的标识信息的选择操作,将被选中的候选逻辑代码模板的标识信息作为针对实现每个子功能的目标逻辑代码模板的标识信息,向所述服务端发送用于请求获得多个目标逻辑代码模板的标识信息对应的目标逻辑代码模板的第一请求消息。Optionally, the first request message sending unit 402 is specifically configured to, according to the demand information, send to the server a second request message for requesting to obtain a logical code template for implementing the corresponding needs of each sub-function; obtain the service. The identification information of at least one candidate logic code template for each sub-function returned by the terminal; the selection operation to obtain the identification information of at least one candidate logic code template for each sub-function, the identification information of the selected candidate logic code template As the identification information for the target logic code template implementing each sub-function, a first request message for requesting to obtain target logic code templates corresponding to the identification information of multiple target logic code templates is sent to the server.

可选的,还包括:第四获得单元,用于获得所述服务端返回的用于表示未查询到用于实现所述目标指标所需的子功能对应的目标逻辑代码模板的结果消息;展示单元,用于在目标页面展示针对所述目标逻辑代码模板的获取失败信息;第五获得单元,用于响应于检测到针对所述目标页面的编辑操作,获得用于实现所述目标指标所需的子功能对应的目标逻辑代码实例。Optionally, it also includes: a fourth obtaining unit, configured to obtain a result message returned by the server and used to indicate that the target logic code template corresponding to the sub-function required for realizing the target indicator has not been queried; showing a unit, used for displaying the acquisition failure information for the target logic code template on the target page; a fifth obtaining unit, used for responding to detection of an editing operation for the target page, obtaining the required information for achieving the target indicator The target logic code instance corresponding to the sub-function of .

可选的,所述第二生成子单元具体用于获取每个目标逻辑代码模板实例包括的执行顺序参数;根据每个目标逻辑代码模板实例包括的执行顺序参数,对所述多个目标逻辑代码模板实例进行排序,获得排序后的目标逻辑代码实例,作为用于查询线上到线下服务的目标指标的查询逻辑代码。Optionally, the second generating subunit is specifically configured to obtain the execution sequence parameter included in each target logic code template instance; according to the execution sequence parameter included in each target logic code template instance, the The template instances are sorted, and the sorted target logic code instances are obtained, which are used as query logic codes for querying target indicators of online to offline services.

可选的,所述第二生成子单元具体用于根据每个目标逻辑代码模板实例所实现的子功能之间的逻辑关系,获取每个目标逻辑代码模板的相邻目标逻辑代码模板实例;将每个目标逻辑代码模板和相邻目标逻辑代码模板实例进行排列组合,获得用于查询线上到线下服务的目标指标的查询逻辑代码。Optionally, the second generating subunit is specifically used to obtain the adjacent target logic code template instance of each target logic code template according to the logical relationship between the sub-functions implemented by each target logic code template instance; Each target logic code template and adjacent target logic code template instances are arranged and combined to obtain query logic codes for querying target indicators of online-to-offline services.

可选的,所述第一生成子单元具体用于将每个基础代码所需要的功能和每个编辑代码所实现的功能进行匹配,获取每个基础代码对应的编辑代码;根据每个目标逻辑代码中的每个基础代码和每个基础代码对应的编辑代码,生成每个目标逻辑代码模板对应的目标逻辑代码实例。Optionally, the first generating subunit is specifically used to match the function required by each basic code with the function implemented by each editing code, and obtain the editing code corresponding to each basic code; according to each target logic For each basic code in the code and the editing code corresponding to each basic code, a target logic code instance corresponding to each target logic code template is generated.

可选的,还包括:判断单元,用于判断所述编辑代码所实现的功能是否为所述基础代码所需要的功能;若所述判断单元的结果为是,则第一判断结果单元用于确定所述基础代码与所述编辑代码匹配;若所述判断单元的结果为否,则第二判断结果单元用于展示用于表示所述基础代码与所述编辑代码不匹配的提示信息,获得针对所述基础代码的修改后编辑代码,继续执行判断所述编辑代码所实现的功能是否为所述基础代码所需要的功能的步骤。Optionally, it also includes: a judging unit for judging whether the function implemented by the editing code is the function required by the basic code; if the result of the judging unit is yes, the first judging result unit is used for It is determined that the basic code matches the editing code; if the result of the judgment unit is no, the second judgment result unit is used to display prompt information indicating that the basic code does not match the editing code, and obtain For the modified editing code of the basic code, continue to perform the step of judging whether the function implemented by the editing code is the function required by the basic code.

可选的,所述查询线上到线下服务的目标指标包括查询目标区域的运单情况;所述第二生成子单元包括第一配置单元,第二配置单元,第三配置单元,和合成单元,所述第一配置单元用于配置搜索目标逻辑代码实例为第一执行逻辑代码实例,所述第一执行逻辑代码实例用于根据针对目标指标的传入参数,获得针对所述目标指标的初步指标搜索结果;所述第二配置单元用于配置查询目标逻辑代码实例为第二执行逻辑代码实例,所述第二执行逻辑代码实例用于将所述初步指标搜索结果按照筛选条件进行查询,获得指标查询结果;所述第三配置单元用于配置过滤目标逻辑代码实例为第三执行逻辑代码实例,所述第三执行逻辑代码实例用于对所述指标查询结果按照预设的过滤条件进行过滤,获得所述目标指标;所述合成单元用于根据所述第一执行逻辑代码实例,所述第二执行逻辑代码实例以及所述第三执行逻辑代码实例,生成用于查询线上到线下服务的目标指标的查询逻辑代码。Optionally, the querying target indicators of the online-to-offline service includes querying the waybill situation of the target area; the second generating subunit includes a first configuration unit, a second configuration unit, a third configuration unit, and a synthesis unit. , the first configuration unit is used to configure the search target logic code instance to be the first execution logic code instance, and the first execution logic code instance is used to obtain preliminary data for the target indicator according to the incoming parameters for the target indicator index search results; the second configuration unit is used to configure the query target logic code instance as a second execution logic code instance, and the second execution logic code instance is used to query the preliminary index search results according to the filtering conditions, and obtain The index query result; the third configuration unit is used to configure the filtering target logic code instance as a third execution logic code instance, and the third execution logic code instance is used to filter the index query result according to preset filter conditions , to obtain the target indicator; the synthesis unit is configured to generate an online-to-offline query based on the first execution logic code instance, the second execution logic code instance and the third execution logic code instance The query logic code for the target indicator of the service.

可选的,所述基础代码包括如下至少一种代码:函数名称代码,函数类型代码,字符串函数结果代码;所述编辑代码包括如下至少一种代码类型:针对每个目标逻辑代码模板的执行顺序代码,填充数据代码。Optionally, the basic code includes at least one of the following codes: function name code, function type code, and string function result code; the editing code includes at least one of the following code types: for each target logic code template execution Sequence code, fill data code.

第四实施例Fourth Embodiment

与本申请提供的一种查询逻辑代码生成方法的应用场景对应的实施例以及第二实施例提供的一种应用于生成查询逻辑代码场景的信息处理方法相对应的,本申请第四实施例提供一种应用于生成查询逻辑代码场景的信息处理装置,如图5所示,其为本申请第四实施例中提供的一种应用于生成查询逻辑代码场景的信息处理装置的示意图。由于装置实施例基本相似于方法实施例,所以描述得比较简单,相关之处参见方法实施例的部分说明即可。下述描述的装置实施例仅仅是示意性的。Corresponding to the embodiment corresponding to the application scenario of the query logic code generation method provided by the present application and the information processing method applied to the query logic code generation scenario provided by the second embodiment, the fourth embodiment of the present application provides An information processing apparatus applied to a scenario of generating a query logic code is shown in FIG. 5 , which is a schematic diagram of an information processing apparatus applied to a scenario of generating a query logic code provided in the fourth embodiment of the application. Since the apparatus embodiment is basically similar to the method embodiment, the description is relatively simple, and reference may be made to part of the description of the method embodiment for related parts. The apparatus embodiments described below are merely illustrative.

本申请第四实施例提供的应用于生成查询逻辑代码场景的信息处理装置,包括:The information processing device for generating a query logic code scenario provided by the fourth embodiment of the present application includes:

第一请求消息获得单元501,用于获得客户端发送的用于请求获得多个目标逻辑代码模板的第一请求消息,所述多个目标逻辑代码模板分别对应于查询线上到线下服务的目标指标所需的子功能。The first request message obtaining unit 501 is configured to obtain the first request message sent by the client and used for requesting to obtain multiple target logic code templates, the multiple target logic code templates corresponding to the query of online to offline services respectively. Subfunction required by the target indicator.

第一查询单元502,用于根据所述第一请求消息,查询所述多个目标逻辑代码模板。The first query unit 502 is configured to query the multiple target logic code templates according to the first request message.

第一发送单元503,用于向所述客户端返回所述多个目标逻辑代码模板。The first sending unit 503 is configured to return the multiple target logic code templates to the client.

可选的,所述第一请求消息包括所述目标指标的标识信息;所述查询单元具体用于根据所述目标指标的标识信息,查询所述多个目标逻辑代码模板。Optionally, the first request message includes identification information of the target indicator; the query unit is specifically configured to query the plurality of target logic code templates according to the identification information of the target indicator.

可选的,还包括:第二请求消息获得单元,用于获得所述客户端发送的用于请求获得用于实现每个子功能对应需要的逻辑代码模板的第二请求消息;第二查询单元,用于根据所述第二请求消息,查询用于实现每个子功能对应需要的逻辑代码模板,获得针对每个子功能的至少一种候选逻辑代码模板的标识信息;返回单元,用于向所述客户端返回针对每个子功能的至少一种候选逻辑代码模板的标识信息;所述第一请求消息获得单元501具体用于获得所述客户端发送的用于请求获得多个目标逻辑代码模板的标识信息对应的目标逻辑代码模板的第一请求消息,每个目标逻辑代码模板的标识信息为针对每个子功能的至少一种候选逻辑代码模板中被选中的逻辑代码模板的标识信息。Optionally, it also includes: a second request message obtaining unit for obtaining a second request message sent by the client and used for requesting to obtain a logic code template corresponding to each sub-function; a second query unit, is used to query the logic code template required for realizing each sub-function according to the second request message, and obtain the identification information of at least one candidate logic code template for each sub-function; a return unit is used to report to the customer The terminal returns the identification information of at least one candidate logic code template for each sub-function; the first request message obtaining unit 501 is specifically configured to obtain the identification information sent by the client for requesting to obtain multiple target logic code templates In the corresponding first request message of the target logic code template, the identification information of each target logic code template is the identification information of the selected logic code template in the at least one candidate logic code template for each sub-function.

可选的,还包括:第二发送单元,用于如果未查询到所述多个目标逻辑代码模板中的至少一个目标逻辑代码模板,则向所述客户端发送用于表示未查询到用于实现所述目标指标所需的子功能对应的目标逻辑代码模板的结果消息。Optionally, it also includes: a second sending unit, configured to send to the client if at least one target logic code template in the plurality of target logic code templates is not queried The result message of the target logic code template corresponding to the sub-function required to realize the target indicator.

第五实施例Fifth Embodiment

与本申请第一实施例和第二实施例的方法相对应的,本申请第五实施例还提供一种电子设备。如图6所示,图6为本申请第五实施例中提供的一种电子设备的示意图。该电子设备,包括:至少一个处理器601,至少一个通信接口602,至少一个存储器603和至少一个通信总线604;可选的,通信接口602可以为通信模块的接口,如GSM模块的接口;处理器601可能是处理器CPU,或者是特定集成电路ASIC(Application Specific IntegratedCircuit),或者是被配置成实施本发明实施例的一个或多个集成电路。存储器603可能包含高速RAM存储器,也可能还包括非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。其中,存储器603存储有程序,处理器601调用存储器603所存储的程序,以执行本发明第一实施例和第二实施例的方法。Corresponding to the methods of the first embodiment and the second embodiment of the present application, the fifth embodiment of the present application further provides an electronic device. As shown in FIG. 6 , FIG. 6 is a schematic diagram of an electronic device provided in a fifth embodiment of the present application. The electronic device includes: at least one processor 601, at least one communication interface 602, at least one memory 603 and at least one communication bus 604; optionally, the communication interface 602 may be an interface of a communication module, such as an interface of a GSM module; processing The device 601 may be a processor CPU, or an Application Specific Integrated Circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present invention. The memory 603 may include high-speed RAM memory, and may also include non-volatile memory, such as at least one disk memory. The memory 603 stores a program, and the processor 601 calls the program stored in the memory 603 to execute the methods of the first embodiment and the second embodiment of the present invention.

第六实施例Sixth Embodiment

与本申请第一实施例和第二实施例的方法相对应的,本申请第六实施例还提供一种计算机存储介质。所述计算机存储介质存储有计算机程序,该计算机程序被处理器运行,执行第一实施例和第二实施例的方法。Corresponding to the methods of the first embodiment and the second embodiment of the present application, the sixth embodiment of the present application further provides a computer storage medium. The computer storage medium stores a computer program that is executed by a processor to execute the methods of the first embodiment and the second embodiment.

本申请虽然以较佳实施例公开如上,但其并不是用来限定本申请,任何本领域技术人员在不脱离本申请的精神和范围内,都可以做出可能的变动和修改,因此本申请的保护范围应当以本申请权利要求所界定的范围为准。Although the present application is disclosed above with preferred embodiments, it is not intended to limit the present application. Any person skilled in the art can make possible changes and modifications without departing from the spirit and scope of the present application. Therefore, the present application The scope of protection shall be subject to the scope defined by the claims of this application.

在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory. Memory may include non-persistent memory in computer readable media, random access memory (RAM) and/or non-volatile memory in the form of, for example, read only memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.

1、计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括非暂存电脑可读媒体(Transitory Media),如调制的数据信号和载波。1. Computer readable media includes both persistent and non-permanent, removable and non-removable media. Information storage can be implemented by any method or technology. Information may be computer readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), Flash Memory or other memory technology, Compact Disc Read Only Memory (CD-ROM), Digital Versatile Disc (DVD) or other optical storage, Magnetic tape cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include non-transitory computer-readable media (Transitory Media), such as modulated data signals and carrier waves.

2、本领域技术人员应明白,本申请的实施例可提供为方法、系统或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。2. Those skilled in the art should understand that the embodiments of the present application may be provided as methods, systems or computer program products. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.

Claims (10)

1. A method for generating query logic code, comprising:
obtaining requirement information for the logic code template;
according to the requirement information, sending a first request message for requesting to obtain a plurality of target logic code templates to a server, wherein the target logic code templates respectively correspond to sub-functions required by inquiring target indexes of online-to-offline service, and each target logic code template comprises a basic code for executing the required sub-functions;
obtaining the target logic code templates returned by the server;
and generating query logic codes for querying target indexes of online-to-offline service according to the target logic code templates.
2. The method of claim 1, further comprising: obtaining an edit code for each target logic code template;
the generating a query logic code for querying a target index for online-to-offline service according to the plurality of target logic code templates includes:
generating a target logic code example corresponding to each target logic code template according to the basic code and the editing code of each target logic code template;
and generating query logic codes for querying the target indexes of the online-to-offline service according to the generated multiple target logic code instances.
3. The method according to claim 1, wherein the sending a first request message for requesting to obtain a plurality of target logic code templates to a server according to the requirement information comprises:
acquiring identification information of the target index according to the demand information;
sending the first request message including the identification information of the target index to the server.
4. The method according to claim 1, wherein the sending a first request message for requesting to obtain a plurality of target logic code templates to a server according to the requirement information comprises:
according to the requirement information, sending a second request message for requesting to obtain a logic code template required for realizing each sub-function to the server;
obtaining the identification information of at least one candidate logic code template aiming at each sub-function returned by the server;
and selecting the identification information of at least one candidate logic code template aiming at each subfunction, taking the identification information of the selected candidate logic code template as the identification information of a target logic code template for realizing each subfunction, and sending a first request message for requesting to obtain the target logic code template corresponding to the identification information of a plurality of target logic code templates to the server.
5. The method of claim 2, further comprising:
obtaining a result message returned by the server and used for indicating that a target logic code template corresponding to the sub-function required for realizing the target index is not inquired;
displaying acquisition failure information aiming at the target logic code template on a target page;
and in response to the detection of the editing operation aiming at the target page, obtaining a target logic code instance corresponding to the sub-function required for realizing the target index.
6. The method of claim 2, wherein generating query logic code for querying target metrics for online-to-offline services based on the generated plurality of target logic code instances comprises:
acquiring execution sequence parameters included by each target logic code template example;
and sequencing the target logic code template instances according to the execution sequence parameters included by each target logic code template instance to obtain sequenced target logic code instances which are used as query logic codes for querying target indexes of online-to-offline service.
7. The method of claim 2, wherein generating query logic code for querying the target metrics for online-to-offline service based on the generated plurality of target logic code instances comprises:
acquiring adjacent target logic code template examples of each target logic code template according to the logic relation between the subfunctions realized by each target logic code template example;
and arranging and combining each target logic code template and the adjacent target logic code template examples to obtain a query logic code for querying a target index of online-to-offline service.
8. An information processing method applied to generating a query logic code scene, comprising:
obtaining a first request message which is sent by a client and used for requesting to obtain a plurality of target logic code templates, wherein the target logic code templates respectively correspond to subfunctions required by inquiring a target index of online-to-offline service;
querying the plurality of target logic code templates according to the first request message;
returning the plurality of target logical code templates to the client.
9. The method of claim 8, further comprising:
obtaining a second request message which is sent by the client and used for requesting to obtain a logic code template correspondingly required for realizing each sub-function;
inquiring a logic code template correspondingly required for realizing each subfunction according to the second request message, and obtaining the identification information of at least one candidate logic code template aiming at each subfunction;
returning identification information of at least one candidate logical code template for each subfunction to the client;
the obtaining a first request message sent by a client for requesting to obtain a plurality of target logic code templates includes:
and obtaining a first request message which is sent by the client and used for requesting to obtain target logic code templates corresponding to the identification information of the plurality of target logic code templates, wherein the identification information of each target logic code template is the identification information of a selected logic code template in at least one candidate logic code template aiming at each sub-function.
10. The method of claim 8, further comprising:
if at least one target logic code template in the target logic code templates is not inquired, sending a result message for indicating that the target logic code template corresponding to the sub-function required for realizing the target index is not inquired to the client.
CN202210404865.9A 2022-04-18 2022-04-18 A kind of query logic code generation method and device Pending CN114721638A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210404865.9A CN114721638A (en) 2022-04-18 2022-04-18 A kind of query logic code generation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210404865.9A CN114721638A (en) 2022-04-18 2022-04-18 A kind of query logic code generation method and device

Publications (1)

Publication Number Publication Date
CN114721638A true CN114721638A (en) 2022-07-08

Family

ID=82243835

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210404865.9A Pending CN114721638A (en) 2022-04-18 2022-04-18 A kind of query logic code generation method and device

Country Status (1)

Country Link
CN (1) CN114721638A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114995830A (en) * 2022-08-03 2022-09-02 浙江口碑网络技术有限公司 Code compiling method and device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106919386A (en) * 2017-02-15 2017-07-04 北京航空航天大学 The method and apparatus of code is generated based on ARINC653 operating systems

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106919386A (en) * 2017-02-15 2017-07-04 北京航空航天大学 The method and apparatus of code is generated based on ARINC653 operating systems

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114995830A (en) * 2022-08-03 2022-09-02 浙江口碑网络技术有限公司 Code compiling method and device

Similar Documents

Publication Publication Date Title
CN107273280B (en) Log processing method and device, electronic equipment and storage medium
CN108683562B (en) Anomaly detection and positioning method, device, computer equipment and storage medium
CN110162544B (en) Heterogeneous data source data acquisition method and device
CN107861981B (en) Data processing method and device
CN111858296B (en) Interface testing method, device, equipment and storage medium
CN110134587A (en) A test method, test device and computer-readable storage medium
CN106657192B (en) Method and equipment for presenting service calling information
CN107729227A (en) Application testing range determining method, system, server and storage medium
WO2024174704A1 (en) Element positioning method and apparatus, and electronic device and storage medium
CN116738091A (en) Page monitoring method, device, electronic equipment and storage medium
WO2020233093A1 (en) Association graph generation method and apparatus, computer device, and storage medium
CN114721638A (en) A kind of query logic code generation method and device
CN113641628B (en) Data quality detection method, device, equipment and storage medium
CN114089192A (en) Vehicle battery detection method and device, electronic equipment and storage medium
CN108399128A (en) A kind of generation method of user data, device, server and storage medium
CN113760696A (en) Program problem positioning method and device, electronic equipment and storage medium
CN112395575A (en) Authority management method, device, equipment and storage medium
CN109542775B (en) A method and device for generating and executing a test script
CN115374109B (en) Data access method, apparatus, computing device and system
CN117349316A (en) Data query methods and related equipment
CN111177269A (en) Block chain data storage and acquisition method and device based on structuralization
CN112445790A (en) Report data storage method, device, equipment and medium
CN116932347A (en) Link tracking method, device and computer readable medium
CN110245072A (en) A kind of test method and device
CN116822828A (en) Task processing method, device, terminal equipment and computer-readable storage medium

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