CN112000319A - Logistics service code generation method, client, electronic equipment and system - Google Patents

Logistics service code generation method, client, electronic equipment and system Download PDF

Info

Publication number
CN112000319A
CN112000319A CN202010576365.4A CN202010576365A CN112000319A CN 112000319 A CN112000319 A CN 112000319A CN 202010576365 A CN202010576365 A CN 202010576365A CN 112000319 A CN112000319 A CN 112000319A
Authority
CN
China
Prior art keywords
code
file
server
table entry
data segment
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
CN202010576365.4A
Other languages
Chinese (zh)
Inventor
林少波
赵晴
邓卜侨
代素敏
孙雷
李文昭
展敬宇
李成
李捷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Zhongdian Feihua Communication Co Ltd
Original Assignee
State Grid Information and Telecommunication Co Ltd
Beijing Zhongdian Feihua Communication 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 State Grid Information and Telecommunication Co Ltd, Beijing Zhongdian Feihua Communication Co Ltd filed Critical State Grid Information and Telecommunication Co Ltd
Priority to CN202010576365.4A priority Critical patent/CN112000319A/en
Publication of CN112000319A publication Critical patent/CN112000319A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/31Programming languages or programming paradigms
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/42Syntactic analysis
    • G06F8/427Parsing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Abstract

One or more embodiments of the present disclosure provide a method, a client, an electronic device, and a system for generating a logistics service code, where the method includes obtaining project configuration information, where the project configuration information includes a target database, connecting the target database, obtaining and outputting at least one data entry in the target database, obtaining at least one target data entry selected from the data entries, determining information of each data segment of each target data entry, generating a code parameter file according to the information of each data segment, and sending the code parameter file to a server, so that the server generates a corresponding code file according to the code parameter file by using a template engine, and receives the code file sent by the server. The logistics business code generation method can greatly improve research and development efficiency, reduce workload of research and development personnel, flexibly configure parameters required by code generation according to project requirements, and is flexible in configuration and wide in adaptability.

Description

Logistics service code generation method, client, electronic equipment and system
Technical Field
One or more embodiments of the present disclosure relate to the field of software technologies, and in particular, to a method, a client, an electronic device, and a system for generating a logistics service code.
Background
Research and development personnel need write the code, maintain different code files at the code development in-process, and work load is big, and the code standard can't highly be unified, produces the maloperation moreover easily, and research and development efficiency is not high, and research and development cost is higher. The template engine can be used for generating codes, however, research personnel need to configure parameters required by the template engine for generating the codes in the forms of command lines, scripts and the like, different parameters need to be configured for different projects, and research and development work is complicated, low in efficiency and poor in flexibility.
Disclosure of Invention
In view of this, one or more embodiments of the present disclosure are directed to a method, a client, an electronic device, and a system for generating a code of a logistics service, so as to solve the problems of low code generation efficiency and poor flexibility.
In view of the above, one or more embodiments of the present specification provide a method for generating a logistical service code, including:
acquiring project configuration information, wherein the project configuration information comprises a target database;
connecting the target database, and acquiring and outputting at least one data table entry in the target database;
acquiring at least one target data table entry selected from each data table entry, and determining each data segment information of each target data table entry;
generating a code parameter file according to the information of each data segment;
sending the code parameter file to a server so that the server generates a corresponding code file by using a template engine according to the code parameter file;
and receiving the code file sent by the server.
Optionally, before generating the code parameter file according to the information of each data segment, the method further includes:
outputting each item of data segment information of each target data table entry;
and acquiring the reconfigured at least one piece of data segment information.
Optionally, the item configuration information further includes a code directory address, and the method further includes:
and storing the code file in a code directory corresponding to the code directory address.
Optionally, the code directory address includes a front-end code directory address and a background code directory address; the step of storing the code file in a code directory corresponding to the code directory address comprises the following steps:
analyzing the code file to obtain a front-end code file and a background code file;
and storing the front-end code file in a front-end code directory corresponding to the front-end code directory address, and storing the background code file in a background code directory corresponding to the background code directory address.
An embodiment of the present specification further provides a client, including:
the system comprises a configuration information acquisition module, a configuration information acquisition module and a configuration information acquisition module, wherein the configuration information acquisition module is used for acquiring project configuration information which comprises a target database;
the database processing module is used for connecting the target database, acquiring and outputting at least one data table entry in the target database;
the table entry acquisition module is used for acquiring at least one target data table entry selected from the data table entries and determining each item of data segment information of each target data table entry;
the parameter generation module is used for generating a code parameter file according to the information of each data segment;
the sending module is used for sending the code parameter file to a server so that the server generates a corresponding code file by using a template engine according to the code parameter file;
and the receiving module is used for receiving the code file sent by the server.
Optionally, the client further includes:
the data segment output module is used for outputting each item of data segment information of each target data table entry;
and the data segment acquisition module is used for acquiring the reconfigured at least one piece of data segment information.
Optionally, the item configuration information further includes a code directory address, and the client further includes:
and the file processing module is used for storing the code file in a code directory corresponding to the code directory address.
Optionally, the code directory address includes a front-end code directory address and a background code directory address; the file processing module comprises:
the file analysis submodule is used for analyzing the code file to obtain a front-end code file and a background code file;
and the file saving submodule is used for saving the front-end code file in a front-end code directory corresponding to the front-end code directory address and saving the background code file in a background code directory corresponding to the background code directory address.
Embodiments of the present specification further provide an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor executes the program to implement the logistics business code generation method.
The embodiment of the present specification further provides a logistics business code generation system, including a client and a server, where the client is configured to obtain project configuration information, and the project configuration information includes a target database; connecting the target database, and acquiring and outputting at least one data table entry in the target database; acquiring at least one target data table entry selected from each data table entry, and determining each data segment information of each target data table entry; generating a code parameter file according to the information of each data segment; sending the code parameter file to a server; receiving the code file sent by the server;
and the server is used for generating a corresponding code file by utilizing a template engine according to the code parameter file and sending the code file to the client.
As can be seen from the above, in the logistics service code generation method, the client, the electronic device, and the system provided in one or more embodiments of the present disclosure, by obtaining the project configuration information, connecting to the target database, obtaining and outputting at least one data entry in the target database, obtaining at least one target data entry selected from the data entries, determining each item of data segment information of each target data entry, generating a code parameter file according to each item of data segment information, sending the code parameter file to the server, generating, by the server, a corresponding code file by using the template engine according to the code parameter file, and receiving the code file sent by the server. The logistics business code generation method in the embodiment of the specification can greatly improve the research and development efficiency, reduce the workload of research and development personnel, flexibly configure parameters required by code generation according to project requirements, and has flexible configuration and wide adaptability.
Drawings
In order to more clearly illustrate one or more embodiments or prior art solutions of the present specification, the drawings that are needed in the description of the embodiments or prior art will be briefly described below, and it is obvious that the drawings in the following description are only one or more embodiments of the present specification, and that other drawings may be obtained by those skilled in the art without inventive effort from these drawings.
FIG. 1 is a schematic flow chart of a method according to one or more embodiments of the present disclosure;
FIG. 2 is a schematic diagram of a client architecture in accordance with one or more embodiments of the present disclosure;
FIG. 3 is a system architecture diagram of one or more embodiments of the present disclosure;
fig. 4 is a schematic structural diagram of an electronic device according to one or more embodiments of the present disclosure.
Detailed Description
For the purpose of promoting a better understanding of the objects, aspects and advantages of the present disclosure, reference is made to the following detailed description taken in conjunction with the accompanying drawings.
It is to be noted that unless otherwise defined, technical or scientific terms used in one or more embodiments of the present specification should have the ordinary meaning as understood by those of ordinary skill in the art to which this disclosure belongs. The use of "first," "second," and similar terms in one or more embodiments of the specification is not intended to indicate any order, quantity, or importance, but rather is used to distinguish one element from another. The word "comprising" or "comprises", and the like, means that the element or item listed before the word covers the element or item listed after the word and its equivalents, but does not exclude other elements or items. The terms "connected" or "coupled" and the like are not restricted to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "upper", "lower", "left", "right", and the like are used merely to indicate relative positional relationships, and when the absolute position of the object being described is changed, the relative positional relationships may also be changed accordingly.
As shown in fig. 1, one or more embodiments of the present specification provide a logistical code generation method, including:
s101: acquiring project configuration information, wherein the project configuration information comprises a target database;
s102: connecting a target database, and acquiring and outputting at least one data table entry in the target database;
in this embodiment, first, input project configuration information is obtained, where the project configuration information includes a target database, and then, according to the configured target database, the target database is connected, and each data entry therein is obtained from the target database, and each data entry is output.
In some ways, the user may input project configuration information of the project to be created on a project configuration page of the client, where the input project configuration information includes, but is not limited to, project names, target databases, and other configuration items. The target database needs to be configured with configuration items which can be connected with the target database, wherein the configuration items comprise information such as addresses, user names, passwords and names of the target database. And after the input project configuration information is acquired, connecting the target database according to each configuration item of the target database, acquiring each data table item from the target database, and displaying each data table item on a page for a user to check and select.
The target database stores at least one data table entry, and each data table entry comprises a plurality of data segment information. For example, the logistics dining room data entries store information related to the name, location, number of belongings, number of staff, etc.
S103: acquiring at least one target data table entry selected from each data table entry, and determining each data segment information of each target data table entry;
s104: generating a code parameter file according to the information of each data segment;
in this embodiment, after outputting each data entry, the user may select one or more data entries as target data entries according to the project requirement, and determine each data segment information corresponding to each target data entry for the selected target data entry. Then, a code parameter file can be generated according to each item of data segment information of the target data entry, and the code parameter file is used for subsequently generating a code file.
S105: sending the code parameter file to a server so that the server generates a corresponding code file by using a template engine according to the code parameter file;
s106: and receiving the code file sent by the server.
In this embodiment, the generated code parameter file is sent to a server, the server is configured with a template engine, the server receives the code parameter file, the code parameter file is used as an input of the template engine, the template engine analyzes the code parameter file to obtain various parameters therein, the code file is generated according to the various parameters obtained by analysis according to a predetermined code template, and then the server sends the generated code file to a client.
In the logistics code generation method provided by this embodiment, by acquiring project configuration information, where the project configuration information includes a target database, connecting the target database, acquiring and outputting at least one data entry in the target database, acquiring at least one target data entry selected from the data entries, determining each item of data segment information of each target data entry, generating a code parameter file according to each item of data segment information, and sending the code parameter file to a server, so that the server generates a corresponding code file according to the code parameter file by using a template engine, and receives the code file sent by the server; therefore, parameters of the generated code file can be flexibly configured according to project requirements, the code file with unified specifications is generated based on the template engine, and the research and development efficiency is greatly improved.
In some embodiments, before generating the code parameter file according to the pieces of data segment information, the method further includes:
outputting each item of data segment information of each target data table entry;
and acquiring the reconfigured at least one piece of data segment information.
In this embodiment, after at least one target data entry selected from the data entries is obtained, and each item of data segment information of each target data entry is determined, each item of data segment information is output, one or more pieces of data segment information therein may be modified according to a project requirement, and after the modified data segment information is confirmed, the reconfigured data segment information is obtained, and then, a code parameter file is generated according to each item of modified data segment information. The data segment information is flexibly configured and modified, codes suitable for different project requirements can be generated, the configuration is flexible, the operation is convenient, and research personnel only need to modify the data segment information needing to be reconfigured, so that the workload is greatly reduced.
In some embodiments, the project configuration information further includes a code directory address, and the logistics business code generation method further includes:
and storing the code file in a code directory corresponding to the code directory address.
In this embodiment, a code directory for storing the generated code file may be pre-designated, and after receiving the code file from the server, the code file may be stored in the code directory corresponding to the code directory address according to the configured code directory address, and the code file in the code directory may be directly run and debugged without manual operation or modification of the code file, so that workload of research and development personnel is reduced, and possible misoperation due to manual operation or modification of the code file is avoided.
In some embodiments, the code directory address comprises a front-end code directory address and a back-end code directory address; the method for saving the code file in the code directory corresponding to the code directory address comprises the following steps:
analyzing the code file to obtain a front-end code file and a background code file;
and storing the front-end code file in a front-end code directory corresponding to the front-end code directory address, and storing the background code file in a background code directory corresponding to the background code directory address.
In this embodiment, the code file of the software project includes a front-end code file and a background code file, and the configured code directory address includes a front-end code directory address and a background code directory address; after receiving the code file, analyzing the code file to obtain a front-end code file and a background code file, then storing the front-end code file in a front-end code directory corresponding to a front-end code directory address, storing the background code file in a background code directory corresponding to a background code directory address, refining code file management, and directly storing the front-end code file and the background code file of the software project in a code directory corresponding to the project, thereby further reducing the workload of research and development personnel.
It should be noted that the method of one or more embodiments of the present disclosure may be performed by a single device, such as a computer or server. The method of the embodiment can also be applied to a distributed scene and completed by the mutual cooperation of a plurality of devices. In such a distributed scenario, one of the devices may perform only one or more steps of the method of one or more embodiments of the present disclosure, and the devices may interact with each other to complete the method.
The foregoing description has been directed to specific embodiments of this disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
As shown in fig. 2, one or more embodiments of the present specification further provide a client, including:
the system comprises a configuration information acquisition module, a configuration information acquisition module and a configuration information acquisition module, wherein the configuration information acquisition module is used for acquiring project configuration information which comprises a target database;
the database processing module is used for connecting the target database, acquiring and outputting at least one data table entry in the target database;
the table entry acquisition module is used for acquiring at least one target data table entry selected from the data table entries and determining each item of data segment information of each target data table entry;
the parameter generation module is used for generating a code parameter file according to the information of each data segment;
the sending module is used for sending the code parameter file to a server so that the server generates a corresponding code file by using a template engine according to the code parameter file;
and the receiving module is used for receiving the code file sent by the server.
In some embodiments, the client further comprises:
the data segment output module is used for outputting each item of data segment information of each target data table entry;
and the data segment acquisition module is used for acquiring the reconfigured at least one piece of data segment information.
In some embodiments, the project configuration information further includes a code directory address, and the client further includes:
and the file processing module is used for storing the code file in a code directory corresponding to the code directory address.
In some embodiments, the code directory address comprises a front-end code directory address and a back-end code directory address; the file processing module comprises:
the file analysis submodule is used for analyzing the code file to obtain a front-end code file and a background code file;
and the file saving submodule is used for saving the front-end code file in a front-end code directory corresponding to the front-end code directory address and saving the background code file in a background code directory corresponding to the background code directory address.
In some modes, the client is developed and realized based on cross-platform electron desktop application, can be adapted to different operating systems, can realize code generation of specific functions even if development environments of different research and development teams are different, and is wide in applicability; meanwhile, compared with a browser client, the client of the embodiment can configure the directory address of the code file, so that the code file can be analyzed and stored in the configured directory of the code file in the follow-up process, and research personnel do not need to move and operate the code file after downloading the code file.
For convenience of description, the above clients are described as being divided into various modules by functions and described separately. Of course, the functionality of the modules may be implemented in the same one or more software and/or hardware implementations in implementing one or more embodiments of the present description.
The client of the foregoing embodiment is used to implement the corresponding method in the foregoing embodiment, and has the beneficial effects of the corresponding method embodiment, which are not described herein again.
As shown in fig. 3, the present specification further provides a logistics business code generation system, which includes a client and a server, wherein,
the client is used for acquiring project configuration information, and the project configuration information comprises a target database; connecting a target database, and acquiring and outputting at least one data table entry in the target database; acquiring at least one target data table entry selected from each data table entry, and determining each data segment information of each target data table entry; generating a code parameter file according to the information of each data segment; sending the code parameter file to a server; receiving a code file sent by the server;
and the server is used for generating a corresponding code file by using the template engine according to the code parameter file and sending the code file to the client.
In some application scenarios, a logistics canteen management project microservice needs to be created, a research and development staff can configure project configuration information related to a project in a project configuration page of a client, and input a project name, configuration items of a target database in which the canteen information is stored, a front-end code directory address and a background code directory address in the project configuration page; after the client acquires the input project configuration information, the client is connected with the target database, acquires each data table item from the target database and displays each data table item on a client page, a research and development staff can select one or more data table items as target data table items according to specific project requirements, the client acquires the input target data table items and displays each data segment information of each target data table item on the client page, the research and development staff can modify and configure one or more data segment information according to the specific project requirements, the modified data segment information is stored after the modification configuration, the client generates a code parameter file according to each modified and stored data segment information, then the code parameter file is sent to the server, the server receives the code parameter file, analyzes the code parameter file, and generates a front-end code file and a background code file of the project by using a template engine according to the analyzed parameters, packaging the front-end code file and the background code file into a project file, sending the project file to a client, processing the project file by the client to obtain the front-end code file and the background code file, storing the front-end code file in a front-end code directory, and storing the background code file in a background code directory; and then, running and debugging codes based on the obtained front-end code file and the back-end code file. Therefore, research personnel only need to input project configuration information and modify partial parameters as required, code files which can adapt to different projects can be obtained, development workload is greatly reduced, research and development efficiency is improved, misoperation is effectively avoided, and operation is very convenient.
In some embodiments, the template engine in the server has a standard and consistent code template, and can modify and update the code template according to requirements and new technical standards, the code file generated based on the template engine has standard code, no redundant content exists, the generated code has high quality, only the template engine needs to be updated, the code file does not need to be modified and updated, the updating efficiency is high, and the flexible and dynamic updating of the code can be realized.
In some embodiments, the server may perform update management on versions of the client, each version of the client is stored in the server, when the client runs, the server obtains version information of the client, determines whether the version of the client is the latest version, and if not, the server sends a version update prompt to the client, and the client may be set to automatically update according to the latest version, or provide a user selection whether to update to the latest version.
In some embodiments, one server may be configured or multiple servers may be configured according to a network topology, for example, one server is configured in a local area network, one server is configured in an external network, and a client may switch the connected servers as needed, so that the networking configuration is flexible.
In some modes, the server realizes interaction with the client based on Java web technology, and is provided with a freemarker template engine for analyzing the code parameter file and generating the code file. The present embodiment is not particularly limited.
Fig. 4 is a schematic diagram illustrating a more specific hardware structure of an electronic device according to this embodiment, where the electronic device may include: a processor 1010, a memory 1020, an input/output interface 1030, a communication interface 1040, and a bus 1050. Wherein the processor 1010, memory 1020, input/output interface 1030, and communication interface 1040 are communicatively coupled to each other within the device via bus 1050.
The processor 1010 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits, and is configured to execute related programs to implement the technical solutions provided in the embodiments of the present disclosure.
The Memory 1020 may be implemented in the form of a ROM (Read Only Memory), a RAM (Random Access Memory), a static storage device, a dynamic storage device, or the like. The memory 1020 may store an operating system and other application programs, and when the technical solution provided by the embodiments of the present specification is implemented by software or firmware, the relevant program codes are stored in the memory 1020 and called to be executed by the processor 1010.
The input/output interface 1030 is used for connecting an input/output module to input and output information. The i/o module may be configured as a component in a device (not shown) or may be external to the device to provide a corresponding function. The input devices may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output devices may include a display, a speaker, a vibrator, an indicator light, etc.
The communication interface 1040 is used for connecting a communication module (not shown in the drawings) to implement communication interaction between the present apparatus and other apparatuses. The communication module can realize communication in a wired mode (such as USB, network cable and the like) and also can realize communication in a wireless mode (such as mobile network, WIFI, Bluetooth and the like).
Bus 1050 includes a path that transfers information between various components of the device, such as processor 1010, memory 1020, input/output interface 1030, and communication interface 1040.
It should be noted that although the above-mentioned device only shows the processor 1010, the memory 1020, the input/output interface 1030, the communication interface 1040 and the bus 1050, in a specific implementation, the device may also include other components necessary for normal operation. In addition, those skilled in the art will appreciate that the above-described apparatus may also include only those components necessary to implement the embodiments of the present description, and not necessarily all of the components shown in the figures.
Computer-readable media of the present embodiments, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, 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 Discs (DVD) or other optical storage, magnetic 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.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, is limited to these examples; within the spirit of the present disclosure, features from the above embodiments or from different embodiments may also be combined, steps may be implemented in any order, and there are many other variations of different aspects of one or more embodiments of the present description as described above, which are not provided in detail for the sake of brevity.
In addition, well-known power/ground connections to Integrated Circuit (IC) chips and other components may or may not be shown in the provided figures, for simplicity of illustration and discussion, and so as not to obscure one or more embodiments of the disclosure. Furthermore, devices may be shown in block diagram form in order to avoid obscuring the understanding of one or more embodiments of the present description, and this also takes into account the fact that specifics with respect to implementation of such block diagram devices are highly dependent upon the platform within which the one or more embodiments of the present description are to be implemented (i.e., specifics should be well within purview of one skilled in the art). Where specific details (e.g., circuits) are set forth in order to describe example embodiments of the disclosure, it should be apparent to one skilled in the art that one or more embodiments of the disclosure can be practiced without, or with variation of, these specific details. Accordingly, the description is to be regarded as illustrative instead of restrictive.
While the present disclosure has been described in conjunction with specific embodiments thereof, many alternatives, modifications, and variations of these embodiments will be apparent to those of ordinary skill in the art in light of the foregoing description. For example, other memory architectures (e.g., dynamic ram (dram)) may use the discussed embodiments.
It is intended that the one or more embodiments of the present specification embrace all such alternatives, modifications and variations as fall within the broad scope of the appended claims. Therefore, any omissions, modifications, substitutions, improvements, and the like that may be made without departing from the spirit and principles of one or more embodiments of the present disclosure are intended to be included within the scope of the present disclosure.

Claims (10)

1. A method for generating logistical service codes, comprising:
acquiring project configuration information, wherein the project configuration information comprises a target database;
connecting the target database, and acquiring and outputting at least one data table entry in the target database;
acquiring at least one target data table entry selected from each data table entry, and determining each data segment information of each target data table entry;
generating a code parameter file according to the information of each data segment;
sending the code parameter file to a server so that the server generates a corresponding code file by using a template engine according to the code parameter file;
and receiving the code file sent by the server.
2. The method of claim 1, wherein before generating the code parameter file according to the pieces of data segment information, the method further comprises:
outputting each item of data segment information of each target data table entry;
and acquiring the reconfigured at least one piece of data segment information.
3. The method of claim 1, wherein the project configuration information further comprises a code directory address, the method further comprising:
and storing the code file in a code directory corresponding to the code directory address.
4. The method of claim 3, wherein the code directory address comprises a front-end code directory address and a back-end code directory address; the step of storing the code file in a code directory corresponding to the code directory address comprises the following steps:
analyzing the code file to obtain a front-end code file and a background code file;
and storing the front-end code file in a front-end code directory corresponding to the front-end code directory address, and storing the background code file in a background code directory corresponding to the background code directory address.
5. A client, comprising:
the system comprises a configuration information acquisition module, a configuration information acquisition module and a configuration information acquisition module, wherein the configuration information acquisition module is used for acquiring project configuration information which comprises a target database;
the database processing module is used for connecting the target database, acquiring and outputting at least one data table entry in the target database;
the table entry acquisition module is used for acquiring at least one target data table entry selected from the data table entries and determining each item of data segment information of each target data table entry;
the parameter generation module is used for generating a code parameter file according to the information of each data segment;
the sending module is used for sending the code parameter file to a server so that the server generates a corresponding code file by using a template engine according to the code parameter file;
and the receiving module is used for receiving the code file sent by the server.
6. The client of claim 5, further comprising:
the data segment output module is used for outputting each item of data segment information of each target data table entry;
and the data segment acquisition module is used for acquiring the reconfigured at least one piece of data segment information.
7. The client of claim 5, wherein the item configuration information further comprises a code directory address, and wherein the client further comprises:
and the file processing module is used for storing the code file in a code directory corresponding to the code directory address.
8. The client of claim 7, wherein the code directory address comprises a front-end code directory address and a back-end code directory address; the file processing module comprises:
the file analysis submodule is used for analyzing the code file to obtain a front-end code file and a background code file;
and the file saving submodule is used for saving the front-end code file in a front-end code directory corresponding to the front-end code directory address and saving the background code file in a background code directory corresponding to the background code directory address.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1 to 4 when executing the program.
10. A logistics business code generation system is characterized by comprising a client and a server, wherein,
the client is used for acquiring project configuration information, and the project configuration information comprises a target database; connecting the target database, and acquiring and outputting at least one data table entry in the target database; acquiring at least one target data table entry selected from each data table entry, and determining each data segment information of each target data table entry; generating a code parameter file according to the information of each data segment; sending the code parameter file to a server; receiving the code file sent by the server;
and the server is used for generating a corresponding code file by utilizing a template engine according to the code parameter file and sending the code file to the client.
CN202010576365.4A 2020-06-22 2020-06-22 Logistics service code generation method, client, electronic equipment and system Pending CN112000319A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010576365.4A CN112000319A (en) 2020-06-22 2020-06-22 Logistics service code generation method, client, electronic equipment and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010576365.4A CN112000319A (en) 2020-06-22 2020-06-22 Logistics service code generation method, client, electronic equipment and system

Publications (1)

Publication Number Publication Date
CN112000319A true CN112000319A (en) 2020-11-27

Family

ID=73466689

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010576365.4A Pending CN112000319A (en) 2020-06-22 2020-06-22 Logistics service code generation method, client, electronic equipment and system

Country Status (1)

Country Link
CN (1) CN112000319A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113448562A (en) * 2021-03-31 2021-09-28 北京新氧科技有限公司 Automatic logic code generation method and device and electronic equipment

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109634607A (en) * 2018-12-13 2019-04-16 泰康保险集团股份有限公司 A kind of method and device of Code automatic build

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109634607A (en) * 2018-12-13 2019-04-16 泰康保险集团股份有限公司 A kind of method and device of Code automatic build

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
淘气小饼干: "使用Freemarker模板自动生成代码", HTTPS://WWW.CNBLOGS.COM/TENNY-PENG/P/11534476.HTML, pages 1 - 5 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113448562A (en) * 2021-03-31 2021-09-28 北京新氧科技有限公司 Automatic logic code generation method and device and electronic equipment
CN113448562B (en) * 2021-03-31 2023-10-20 北京新氧科技有限公司 Automatic logic code generation method and device and electronic equipment

Similar Documents

Publication Publication Date Title
CN108037961B (en) Application program configuration method, device, server and storage medium
CN112765023B (en) Test case generation method and device
CN113050940A (en) Method for previewing small program, related device and computer program product
CN115686606A (en) Method, device, system and medium for displaying item dependency tree
CN112149035A (en) Website static resource processing method and device
CN116028028A (en) Request function generation method, device, equipment and storage medium
CN112000319A (en) Logistics service code generation method, client, electronic equipment and system
CN111488144B (en) Data processing method and device
CN115618363B (en) Vulnerability path mining method and related equipment
CN114924830A (en) Online IDE code management method based on NAS storage and related equipment
CN115269331A (en) Service topology monitoring method facing micro service group and related equipment
CN112437079B (en) Intranet access method and device
CN112799648B (en) Unified framework implementation method, system, electronic equipment and storage medium
CN114115855A (en) Code multiplexing method and device, computer readable storage medium and electronic equipment
CN112882698A (en) Development environment generation method and device, computer storage medium and electronic device
CN112465653A (en) Insurance business processing method, device, equipment and storage medium
CN117555533B (en) Code generation method, electronic device and storage medium
CN113704020B (en) Method and device for analyzing error field data of solid state disk
CN117555618A (en) Storage plug-in implementation method and device, electronic equipment and storage medium
CN111610732B (en) Method, device and equipment for replacing configurable input/output module
CN112379915A (en) Source code processing method and device
CN111400194A (en) Snapshot creating method, snapshot executing method, snapshot creating device, snapshot executing device and equipment based on test tool
CN113326042B (en) Method, device, storage medium and processor for visual configuration salary
CN112488687A (en) Payment mode configuration method, device, equipment and storage medium
CN115981721A (en) Software function configuration method and device, electronic equipment, storage medium and vehicle

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20211104

Address after: 100089 south building, block a, Dongxu International Center, Fanyang Road, Fengtai District, Beijing

Applicant after: Beijing Zhongdian Feihua Communication Co.,Ltd.

Address before: 100089 south building, block a, Dongxu International Center, Fanyang Road, Fengtai District, Beijing

Applicant before: Beijing Zhongdian Feihua Communication Co.,Ltd.

Applicant before: STATE GRID INFORMATION & TELECOMMUNICATION GROUP Co.,Ltd.

TA01 Transfer of patent application right