Supercharge Your Innovation With Domain-Expert AI Agents!

Service code generation method and system

A business system and coding technology, applied in the fields of instruments, electrical digital data processing, computing, etc., can solve the problems of difficult later adjustment of coding format, difficulty in ensuring coding consistency, poor code reuse, etc., to achieve simple, convenient and convenient operation. The effect of post-adjustment and reduced workload

Pending Publication Date: 2022-01-14
INSPUR COMMON SOFTWARE
View PDF0 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This method has the following problems: (1) The workload of business developers is heavy, and codes need to be written for each business code separately, and because the formats of business codes are different, the code reuse is poor; (2) The coding format is difficult to adjust later , not flexible enough; (3) With the expansion of business scale, after the deployment mode of business applications is switched from stand-alone mode to distributed mode, it is difficult to ensure the consistency of code generation, etc.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Service code generation method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0013] The solutions provided in this specification will be described below in conjunction with the accompanying drawings.

[0014] In the first aspect, the present invention provides a method for generating service codes, such as figure 1 As shown, the method includes the following steps:

[0015] S100. Pre-configure coding rules corresponding to various services on the coding server, and synchronize the coding rules to the distributed cache for storage;

[0016] Wherein, the coding rule includes a rule ID, a continuous identifier, and a list of coded segments, the rule ID is the unique identifier of the coding rule, and the continuous identifier is used to indicate whether the service code generated according to the service code requires continuity. , the code segment list is used to describe each component in the service code, and the code segment list includes at least a sequence number field.

[0017] It is understandable that, as a common configuration entry, the encod...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a service code generation method and system, and the method comprises the steps that code rules corresponding to a plurality of services are configured at a coding server in advance, and the code rules are synchronized to a distributed cache for storage; when a service system receives a code generation demand of a user, a code generation service of a coding client is called to obtain a code rule from a distributed cache, and setting parameters of a rule ID, a continuous identifier and a sequence number field in the code rule are sent to a coding server to enable the coding server to search a broken number under the rule ID in the coding library when the continuous identifier is a first value, the broken number is returned to the coding client, and the broken number is deleted from the coding library; and the coding client returns the broken number as a service code to the service system. According to the invention, the continuity of service code under the same rule ID in the distributed deployment mode can be ensured, and number duplication is avoided.

Description

technical field [0001] One or more embodiments of this specification relate to the technical field of service code generation, and in particular, to a service code generation method and system. Background technique [0002] In an application system, various businesses are involved, and the corresponding business data may require one or more codes with business meanings, for example, the codes corresponding to reimbursement documents. The encoding formats required for each type of business data are often different. In the traditional mode, developers of business applications need to write business code generation programs according to requirements. This method has the following problems: (1) The workload of business developers is heavy, and codes need to be written for each business code separately, and because the formats of business codes are different, the code reuse is poor; (2) The coding format is difficult to adjust later , not flexible enough; (3) With the expansion...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F40/126
CPCG06F40/126
Inventor 张伟庆
Owner INSPUR COMMON SOFTWARE
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More