A method, device, equipment and medium for implementing new content in a service
By splitting and writing unoccupied sub-fields in the front-end device, the problem of complex and time-consuming database field addition was solved, and efficient business content addition was achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- CHINA CONSTRUCTION BANK
- Filing Date
- 2022-05-10
- Publication Date
- 2026-05-01
AI Technical Summary
Adding new fields to a database is a complex and time-consuming process, resulting in low efficiency in adding new content to business applications.
By receiving the target field and splitting instruction sent by the backend device, the subfield is split into corresponding subfields according to the field length and identification information of the subfield, and the content to be added is written into the unused fields, thus avoiding direct modification of the database.
It improves the efficiency of adding new content to the business and reduces the complexity and time consumption of database modifications.
Smart Images

Figure CN114691119B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of data processing technology, and in particular to a method, apparatus, device and medium for implementing new content in a business process. Background Technology
[0002] In existing technologies, bank front-end devices can display functional pages corresponding to various business scenarios, allowing users to query relevant services through these pages. However, with economic development, bank services are becoming increasingly diversified, necessitating the continuous addition of new content, such as introducing new occupational categories when applying for new credit cards.
[0003] Specifically, technicians modify the database content on the backend device through code. For example, they add a new field to the column corresponding to the content to be added in the database, and then write the content to be added into the newly added field. Subsequently, the frontend device can retrieve the column containing the newly added field from the database and provide services based on the newly added field, thereby enabling the addition of new content in the business logic.
[0004] However, adding new fields to the database is a complex and time-consuming process, resulting in low efficiency in adding new content to business applications. Summary of the Invention
[0005] This application provides a method, apparatus, device, and medium for adding new content in business processes, in order to solve the problem that in the prior art, the process of adding new fields in the database is complex and time-consuming, resulting in low efficiency in adding new content in business processes.
[0006] In a first aspect, embodiments of this application provide a method for implementing newly added content in a business process, applied to a front-end device, the method comprising:
[0007] The device receives a first target field sent by a backend device and receives an input segmentation instruction, wherein the segmentation instruction carries identification information corresponding to each sub-field into which the first target field is segmented and the field length of each sub-field of the identification information.
[0008] Based on the field length and identifier information of each sub-field, the first target field is divided into sub-fields corresponding to each identifier information of the corresponding field length;
[0009] Receive the target identifier information and the content to be added for the target sub-field to be used, write the content to be added into the remaining unoccupied field of the target sub-field, and save each identifier information and the corresponding sub-field.
[0010] Furthermore, the segmentation instruction also carries the segmentation order of each identifier sub-field. The step of segmenting the first target field into sub-fields corresponding to each identifier based on the field length and identifier information of each sub-field includes:
[0011] According to the segmentation order, for each sub-field of the identification information, the first target field is sequentially segmented into sub-fields of each identification information according to the field length of each sub-field of the identification information.
[0012] Furthermore, writing the content to be added into the remaining unoccupied fields of the target sub-column includes:
[0013] Obtain the length of the first field of the remaining unoccupied field of the target sub-column, and the length of the second field corresponding to the content to be added;
[0014] If the length of the second field does not exceed the length of the first field, the content to be added will be written into the remaining unoccupied field of the target sub-field.
[0015] Furthermore, the method also includes:
[0016] If the length of the second field exceeds the length of the first field, then output a message indicating that the content to be added failed to be written.
[0017] Furthermore, the method also includes:
[0018] Receive an input display instruction, wherein the display instruction carries each identification information of each sub-column of the service to be displayed;
[0019] For each sub-field of identification information, the saved sub-field of identification information is obtained, and the content carried in the sub-field is displayed on the display interface of the front-end device using the target interface corresponding to the pre-saved sub-field.
[0020] Furthermore, the method also includes:
[0021] Based on the segmentation order of each sub-field corresponding to the received identification information, each corresponding sub-field is concatenated into the second target field;
[0022] The second target field is sent to the backend device, so that the backend device updates the saved first target field according to the second target field.
[0023] Secondly, embodiments of this application also provide an apparatus for implementing newly added content in a business process, applied to a front-end device, the apparatus comprising:
[0024] The receiving module is used to receive a first target field sent by the backend device and to receive an input segmentation instruction, wherein the segmentation instruction carries the identification information corresponding to each sub-field into which the first target field is segmented and the field length of each sub-field of the identification information.
[0025] The segmentation module is used to segment the first target field into sub-fields corresponding to each identifier information of the corresponding field length, based on the field length and identifier information of each sub-field.
[0026] The receiving module is also used to receive the target identifier information of the target sub-field to be used and the content to be added;
[0027] The new content module is used to write the content to be added into the remaining unoccupied fields of the target sub-field, and save each identification information and the corresponding sub-field.
[0028] Furthermore, the segmentation module is specifically used to segment the first target field into sub-fields of each identifier information according to the segmentation order of each identifier information sub-field carried in the segmentation instruction, and according to the field length of each identifier information sub-field.
[0029] Furthermore, the newly added content module is specifically used to obtain the first field length of the remaining unoccupied field of the target sub-field and the second field length corresponding to the content to be added; if the second field length does not exceed the first field length, the content to be added is written into the remaining unoccupied field of the target sub-field.
[0030] Furthermore, the device also includes:
[0031] The output module is used to output a prompt message indicating that the writing of the content to be added failed if the length of the second field exceeds the length of the first field.
[0032] Furthermore, the receiving module is also used to receive an input display instruction, wherein the display instruction carries each identification information of each sub-column of the service to be displayed;
[0033] The output module is also used to obtain the saved sub-field of the identifier information for each sub-field, and display the content carried in the sub-field on the display interface of the front-end device using the target interface corresponding to the pre-saved sub-field.
[0034] Furthermore, the device also includes:
[0035] The splicing module is used to splice each corresponding sub-field into a second target field according to the segmentation order of each received identifier information.
[0036] The sending module is used to send the second target field to the backend device, so that the backend device updates the saved first target field according to the second target field.
[0037] Thirdly, embodiments of this application also provide an electronic device, the electronic device including a processor, the processor being configured to execute a computer program stored in a memory to implement the steps of the method for implementing newly added content in any of the services described above.
[0038] Fourthly, embodiments of this application also provide a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the method for implementing new content in any of the services described above.
[0039] Fifthly, embodiments of this application also provide a computer program product, the computer program product comprising: computer program code, which, when run on a computer, causes the computer to execute the steps of the method for implementing newly added content in any of the above-described services.
[0040] In this embodiment, a first target field sent by a backend device is received, along with an input splitting instruction. This instruction carries identifier information corresponding to each sub-field into which the first target field is split, and the field length of each identifier's sub-field. Based on the field length and identifier information of each sub-field, the first target field is split into sub-fields corresponding to each identifier of the corresponding field length. The target identifier information of the target sub-field to be used and the content to be added are received. The content to be added is written into the remaining unoccupied fields of the target sub-field, and each identifier and its corresponding sub-field are saved. Because the backend device saves the first target field with remaining unoccupied fields in this embodiment, after splitting the first target field, the frontend device adds content to the business logic by writing the content to be added into the remaining unoccupied fields of the target sub-fields. This avoids directly adding fields to the database by modifying code, thus improving the efficiency of adding content to the business logic. Attached Figure Description
[0041] To more clearly illustrate the technical solutions of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0042] Figure 1 A schematic diagram illustrating the implementation process of adding new content in a business function, as provided in an embodiment of this application;
[0043] Figure 2a This is a schematic diagram illustrating the interaction between front-end and back-end devices in existing technologies.
[0044] Figure 2b This is a schematic diagram illustrating the interaction between the front-end device and the back-end device provided in an embodiment of this application.
[0045] Figure 3 A schematic diagram of a device structure for implementing new content in a service, provided in an embodiment of this application;
[0046] Figure 4 This is a schematic diagram of an electronic device structure provided in an embodiment of this application. Detailed Implementation
[0047] To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0048] In this embodiment, a first target field sent by a backend device is received, and a segmentation instruction is received. The segmentation instruction carries the identification information corresponding to each sub-field into which the first target field is segmented, and the field length of each sub-field of the identification information. Based on the field length and identification information of each sub-field, the first target field is segmented into sub-fields corresponding to each identification information of the corresponding field length. The target identification information of the target sub-field to be used and the content to be added are received. The content to be added is written into the remaining unoccupied field of the target sub-field, and each identification information and each corresponding sub-field are saved.
[0049] To improve the efficiency of adding new content to business processes, embodiments of this application provide a method, apparatus, device, and medium for implementing new content in business processes.
[0050] The acquisition, storage, use, and processing of data in all technical solutions of this application comply with the relevant provisions of national laws and regulations.
[0051] Example 1:
[0052] Figure 1 This application provides a schematic diagram illustrating the implementation process of adding new content in a business process, which includes:
[0053] S101: Receive the first target field sent by the backend device and receive the input segmentation instruction, wherein the segmentation instruction carries the identification information corresponding to each sub-field into which the first target field is segmented and the field length of each sub-field of the identification information.
[0054] The method for implementing new content in a business process provided in this application embodiment is applied to a front-end device, which can be a PC, a mobile terminal, etc.
[0055] In this embodiment, when there is a need to add content to a business function, the front-end device can send a field retrieval request to the back-end device. This request carries information about the business function for which the content to be added. Upon receiving the request, the back-end device retrieves the field corresponding to the business function for which the content to be added is located from the database. In this embodiment, the field corresponding to the business function for which the content to be added is referred to as the first target field. After obtaining the first target field, the back-end device sends it to the front-end device. Furthermore, in this embodiment, the front-end device also receives an input splitting instruction and, based on this instruction, splits the first target field into at least two sub-fields. The split sub-fields contain unused fields. The front-end device adds content to the business function by writing the content to be added into one of the unused fields of a sub-field, thus avoiding the need to directly modify the code to add fields in the database.
[0056] Specifically, in this embodiment, the technician pre-configures the field length of each sub-field after the first target field is divided, and the corresponding identification information for each sub-field, based on the content stored in each field of the known first target field. Each identification information represents the data content in the field of the sub-field corresponding to that identification information. The technician then configures the identification information corresponding to each sub-field and the field length of each sub-field of that identification information into the splitting instruction, thereby enabling the front-end device to receive the splitting instruction.
[0057] In this embodiment, the identification information corresponding to each sub-field is used to identify each sub-field and also to identify the content type of the content carried in each sub-field. Therefore, in this embodiment, the identification information can be a keyword (Key), etc.
[0058] S102: Based on the field length and identifier information of each sub-field, the first target field is divided into sub-fields corresponding to each identifier information of the corresponding field length.
[0059] In this embodiment, after receiving the input segmentation instruction, the front-end device can segment the first target field based on the segmentation instruction. Specifically, after receiving the segmentation instruction, the front-end device obtains the identification information corresponding to each sub-field and the field length of each sub-field carried in the segmentation instruction, and segments the first target field into sub-fields corresponding to each field length according to the field length of the sub-field of each identification information.
[0060] Specifically, in this embodiment, the segmentation instruction may carry a correspondence between each identifier and the field length. After receiving the segmentation instruction, the front-end device determines each identifier carried in the segmentation instruction and identifies each identifier as the identifier corresponding to the sub-field. Then, based on the identifier, the field length of the sub-field corresponding to each identifier is determined.
[0061] After determining the identifier information and field length of each sub-field, the front-end device divides the first target field into sub-fields corresponding to each identifier information of the corresponding field length according to the field length and the division order of each sub-field.
[0062] S103: Receive the target identifier information and the content to be added to the target sub-field to be used, write the content to be added to the remaining unoccupied field of the target sub-field, and save each identifier information and the corresponding sub-field.
[0063] In this embodiment of the application, after the front-end device completes the segmentation of the first target field, the front-end device can add content to the first target field based on the segmented sub-fields, thereby realizing the addition of content to the business corresponding to the first target field.
[0064] In addition, after the front-end device divides the first target field into sub-fields corresponding to each identifier, the front-end device can output a prompt message indicating that the first target field has been divided, which prompts the technician to add content to the first target field. For example, the prompt message indicating that the first target field has been divided can be displayed on the front-end device's display interface, or the voice message indicating that the first target field has been divided can be output through the front-end device's speaker, etc., without limitation.
[0065] After the front-end device outputs a prompt indicating that the first target field has been successfully segmented, it receives the target identifier information of the target sub-field to be used and the content to be added. This target sub-field is used to write the content to be added, thus avoiding direct modification of the database content on the back-end device through structural code. This allows for the addition of a field to the business-related field of the content to be added in the database. Specifically, in this embodiment, the front-end device receives the target identifier information of the target sub-field to be used and the content to be added. Based on the target identifier information, it searches for the target sub-field corresponding to the target identifier information in each sub-field obtained from the segmentation of the first target field, determines the remaining unoccupied fields of the target sub-field, and writes the content to be added into the remaining unoccupied fields.
[0066] Generally, the target subfield is the subfield with the most remaining unoccupied fields among all the subfields obtained by dividing the first target subfield. Of course, the target subfield can also be other subfields. Technical personnel can select the most suitable subfield as the target subfield according to the actual application scenario, and determine the identification information of the subfield as the target identification information.
[0067] In this embodiment, since there are unused fields in the first target field stored by the backend device, after splitting the first target field, the frontend device can add content to the business by writing the content to be added into the unused fields of the target sub-field. This avoids directly modifying the content in the backend device's database by modifying the code, and adds new fields to the corresponding fields of the business in the database, thus improving the efficiency of adding content to the business.
[0068] Example 2:
[0069] To achieve the segmentation of the first target field and subsequently add content to it, based on the above embodiments, in this embodiment, the segmentation instruction further carries the segmentation order of each sub-field with identification information. The step of segmenting the first target field into sub-fields corresponding to each identification information of a given field length, based on the field length and identification information of each sub-field, includes:
[0070] According to the segmentation order, for each sub-field of the identification information, the first target field is sequentially segmented into sub-fields of each identification information according to the field length of each sub-field of the identification information.
[0071] In this embodiment, the segmentation instruction received by the front-end device also carries the segmentation order of each sub-field of the identification information. The front-end device can segment the first target field based on this segmentation order. Specifically, after receiving the input segmentation instruction, the front-end device obtains the identification information corresponding to each sub-field, the field length of each sub-field, and the segmentation order of each sub-field of the identification information carried in the segmentation instruction. It then segments each sub-field of the identification information sequentially according to this segmentation order. Specifically, firstly, according to the segmentation order, the first sub-field is taken as the currently segmented sub-field. Based on the field length and identification information of this sub-field, a sub-field of that field length is segmented from the beginning of the remaining fields of the first target field, and the identification information corresponding to this sub-field is determined. Then, according to the segmentation order, the sub-fields after the first sub-field are taken as the currently segmented sub-fields, and subsequent segmentation continues to obtain the sub-fields of each identification information.
[0072] For example, in this embodiment, the segmentation instruction carries the identification information "Name", "Age", and "Gender" respectively. The sub-field with "Name" as the identification information corresponds to a field length of 5 fields, the sub-field with "Age" as the identification information corresponds to a field length of 4 fields, and the sub-field with "Gender" as the identification information corresponds to a field length of 2 fields. The segmentation order carried in the instruction is "Name", "Gender", and "Age" in sequence. According to this segmentation instruction, starting from the beginning of the first target field, a sub-field with a field length of 5 fields is first segmented and identified by "Name"; then a sub-field with a field length of 2 fields is segmented and identified by "Gender"; finally, a sub-field with a field length of 4 fields is segmented and identified by "Age".
[0073] Furthermore, in this embodiment of the application, to ensure the accuracy of segmenting the first target field, the segmentation instruction received by the front-end device may also carry a preset number of sub-fields corresponding to the first target field. After the front-end device completes the segmentation of the first target field, it determines the actual number of sub-fields obtained from the segmentation, compares the actual number with the preset number, and if the numbers match, proceeds with subsequent operations; if the numbers do not match, the front-end device issues an alarm.
[0074] Example 3:
[0075] To enable the addition of new content in business operations, based on the above embodiments, in this embodiment, the step of writing the content to be added into the remaining unoccupied field of the target sub-column includes:
[0076] Obtain the length of the first field of the remaining unoccupied field of the target sub-column, and the length of the second field corresponding to the content to be added;
[0077] If the length of the second field does not exceed the length of the first field, the content to be added will be written into the remaining unoccupied field of the target sub-field.
[0078] In this embodiment of the application, after receiving the target identifier information of the target sub-field to be used and the content to be added, the front-end device searches for the target sub-field corresponding to the target identifier information in each sub-field divided from the first target field, and determines the remaining unoccupied fields in the target sub-field.
[0079] To ensure that all content to be added is written into the remaining unoccupied fields of the target sub-field and to avoid content loss, in this embodiment of the application, when the front-end device writes the content to be added into the remaining unoccupied fields of the target sub-field, it first determines the first field length of the remaining unoccupied fields of the target sub-field and the second field length corresponding to the content to be added, and then writes the content to be added into the remaining unoccupied fields of the target sub-field based on the first field length and the second field length.
[0080] Specifically, in this embodiment, the front-end device determines whether the length of the second field of the content to be added exceeds the length of the first field of the remaining unoccupied field of the target sub-field. If the length of the second field does not exceed the length of the first field, the front-end device determines that the content to be added can be written entirely into the remaining unoccupied field of the target sub-field, and then the front-end device writes the content to be added into the remaining unoccupied field of the target sub-field.
[0081] For example, in this embodiment of the application, the length of the second field of the content to be added is 5 fields, and the length of the first field of the remaining unoccupied field of the target sub-field is 10 fields. If the length of the second field of the content to be added does not exceed the length of the first field of the remaining unoccupied field of the target sub-field, then the front-end device writes the content to be added into the remaining unoccupied field of the target sub-field.
[0082] To enable the addition of new content to the business, based on the above embodiments, the method in this application embodiment further includes:
[0083] If the length of the second field exceeds the length of the first field, then output a message indicating that the content to be added failed to be written.
[0084] Furthermore, in this embodiment, if the front-end device determines that the length of the second field of the content to be added exceeds the length of the first field of the remaining unoccupied field of the target sub-field, then the front-end device determines that the content to be added cannot be completely written into the remaining unoccupied field of the target sub-field. In this case, the front-end device will temporarily suspend the operation of writing the content to be added, and instead output a prompt message indicating that the content to be added has failed to be written, and wait for the next operation instruction.
[0085] Example 4:
[0086] To enable the front-end device to provide services based on the first target field after the addition of content, in this embodiment of the application, the method further includes, in addition to the above embodiments:
[0087] Receive an input display instruction, wherein the display instruction carries each identification information of each sub-column of the service to be displayed;
[0088] For each sub-field of identification information, the saved sub-field of identification information is obtained, and the content carried in the sub-field is displayed on the display interface of the front-end device using the target interface corresponding to the pre-saved sub-field.
[0089] In order to enable the front-end device to provide services to users based on the first target field of the newly added content after the business is added, in this embodiment of the application, when the user has a business need, he / she inputs a display instruction to the front-end device. The front-end device receives the input display instruction and displays each sub-field on the display interface after receiving the display instruction.
[0090] Specifically, for any given service, when providing the user with the corresponding functionality, the front-end device displays the relevant content based on its interface. To better showcase this content and improve the user experience, different content items are displayed in different positions within the display area. For example, in a query service, the name is displayed at the top, and the occupation type is displayed after the name. The display interface is divided into multiple areas, each corresponding to an interface. For each service, after subdividing the primary target field into multiple sub-fields, the front-end device receives input from technicians containing the identifiers of each sub-field and their corresponding target interface IDs, and saves this mapping. When the front-end device displays the content carried in each sub-column corresponding to the service, the front-end device receives the display instruction input by the user. The display instruction carries the identification information of each sub-column. For each sub-column, the front-end device can find the ID of the interface corresponding to the identification information of the sub-column according to the correspondence between the stored identification information and the interface ID, and determine the target interface corresponding to the ID. Then, the content carried in the sub-column is displayed in the display area corresponding to the target interface.
[0091] Based on this, in this embodiment, when a user needs to use the function corresponding to the newly added content, the user can input a display command to the front-end device, wherein the display command carries the ID of the target interface corresponding to each sub-field of identification information. After receiving the display command, the front-end device determines the target interface corresponding to each sub-field and displays the content carried in the sub-field in the display area corresponding to the target interface in the display interface of the front-end device.
[0092] It should be noted that in existing technologies, for each service, the backend device's database stores multiple fields corresponding to that service, where each field corresponds to a display area, and maintains the correspondence between each field and the display area. The frontend device stores the correspondence between each interface and the display area, retrieves the field corresponding to each service for each display area from the backend device based on each interface, and displays the content in the field corresponding to that display area in each display area.
[0093] However, in this embodiment, for each service, the backend device stores a first target field corresponding to that service. This field can carry various types of information. After the frontend device obtains the first target field corresponding to the service from the backend device, it segments the first target field based on the received segmentation instruction, dividing it into at least two sub-fields. Then, based on the received display instruction, it displays the content carried in each sub-field on the frontend device's display interface. That is, this embodiment avoids receiving fields from the backend device multiple times, reducing the pressure of interaction between the frontend and backend devices. At the same time, by reducing the number of data transmissions between the frontend and backend devices, the risk of data transmission errors is reduced.
[0094] Figure 2a This is a schematic diagram illustrating the interaction between front-end and back-end devices in existing technologies, such as... Figure 2a As shown, for any given service, the backend device stores the corresponding class table, student table, and course table. The interface corresponding to the class table is the class maintenance module interface, the interface corresponding to the student table is the student maintenance module interface, and the interface corresponding to the course table is the course maintenance module interface. The frontend device retrieves the class table, student table, and course table from the backend device and displays the content from the student table in the student maintenance display area corresponding to the student maintenance module interface, the content from the course table in the course maintenance display area corresponding to the course maintenance module interface, and the content from the class table in the class maintenance display area corresponding to the class maintenance module interface.
[0095] Figure 2b This is a schematic diagram illustrating the interaction between the front-end device and the back-end device provided in the embodiments of this application. Figure 2b As shown, for any given service, the backend device stores a first target field corresponding to that service. This first target field contains information such as students, classes, and courses. After the frontend device obtains the first target field corresponding to the service from the backend device, it segments the first target field based on the received segmentation instruction to obtain a first sub-field corresponding to the student table, a second sub-field corresponding to the class table, and a third sub-field corresponding to the course table. According to the received display instruction, the frontend device displays the content carried in the first sub-field in the student maintenance display area corresponding to the student maintenance module interface, displays the content carried in the second sub-field in the class maintenance display area corresponding to the class maintenance module interface, and displays the content carried in the third sub-field in the course maintenance display area corresponding to the course maintenance module interface.
[0096] Example 5:
[0097] In order to implement the addition of new content in the database of the backend device, based on the above embodiments, the method in this application embodiment further includes:
[0098] Based on the order of the sub-fields corresponding to each received identifier information, each corresponding sub-field is concatenated into the second target field;
[0099] The second target field is sent to the backend device, so that the backend device updates the saved first target field according to the second target field.
[0100] After adding content to the first target field obtained by the front-end device, in order to enable the back-end device to update synchronously, in this embodiment of the application, the front-end device will concatenate each sub-field to obtain a second target field, and send the second target field to the back-end device, so that the back-end device updates the saved first target field according to the second target field.
[0101] In this embodiment, when the front-end device concatenates each sub-field into the second target field, it does so according to the concatenation order of each sub-field carried in the concatenation instruction received before concatenating the first target field. Specifically, the front-end device obtains the concatenation order of the sub-field corresponding to each identifier in the concatenation instruction, sorts each sub-field according to the concatenation order, and determines the field obtained after sorting as the second target field.
[0102] Example 6:
[0103] Figure 3 This application provides a schematic diagram of a device for implementing newly added content in a service, the device comprising:
[0104] The receiving module 301 is used to receive a first target field sent by the backend device and to receive an input segmentation instruction, wherein the segmentation instruction carries the identification information corresponding to each sub-field into which the first target field is segmented and the field length of each sub-field of the identification information.
[0105] The segmentation module 302 is used to segment the first target column into sub-columns corresponding to each identifier information of the corresponding field length according to the field length and identifier information of each sub-column;
[0106] The receiving module 301 is also used to receive the target identifier information of the target sub-field to be used and the content to be added;
[0107] The new content module 303 is used to write the content to be added into the remaining unoccupied fields of the target sub-field, and save each identification information and the corresponding sub-field.
[0108] In one possible implementation, the segmentation module 302 is specifically used to, according to the segmentation order of each sub-field of each identifier information carried in the segmentation instruction, sequentially segment the first target field into sub-fields of each identifier information according to the corresponding field length of each sub-field of the identifier information.
[0109] In one possible implementation, the new content module 303 is specifically used to obtain the first field length of the remaining unoccupied field of the target sub-field and the second field length corresponding to the content to be added; if the second field length does not exceed the first field length, the content to be added is written into the remaining unoccupied field of the target sub-field.
[0110] In one possible implementation, the device further includes:
[0111] The output module 304 is used to output a prompt message indicating that the writing of the content to be added failed if the length of the second field exceeds the length of the first field.
[0112] In one possible implementation, the receiving module 301 is further configured to receive an input display instruction, wherein the display instruction carries each identification information of each sub-column of the service to be displayed;
[0113] The output module 304 is also used to obtain the saved sub-field of the identification information for each sub-field of the identification information, and display the content carried in the sub-field on the display interface of the front-end device according to the target interface corresponding to the pre-saved sub-field.
[0114] In one possible implementation, the device further includes:
[0115] The splicing module 305 is used to splice each corresponding sub-field into a second target field according to the segmentation order of each received identifier information.
[0116] The sending module 306 is used to send the second target field to the backend device, so that the backend device updates the saved first target field according to the second target field.
[0117] Example 7:
[0118] Based on the above embodiments, this application also provides an electronic device. Figure 4 This application provides a schematic diagram of an electronic device structure, such as... Figure 4As shown, it includes: processor 41, communication interface 42, memory 43 and communication bus 44, wherein processor 41, communication interface 42 and memory 43 communicate with each other through communication bus 44.
[0119] The memory 43 stores a computer program, which, when executed by the processor 41, causes the processor 41 to perform the following steps:
[0120] The device receives a first target field sent by a backend device and receives an input segmentation instruction, wherein the segmentation instruction carries identification information corresponding to each sub-field into which the first target field is segmented and the field length of each sub-field of the identification information.
[0121] Based on the field length and identifier information of each sub-field, the first target field is divided into sub-fields corresponding to each identifier information of the corresponding field length;
[0122] Receive the target identifier information and the content to be added for the target sub-field to be used, write the content to be added into the remaining unoccupied field of the target sub-field, and save each identifier information and the corresponding sub-field.
[0123] In one possible implementation, the segmentation instruction also carries the segmentation order of each sub-field of the identification information. Specifically, the processor 41 is used to segment the first target field into sub-fields of each identification information according to the corresponding field length, based on the segmentation order and the field length of each sub-field of the identification information.
[0124] In one possible implementation, the processor 41 is specifically used to obtain the first field length of the remaining unoccupied field of the target sub-column, and the second field length corresponding to the content to be added;
[0125] If the length of the second field does not exceed the length of the first field, the content to be added will be written into the remaining unoccupied field of the target sub-field.
[0126] In one possible implementation, the processor 41 is further configured to output a prompt message indicating that the writing of the content to be added failed if the length of the second field exceeds the length of the first field.
[0127] In one possible implementation, the processor 41 is further configured to receive an input display instruction, wherein the display instruction carries identification information for each sub-column of the service to be displayed;
[0128] For each sub-field of identification information, the saved sub-field of identification information is obtained, and the content carried in the sub-field is displayed on the display interface of the front-end device using the target interface corresponding to the pre-saved sub-field.
[0129] In one possible implementation, the processor 41 is further configured to concatenate each corresponding sub-field into a second target field according to the segmentation order of the sub-field corresponding to each received identification information.
[0130] The second target field is sent to the backend device, so that the backend device updates the saved first target field according to the second target field.
[0131] Since the principle by which the above-mentioned electronic devices solve the problem is similar to the method for implementing new content in the business, the implementation of the above-mentioned electronic devices can be found in the embodiments of the method, and repeated details will not be repeated.
[0132] The communication bus mentioned in the above-mentioned electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. This communication bus can be divided into address bus, data bus, control bus, etc. For ease of illustration, only one thick line is used in the figure, but this does not indicate that there is only one bus or one type of bus. Communication interface 42 is used for communication between the above-mentioned electronic device and other devices. The memory can include random access memory (RAM) or non-volatile memory (NVM), such as at least one disk storage device. Optionally, the memory can also be at least one storage device located remotely from the aforementioned processor.
[0133] The processors mentioned above can be general-purpose processors, including central processing units, network processors (NPs), etc.; they can also be digital signal processors (DSPs), application-specific integrated circuits, field-programmable gate arrays or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
[0134] Example 8:
[0135] Based on the above embodiments, this application also provides a computer-readable storage medium storing a computer program executable by a processor. When the program runs on the processor, it causes the processor to perform the following steps:
[0136] The device receives a first target field sent by a backend device and receives an input segmentation instruction, wherein the segmentation instruction carries identification information corresponding to each sub-field into which the first target field is segmented and the field length of each sub-field of the identification information.
[0137] Based on the field length and identifier information of each sub-field, the first target field is divided into sub-fields corresponding to each identifier information of the corresponding field length;
[0138] Receive the target identifier information and the content to be added for the target sub-field to be used, write the content to be added into the remaining unoccupied field of the target sub-field, and save each identifier information and the corresponding sub-field.
[0139] In one possible implementation, the segmentation instruction also carries the segmentation order of each identifier sub-field. The step of segmenting the first target field into sub-fields corresponding to each identifier based on the field length and identifier information of each sub-field includes:
[0140] According to the segmentation order, for each sub-field of the identification information, the first target field is sequentially segmented into sub-fields of each identification information according to the field length of each sub-field of the identification information.
[0141] In one possible implementation, writing the content to be added into the remaining unoccupied field of the target sub-column includes:
[0142] Obtain the length of the first field of the remaining unoccupied field of the target sub-column, and the length of the second field corresponding to the content to be added;
[0143] If the length of the second field does not exceed the length of the first field, the content to be added will be written into the remaining unoccupied field of the target sub-field.
[0144] In one possible implementation, the method further includes:
[0145] If the length of the second field exceeds the length of the first field, then output a message indicating that the content to be added failed to be written.
[0146] In one possible implementation, the method further includes:
[0147] Receive an input display instruction, wherein the display instruction carries each identification information of each sub-column of the service to be displayed;
[0148] For each sub-field of identification information, the saved sub-field of identification information is obtained, and the content carried in the sub-field is displayed on the display interface of the front-end device using the target interface corresponding to the pre-saved sub-field.
[0149] In one possible implementation, the method further includes:
[0150] Based on the segmentation order of each sub-field corresponding to the received identification information, each corresponding sub-field is concatenated into the second target field;
[0151] The second target field is sent to the backend device, so that the backend device updates the saved first target field according to the second target field.
[0152] Since the principle of the computer-readable storage medium in solving the problem is similar to the method of adding new content in the business, the implementation of the computer-readable storage medium can be found in the embodiments of the method, and the repeated parts will not be described again.
[0153] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can 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.) containing computer-usable program code.
[0154] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to this application. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable field processing device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable field processing device, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0155] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable field processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0156] These computer program instructions may also be loaded onto a computer or other programmable field processing device to cause a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable device for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0157] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the spirit and scope of this application. Therefore, if such modifications and variations fall within the scope of the claims of this application and their equivalents, this application also intends to include such modifications and variations.
Claims
1. A method for implementing new content in a business process, applied to a front-end device, characterized in that, The method includes: The system receives a first target field sent by a backend device and receives an input segmentation instruction, wherein the segmentation instruction carries identification information corresponding to each sub-field into which the first target field is segmented and the field length of each sub-field of the identification information; the first target field is the field corresponding to the business to which content is to be added; each identification information is used to represent the sub-field corresponding to the identification information and the content type of the content carried in the sub-field; Based on the field length and identifier information of each sub-field, the first target field is divided into sub-fields corresponding to each identifier information of the corresponding field length; Receive the target identifier information and the content to be added for the target sub-field to be used, write the content to be added into the remaining unoccupied field of the target sub-field, and save each identifier information and the corresponding sub-field.
2. The method according to claim 1, characterized in that, The segmentation instruction also carries the segmentation order of each sub-field with identification information. The step of segmenting the first target field into sub-fields corresponding to each identification information of the corresponding field length, based on the field length and identification information of each sub-field, includes: According to the segmentation order, for each sub-field of the identification information, the first target field is sequentially segmented into sub-fields of each identification information according to the field length of each sub-field of the identification information.
3. The method according to claim 1, characterized in that, The step of writing the content to be added into the remaining unused fields of the target sub-column includes: Obtain the length of the first field of the remaining unoccupied field of the target sub-column, and the length of the second field corresponding to the content to be added; If the length of the second field does not exceed the length of the first field, the content to be added will be written into the remaining unoccupied field of the target sub-field.
4. The method according to claim 3, characterized in that, The method further includes: If the length of the second field exceeds the length of the first field, then output a message indicating that the content to be added failed to be written.
5. The method according to claim 1, characterized in that, The method further includes: Receive an input display instruction, wherein the display instruction carries each identification information of each sub-column of the service to be displayed; For each sub-field of identification information, the saved sub-field of identification information is obtained, and the content carried in the sub-field is displayed on the display interface of the front-end device using the target interface corresponding to the pre-saved sub-field.
6. The method according to claim 1, characterized in that, The method further includes: Based on the segmentation order of each sub-field corresponding to the received identification information, each corresponding sub-field is concatenated into the second target field; The second target field is sent to the backend device, so that the backend device updates the saved first target field according to the second target field.
7. A device for implementing newly added content in a business process, applied to a front-end device, characterized in that, The device includes: The receiving module is used to receive a first target field sent by the backend device and to receive an input segmentation instruction, wherein the segmentation instruction carries identification information corresponding to each sub-field into which the first target field is segmented and the field length of each sub-field of the identification information; the first target field is the field corresponding to the service to which content is to be added; each identification information is used to indicate the sub-field corresponding to the identification information and the content type of the content carried in the sub-field; The segmentation module is used to segment the first target field into sub-fields corresponding to each identifier information of the corresponding field length, based on the field length and identifier information of each sub-field. The receiving module is also used to receive the target identifier information of the target sub-field to be used and the content to be added; The new content module is used to write the content to be added into the remaining unoccupied fields of the target sub-field, and save each identification information and the corresponding sub-field.
8. The apparatus according to claim 7, characterized in that, The segmentation module is specifically used to segment the first target field into sub-fields of each identifier information according to the segmentation order of each identifier information sub-field carried in the segmentation instruction, and according to the field length of each identifier information sub-field.
9. The apparatus according to claim 7, characterized in that, The newly added content module is specifically used to obtain the first field length of the remaining unoccupied field of the target sub-field and the second field length corresponding to the content to be added; if the second field length does not exceed the first field length, the content to be added is written into the remaining unoccupied field of the target sub-field.
10. The apparatus according to claim 9, characterized in that, The device further includes: The output module is used to output a prompt message indicating that the writing of the content to be added failed if the length of the second field exceeds the length of the first field.
11. The apparatus according to claim 7, characterized in that, The receiving module is also used to receive input display instructions, wherein the display instructions carry each identification information of each sub-column of the service to be displayed; The output module is also used to obtain the saved sub-field of each identification information for each sub-field, and to display the content carried in the sub-field on the display interface of the front-end device using the target interface corresponding to the pre-saved sub-field.
12. The apparatus according to claim 7, characterized in that, The device further includes: The splicing module is used to splice each corresponding sub-field into a second target field according to the segmentation order of each received identifier information. The sending module is used to send the second target field to the backend device, so that the backend device updates the saved first target field according to the second target field.
13. An electronic device, characterized in that, The electronic device includes a processor, which executes a computer program stored in a memory to implement the steps of the method for implementing new content in any of the services described in claims 1-6.
14. A computer-readable storage medium, characterized in that, It stores a computer program, which, when executed by a processor, implements the steps of the method for implementing new content in any of the services described in claims 1-6.
15. A computer program product, characterized in that, The computer program product includes: computer program code, which, when run on a computer, causes the computer to perform the steps of the method for implementing new content in any of the services described in claims 1-6.
Citation Information
Patent Citations
Spreadsheet control method and device, computer readable storage medium and server
CN114139512A
Database object segmentation method and device
CN114281879A