[go: up one dir, main page]

CN113535553B - Parameter checking method, computer device and storage medium - Google Patents

Parameter checking method, computer device and storage medium Download PDF

Info

Publication number
CN113535553B
CN113535553B CN202110741754.2A CN202110741754A CN113535553B CN 113535553 B CN113535553 B CN 113535553B CN 202110741754 A CN202110741754 A CN 202110741754A CN 113535553 B CN113535553 B CN 113535553B
Authority
CN
China
Prior art keywords
parameter
verification
verified
value
rule
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.)
Active
Application number
CN202110741754.2A
Other languages
Chinese (zh)
Other versions
CN113535553A (en
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.)
Shanghai United Imaging Healthcare Co Ltd
Original Assignee
Shanghai United Imaging Healthcare 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 Shanghai United Imaging Healthcare Co Ltd filed Critical Shanghai United Imaging Healthcare Co Ltd
Priority to CN202110741754.2A priority Critical patent/CN113535553B/en
Publication of CN113535553A publication Critical patent/CN113535553A/en
Application granted granted Critical
Publication of CN113535553B publication Critical patent/CN113535553B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Prevention of errors by analysis, debugging or testing of software
    • G06F11/3604Analysis of software for verifying properties of programs

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)
  • Stored Programmes (AREA)

Abstract

The application relates to a parameter checking method, computer equipment and a storage medium. The method comprises the steps of receiving a parameter verification request comprising values of a plurality of parameters to be verified, obtaining a verification rule corresponding to each parameter to be verified according to a preset corresponding relation between the verification parameters and the verification rules, and performing validity verification on the value of each parameter to be verified according to the type of each verification rule to obtain a verification result. According to the method, the value of the parameter to be verified is verified according to the type of the verification rule, and the corresponding relation between the verification parameter and the verification rule is established in advance, so that if the parameter to be verified input by a clinical engineer on the front end changes later, the verification can be realized only by updating the corresponding relation between the verification parameter and the verification rule, and the verification code corresponding to the changed parameter to be verified does not need to be revised again.

Description

参数校验方法、计算机设备和存储介质Parameter verification method, computer equipment and storage medium

技术领域technical field

本申请涉及计算机技术领域,特别是涉及一种参数校验方法、计算机设备和存储介质。The present application relates to the field of computer technology, in particular to a parameter verification method, computer equipment and storage media.

背景技术Background technique

数字减影血管造影(Digital subtraction angiography,DSA)用于将注入造影剂前后拍摄的两帧X线图像经数字化输入计算机设备,通过减影、增强和再成像过程把血管造影影像上的骨与软组织影像消除来获得清晰的纯血管影像,是电子计算机与常规X线血管造影相结合的一种检查方法。Digital subtraction angiography (Digital subtraction angiography, DSA) is used to digitally input two frames of X-ray images taken before and after injection of contrast agent into computer equipment, and through the process of subtraction, enhancement and re-imaging, bone and soft tissue on angiography images Image elimination to obtain clear pure vascular images is an inspection method that combines computer and conventional X-ray angiography.

在使用DSA设备进行造影成像的控制流程中,DSA系统对于前端的参数信息进行校验的过程为至关重要的一环。目前,临床工程师在前端输入参数数据内容、参数阈值及规则约束等与控制流程相关的参数信息后,在后端控制流程的开发过程中,研发工程师需要针对每种参数信息设计对应的规则校验代码,然后利用设计的规则校验代码对各参数信息进行参数校验,从而保证参数信息的准确性,进而保证DSA系统的正常运行。In the control process of using DSA equipment for contrast imaging, the DSA system's process of verifying the front-end parameter information is a crucial link. At present, after clinical engineers input parameter information related to the control process such as parameter data content, parameter thresholds, and rule constraints at the front end, during the development process of the back-end control process, R&D engineers need to design corresponding rule verification for each parameter information Code, and then use the designed rule verification code to verify the parameters of each parameter information, so as to ensure the accuracy of the parameter information, and then ensure the normal operation of the DSA system.

但是,如果需求的参数信息发生变化后,需要由研发工程师重新设计相关的参数信息对应的规则校验代码,再利用重新设计的规则校验代码对参数信息进行校验,这样的校验方法存在校验效率低的问题。However, if the required parameter information changes, the R&D engineer needs to redesign the rule verification code corresponding to the relevant parameter information, and then use the redesigned rule verification code to verify the parameter information. Such a verification method exists The problem of low calibration efficiency.

发明内容Contents of the invention

基于此,有必要针对上述技术问题,提供一种能够有效提高校验效率.的参数校验方法、计算机设备和存储介质。Based on this, it is necessary to provide a parameter verification method, computer equipment and storage medium that can effectively improve the verification efficiency.

第一方面,一种参数校验方法,所述方法包括:In the first aspect, a parameter checking method, the method includes:

接收参数校验请求;所述参数校验请求中包括多个待校验参数的值;Receive a parameter verification request; the parameter verification request includes the values of multiple parameters to be verified;

根据预设的校验参数与校验规则之间的对应关系,获取各所述待校验参数对应的校验规则;Acquiring a verification rule corresponding to each of the parameters to be verified according to the preset correspondence between the verification parameter and the verification rule;

根据每个所述校验规则的类型,对每个所述待校验参数的值进行合法性校验,得到校验结果。According to the type of each verification rule, the validity of each value of the parameter to be verified is verified to obtain a verification result.

在其中一个实施例中,所述根据每个所述校验规则的类型,对每个所述待校验参数的值进行合法性校验,得到校验结果,包括:In one of the embodiments, according to the type of each verification rule, the validity of each value of the parameter to be verified is verified, and the verification result is obtained, including:

判断每个所述待校验参数的忽略状态是否为不可忽略状态;judging whether the ignoring state of each parameter to be verified is a non-ignoring state;

若所述待校验参数的忽略状态为所述不可忽略状态,则根据预设的校验规则的类型与校验策略之间的对应关系,确定与所述校验规则的类型对应的校验策略,并采用所述校验策略对所述待校验参数的值进行合法性校验。If the ignoring state of the parameter to be verified is the non-ignorable state, then according to the preset correspondence between the type of verification rule and the verification strategy, determine the verification corresponding to the type of the verification rule strategy, and use the verification strategy to verify the validity of the value of the parameter to be verified.

在其中一个实施例中,若所述校验规则的类型为基本规则或应用分支规则,则所述采用所述校验策略对所述待校验参数的值进行合法性校验,包括:In one of the embodiments, if the type of the verification rule is a basic rule or an application branch rule, then using the verification strategy to verify the validity of the value of the parameter to be verified includes:

根据所述待校验参数对应的校验规则,确定校验指标;Determine the verification index according to the verification rule corresponding to the parameter to be verified;

判断所述待校验参数的值是否达到所述校验指标,若达到所述校验指标,,则确定所述待校验参数的值合法,若未达到所述校验指标,则确定所述待校验参数的值非法。judging whether the value of the parameter to be verified reaches the verification index, if the verification index is reached, then determine that the value of the parameter to be verified is legal, and if it does not reach the verification index, then determine the value of the verification index The value of the parameter to be verified is illegal.

在其中一个实施例中,若所述校验项规则的类型为所述应用分支规则,则所述方法还包括:In one of the embodiments, if the type of the check item rule is the application branch rule, the method further includes:

根据所述待校验参数对应的校验规则和所述待检验参数的值,确定与所述待校验参数关联的待校验参数是否可忽略;According to the verification rule corresponding to the parameter to be verified and the value of the parameter to be verified, determine whether the parameter to be verified associated with the parameter to be verified can be ignored;

若与所述待校验参数关联的待校验参数可忽略,则将与所述待校验参数关联的待校验参数的忽略状态设置为可忽略状态。If the parameter to be verified associated with the parameter to be verified is negligible, then the ignore state of the parameter to be verified associated with the parameter to be verified is set to an ignorable state.

在其中一个实施例中,若所述校验项规则的类型为应用函数规则,则所述采用所述校验策略对所述待校验参数的值进行合法性校验,包括:In one of the embodiments, if the type of the verification item rule is an application function rule, then using the verification strategy to verify the validity of the value of the parameter to be verified includes:

根据所述待校验参数对应的校验规则,确定与所述待校验参数成函数关系的函数参数;According to the verification rule corresponding to the parameter to be verified, determine a function parameter that has a functional relationship with the parameter to be verified;

从接收到的多个待校验参数的值中,获取所述函数参数的值;Acquiring the value of the function parameter from the received values of the plurality of parameters to be verified;

将所述函数参数的值与所述待校验参数的值代入到所述函数关系中进行计算,并根据计算结果对所述待校验参数的值进行合法性校验。Substituting the value of the function parameter and the value of the parameter to be checked into the functional relationship for calculation, and performing a legality check on the value of the parameter to be checked according to the calculation result.

在其中一个实施例中,所述方法还包括:In one embodiment, the method also includes:

判断所述函数参数的忽略状态是否为可忽略状态;judging whether the ignored state of the function parameter is a negligible state;

若所述函数参数的忽略状态是所述可忽略状态,则将所述待校验参数的忽略状态设置为可忽略状态。If the ignoring state of the function parameter is the ignorable state, then setting the ignoring state of the parameter to be verified as the ignorable state.

在其中一个实施例中,若所述校验规则的类型为应用忽略规则,则所述采用所述校验策略对所述待校验参数的值进行合法性校验,包括:In one of the embodiments, if the type of the verification rule is an application ignore rule, then using the verification strategy to verify the validity of the value of the parameter to be verified includes:

对所述待校验参数的值不进行合法性校验,并将所述待校验参数的忽略状态设置为可忽略状态。The validity check is not performed on the value of the parameter to be checked, and the ignoring state of the parameter to be checked is set to an ignorable state.

在其中一个实施例中,若所述校验结果为所述待校验参数为非法性的待校验参数,则所述方法还包括:In one of the embodiments, if the verification result is that the parameter to be verified is illegal, the method further includes:

向前端设备返回所述非法性的待校验参数,以指示所述前端设备查看和/或修改所述非法性的待校验参数。Returning the illegal parameters to be checked to the front-end device, so as to instruct the front-end device to view and/or modify the illegal parameters to be checked.

第二方面,一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,所述处理器执行所述计算机程序时实现上述所述第一方面所述的方法。In a second aspect, a computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the method described in the first aspect above when executing the computer program.

第三方面,一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上述所述第一方面所述的方法。In a third aspect, a computer-readable storage medium stores a computer program thereon, and when the computer program is executed by a processor, the method described in the above-mentioned first aspect is implemented.

上述参数校验方法、计算机设备和存储介质,通过接收包括多个待校验参数的值的参数校验请求,并根据预设的校验参数与校验规则之间的对应关系,获取各待校验参数对应的校验规则,再根据每个校验规则的类型,对每个待校验参数的值进行合法性校验,得到校验结果。上述方法由于是根据校验规则的类型对待校验参数的值进行校验,且预先建立了校验参数与校验规则之间的对应关系,所以若之后临床工程师在前端上输入的待校验参数发生变化,只需要更新校验参数与校验规则之间的对应关系即可实现校验,不需要重新修改发生变化的待校验参数对应的校验代码,因此,本实施例公开的参数校验方法可以极大的提高临床工程师的项目开发效率,进而加快项目开发进度。The above parameter verification method, computer equipment and storage medium, by receiving a parameter verification request including the values of a plurality of parameters to be verified, and according to the corresponding relationship between the preset verification parameters and verification rules, obtain each of the parameters to be verified. Verify the verification rules corresponding to the parameters, and then perform a legality verification on the value of each parameter to be verified according to the type of each verification rule, and obtain the verification result. The above method is to verify the value of the parameter to be verified according to the type of the verification rule, and the corresponding relationship between the verification parameter and the verification rule is established in advance, so if the clinical engineer enters the value to be verified on the front end If the parameters change, the verification can be realized only by updating the corresponding relationship between the verification parameters and the verification rules, and there is no need to re-modify the verification code corresponding to the changed parameters to be verified. Therefore, the parameters disclosed in this embodiment The verification method can greatly improve the project development efficiency of clinical engineers, thereby speeding up the project development progress.

附图说明Description of drawings

图1为一个实施例中应用系统的结构示意图;Fig. 1 is a schematic structural diagram of an application system in an embodiment;

图2为一个实施例中参数校验方法的流程示意图;Fig. 2 is a schematic flow diagram of a parameter checking method in an embodiment;

图3为图2实施例中S103的一种实现方式的流程示意图;FIG. 3 is a schematic flowchart of an implementation of S103 in the embodiment of FIG. 2;

图4为图3实施例中S202的一种实现方式的流程示意图;FIG. 4 is a schematic flowchart of an implementation of S202 in the embodiment of FIG. 3;

图5为一个实施例中参数校验方法的流程示意图;Fig. 5 is a schematic flow chart of a parameter checking method in an embodiment;

图6为图3实施例中S202的一种实现方式的流程示意图;FIG. 6 is a schematic flowchart of an implementation of S202 in the embodiment of FIG. 3;

图7为一个实施例中参数校验方法的流程示意图;Fig. 7 is a schematic flow chart of a parameter verification method in an embodiment;

图8为一个实施例中参数校验方法的流程示意图;Fig. 8 is a schematic flow chart of a parameter checking method in an embodiment;

图9为一个实施例中参数校验方法的流程示意图;Fig. 9 is a schematic flowchart of a parameter verification method in an embodiment;

图10为一个实施例中参数校验装置的结构框图;Fig. 10 is a structural block diagram of a parameter verification device in an embodiment;

图11为一个实施例中参数校验装置的结构框图;Fig. 11 is a structural block diagram of a parameter verification device in an embodiment;

图12为一个实施例中参数校验装置的结构框图;Fig. 12 is a structural block diagram of a parameter verification device in an embodiment;

图13为一个实施例中参数校验装置的结构框图;Fig. 13 is a structural block diagram of a parameter verification device in an embodiment;

图14为一个实施例中参数校验装置的结构框图;Fig. 14 is a structural block diagram of a parameter verification device in an embodiment;

图15为一个实施例中参数校验装置的结构框图;Fig. 15 is a structural block diagram of a parameter verification device in an embodiment;

图16为一个实施例中参数校验装置的结构框图;Fig. 16 is a structural block diagram of a parameter verification device in an embodiment;

图17为一个实施例中计算机设备的内部结构图。Figure 17 is a diagram of the internal structure of a computer device in one embodiment.

具体实施方式Detailed ways

为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solution and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present application, and are not intended to limit the present application.

本申请提供的参数校验方法,可以应用于如图1所示的应用系统中,该系统包括前端设备110和终端120,其中,前端设备110与终端120之间可以通过有线或无线的方式连接。前端设备110与终端120之间通过数据交互实现参数校验。用户(包括工程人员)可以在前端设备110上输入待校验参数的值,前端设备110将携带待校验参数的值的消息发送至终端120,终端120对待校验参数的值进行校验,然后将校验结果返回给前端设备110。前端设备110可以但不限于是各种个人计算机、笔记本电脑、智能手机、平板电脑和便携式可穿戴设备,终端120可以用独立的服务器或者是多个服务器组成的服务器集群来实现。The parameter verification method provided by this application can be applied to the application system shown in Figure 1, the system includes a front-end device 110 and a terminal 120, wherein the front-end device 110 and the terminal 120 can be connected in a wired or wireless manner . Parameter verification is realized through data interaction between the front-end device 110 and the terminal 120 . Users (including engineers) can input the value of the parameter to be verified on the front-end device 110, and the front-end device 110 sends a message carrying the value of the parameter to be verified to the terminal 120, and the terminal 120 verifies the value of the parameter to be verified, Then the verification result is returned to the front-end device 110 . The front-end device 110 can be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers and portable wearable devices, and the terminal 120 can be realized by an independent server or a server cluster composed of multiple servers.

本领域技术人员可以理解,图1中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的应用系统的限定,具体的应用系统可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Those skilled in the art can understand that the structure shown in Figure 1 is only a block diagram of a partial structure related to the solution of this application, and does not constitute a limitation on the application system to which the solution of this application is applied. The specific application system can be More or fewer components than shown in the figures may be included, or some components may be combined, or have a different arrangement of components.

在一个实施例中,如图2所示,提供了一种参数校验方法,以该方法应用于图1中的终端为例进行说明,包括以下步骤:In one embodiment, as shown in FIG. 2, a parameter verification method is provided, and the method is applied to the terminal in FIG. 1 as an example for illustration, including the following steps:

S101,接收参数校验请求;参数校验请求中包括多个待校验参数的值。S101. Receive a parameter verification request; the parameter verification request includes values of a plurality of parameters to be verified.

其中,待校验参数为临床工程师等需求方在前端设备上输入的用于控制终端进行相应采集操作的相关参数。例如,待校验参数可以包括:帧频数据、采集类型、采集模式、高压参数等。待校验参数的值可以表示待校验参数的取值、或待校验参数的取值范围、或待校验参数的标识等。参数校验请求为临床工程师在前端设备上输入待校验参数的值后,前端设备向终端发送的请求消息。Among them, the parameters to be verified are relevant parameters input by the demand side such as clinical engineers on the front-end equipment for controlling the terminal to perform corresponding collection operations. For example, the parameters to be verified may include: frame rate data, collection type, collection mode, high voltage parameters, and the like. The value of the parameter to be verified may represent the value of the parameter to be verified, or the value range of the parameter to be verified, or the identifier of the parameter to be verified, and the like. The parameter verification request is a request message sent by the front-end device to the terminal after the clinical engineer inputs the value of the parameter to be verified on the front-end device.

具体地,临床工程师可以在前端设备的显示操作界面上选择合适的待校验参数的值,并进行编辑输入至前端设备,前端设备在获取到待校验参数的值后,封装在参数校验请求中发送给终端,以指示终端根据待校验参数的值确定终端的采集方法,从而使终端按照临床工程师设置的采集方法执行相应的采集操作。Specifically, the clinical engineer can select the appropriate value of the parameter to be verified on the display operation interface of the front-end device, and edit and input it to the front-end device. After the front-end device obtains the value of the parameter to be verified, it will be packaged in the parameter verification The request is sent to the terminal to instruct the terminal to determine the acquisition method of the terminal according to the value of the parameter to be verified, so that the terminal performs the corresponding acquisition operation according to the acquisition method set by the clinical engineer.

S102,根据预设的校验参数与校验规则之间的对应关系,获取各待校验参数对应的校验规则。S102. Acquire a verification rule corresponding to each parameter to be verified according to a preset correspondence between verification parameters and verification rules.

其中,校验参数与校验规则之间的对应关系可以由终端预先构建并保存,以便之后终端可以通过查询校验参数与校验规则之间的对应关系,得到输入的每个待校验参数对应的校验规则。例如,终端可以将预先构建的校验参数与校验规则之间的对应关系记录在参数信息表中,并将该参数信息表进行保存,之后终端查询信息时即可读取该参数信息表中的数据得到想要的信息。Among them, the corresponding relationship between the verification parameters and the verification rules can be pre-built and saved by the terminal, so that the terminal can obtain each input parameter to be verified by querying the corresponding relationship between the verification parameters and the verification rules Corresponding validation rules. For example, the terminal can record the corresponding relationship between the pre-built verification parameters and verification rules in the parameter information table, and save the parameter information table, and then the terminal can read the information in the parameter information table when querying information. data to get the desired information.

具体地,当终端基于前述步骤接收到参数校验请求时,即可从中提取出待校验参数,并查询预先构建的校验参数与校验规则之间的对应关系,查找到与待校验参数对应的校验规则。具体在查询时,终端可以查询记录有校验参数与校验规则之间的对应关系的参数信息表,从中查找到与待校验参数对应的校验规则,以便之后使用。Specifically, when the terminal receives a parameter verification request based on the aforementioned steps, it can extract the parameters to be verified from it, and query the correspondence between the pre-built verification parameters and verification rules, and find out the parameters to be verified. Validation rule corresponding to the parameter. Specifically, when querying, the terminal can query the parameter information table that records the correspondence between the verification parameters and the verification rules, and find the verification rules corresponding to the parameters to be verified for later use.

S103,根据每个校验规则的类型,对每个待校验参数的值进行合法性校验,得到校验结果。S103, according to the type of each verification rule, perform a legality verification on the value of each parameter to be verified to obtain a verification result.

其中,校验规则的类型包括基本规则、应用分支规则、应用函数规则、应用忽略规则。不同类型的校验规则对应不同的校验方法。校验规则的类型与校验方法之间的对应关系可以预先由终端确定并存储。具体地,当终端获取到每个待校验参数对应的校验规则时,可以进一步地分析每个校验规则的类型,并根据每个校验规则的类型确定对应的校验方法,之后即可采用与每个校验规则的类型对应的校验方法对每个待校验参数的值进行合法性校验,得到待校验参数的值是合法性的待校验参数或是非法性的待校验参数的校验结果。Wherein, types of verification rules include basic rules, application branch rules, application function rules, and application ignore rules. Different types of verification rules correspond to different verification methods. The corresponding relationship between the type of verification rule and the verification method may be determined and stored by the terminal in advance. Specifically, when the terminal obtains the verification rule corresponding to each parameter to be verified, it can further analyze the type of each verification rule, and determine the corresponding verification method according to the type of each verification rule, and then The verification method corresponding to the type of each verification rule can be used to verify the validity of the value of each parameter to be verified, and it can be obtained whether the value of the parameter to be verified is a legal parameter to be verified or illegal The verification result of the parameter to be verified.

上述实施例公开的参数校验方法,通过接收包括多个待校验参数的值的参数校验请求,并根据预设的校验参数与校验规则之间的对应关系,获取各待校验参数对应的校验规则,再根据每个校验规则的类型,对每个待校验参数的值进行合法性校验,得到校验结果。上述方法由于是根据校验规则的类型对待校验参数的值进行校验,且预先建立了校验参数与校验规则之间的对应关系,所以若之后临床工程师在前端上输入的待校验参数的值发生变化,只需要更新校验参数与校验规则之间的对应关系即可实现校验,不需要重新修改发生变化的待校验参数对应的校验代码,因此,本实施例公开的参数校验方法可以极大的提高临床工程师的项目开发效率,进而加快项目开发进度。In the parameter verification method disclosed in the above embodiments, by receiving a parameter verification request including a plurality of values of the parameters to be verified, and according to the correspondence between the preset verification parameters and the verification rules, each parameter to be verified is obtained. The verification rules corresponding to the parameters, and then according to the type of each verification rule, the validity of each value of the parameter to be verified is verified to obtain the verification result. The above method is to verify the value of the parameter to be verified according to the type of the verification rule, and the corresponding relationship between the verification parameter and the verification rule is established in advance, so if the clinical engineer enters the value to be verified on the front end When the value of the parameter changes, the verification can be realized only by updating the corresponding relationship between the verification parameter and the verification rule, and it is not necessary to re-modify the verification code corresponding to the changed parameter to be verified. Therefore, this embodiment discloses The parameter verification method can greatly improve the project development efficiency of clinical engineers, thereby speeding up the project development progress.

在实际应用中,基于实施例所述的方法,当终端对待校验参数的值进行校验,得到的校验结果是待校验参数的值是非法性的待校验参数时,终端在执行完上述步骤S103之后,还执行步骤:向前端设备返回非法性的待校验参数,以指示前端设备查看和/或修改非法性的待校验参数。In practical applications, based on the method described in the embodiment, when the terminal verifies the value of the parameter to be verified, and the obtained verification result is that the value of the parameter to be verified is an illegal parameter to be verified, the terminal executes After the above step S103 is completed, a step is further performed: returning the illegal parameters to be verified to the front-end device, so as to instruct the front-end device to view and/or modify the illegal parameters to be verified.

当终端对得到的校验结果是待校验参数的值是非法性的待校验参数时,说明校验不通过,该待校验参数的值是有问题的,可能是前端工程人员在编辑该待校验参数的值是错误输入,或者其它原因导致该待校验参数的值出错,在此情况下,终端将非法性的待校验参数携带在反馈消息中传输至前端,那么前端工程人员即可查看到出现错误的待校验参数,然后对该待校验参数的值重新进行修正,并重新返回给终端进行重新校验,直到校验通过为止。上述方法提供了一种在校验参数过程中工程技术人员还可以通过前端和终端的数据交互实现修改参数的功能,相比于传统的校验过程出错时,只能由工程人员返回代码段,并通过修改代码的方式修改校验参数,上述实施例提供的方法使校验过程更加高效,而且还可以降低工程人员修改校验参数的难度和节省人力成本。相应的,当终端对得到的校验结果是待校验参数的值是合法性的待校验参数时,说明校验通过,在此情况下,终端也可以将校验通过消息中传输至前端,那么前端工程人员也可以了解到终端对各待校验参数的校验的情况。When the verification result obtained by the terminal is that the value of the parameter to be verified is an illegal parameter to be verified, it means that the verification fails, and there is a problem with the value of the parameter to be verified. It may be that the front-end engineer is editing The value of the parameter to be verified is incorrectly input, or other reasons cause the value of the parameter to be verified to be wrong. In this case, the terminal carries the invalid parameter to be verified in the feedback message and transmits it to the front end, then the The personnel can view the parameter to be verified that has an error, and then re-correct the value of the parameter to be verified, and return to the terminal for re-verification until the verification is passed. The above method provides a function that engineers and technicians can also modify parameters through data interaction between the front end and the terminal during the process of verifying parameters. Compared with the traditional verification process, when an error occurs, the engineer can only return the code segment. And modify the verification parameters by modifying the code, the method provided by the above embodiment makes the verification process more efficient, and can also reduce the difficulty of engineering personnel to modify the verification parameters and save labor costs. Correspondingly, when the verification result obtained by the terminal is that the value of the parameter to be verified is legal and the value of the parameter to be verified is legal, it means that the verification has passed. In this case, the terminal can also transmit the verification pass message to the front end , then the front-end engineering personnel can also know the verification status of the terminal for each parameter to be verified.

在一个实施例中,提供了上述S103的一种具体实现方式,如图3所示,上述S103“根据每个校验规则的类型,对每个待校验参数的值进行合法性校验,得到校验结果”,包括:In one embodiment, a specific implementation of the above-mentioned S103 is provided. As shown in FIG. 3 , the above-mentioned S103 "perform a legality check on the value of each parameter to be checked according to the type of each check rule, Get the verification result", including:

S201,判断每个待校验参数的忽略状态是否为不可忽略状态。S201. Determine whether the ignore state of each parameter to be verified is a non-ignorable state.

其中,待校验参数的忽略状态包括可忽略状态和不可忽略状态。当待校验参数的忽略状态为不可忽略状态时,说明该待校验参数需要被校验,当待校验参数的忽略状态为可忽略状态时,说明该待校验参数的改变不会对项目的开发产生任何影响,故校验参数不需要被校验。因此,在终端对每个待校验参数进行合法性校验之前,先判断每个待校验参数的忽略状态,然后基于不同的判断结果,确定是否对待校验参数进行合法性校验,不需要针对每个待校验参数都进行合法性校验,可以极大的提高校验效率。需要说明的是,在判断待校验参数的忽略状态是否为不可忽略状态,可以通过查看待校验参数的忽略标志位确定,例如,若一个待校验参数的忽略标志位被置1,则认为该待校验参数的忽略状态为可忽略状态,若一个待校验参数的忽略标志位被置0,则认为该待校验参数的忽略状态为不可忽略状态,该确定方式不仅局限于本实施例,也可以采用其它方式判断待校验参数的忽略状态,此处不限定。Wherein, the ignoring state of the parameter to be verified includes an ignorable state and a non-ignorable state. When the ignore state of the parameter to be verified is non-negligible, it means that the parameter to be verified needs to be verified. When the ignore state of the parameter to be verified is ignored, it means that the change of the parameter to be verified will not affect The development of the project has no effect, so the verification parameters do not need to be verified. Therefore, before the terminal checks the validity of each parameter to be checked, it first judges the ignore status of each parameter to be checked, and then determines whether to check the validity of the parameter to be checked based on different judgment results. It is necessary to perform legality verification for each parameter to be verified, which can greatly improve the verification efficiency. It should be noted that, when judging whether the ignored state of the parameter to be verified is a non-negligible state, it can be determined by checking the ignored flag bit of the parameter to be verified. For example, if the ignored flag bit of a parameter to be verified is set to 1, then The ignored state of the parameter to be verified is considered to be negligible. If the ignored flag of a parameter to be verified is set to 0, the ignored state of the parameter to be verified is considered to be non-negligible. The determination method is not limited to this In an embodiment, other methods may also be used to determine the ignore state of the parameter to be verified, which is not limited here.

S202,若待校验参数的忽略状态为不可忽略状态,则根据预设的校验规则的类型与校验策略之间的对应关系,确定与校验规则的类型对应的校验策略,并采用校验策略对待校验参数的值进行合法性校验。S202. If the ignored state of the parameter to be verified is a non-negligible state, then according to the correspondence between the type of the preset verification rule and the verification strategy, determine the verification strategy corresponding to the type of the verification rule, and adopt The verification strategy verifies the validity of the value of the parameter to be verified.

其中,校验规则包括待校验参数需要符合的实际规则的内容。校验策略为各种类型的校验规则对应的校验方法的统称,即针对不同的校验规则执行的不同的校验方法,比如,校验规则包括基本规则、函数规则、应用分支规则、忽略规则等不同类型的规则时,针对分支规则的校验策略即为判断待校验参数的值是否达到校验指标,之后根据判断结果对待校验参数进行校验的方法。校验规则的类型与校验策略之间的对应关系可以由终端预先构建并保存,以便之后终端可以通过查询校验规则的类型与校验策略之间的对应关系,得到输入的每个待校验参数对应的校验规则的类型对应的校验策略。而其中校验策略可以使用相应的代码段实现,在实际使用时调用即可实现根据相应的校验策略对待校验参数的值进行校验。Wherein, the verification rule includes content of actual rules that the parameters to be verified need to comply with. Verification strategy is a general term for verification methods corresponding to various types of verification rules, that is, different verification methods are implemented for different verification rules. For example, verification rules include basic rules, function rules, application branch rules, When ignoring rules and other different types of rules, the verification strategy for branch rules is to judge whether the value of the parameter to be verified reaches the verification index, and then verify the parameter to be verified according to the judgment result. The corresponding relationship between the type of verification rule and the verification strategy can be pre-built and saved by the terminal, so that the terminal can obtain each input to be verified by querying the corresponding relationship between the type of verification rule and the verification strategy. The verification policy corresponding to the type of verification rule corresponding to the verification parameter. The verification strategy can be implemented using corresponding code segments, which can be called in actual use to verify the value of the parameter to be verified according to the corresponding verification strategy.

本实施例所述的步骤是针对待校验参数的忽略状态为不可忽略状态的应用环境,基于此,当终端基于前述步骤得到待校验参数对应的校验规则时,可以进一步的先确定该校验规则的类型,并查询预先构建的校验规则的类型与校验策略之间的对应关系,查找到与该校验规则的类型对应的校验策略,再相应的根据该校验策略中指示的校验方法对接收到的待校验参数的值进行合法性校验。The steps described in this embodiment are aimed at the application environment where the ignored state of the parameter to be verified is a non-negligible state. Based on this, when the terminal obtains the verification rule corresponding to the parameter to be verified based on the foregoing steps, it can further determine the The type of the verification rule, and query the correspondence between the type of the pre-built verification rule and the verification strategy, find the verification strategy corresponding to the type of the verification rule, and then correspondingly according to the verification strategy The indicated check method checks the validity of the received value of the parameter to be checked.

可选的,若待校验参数的忽略状态为可忽略状态时,直接不对该待校验参数的值进行合法性校验,而继续判断下一个待校验参数的忽略状态是否为不可忽略状态,再相应的根据判断结果执行其后的步骤,具体说明参见前述内容,此处不赘述。Optionally, if the ignored state of the parameter to be verified is negligible, the validity of the value of the parameter to be verified is not checked directly, and the next step is to continue to judge whether the ignored state of the next parameter to be verified is not negligible , and then correspondingly execute subsequent steps according to the judgment result. For specific description, refer to the foregoing content, and details are not repeated here.

在实际应用中,上述不同的校验规则的类型对应不同的校验策略,当校验规则的类型为基本规则或应用分支规则时,在一个实施例中,提供了上述S202的具体实现方式,即针对上述类型的校验规则对应的校验策略,如图4所示,上述S202中的“采用校验策略对待校验参数的值进行合法性校验”,包括:In practical applications, the above-mentioned different types of verification rules correspond to different verification strategies. When the types of verification rules are basic rules or application branch rules, in one embodiment, a specific implementation of the above-mentioned S202 is provided. That is, for the verification strategy corresponding to the above-mentioned types of verification rules, as shown in Figure 4, the "use the verification strategy to verify the validity of the value of the parameter to be verified" in the above S202 includes:

S301,根据待校验参数对应的校验规则,确定校验指标。S301. Determine a verification index according to a verification rule corresponding to the parameter to be verified.

其中,校验指标为校验待校验参数的值是否合法的校验指标,即校验指标是指待校验参数对应的正确的指标;校验指标包括校验阈值范围或校验阈值。校验阈值是指若待校验参数对应的正确的值,校验阈值范围是指待校验参数对应的正确的取值范围。本实施例中,当终端确定了待校验参数对应的校验规则后,即可从校验规则中提取出关于该待校验参数对应的校验指标,以便之后按照该校验指标确定待校验参数的值是否合法。Wherein, the verification index is a verification index for verifying whether the value of the parameter to be verified is legal, that is, the verification index refers to a correct index corresponding to the parameter to be verified; the verification index includes a verification threshold range or a verification threshold. The verification threshold refers to the correct value corresponding to the parameter to be verified, and the verification threshold range refers to the correct value range corresponding to the parameter to be verified. In this embodiment, after the terminal determines the verification rule corresponding to the parameter to be verified, it can extract the verification index corresponding to the parameter to be verified from the verification rule, so as to determine the verification index corresponding to the verification index according to the verification index. Verify that the value of the parameter is legal.

S302,判断待校验参数的值是否达到校验指标,若达到校验指标,则执行步骤S303,若未达到校验指标,则执行步骤S304。S302, judging whether the value of the parameter to be verified reaches the verification index, if it reaches the verification index, execute step S303, and if it does not reach the verification index, execute step S304.

S303,确定待校验参数的值合法。S303. Determine that the value of the parameter to be verified is legal.

S304,确定待校验参数的值非法。S304. Determine that the value of the parameter to be verified is illegal.

当终端得到校验指标和待校验参数的值后,即可将待校验参数的值与校验指标进行比较,确定待校验参数的值是否达到校验指标,若达到校验指标,说明待校验参数的值合法,进而该待校验参数通过校验,若未达到校验指标,说明待校验参数的值非法,即待校验参数的值在前端输入时可能发生了错误,进而该待校验参数未通过校验,此时终端终止校验,并将校验失败的结果返回前端,使前端用户重新输入待校验参数的值进行校验,直到校验通过为止。After the terminal obtains the verification index and the value of the parameter to be verified, it can compare the value of the parameter to be verified with the verification index to determine whether the value of the parameter to be verified reaches the verification index. If it reaches the verification index, Indicates that the value of the parameter to be verified is legal, and then the parameter to be verified has passed the verification. If the verification index is not reached, it means that the value of the parameter to be verified is illegal, that is, the value of the parameter to be verified may be wrong when input at the front end , and then the parameter to be verified does not pass the verification, at this time, the terminal terminates the verification, and returns the result of the verification failure to the front-end, so that the front-end user re-inputs the value of the parameter to be verified for verification until the verification is passed.

具体地,基于上述方法,若校验指标包括校验阈值范围时,当终端得到待校验参数的值后,即可查看该待校验参数的值是否落在该校验阈值范围内,若在该校验阈值范围内,说明该待校验参数的值达到校验指标,若不在该校验阈值范围内,说明该待校验参数的值未达到校验指标;若校验指标包括校验阈值时,当终端得到待校验参数的值后,即可比较该待校验参数的值是否与校验阈值相同,若相同,说明该待校验参数的值达到校验指标,若不相同,说明该待校验参数的值未达到校验指标。校验阈值和校验阈值范围为终端在编辑校验规则时根据实际应用需求确定的。Specifically, based on the above method, if the verification index includes the verification threshold range, after the terminal obtains the value of the parameter to be verified, it can check whether the value of the parameter to be verified falls within the verification threshold range. If it is within the verification threshold range, it means that the value of the parameter to be verified has reached the verification index. If it is not within the verification threshold range, it means that the value of the parameter to be verified has not reached the verification index; if the verification index includes When checking the threshold, when the terminal obtains the value of the parameter to be checked, it can compare whether the value of the parameter to be checked is the same as the check threshold. If they are the same, it means that the value of the parameter to be checked has reached the check index. Same, indicating that the value of the parameter to be verified has not reached the verification index. The verification threshold and the verification threshold range are determined by the terminal according to actual application requirements when editing the verification rules.

进一步的,当上述实施例中的校验规则的类型为应用分支规则时,本申请提供的参数校验方法还可以设置待校验参数的忽略状态。比如,基于图2实施例所述的方法,如图5所示,该方法还包括:Further, when the type of the verification rule in the above embodiment is the application branch rule, the parameter verification method provided by the present application can also set the ignore state of the parameter to be verified. For example, based on the method described in the embodiment of FIG. 2, as shown in FIG. 5, the method further includes:

S401,根据待校验参数对应的校验规则和待检验参数的值,确定与待校验参数关联的待校验参数是否可忽略。S401. Determine whether the parameter to be verified associated with the parameter to be verified is negligible according to the verification rule corresponding to the parameter to be verified and the value of the parameter to be verified.

其中,与待检验参数关联的待校验参数可忽略,表示与待检验参数关联的待校验参数在被校验时可被忽略校验,与待检验参数关联的待校验参数不可忽略,表示与待检验参数关联的待校验参数在被校验时不可被忽略校验。在实际应用中,与待检验参数关联的待校验参数是否可忽略由待检验参数的值确定,例如,若待校验参数A的取值为1时,与该待校验参数关联的待校验参数B则可忽略,而与该待校验参数关联的待校验参数C不可忽略;若待校验参数的取值为2时,与该待校验参数关联的待校验参数B则不可忽略,而与该待校验参数关联的待校验参数C可忽略。待校验参数的值与关联参数的忽略状态之间的对应关系,可以由校验规则确定。与待检验参数的值关联的待校验参数可以是一个,也可以是多个,由待校验参数的属性确定。Among them, the parameters to be verified associated with the parameters to be verified can be ignored, which means that the parameters to be verified associated with the parameters to be verified can be ignored when being verified, and the parameters to be verified associated with the parameters to be verified cannot be ignored. Indicates that the parameter to be verified associated with the parameter to be verified cannot be ignored when being verified. In practical applications, whether the parameter to be verified associated with the parameter to be verified can be ignored is determined by the value of the parameter to be verified. For example, if the value of the parameter A to be verified is 1, the parameter to be verified associated with the parameter to be verified The verification parameter B can be ignored, and the parameter C to be verified associated with the parameter to be verified cannot be ignored; if the value of the parameter to be verified is 2, the parameter B to be verified associated with the parameter to be verified Then it cannot be ignored, and the parameter C to be verified associated with the parameter to be verified can be ignored. The corresponding relationship between the value of the parameter to be verified and the ignored state of the associated parameter may be determined by a verification rule. The parameter to be verified associated with the value of the parameter to be verified can be one or more, which is determined by the attribute of the parameter to be verified.

本实施例中,当终端获取到待检验参数的值后,即可查询校验规则,从中查找到与待检验参数关联的待校验参数有哪些,再进一步的根据待检验参数的值,去确定哪些关联的待校验参数可以被忽略校验,哪些关联的待校验参数不可被忽略校验。In this embodiment, after the terminal obtains the value of the parameter to be checked, it can query the verification rule, find out which parameters to be checked are associated with the parameter to be checked, and further according to the value of the parameter to be checked, go to Determine which associated parameters to be verified can be ignored for verification, and which associated parameters to be verified cannot be ignored for verification.

S402,若与待校验参数关联的待校验参数可忽略,则将与待校验参数关联的待校验参数的忽略状态设置为可忽略状态。S402. If the parameter to be verified associated with the parameter to be verified is negligible, set the ignore state of the parameter to be verified associated with the parameter to be verified to an ignorable state.

通过查询校验规则,确定与待校验参数关联的待校验参数为可忽略的待校验参数时,终端可以通过设置忽略标志位的方式将与待校验参数关联的待校验参数的忽略状态设置为可忽略状态,以便之后当终端需要对该关联的待校验参数进行校验时,不执行校验的操作,从而提高整体项目的校验效率。而当确定与待校验参数关联的待校验参数为不可忽略的待校验参数时,不执行任何操作。例如,若待校验参数A的值为1,则与该待校验参数关联的待校验参数包括待校验参数B和待校验参数C,通过查询校验规则,发现当校验参数A的值为1时,对应的关联的待校验参数B为可忽略,而待校验参数C为不可忽略,则终端设置待校验参数B的忽略状态标志位为0,表示待校验参数B可忽略,以便之后终端不对待校验参数B进行校验,从而简化了校验步骤,进而提高了校验效率。By querying the verification rules, when it is determined that the parameters to be verified associated with the parameters to be verified are negligible parameters to be verified, the terminal can set the ignore flag The ignore state is set to the ignore state, so that when the terminal needs to verify the associated parameters to be verified, the verification operation will not be performed, thereby improving the verification efficiency of the overall project. However, when it is determined that the parameter to be verified associated with the parameter to be verified is a non-negligible parameter to be verified, no operation is performed. For example, if the value of parameter A to be verified is 1, the parameters to be verified associated with the parameter to be verified include parameter B to be verified and parameter C to be verified. By querying the verification rules, it is found that when the parameter to be verified When the value of A is 1, the corresponding associated parameter B to be verified is negligible, while the parameter C to be verified is non-negligible, then the terminal sets the ignore status flag bit of the parameter B to be verified to 0, indicating that it is to be verified The parameter B can be ignored, so that the terminal does not need to verify the parameter B to be verified, thereby simplifying the verification step and improving the verification efficiency.

在实际应用中,当校验规则的类型为应用函数规则时,在一个实施例中,提供了上述S202的具体实现方式,即针对上述类型的校验规则对应的校验策略,如图6所示,上述S202中的“采用校验策略对待校验参数的值进行合法性校验”,包括:In practical applications, when the type of the verification rule is an application function rule, in one embodiment, a specific implementation of the above S202 is provided, that is, a verification strategy corresponding to the verification rule of the above type, as shown in FIG. 6 As shown, the "use a verification strategy to verify the validity of the value of the parameter to be verified" in the above S202 includes:

S501,根据待校验参数对应的校验规则,确定与待校验参数成函数关系的函数参数。S501. Determine a function parameter that has a functional relationship with the parameter to be verified according to a verification rule corresponding to the parameter to be verified.

其中,举例说明与待校验参数成函数关系的函数参数,例如,待校验参数为C,那么与该待校验参数相关的一个函数关系为:C>D,则D即为与待校验参数C成函数关系的函数参数。本实施例中,当终端确定了待校验参数对应的校验规则后,即可从校验规则中提取出与待校验参数相关的各种函数关系,以及与待校验参数成函数关系的各种函数参数,以便之后根据函数参数校验待校验参数的值。Wherein, give an example to illustrate the function parameters that are functionally related to the parameters to be verified. For example, if the parameter to be verified is C, then a functional relationship related to the parameters to be verified is: C>D, then D is the The test parameter C is a function parameter of a functional relationship. In this embodiment, after the terminal determines the verification rules corresponding to the parameters to be verified, it can extract various functional relationships related to the parameters to be verified from the verification rules, and the functional relationship with the parameters to be verified Various function parameters of , so that the value of the parameter to be verified can be verified according to the function parameter.

S502,从接收到的多个待校验参数的值中,获取函数参数的值。S502. Obtain the value of the function parameter from the received values of the plurality of parameters to be verified.

由于多个待校验参数中会包含函数参数,因此,当终端获取到与待校验参数成函数关系的一个函数参数或多个函数参数时,可以进一步的从前端接收到的多个待校验参数的值中找到函数参数的值。例如,多个待校验参数包括待校验参数C和待校验参数D,由于C和D之间成函数关系(C>D),即待校验参数D为待校验参数C的函数参数,那么,若前端接收到了待校验参数C的值和待校验参数D的值,则终端即可将待校验参数D的值作为待校验参数C成函数关系的函数参数的值。Since the multiple parameters to be verified will include function parameters, when the terminal obtains a function parameter or multiple function parameters that are functionally related to the parameters to be verified, it can further receive the multiple parameters to be verified from the front end. The value of the function parameter is found in the value of the test parameter. For example, a plurality of parameters to be verified include a parameter to be verified C and a parameter to be verified D, since there is a functional relationship between C and D (C>D), that is, the parameter D to be verified is a function of the parameter C to be verified parameters, then, if the front end receives the value of the parameter C to be verified and the value of the parameter D to be verified, the terminal can use the value of the parameter D to be verified as the value of the function parameter of the parameter C to be verified as a function .

S503,将函数参数的值与待校验参数的值代入到函数关系中进行计算,并根据计算结果对待校验参数的值进行合法性校验。S503. Substituting the value of the function parameter and the value of the parameter to be verified into the function relationship for calculation, and performing a legality check on the value of the parameter to be verified according to the calculation result.

当终端基于前述步骤得到函数参数的值与待校验参数的值时,可以将函数参数的值与待校验参数的值代入到函数关系中进行计算,得到计算结果,再确定该计算结果是否正确,或该计算结果是否符合函数关系呈现的逻辑关系,若计算结果正确,或者计算结果符合函数关系呈现的逻辑关系,则确定待校验参数的值是合法的;若该计算结果不正确,或该计算结果不符合函数关系呈现的逻辑关系,则确定待校验参数的值是非法的。举例说明,例如,待校验参数为C,与该待校验参数C相关的一个函数关系为:C>D,则D为与待校验参数C成函数关系的函数参数。在一种应用中,假设终端获取到的C=5,且D=4,则5>4,即符合函数关系C>D,那么证明待校验参数C的值(C=5)就是合法的。在另一种应用中,假设终端获取到的C=2,且D=3,则2<3,即不符合函数关系C>D,那么证明待校验参数C的值(C=2)就是非法的。When the terminal obtains the value of the function parameter and the value of the parameter to be verified based on the foregoing steps, it can substitute the value of the function parameter and the value of the parameter to be verified into the function relationship for calculation, obtain the calculation result, and then determine whether the calculation result is correct, or whether the calculation result conforms to the logical relationship presented by the functional relationship, if the calculation result is correct, or if the calculation result conforms to the logical relationship presented by the functional relationship, then it is determined that the value of the parameter to be verified is legal; if the calculation result is incorrect, Or the calculation result does not conform to the logical relationship presented by the functional relationship, then it is determined that the value of the parameter to be verified is illegal. To illustrate, for example, the parameter to be verified is C, and a functional relationship related to the parameter C to be verified is: C>D, then D is a function parameter that has a functional relationship with the parameter C to be verified. In one application, assuming that the terminal obtains C=5, and D=4, then 5>4, that is, conforms to the functional relationship C>D, then proves that the value of the parameter C to be verified (C=5) is legal . In another application, assuming that the terminal obtains C=2 and D=3, then 2<3, that is, does not meet the functional relationship C>D, then it is proved that the value of the parameter C to be verified (C=2) is Unlawful.

进一步的,当校验规则的类型为应用函数规则时,本申请提供的参数校验方法还可以设置待校验参数的忽略状态。比如,基于图6实施例所述的方法,如图7所示,该方法还包括:Further, when the type of the verification rule is an application function rule, the parameter verification method provided by the present application can also set the ignore state of the parameter to be verified. For example, based on the method described in the embodiment of FIG. 6, as shown in FIG. 7, the method further includes:

S601,判断函数参数的忽略状态是否为可忽略状态,若函数参数的忽略状态是可忽略状态,则执行步骤S602,若函数参数的忽略状态是不可忽略状态,则执行步骤S603。S601. Determine whether the ignored state of the function parameter is negligible. If the ignored state of the function parameter is ignored, execute step S602. If the ignored state of the function parameter is non-ignorable, execute step S603.

S602,将待校验参数的忽略状态设置为可忽略状态。S602. Set the ignoring state of the parameter to be verified as an ignorable state.

S603,保持待校验参数的忽略状态为当前的忽略状态。S603. Keep the ignored state of the parameter to be verified as the current ignored state.

当终端获取到与待校验参数成函数关系的函数参数时,可以进一步的通过查看函数参数的忽略标志位判断函数参数的忽略状态是否为可忽略状态,若函数参数的忽略状态是可忽略状态,则说明该函数参数的改变不会对项目的开发产生任何影响,那么与该函数参数成函数关系的待校验参数的改变也就不会对项目的开发产生任何影响,此种情况下,可以将与该函数参数成函数关系的待校验参数设置为可忽略状态,例如,如上面的例子,C为待校验参数,D为与C成函数关系的函数参数,如果D的当前的忽略标志位被设置为1(假设1表示D的忽略状态为可忽略状态),则对应的将C的忽略标志位也设置为1,表示C的忽略状态被设置为可忽略状态。When the terminal obtains the function parameters that are functionally related to the parameters to be verified, it can further judge whether the ignore status of the function parameters is the ignore status by checking the ignore flag of the function parameters, if the ignore status of the function parameters is the ignore status , it means that the change of the function parameter will not have any impact on the development of the project, then the change of the parameter to be verified that is functionally related to the function parameter will not have any impact on the development of the project. In this case, The parameters to be verified that are functionally related to the function parameters can be set as negligible. For example, as in the above example, C is the parameter to be verified, and D is the function parameter that is functionally related to C. If D's current If the ignore flag bit is set to 1 (assuming that 1 indicates that the ignore state of D is negligible), then the corresponding ignore flag bit of C is also set to 1, indicating that the ignore state of C is set to be ignored.

若函数参数的忽略状态是不可忽略状态,则说明该函数参数的改变会对项目的开发产生影响,那么与该函数参数成函数关系的待校验参数的改变自然也会对项目的开发产生影响,此种情况下,保持待校验参数的忽略状态为当前的忽略状态,即不重新设置待校验参数的忽略状态,待校验参数的忽略状态原本是可忽略状态,就还设置待校验参数的忽略状态为可忽略状态,若验参数的忽略状态原本是不可忽略状态,就还设置待校验参数的忽略状态为不可忽而略状态。例如,如上面的例子,如果D的当前的忽略标志位被设置为0(假设0表示D的忽略状态为不可忽略状态),则保持C当前的忽略标志位。If the ignore status of the function parameter is non-negligible, it means that the change of the function parameter will have an impact on the development of the project, and then the change of the parameter to be verified that is functionally related to the function parameter will naturally also have an impact on the development of the project , in this case, keep the ignored state of the parameter to be verified as the current ignored state, that is, do not reset the ignored state of the parameter to be verified, and set the ignored state of the parameter to be verified to be ignored originally. The ignoring state of the parameter to be verified is a negligible state. If the ignoring state of the parameter to be verified is originally a non-negligible state, the ignoring state of the parameter to be verified is also set to a non-negligible state. For example, as in the above example, if the current ignore flag of D is set to 0 (assuming that 0 indicates that the ignore state of D is not negligible), then the current ignore flag of C is maintained.

在实际应用中,当待校验参数对应的校验规则的类型为应用忽略规则时,在一个实施例中,提供了上述S202的具体实现方式,即上述步骤S202“采用校验策略对待校验参数的值进行合法性校验”具体包括:对待校验参数的值不进行合法性校验,并将待校验参数的忽略状态设置为可忽略状态。In practical applications, when the type of the verification rule corresponding to the parameter to be verified is an application ignore rule, in one embodiment, a specific implementation of the above S202 is provided, that is, the above step S202 "use the verification strategy to be verified Verifying the validity of the value of the parameter" specifically includes: not performing a legality verification on the value of the parameter to be verified, and setting the ignore state of the parameter to be verified to an ignorable state.

当终端确定的一个待校验参数对应的校验规则的类型为应用忽略规则时,说明该校验参数的改变不会对项目的开发产生任何影响,故校验参数不需要被校验,在此场景下,终端对待校验参数的值不进行合法性校验,并将待校验参数的忽略状态设置为可忽略状态,以便之后终端再接收到该待校验参数的值时,直接忽略到该待校验参数,不需要再浪费资源对该校验参数进行校验,在有效利用资源的情况下,提高了终端进行参数校验的效率。When the type of the verification rule corresponding to a parameter to be verified determined by the terminal is the application ignore rule, it means that the change of the verification parameter will not have any impact on the development of the project, so the verification parameter does not need to be verified. In this scenario, the terminal does not verify the validity of the value of the parameter to be verified, and sets the ignore state of the parameter to be verified to an ignorable state, so that when the terminal receives the value of the parameter to be verified, it directly ignores the value of the parameter to be verified. When the parameter to be verified is reached, there is no need to waste resources to verify the verification parameter, and in the case of effective use of resources, the efficiency of parameter verification by the terminal is improved.

上述实施例为终端侧的参数校验方法,本申请还提供了前端设备侧的参数校验方法,下面实施例说明前端设备侧的参数校验方法。The above-mentioned embodiment is a parameter verification method on the terminal side, and the present application also provides a parameter verification method on the front-end device side. The following embodiments illustrate the parameter verification method on the front-end device side.

在一个实施例中,如图8所示,提供了一种参数校验方法,以该方法应用于图1中的前端设备为例进行说明,包括以下步骤:In one embodiment, as shown in FIG. 8 , a parameter verification method is provided. The method is applied to the front-end equipment in FIG. 1 as an example, including the following steps:

S701,获取用户在校验界面上输入的待校验参数的值。S701. Obtain the value of the parameter to be verified input by the user on the verification interface.

其中,用户可以是临床工程师,也可以是技术开发人员。校验界面上可以包括多个待校验参数的值对应的输入界面,用户可以在各待校验参数的值对应的输入界面上通过编辑文字的方式输入待校验参数的值,也可以通过其它方式输入待校验参数的值,此处不限定。本实施例中,前端设备展示校验界面,用户可以在前端设备的校验界面上输入待校验参数的值,前端设备即可根据用户的输入操作获取到待校验参数的值。可选的,用户也可以在校验界面上直接查看终端之后对输入的待校验参数的值进行合法性校验后返回的校验结果,进而及时跟进校验过程,发现校验错误进行修正,极大的提高了校验效率。Among them, users can be clinical engineers or technical developers. The verification interface can include multiple input interfaces corresponding to the values of the parameters to be verified. The user can input the value of the parameter to be verified by editing text on the input interface corresponding to the value of each parameter to be verified, or through Input the value of the parameter to be verified in other ways, which is not limited here. In this embodiment, the front-end device displays a verification interface, and the user can input the value of the parameter to be verified on the verification interface of the front-end device, and the front-end device can obtain the value of the parameter to be verified according to the user's input operation. Optionally, the user can also directly view the verification result returned by the terminal after verifying the validity of the value of the input parameter to be verified on the verification interface, and then follow up the verification process in time to find verification errors and correct them. The correction greatly improved the verification efficiency.

S702,将待校验参数的值携带在参数校验请求中发送至终端,以指示终端根据预设的校验参数与校验规则之间的对应关系对待校验参数的值进行合法性校验,得到校验结果。S702, carry the value of the parameter to be verified in the parameter verification request and send it to the terminal, so as to instruct the terminal to perform legality verification on the value of the parameter to be verified according to the correspondence between the preset verification parameter and the verification rule , get the verification result.

当前端设备基于前述步骤获取到用户在校验界面上输入的待校验参数的值时,可以进一步的将待校验参数的值携带在参数校验请求中发送至终端,而终端在接收到该参数校验请求后,进一步的对该参数校验请求中的待校验参数的值进行校验,关于终端对待校验参数的值进行校验的过程在前述图2-图7实施例中都有说明,详细内容请参见前述说明,此处不赘述。When the front-end device obtains the value of the parameter to be verified input by the user on the verification interface based on the aforementioned steps, it can further carry the value of the parameter to be verified in the parameter verification request and send it to the terminal, and the terminal receives the After the parameter verification request, the value of the parameter to be verified in the parameter verification request is further verified. The process of verifying the value of the parameter to be verified by the terminal is described in the aforementioned embodiments of Figures 2-7 There are instructions, please refer to the above description for details, and will not repeat them here.

综合上述所有实施例,本申请还提供了一种参数校验方法,该方法涉及前端设备和终端之间数据交互的过程,如图9所示,该方法包括:Combining all the above embodiments, the present application also provides a parameter verification method, which involves the process of data interaction between the front-end device and the terminal, as shown in Figure 9, the method includes:

S801,前端设备获取用户在校验界面上输入的待校验参数的值。S801. The front-end device acquires the value of the parameter to be verified input by the user on the verification interface.

S802,前端设备将待校验参数的值携带在参数校验请求中发送至终端。S802. The front-end device carries the value of the parameter to be verified in the parameter verification request and sends it to the terminal.

S803,终端接收参数校验请求;参数校验请求中包括多个待校验参数的值。S803. The terminal receives a parameter verification request; the parameter verification request includes values of multiple parameters to be verified.

S804,终端根据预设的校验参数与校验规则之间的对应关系,获取各待校验参数对应的校验规则。S804. The terminal acquires a verification rule corresponding to each parameter to be verified according to the preset correspondence between the verification parameter and the verification rule.

S805,终端判断每个待校验参数的忽略状态是否为不可忽略状态,若待校验参数的忽略状态为不可忽略状态,则执行步骤S806,若待校验参数的忽略状态为可忽略状态,则执行步骤S817。S805, the terminal judges whether the ignored state of each parameter to be verified is a non-negligible state, if the ignored state of the parameter to be verified is a non-negligible state, then perform step S806, if the ignored state of the parameter to be verified is a negligible state, Then execute step S817.

S806,根据预设的校验规则的类型与校验策略之间的对应关系,确定与校验规则的类型对应的校验策略,并采用校验策略对待校验参数的值进行合法性校验。S806. According to the correspondence between the type of the preset verification rule and the verification strategy, determine the verification strategy corresponding to the type of the verification rule, and use the verification strategy to verify the validity of the value of the parameter to be verified. .

S807,确定每个校验规则的类型,若校验规则的类型为基本规则或应用分支规则,则执行步骤S808-S811,若校验项规则的类型为应用函数规则,则执行步骤S812-S815,若校验项规则的类型为应用忽略规则,则执行步骤S817。S807, determine the type of each verification rule, if the type of the verification rule is a basic rule or an application branch rule, then perform steps S808-S811, if the type of the verification item rule is an application function rule, then perform steps S812-S815 , if the type of the check item rule is an application ignore rule, step S817 is performed.

S808,根据待校验参数对应的校验规则,确定校验指标。S808. Determine a verification index according to a verification rule corresponding to the parameter to be verified.

S809,判断待校验参数的值是否达到校验指标,若达到校验指标,则确定待校验参数的值合法;若未达到校验指标,则确定待校验参数的值非法。S809, judging whether the value of the parameter to be verified reaches the verification index, if the value of the parameter to be verified is reached, it is determined that the value of the parameter to be verified is legal; if the value of the parameter to be verified is not reached, it is determined that the value of the parameter to be verified is illegal.

S810,根据待校验参数对应的校验规则和待检验参数的值,确定与待校验参数关联的待校验参数是否可忽略。S810. Determine whether the parameter to be verified associated with the parameter to be verified is negligible according to the verification rule corresponding to the parameter to be verified and the value of the parameter to be verified.

S811,若与待校验参数关联的待校验参数可忽略,则将与待校验参数关联的待校验参数的忽略状态设置为可忽略状态。S811. If the parameter to be verified associated with the parameter to be verified is negligible, set the ignore state of the parameter to be verified associated with the parameter to be verified to an ignorable state.

S812,根据待校验参数对应的校验规则,确定与待校验参数成函数关系的函数参数。S812. Determine a function parameter that has a functional relationship with the parameter to be verified according to a verification rule corresponding to the parameter to be verified.

S813,从接收到的多个待校验参数的值中,获取函数参数的值。S813. Obtain the value of the function parameter from the received values of the plurality of parameters to be verified.

S814,将函数参数的值与待校验参数的值代入到函数关系中进行计算,得到计算结果,确定该计算结果是否正确,或该计算结果是否符合函数关系呈现的逻辑关系,若计算结果正确,或者计算结果符合函数关系呈现的逻辑关系,则确定待校验参数的值是合法的;若该计算结果不正确,或该计算结果不符合函数关系呈现的逻辑关系,则确定待校验参数的值是非法的。S814, Substituting the value of the function parameter and the value of the parameter to be verified into the functional relationship for calculation, obtaining the calculation result, determining whether the calculation result is correct, or whether the calculation result conforms to the logical relationship presented by the functional relationship, if the calculation result is correct , or the calculation result conforms to the logical relationship presented by the functional relationship, then it is determined that the value of the parameter to be verified is legal; if the calculation result is incorrect, or the calculation result does not conform to the logical relationship presented by the functional relationship, then determine the value of the parameter to be verified The value of is illegal.

S815,判断函数参数的忽略状态是否为可忽略状态,若函数参数的忽略状态是可忽略状态,则将待校验参数的忽略状态设置为可忽略状态;若函数参数的忽略状态是不可忽略状态,则保持待校验参数的忽略状态为当前的忽略状态。S815, judging whether the ignored state of the function parameter is a negligible state, if the ignored state of the function parameter is a negligible state, then setting the ignored state of the parameter to be verified as a negligible state; if the ignored state of the function parameter is a non-negligible state , then keep the ignore state of the parameter to be verified as the current ignore state.

S816,对待校验参数的值不进行合法性校验,并将待校验参数的忽略状态设置为可忽略状态。S816. Do not perform legality verification on the value of the parameter to be verified, and set the ignore state of the parameter to be verified to an ignorable state.

S817,不对待校验参数的值进行合法性校验。S817, Do not perform validity check on the value of the parameter to be checked.

S818,当终端得到的校验结果包括待校验参数的值是非法性的待校验参数时,终端向前端设备返回非法性的待校验参数,以指示前端设备查看和/或修改非法性的待校验参数。S818, when the verification result obtained by the terminal includes the parameter to be verified whose value is illegal, the terminal returns the illegal parameter to be verified to the front-end device to instruct the front-end device to view and/or modify the illegality The parameters to be verified.

上述各步骤在前述实施例中均有说明,详细内容请参见前述说明,此处不赘述。The above-mentioned steps are all described in the above-mentioned embodiments. For details, please refer to the above-mentioned description, and details are not repeated here.

应该理解的是,虽然图2-9的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,图2-9中的至少一部分步骤可以包括多个步骤或者多个阶段,这些步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤中的步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the various steps in the flow charts in FIGS. 2-9 are shown sequentially as indicated by the arrows, these steps are not necessarily executed sequentially in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be executed in other orders. Moreover, at least some of the steps in Figures 2-9 may include multiple steps or stages, these steps or stages are not necessarily executed at the same time, but may be executed at different moments, the execution of these steps or stages The sequence is not necessarily performed sequentially, but may be performed alternately or alternately with other steps or at least a part of steps or stages in other steps.

在一个实施例中,如图10所示,提供了一种参数校验装置,包括:In one embodiment, as shown in Figure 10, a parameter verification device is provided, including:

接收模块11,用于接收参数校验请求;所述参数校验请求中包括多个待校验参数的值;The receiving module 11 is configured to receive a parameter verification request; the parameter verification request includes a plurality of values of parameters to be verified;

获取模块12,用于根据预设的校验参数与校验规则之间的对应关系,获取各所述待校验参数对应的校验规则;The obtaining module 12 is used to obtain the verification rules corresponding to each of the parameters to be verified according to the correspondence between the preset verification parameters and the verification rules;

校验模块13,用于根据每个所述校验规则的类型,对每个所述待校验参数的值进行合法性校验,得到校验结果。The checking module 13 is configured to check the validity of each value of the parameter to be checked according to the type of each checking rule, and obtain a checking result.

在一个实施例中,如图11所示,上述校验模块13,包括:In one embodiment, as shown in Figure 11, the verification module 13 includes:

判断单元131,用于判断每个所述待校验参数的忽略状态是否为不可忽略状态;A judging unit 131, configured to judge whether the ignored state of each parameter to be checked is a non-negligible state;

校验单元132,用于在所述待校验参数的忽略状态为所述不可忽略状态的情况下,根据预设的校验规则的类型与校验策略之间的对应关系,确定与所述校验规则的类型对应的校验策略,并采用所述校验策略对所述待校验参数的值进行合法性校验。The verification unit 132 is configured to determine, according to the correspondence between the type of the verification rule and the verification strategy preset, when the ignored state of the parameter to be verified is the non-negligible state, determine the Verify the verification strategy corresponding to the type of the rule, and use the verification strategy to verify the validity of the value of the parameter to be verified.

在一个实施例中,如图12所示,在所述校验规则的类型为基本规则或应用分支规则时,上述校验单元132,包括:In one embodiment, as shown in FIG. 12, when the type of the verification rule is a basic rule or an application branch rule, the verification unit 132 includes:

第一确定子单元1321,用于根据所述待校验参数对应的校验规则,确定校验指标;The first determining subunit 1321 is configured to determine a verification indicator according to a verification rule corresponding to the parameter to be verified;

判断子单元1322,用于判断所述待校验参数的值是否达到所述校验指标,若达到所述校验指标,,则确定所述待校验参数的值合法,若未达到所述校验指标,则确定所述待校验参数的值非法。The judging subunit 1322 is used to judge whether the value of the parameter to be verified reaches the verification index. If the value of the parameter to be verified reaches the verification index, then determine that the value of the parameter to be verified is legal. If the verification indicator is not used, it is determined that the value of the parameter to be verified is illegal.

在一个实施例中,如图13所示,在所述校验项规则的类型为所述应用分支规则时,上述校验单元132,还包括:In one embodiment, as shown in FIG. 13, when the type of the verification item rule is the application branch rule, the verification unit 132 further includes:

第二确定子单元1323,用于根据所述待校验参数对应的校验规则和所述待检验参数的值,确定与所述待校验参数关联的待校验参数是否可忽略;The second determining subunit 1323 is configured to determine whether the parameter to be verified associated with the parameter to be verified is negligible according to the verification rule corresponding to the parameter to be verified and the value of the parameter to be verified;

设置子单元1324,用于在与所述待校验参数关联的待校验参数可忽略的情况下,将与所述待校验参数关联的待校验参数的忽略状态设置为可忽略状态。The setting subunit 1324 is configured to set the ignore state of the parameter to be verified associated with the parameter to be verified to an ignorable state if the parameter to be verified associated with the parameter to be verified is negligible.

在一个实施例中,如图14所示,在所述校验项规则的类型为应用函数规则时,上述校验单元132,包括:In one embodiment, as shown in FIG. 14, when the type of the verification item rule is an application function rule, the verification unit 132 includes:

第三确定子单元1325,用于根据所述待校验参数对应的校验规则,确定与所述待校验参数成函数关系的函数参数;The third determining subunit 1325 is configured to determine a function parameter that has a functional relationship with the parameter to be verified according to the verification rule corresponding to the parameter to be verified;

获取子单元1326,用于从接收到的多个待校验参数的值中,获取所述函数参数的值;An acquisition subunit 1326, configured to acquire the value of the function parameter from the received values of the multiple parameters to be verified;

计算子单元1327,用于将所述函数参数的值与所述待校验参数的值代入到所述函数关系中进行计算,并根据计算结果对所述待校验参数的值进行合法性校验。Calculation subunit 1327, configured to substitute the value of the function parameter and the value of the parameter to be verified into the functional relationship for calculation, and check the validity of the value of the parameter to be verified according to the calculation result test.

在一个实施例中,如图15所示,上述校验单元132,还包括:In one embodiment, as shown in FIG. 15, the verification unit 132 further includes:

第二判断子单元1328,用于判断所述函数参数的忽略状态是否为可忽略状态;The second judging subunit 1328 is used to judge whether the ignored state of the function parameter is a negligible state;

第二设置子单元1329,用于若所述函数参数的忽略状态是所述可忽略状态,则将所述待校验参数的忽略状态设置为可忽略状态。The second setting subunit 1329 is configured to set the ignored state of the parameter to be verified as the ignored state if the ignored state of the function parameter is the ignored state.

在一个实施例中,上述校验单元132具体用于在所述校验规则的类型为应用忽略规则时,对所述待校验参数的值不进行合法性校验,并将所述待校验参数的忽略状态设置为可忽略状态。In one embodiment, the verification unit 132 is specifically configured to not perform a legality verification on the value of the parameter to be verified when the type of the verification rule is an application ignore rule, and to check the validity of the value of the parameter to be verified The ignore status of the validation parameter is set to ignore status.

在一个实施例中,如图16所示,上述参数校验装置,还包括:In one embodiment, as shown in FIG. 16, the above-mentioned parameter verification device further includes:

返回模块14,用于向前端设备返回所述非法性的待校验参数,以指示所述前端设备查看和/或修改所述非法性的待校验参数。The return module 14 is configured to return the illegal parameters to be checked to the front-end equipment, so as to instruct the front-end equipment to view and/or modify the illegal parameters to be checked.

关于参数校验装置的具体限定可以参见上文中对于参数校验方法的限定,在此不再赘述。上述参数校验装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。For specific limitations on the parameter verification device, refer to the above-mentioned limitations on the parameter verification method, which will not be repeated here. Each module in the above-mentioned parameter checking device can be fully or partially realized by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, and can also be stored in the memory of the computer device in the form of software, so that the processor can invoke and execute the corresponding operations of the above-mentioned modules.

在一个实施例中,提供了一种计算机设备,该计算机设备可以是终端,其内部结构图可以如图17所示。该计算机设备包括通过系统总线连接的处理器、存储器、通信接口、显示屏和输入装置。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统和计算机程序。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该计算机设备的通信接口用于与外部的终端进行有线或无线方式的通信,无线方式可通过WIFI、运营商网络、NFC(近场通信)或其他技术实现。该计算机程序被处理器执行时以实现一种参数校验方法。该计算机设备的显示屏可以是液晶显示屏或者电子墨水显示屏,该计算机设备的输入装置可以是显示屏上覆盖的触摸层,也可以是计算机设备外壳上设置的按键、轨迹球或触控板,还可以是外接的键盘、触控板或鼠标等。In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure may be as shown in FIG. 17 . The computer device includes a processor, a memory, a communication interface, a display screen and an input device connected through a system bus. Wherein, the processor of the computer device is used to provide calculation and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be realized through WIFI, an operator network, NFC (Near Field Communication) or other technologies. When the computer program is executed by the processor, a parameter verification method is realized. The display screen of the computer device may be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device may be a touch layer covered on the display screen, or a button, a trackball or a touch pad provided on the casing of the computer device , and can also be an external keyboard, touchpad, or mouse.

本领域技术人员可以理解,图17中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Those skilled in the art can understand that the structure shown in Figure 17 is only a block diagram of a partial structure related to the solution of this application, and does not constitute a limitation on the computer equipment on which the solution of this application is applied. The specific computer equipment can be More or fewer components than shown in the figures may be included, or some components may be combined, or have a different arrangement of components.

在一个实施例中,提供了一种计算机设备,包括存储器和处理器,存储器中存储有计算机程序,该处理器执行计算机程序时实现以下步骤:In one embodiment, a computer device is provided, including a memory and a processor, a computer program is stored in the memory, and the processor implements the following steps when executing the computer program:

接收参数校验请求;所述参数校验请求中包括多个待校验参数的值;Receive a parameter verification request; the parameter verification request includes the values of multiple parameters to be verified;

根据预设的校验参数与校验规则之间的对应关系,获取各所述待校验参数对应的校验规则;Acquiring a verification rule corresponding to each of the parameters to be verified according to the preset correspondence between the verification parameter and the verification rule;

根据每个所述校验规则的类型,对每个所述待校验参数的值进行合法性校验,得到校验结果。According to the type of each verification rule, the validity of each value of the parameter to be verified is verified to obtain a verification result.

上述实施例提供的一种计算机设备,其实现原理和技术效果与上述方法实施例类似,在此不再赘述。The implementation principle and technical effect of the computer device provided in the foregoing embodiments are similar to those of the foregoing method embodiments, and will not be repeated here.

在一个实施例中,提供了一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现以下步骤:In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

接收参数校验请求;所述参数校验请求中包括多个待校验参数的值;Receive a parameter verification request; the parameter verification request includes the values of multiple parameters to be verified;

根据预设的校验参数与校验规则之间的对应关系,获取各所述待校验参数对应的校验规则;Acquiring a verification rule corresponding to each of the parameters to be verified according to the preset correspondence between the verification parameter and the verification rule;

根据每个所述校验规则的类型,对每个所述待校验参数的值进行合法性校验,得到校验结果。According to the type of each verification rule, the validity of each value of the parameter to be verified is verified to obtain a verification result.

上述实施例提供的一种计算机可读存储介质,其实现原理和技术效果与上述方法实施例类似,在此不再赘述。The implementation principle and technical effect of the computer-readable storage medium provided by the foregoing embodiments are similar to those of the foregoing method embodiments, and details are not repeated here.

本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和易失性存储器中的至少一种。非易失性存储器可包括只读存储器(Read-Only Memory,ROM)、磁带、软盘、闪存或光存储器等。易失性存储器可包括随机存取存储器(Random Access Memory,RAM)或外部高速缓冲存储器。作为说明而非局限,RAM可以是多种形式,比如静态随机存取存储器(Static Random Access Memory,SRAM)或动态随机存取存储器(Dynamic Random Access Memory,DRAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented through computer programs to instruct related hardware, and the computer programs can be stored in a non-volatile computer-readable memory In the medium, when the computer program is executed, it may include the processes of the embodiments of the above-mentioned methods. Wherein, any references to memory, storage, database or other media used in the various embodiments provided in the present application may include at least one of non-volatile memory and volatile memory. The non-volatile memory may include read-only memory (Read-Only Memory, ROM), magnetic tape, floppy disk, flash memory or optical memory, and the like. Volatile memory may include random access memory (Random Access Memory, RAM) or external cache memory. By way of illustration and not limitation, RAM can be in various forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM).

以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above embodiments can be combined arbitrarily. To make the description concise, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, they should be It is considered to be within the range described in this specification.

以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above-mentioned embodiments only represent several implementation modes of the present application, and the description thereof is relatively specific and detailed, but it should not be construed as limiting the scope of the patent for the invention. It should be noted that those skilled in the art can make several modifications and improvements without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the scope of protection of the patent application should be based on the appended claims.

Claims (10)

1.一种参数校验方法,其特征在于,所述方法包括:1. A parameter verification method, characterized in that the method comprises: 接收参数校验请求;所述参数校验请求中包括多个待校验参数的值;Receive a parameter verification request; the parameter verification request includes the values of multiple parameters to be verified; 根据预设的校验参数与校验规则之间的对应关系,获取各所述待校验参数对应的校验规则;Acquiring a verification rule corresponding to each of the parameters to be verified according to the preset correspondence between the verification parameter and the verification rule; 根据每个所述校验规则的类型确定对应的校验方法,采用与每个所述校验规则的类型对应的校验方法对每个所述待校验参数的值进行合法性校验,得到校验结果;其中,所述校验规则的类型包括基本规则、应用分支规则、应用函数规则、应用忽略规则。Determine the corresponding verification method according to the type of each verification rule, and use the verification method corresponding to the type of each verification rule to perform a legality verification on the value of each parameter to be verified, A verification result is obtained; wherein, the types of the verification rules include basic rules, application branch rules, application function rules, and application ignore rules. 2.根据权利要求1所述的方法,其特征在于,所述根据每个所述校验规则的类型确定对应的校验方法,采用与每个所述校验规则的类型对应的校验方法对每个所述待校验参数的值进行合法性校验,得到校验结果,包括:2. The method according to claim 1, wherein the corresponding verification method is determined according to the type of each verification rule, and the verification method corresponding to the type of each verification rule is adopted Perform a legality check on the value of each parameter to be checked to obtain a check result, including: 判断每个所述待校验参数的忽略状态是否为不可忽略状态;judging whether the ignoring state of each parameter to be verified is a non-ignoring state; 若所述待校验参数的忽略状态为所述不可忽略状态,则根据预设的校验规则的类型与校验策略之间的对应关系,确定与所述校验规则的类型对应的校验策略,并采用所述校验策略对所述待校验参数的值进行合法性校验。If the ignoring state of the parameter to be verified is the non-ignorable state, then according to the preset correspondence between the type of verification rule and the verification strategy, determine the verification corresponding to the type of the verification rule strategy, and use the verification strategy to verify the validity of the value of the parameter to be verified. 3.根据权利要求2所述的方法,其特征在于,若所述校验规则的类型为所述基本规则或所述应用分支规则,则所述采用所述校验策略对所述待校验参数的值进行合法性校验,包括:3. The method according to claim 2, wherein if the type of the verification rule is the basic rule or the application branch rule, then the adoption of the verification strategy for the The value of the parameter is checked for legality, including: 根据所述待校验参数对应的校验规则确定校验指标;determining a verification indicator according to a verification rule corresponding to the parameter to be verified; 判断所述待校验参数的值是否达到所述校验指标,若达到所述校验指标,则确定所述待校验参数的值合法,若未达到所述校验指标,则确定所述待校验参数的值非法。judging whether the value of the parameter to be verified reaches the verification index, if the verification index is reached, then determining that the value of the parameter to be verified is legal, if not reaching the verification index, then determining the The value of the parameter to be verified is illegal. 4.根据权利要求3所述的方法,其特征在于,若所述校验规则的类型为所述应用分支规则,则所述方法还包括:4. The method according to claim 3, wherein if the type of the verification rule is the application branch rule, the method further comprises: 根据所述待校验参数对应的校验规则和所述待校验参数的值,确定与所述待校验参数关联的待校验参数是否可忽略;According to the verification rule corresponding to the parameter to be verified and the value of the parameter to be verified, determine whether the parameter to be verified associated with the parameter to be verified can be ignored; 若与所述待校验参数关联的待校验参数可忽略,则将与所述待校验参数关联的待校验参数的忽略状态设置为可忽略状态。If the parameter to be verified associated with the parameter to be verified is negligible, then the ignore state of the parameter to be verified associated with the parameter to be verified is set to an ignorable state. 5.根据权利要求2所述的方法,其特征在于,若所述校验规则的类型为所述应用函数规则,则所述采用所述校验策略对所述待校验参数的值进行合法性校验,包括:5. The method according to claim 2, wherein if the type of the verification rule is the application function rule, then the use of the verification strategy to legalize the value of the parameter to be verified sex checks, including: 根据所述待校验参数对应的校验规则,确定与所述待校验参数成函数关系的函数参数;According to the verification rule corresponding to the parameter to be verified, determine a function parameter that has a functional relationship with the parameter to be verified; 从接收到的多个待校验参数的值中,获取所述函数参数的值;Acquiring the value of the function parameter from the received values of the plurality of parameters to be verified; 将所述函数参数的值与所述待校验参数的值代入到所述函数关系中进行计算,并根据计算结果对所述待校验参数的值进行合法性校验。Substituting the value of the function parameter and the value of the parameter to be checked into the functional relationship for calculation, and performing a legality check on the value of the parameter to be checked according to the calculation result. 6.根据权利要求5所述的方法,其特征在于,所述方法还包括:6. The method according to claim 5, further comprising: 判断所述函数参数的忽略状态是否为可忽略状态;judging whether the ignored state of the function parameter is a negligible state; 若所述函数参数的忽略状态是所述可忽略状态,则将所述待校验参数的忽略状态设置为可忽略状态。If the ignoring state of the function parameter is the ignorable state, then setting the ignoring state of the parameter to be verified as the ignorable state. 7.根据权利要求2所述的方法,其特征在于,若所述校验规则的类型为所述应用忽略规则,则所述采用所述校验策略对所述待校验参数的值进行合法性校验,包括:7. The method according to claim 2, wherein if the type of the verification rule is the application ignore rule, then the verification strategy is used to legalize the value of the parameter to be verified. sex checks, including: 对所述待校验参数的值不进行合法性校验,并将所述待校验参数的忽略状态设置为可忽略状态。The validity check is not performed on the value of the parameter to be checked, and the ignoring state of the parameter to be checked is set to an ignorable state. 8.根据权利要求1所述的方法,其特征在于,若所述校验结果为所述待校验参数为非法性的待校验参数,则所述方法还包括:8. The method according to claim 1, wherein if the verification result is that the parameter to be verified is an illegal parameter to be verified, the method further comprises: 向前端设备返回所述非法性的待校验参数,以指示所述前端设备查看和/或修改所述非法性的待校验参数。Returning the illegal parameters to be checked to the front-end device, so as to instruct the front-end device to view and/or modify the illegal parameters to be checked. 9.一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,其特征在于,所述处理器执行所述计算机程序时实现权利要求1至8中任一项所述方法的步骤。9. A computer device, comprising a memory and a processor, the memory stores a computer program, wherein the processor implements the steps of the method according to any one of claims 1 to 8 when executing the computer program . 10.一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求1至8中任一项所述的方法的步骤。10. A computer-readable storage medium, on which a computer program is stored, wherein, when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.
CN202110741754.2A 2021-06-30 2021-06-30 Parameter checking method, computer device and storage medium Active CN113535553B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110741754.2A CN113535553B (en) 2021-06-30 2021-06-30 Parameter checking method, computer device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110741754.2A CN113535553B (en) 2021-06-30 2021-06-30 Parameter checking method, computer device and storage medium

Publications (2)

Publication Number Publication Date
CN113535553A CN113535553A (en) 2021-10-22
CN113535553B true CN113535553B (en) 2023-02-28

Family

ID=78097470

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110741754.2A Active CN113535553B (en) 2021-06-30 2021-06-30 Parameter checking method, computer device and storage medium

Country Status (1)

Country Link
CN (1) CN113535553B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1996036163A2 (en) * 1995-05-08 1996-11-14 Digimarc Corporation Steganography systems
CN103888254A (en) * 2012-12-21 2014-06-25 阿里巴巴集团控股有限公司 Network information verification method and apparatus
CN106484590A (en) * 2015-09-02 2017-03-08 阿里巴巴集团控股有限公司 Data verification method and device
CN108363640A (en) * 2018-03-01 2018-08-03 深圳市道通智能航空技术有限公司 Data verification method and device, computer readable storage medium
CN110071911A (en) * 2019-03-20 2019-07-30 北京龙鼎源科技股份有限公司 The method and device of information transferring method and device, certificate update
CN111624958A (en) * 2020-04-14 2020-09-04 吉利汽车研究院(宁波)有限公司 Equipment state information monitoring method and device and storage medium
CN112181804A (en) * 2020-08-31 2021-01-05 五八到家有限公司 Parameter checking method, equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1996036163A2 (en) * 1995-05-08 1996-11-14 Digimarc Corporation Steganography systems
CN103888254A (en) * 2012-12-21 2014-06-25 阿里巴巴集团控股有限公司 Network information verification method and apparatus
CN106484590A (en) * 2015-09-02 2017-03-08 阿里巴巴集团控股有限公司 Data verification method and device
CN108363640A (en) * 2018-03-01 2018-08-03 深圳市道通智能航空技术有限公司 Data verification method and device, computer readable storage medium
CN110071911A (en) * 2019-03-20 2019-07-30 北京龙鼎源科技股份有限公司 The method and device of information transferring method and device, certificate update
CN111624958A (en) * 2020-04-14 2020-09-04 吉利汽车研究院(宁波)有限公司 Equipment state information monitoring method and device and storage medium
CN112181804A (en) * 2020-08-31 2021-01-05 五八到家有限公司 Parameter checking method, equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
算量软件在建筑设备工程中的应用及问题探讨;柳超等;《中国给水排水》;20150917(第18期);全文 *

Also Published As

Publication number Publication date
CN113535553A (en) 2021-10-22

Similar Documents

Publication Publication Date Title
CN107729041B (en) Application program hot updating method, device, terminal and storage medium
CN111679893B (en) Operating system construction method and device, electronic equipment and storage medium
CN110489436A (en) Variation and platform, computer equipment and readable medium on the line of database
US20210342203A1 (en) Api manager
CN112528307B (en) Service request verification method, device, electronic device and storage medium
CN103890734A (en) Telemetry file hash and conflict detection
WO2021219038A1 (en) Credit evaluation method, credit evaluation system, and readable storage medium
TW202429289A (en) Electronic apparatus for providing information related to scripts and method thereof
CN103477327B (en) Software Operability Services
CN114185804B (en) Interface testing method and device and terminal equipment
CN113535553B (en) Parameter checking method, computer device and storage medium
CN111400716A (en) An operating system-based security mechanism verification method
CN111124932B (en) Scheme verification method, system, device, computer equipment and storage medium
CN113094048A (en) Data display rule determining method, display method, device, equipment and medium
CN103107898A (en) Method, device and system for sending or receiving multiple managed objects simultaneously
CN116954708A (en) System mirror image data processing method, device, equipment and medium
CN116633554A (en) Firmware image signing method, device, computer equipment and storage medium
CN111158695B (en) Interface positioning method, device, computer equipment and storage medium
CN109214184A (en) A kind of Android reinforcement application program general automated shelling method and apparatus
CN115733753A (en) Parameter field checking method and device, storage medium and computer equipment
CN115098137A (en) Battery protection board upgrade method, device, detector, system and storage medium
CN104426856A (en) Application login method, device and user equipment
CN114116289A (en) Mirror image file repairing method and device, AP (access point) equipment and network system
CN113808712A (en) Medical data transmission method, device, computer equipment and storage medium
CN113805906A (en) Sensor parameter configuration method, device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant