Movatterモバイル変換


[0]ホーム

URL:


CN113127110A - Transaction service control method, device, equipment and storage medium - Google Patents

Transaction service control method, device, equipment and storage medium
Download PDF

Info

Publication number
CN113127110A
CN113127110ACN202110517565.7ACN202110517565ACN113127110ACN 113127110 ACN113127110 ACN 113127110ACN 202110517565 ACN202110517565 ACN 202110517565ACN 113127110 ACN113127110 ACN 113127110A
Authority
CN
China
Prior art keywords
service
transaction code
control
component
service control
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110517565.7A
Other languages
Chinese (zh)
Inventor
冷永照
左永平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Construction Bank Corp
Original Assignee
China Construction Bank Corp
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 China Construction Bank CorpfiledCriticalChina Construction Bank Corp
Priority to CN202110517565.7ApriorityCriticalpatent/CN113127110A/en
Publication of CN113127110ApublicationCriticalpatent/CN113127110A/en
Pendinglegal-statusCriticalCurrent

Links

Images

Classifications

Landscapes

Abstract

Translated fromChinese

本发明实施例公开了一种交易服务管控方法、装置、设备及存储介质,涉及人工智能领域。该方法包括:接收调用请求报文,并确定与所述调用请求报文匹配的服务控制总开关的状态;如果所述服务控制总开关处于工作状态,则获取所述调用请求报文中的服务交易码,并确定与所述服务交易码匹配的服务控制策略;使用所述服务交易码查询本地服务控制表,得到与所述服务控制策略对应的服务管控数据;根据所述服务管控数据,对所述调用请求报文进行响应处理。本发明实施例的技术方案,实现了针对性的对异常服务进行管控,避免停机修复,将业务影响范围降低到最小。

Figure 202110517565

The embodiments of the invention disclose a transaction service management and control method, device, equipment and storage medium, and relate to the field of artificial intelligence. The method includes: receiving a call request message, and determining the state of a service control master switch matching the call request message; if the service control master switch is in a working state, acquiring the service in the call request message transaction code, and determine the service control strategy that matches the service transaction code; use the service transaction code to query the local service control table to obtain service control data corresponding to the service control strategy; The invocation request message is processed in response. The technical solutions of the embodiments of the present invention realize targeted management and control of abnormal services, avoid downtime and repair, and minimize the scope of business impact.

Figure 202110517565

Description

Translated fromChinese
交易服务管控方法、装置、设备及存储介质Transaction service management and control method, device, equipment and storage medium

技术领域technical field

本发明实施例涉及人工智能领域,尤其涉及一种交易服务管控方法、装置、设备及存储介质。Embodiments of the present invention relate to the field of artificial intelligence, and in particular, to a transaction service management and control method, apparatus, device, and storage medium.

背景技术Background technique

基于建行新一代组件架构,各个组件之间可以通过P4进行寻址访问服务,一条交易线和业务线上存在多个关联组件交互,当其中任意一个组件出现异常时,都会出现“牵一发而动全身”的影响。Based on the new-generation component architecture of CCB, each component can be addressed and accessed through P4. There are multiple associated components interacting between a transaction line and a business line. whole body" effect.

现有技术中,在服务组件发生异常时,为了保护自身系统交易处理,避免产生大量脏数据,通常会直接将整个交易系统停机,等到服务异常恢复之后,再重新启动系统进行业务处理。但这种方式存在系统停机重启的时间开销,会引起业务中断,影响业务的连续性。In the prior art, when an abnormality occurs in a service component, in order to protect the transaction processing of its own system and avoid generating a large amount of dirty data, the entire transaction system is usually shut down directly, and the system is restarted for business processing after the abnormal service is restored. However, this method has the time overhead of system shutdown and restart, which will cause business interruption and affect business continuity.

发明内容SUMMARY OF THE INVENTION

本发明实施例提供一种交易服务管控方法、装置、设备及存储介质,以实现针对性的对异常服务进行管控,避免停机修复,将业务影响范围降低到最小。Embodiments of the present invention provide a transaction service management and control method, device, device, and storage medium, so as to implement targeted management and control of abnormal services, avoid downtime for repair, and minimize the scope of business impact.

第一方面,本发明实施例提供了一种交易服务管控方法,包括:In a first aspect, an embodiment of the present invention provides a transaction service management and control method, including:

接收调用请求报文,并确定与调用请求报文匹配的服务控制总开关的状态;Receive the call request message, and determine the status of the service control master switch matching the call request message;

如果服务控制总开关处于工作状态,则获取调用请求报文中的服务交易码,并确定与服务交易码匹配的服务控制策略;If the service control master switch is in the working state, obtain the service transaction code in the call request message, and determine the service control policy matching the service transaction code;

使用服务交易码查询本地服务控制表,得到与服务控制策略对应的服务管控数据;Use the service transaction code to query the local service control table to obtain the service control data corresponding to the service control strategy;

根据服务管控数据,对调用请求报文进行响应处理。According to the service control data, respond to the call request message.

可选的,接收调用请求报文,并确定与调用请求报文匹配的服务控制总开关的状态,包括:Optionally, receive the invocation request message, and determine the status of the service control master switch matching the invocation request message, including:

如果接收到其他组件的调用请求报文,则确定请求联机服务控制总开关的状态;If a call request message from other components is received, determine the status of the master switch for requesting online service control;

如果接收到外呼其他组件的调用请求报文,则确定外呼联机服务控制总开关的状态;If a call request message for outgoing calls to other components is received, determine the state of the main switch of the outgoing online service control;

如果接收到定时扫描服务的调用请求报文,则确定定时扫描服务控制总开关的状态。If the invocation request message of the timing scanning service is received, the state of the timing scanning service control main switch is determined.

可选的,如果服务控制总开关处于工作状态,则获取调用请求报文中的服务交易码,并确定与服务交易码匹配的服务控制策略,包括:Optionally, if the service control master switch is in the working state, the service transaction code in the call request message is obtained, and the service control policy matching the service transaction code is determined, including:

如果请求联机服务控制总开关处于工作状态,则从调用请求报文中获取本组件的联机服务交易码,并确定与联机服务交易码匹配的联机服务控制策略;If the master switch for requesting online service control is in the working state, obtain the online service transaction code of this component from the invocation request message, and determine the online service control strategy matching the online service transaction code;

其中,联机服务控制策略包括:根据本组件的联机服务交易码所对应的服务管控数据,确定服务是否被管控;或者,根据本组件和关联调用方的联机服务交易码所对应的服务管控数据,确定服务是否被管控。Wherein, the online service control strategy includes: determining whether the service is controlled according to the service management and control data corresponding to the online service transaction code of the component; or, according to the service management and control data corresponding to the online service transaction code of the component and the associated caller, Determines whether the service is governed.

可选的,使用服务交易码查询本地服务控制表,得到与服务控制策略对应的服务管控数据,包括:Optionally, use the service transaction code to query the local service control table to obtain service control data corresponding to the service control strategy, including:

根据本组件的联机服务交易码查询本地服务控制表,得到本组件的服务开关状态;或者,Query the local service control table according to the online service transaction code of this component to obtain the service switch status of this component; or,

根据本组件的联机服务交易码,获取关联调用方的联机服务交易码;Obtain the online service transaction code of the associated caller according to the online service transaction code of this component;

根据本组件和关联调用方的联机服务交易码查询本地服务控制表,得到本组件和关联调用方的服务开关状态。Query the local service control table according to the online service transaction code of the component and the associated caller, and obtain the service switch status of the component and the associated caller.

可选的,如果服务控制总开关处于工作状态,则获取调用请求报文中的服务交易码,并确定与服务交易码匹配的服务控制策略,包括:Optionally, if the service control master switch is in the working state, the service transaction code in the call request message is obtained, and the service control policy matching the service transaction code is determined, including:

如果外呼联机服务控制总开关处于工作状态,则从调用请求报文中获取本组件的外呼服务交易码,并确定与外呼服务交易码匹配的外呼服务控制策略;If the outbound online service control main switch is in working state, obtain the outbound call service transaction code of this component from the invocation request message, and determine the outbound call service control strategy matching the outbound call service transaction code;

其中,外呼服务控制策略包括:根据本组件的外呼服务交易码所对应的服务管控数据,确定服务是否被管控;或者,根据本组件和关联调用方的外呼服务交易码所对应的服务管控数据,确定服务是否被管控;或者,根据预设的常用外呼服务交易码所对应的服务管控数据,确定服务是否被管控。The outbound call service control strategy includes: determining whether the service is controlled according to the service control data corresponding to the outbound call service transaction code of this component; or, according to the service corresponding to the outbound call service transaction code of this component and the associated caller Control data to determine whether the service is under control; or, determine whether the service is under control according to the service control data corresponding to the preset common outbound service transaction code.

可选的,使用服务交易码查询本地服务控制表,得到与服务控制策略对应的服务管控数据,包括:Optionally, use the service transaction code to query the local service control table to obtain service control data corresponding to the service control strategy, including:

根据本组件的外呼服务交易码查询本地服务控制表,得到本组件的服务开关状态;或者,Query the local service control table according to the outbound call service transaction code of this component to obtain the service switch status of this component; or,

根据本组件的外呼服务交易码,获取关联调用方的外呼服务交易码;According to the outbound call service transaction code of this component, obtain the outbound call service transaction code of the associated caller;

根据本组件和关联调用方的外呼服务交易码查询本地服务控制表,得到本组件和关联调用方的服务开关状态;或者,Query the local service control table according to the outgoing service transaction code of the component and the associated caller to obtain the service switch status of the component and the associated caller; or,

获取预设的常用外呼服务交易码,根据常用外呼服务交易码查询本地服务控制表,得到常用外呼服务开关状态。Obtain the preset common outbound call service transaction code, query the local service control table according to the common outbound call service transaction code, and obtain the common outbound call service switch status.

可选的,如果服务控制总开关处于工作状态,则获取调用请求报文中的服务交易码,并确定与服务交易码匹配的服务控制策略,包括:Optionally, if the service control master switch is in the working state, the service transaction code in the call request message is obtained, and the service control policy matching the service transaction code is determined, including:

如果定时扫描服务控制总开关处于工作状态,则从调用请求报文中获取本组件的扫描服务交易码,并确定与扫描服务交易码匹配的扫描服务控制策略;If the main switch of timing scanning service control is in working state, obtain the scanning service transaction code of this component from the call request message, and determine the scanning service control policy matching the scanning service transaction code;

其中,扫描服务控制策略包括:根据本组件的扫描服务交易码所对应的服务管控数据,确定服务是否被管控;或者,根据本组件和关联调用方的扫描服务交易码所对应的服务管控数据,确定服务是否被管控;或者,根据预设的常用外呼服务交易码所对应的服务管控数据,确定服务是否被管控;或者,根据预设的账务联机服务交易码所对应的服务管控数据,确定服务是否被管控。The scanning service control strategy includes: determining whether the service is controlled according to the service control data corresponding to the scanning service transaction code of this component; or, according to the service control data corresponding to the scanning service transaction code of this component and the associated caller, Determine whether the service is under control; or, determine whether the service is under control according to the service control data corresponding to the preset common outbound service transaction code; or, according to the service control data corresponding to the preset account online service transaction code, Determines whether the service is governed.

可选的,使用服务交易码查询本地服务控制表,得到与服务控制策略对应的服务管控数据,包括:Optionally, use the service transaction code to query the local service control table to obtain service control data corresponding to the service control strategy, including:

根据本组件的扫描服务交易码查询本地服务控制表,得到本组件的服务开关状态;或者,Query the local service control table according to the scanning service transaction code of this component to obtain the service switch status of this component; or,

根据本组件的扫描服务交易码,获取关联调用方的扫描服务交易码;According to the scanning service transaction code of this component, obtain the scanning service transaction code of the associated caller;

根据本组件和关联调用方的扫描服务交易码查询本地服务控制表,得到本组件和关联调用方的服务开关状态;或者,Query the local service control table according to the scanning service transaction code of the component and the associated caller to obtain the service switch status of the component and the associated caller; or,

获取预设的常用外呼服务交易码,根据常用外呼服务交易码查询本地服务控制表,得到常用外呼服务开关状态;或者,Obtain the preset common outbound call service transaction code, query the local service control table according to the common outbound call service transaction code, and obtain the common outbound call service switch status; or,

获取预设的账务联机服务交易码,根据账务联机服务交易码查询本地服务控制表,得到账务联机服务开关状态。Acquire the preset transaction code of the online account service, query the local service control table according to the transaction code of the online account service, and obtain the switch status of the online account service.

可选的,根据服务管控数据,对调用请求报文进行响应处理,包括:Optionally, according to the service management and control data, respond to the call request message, including:

如果服务管控数据中包括的服务开关状态全为工作状态,则接受服务调用请求,否则,拒绝服务调用请求。If the service switch states included in the service control data are all working states, the service invocation request is accepted; otherwise, the service invocation request is rejected.

可选的,还包括:Optionally, also include:

如果检测到目标组件出现异常,则将与目标组件关联的所有组件的服务开关状态都设为关闭状态。If an exception is detected in the target component, the service switch state of all components associated with the target component is set to the off state.

可选的,还包括:Optionally, also include:

如果检测到组件系统异常,则将与组件系统关联的服务控制总开关的状态设为关闭状态,或者将所有组件的服务开关状态都设为关闭状态。If a component system abnormality is detected, the state of the service control master switch associated with the component system is set to the off state, or the service switch states of all components are set to the off state.

可选的,还包括:Optionally, also include:

如果服务开关的状态发生变化,则根据变化的服务开关状态对本地的服务控制表进行更新,并更新服务控制表的版本号;If the state of the service switch changes, the local service control table is updated according to the changed service switch state, and the version number of the service control table is updated;

其中,服务控制表用于存储各组件的服务开关状态。Among them, the service control table is used to store the service switch status of each component.

第二方面,本发明实施例还提供了一种交易服务管控装置,包括:In a second aspect, an embodiment of the present invention further provides a transaction service management and control device, including:

报文接收模块,用于接收调用请求报文,并确定与调用请求报文匹配的服务控制总开关的状态;The message receiving module is used to receive the invocation request message and determine the state of the service control master switch matching the invocation request message;

策略确定模块,用于如果服务控制总开关处于工作状态,则获取调用请求报文中的服务交易码,并确定与服务交易码匹配的服务控制策略;The policy determination module is used to obtain the service transaction code in the call request message if the service control master switch is in the working state, and determine the service control policy matching the service transaction code;

管控数据查询模块,用于使用服务交易码查询本地服务控制表,得到服务管控数据;The management and control data query module is used to query the local service control table by using the service transaction code to obtain the service management and control data;

请求响应模块,用于对服务控制策略以及服务管控数据进行匹配,根据匹配结果对调用请求报文进行响应处理。The request-response module is used to match the service control policy and service control data, and respond to the call request message according to the matching result.

第三方面,本发明实施例还提供了一种电子设备,设备包括:In a third aspect, an embodiment of the present invention further provides an electronic device, the device comprising:

一个或多个处理器;one or more processors;

存储装置,用于存储一个或多个程序,storage means for storing one or more programs,

当一个或多个程序被一个或多个处理器执行,使得一个或多个处理器实现本发明任意实施例提供的业务一致性处理方法。When one or more programs are executed by one or more processors, the one or more processors implement the service consistency processing method provided by any embodiment of the present invention.

第四方面,本发明实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现本发明任意实施例提供的业务一致性处理方法。In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, implements the service consistency processing method provided by any embodiment of the present invention.

本发明实施例中,通过接收调用请求报文,并确定与调用请求报文匹配的服务控制总开关的状态;如果服务控制总开关处于工作状态,则获取调用请求报文中的服务交易码,并确定与服务交易码匹配的服务控制策略;使用服务交易码查询本地服务控制表,得到与服务控制策略对应的服务管控数据;根据服务管控数据,对调用请求报文进行响应处理,解决了现有技术中存在异常时直接停机修复,对业务的影响较大的问题,实现了针对性的对异常服务进行管控,避免停机修复,将业务影响范围降低到最小。In the embodiment of the present invention, by receiving the invocation request message, and determining the state of the main service control switch matching the invocation request message; if the main service control switch is in the working state, the service transaction code in the invocation request message is obtained, And determine the service control strategy that matches the service transaction code; use the service transaction code to query the local service control table to obtain the service control data corresponding to the service control strategy; In some technologies, when there is an abnormality, it directly shuts down for repair, which has a great impact on the business. It realizes the targeted management and control of abnormal services, avoids downtime for repair, and minimizes the scope of business impact.

附图说明Description of drawings

图1是本发明实施例一中的一种交易服务管控方法的流程图;1 is a flowchart of a transaction service management and control method in Embodiment 1 of the present invention;

图2是本发明实施例二中的一种交易服务管控装置的结构示意图;FIG. 2 is a schematic structural diagram of a transaction service management and control device in Embodiment 2 of the present invention;

图3是本发明实施例三中的一种电子设备的结构示意图。FIG. 3 is a schematic structural diagram of an electronic device in Embodiment 3 of the present invention.

具体实施方式Detailed ways

下面结合附图和实施例对本发明作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释本发明,而非对本发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本发明相关的部分而非全部结构。The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention. In addition, it should be noted that, for the convenience of description, the drawings only show some but not all structures related to the present invention.

实施例一Example 1

图1是本发明实施例一中的一种交易服务管控方法的流程图,本实施例可适用于在不停机的情况下,对异常服务进行管控的情况,该方法可以由交易服务管控装置来执行,该装置可以由硬件和/或软件来实现,并一般可以集成在提供异常服务管控服务的电子设备中。如图1所示,该方法包括:FIG. 1 is a flow chart of a transaction service management and control method in Embodiment 1 of the present invention. This embodiment can be applied to the situation where abnormal services are managed and controlled without downtime. The method can be implemented by a transaction service management and control device. For execution, the apparatus can be implemented by hardware and/or software, and can generally be integrated in an electronic device that provides abnormal service management and control services. As shown in Figure 1, the method includes:

步骤110、接收调用请求报文,并确定与调用请求报文匹配的服务控制总开关的状态。Step 110: Receive the invocation request message, and determine the state of the main service control switch matching the invocation request message.

本实施例中,针对不同的业务场景,调用请求报文可以是外部组件请求调用本组件的联机服务的请求报文,可以是通过本组件外呼其他组件的联机服务的请求报文,还可以是调度定时扫描服务执行的请求报文。为了避免组件故障时直接停机修复,本实施例在系统应用中针对不同业务场景下的服务分别增加相应的服务控制总开关,且每种服务控制总开关都采用即时生效方式,无需启停系统进行生效。并且,通过服务控制总开关,能灵活的进行服务隔离选择。In this embodiment, for different business scenarios, the invocation request message may be a request message for an external component to request to invoke the online service of this component, or a request message for outbound invocation of online services of other components through this component, or It is a request message for scheduling the execution of the scheduled scan service. In order to avoid direct shutdown and repair when a component fails, this embodiment adds corresponding service control master switches for services in different business scenarios in the system application, and each service control master switch adopts an instant effective method, and does not need to start and stop the system. effective. Moreover, through the service control master switch, the service isolation selection can be flexibly performed.

可选的,接收调用请求报文,并确定与调用请求报文匹配的服务控制总开关的状态,可以包括:如果接收到其他组件的调用请求报文,则确定请求联机服务控制总开关的状态;如果接收到外呼其他组件的调用请求报文,则确定外呼联机服务控制总开关的状态;如果接收到定时扫描服务的调用请求报文,则确定定时扫描服务控制总开关的状态。Optionally, receiving the invocation request message, and determining the state of the main service control switch matching the invocation request message, may include: if receiving invocation request messages from other components, determining the state of the requesting online service control main switch ; If receiving a call request message for outbound calling other components, determine the status of the outbound online service control main switch; if receiving a call request message for the timing scan service, determine the status of the timing scan service control main switch.

本实施例中,服务控制总开关包括:请求联机服务控制总开关、外呼联机服务控制总开关和定时扫描服务控制总开关。在外部组件请求调用本组件的联机服务时,需要确定请求联机服务控制总开关的状态;在外呼其他组件的联机服务时,需要确定外呼联机服务控制总开关的状态;在调度定时扫描服务执行时,需要确定定时扫描服务控制总开关的状态。In this embodiment, the service control master switch includes: a request online service control master switch, an outbound online service control master switch, and a timed scan service control master switch. When an external component requests to call the online service of this component, it is necessary to determine the status of the requesting online service control main switch; when calling the online services of other components, it is necessary to determine the status of the outbound online service control main switch; when scheduling the timing scan service execution , it is necessary to determine the status of the main switch of the timing scan service control.

其中,服务控制总开关的状态决定其管理的所有服务是否需要进行服务控制处理,当服务控制总开关处于关闭状态时,其管理的所有服务无论是否被管控都拒绝服务调用,当服务控制总开关处于工作状态时,才会根据具体的服务管控状态判断请求的服务是否能被调用。Among them, the status of the service control master switch determines whether all services managed by it need to be processed by service control. When the service control master switch is in the off state, all services managed by it will refuse service calls regardless of whether they are managed or not. When the service control master switch When it is in the working state, it will be judged whether the requested service can be called according to the specific service control state.

步骤120、如果服务控制总开关处于工作状态,则获取调用请求报文中的服务交易码,并确定与服务交易码匹配的服务控制策略。Step 120: If the main service control switch is in the working state, acquire the service transaction code in the invocation request message, and determine the service control policy matching the service transaction code.

本实施例中,为了对不同的服务进行全面且有针对性的异常管控,分别为不同服务交易设置了多种服务控制策略。因此,在确定服务控制总开关处于工作状态时,需要从调用请求报文中提取服务交易码,从而根据服务交易码确定要采用的服务管控规则。In this embodiment, in order to perform comprehensive and targeted exception management and control for different services, multiple service control policies are respectively set for different service transactions. Therefore, when it is determined that the main service control switch is in the working state, the service transaction code needs to be extracted from the invocation request message, so as to determine the service management and control rule to be adopted according to the service transaction code.

可选的,如果服务控制总开关处于工作状态,则获取调用请求报文中的服务交易码,并确定与服务交易码匹配的服务控制策略,可以包括:如果请求联机服务控制总开关处于工作状态,则从调用请求报文中获取本组件的联机服务交易码,并确定与联机服务交易码匹配的联机服务控制策略;Optionally, if the service control master switch is in a working state, acquiring the service transaction code in the invocation request message, and determining a service control policy matching the service transaction code, which may include: if the requesting online service control master switch is in a working state , the online service transaction code of this component is obtained from the call request message, and the online service control strategy matching the online service transaction code is determined;

其中,联机服务控制策略包括:根据本组件的联机服务交易码所对应的服务管控数据,确定服务是否被管控;或者,根据本组件和关联调用方的联机服务交易码所对应的服务管控数据,确定服务是否被管控。Wherein, the online service control strategy includes: determining whether the service is controlled according to the service management and control data corresponding to the online service transaction code of the component; or, according to the service management and control data corresponding to the online service transaction code of the component and the associated caller, Determines whether the service is governed.

本实施例中,针对外部组件请求调用本组件的联机服务的场景,如果确定请求联机服务控制总开关处于工作状态,则根据调用请求报文中的联机服务交易码确定匹配的联机服务控制策略。其中,针对外部组件请求联机服务场景,设置了两种服务控制策略,其一,只根据本组件的联机服务管控状态确定是否进行服务管控;其二,获取本交易中与本组件相关联的其他组件,根据本组件和关联组件的联机服务管控状态,共同确定是否进行服务管控。In this embodiment, for a scenario where an external component requests to invoke the online service of the component, if it is determined that the online service requesting control master switch is in the working state, the matching online service control strategy is determined according to the online service transaction code in the invocation request message. Among them, two kinds of service control strategies are set for the scenario of requesting online service from external components. One is to determine whether to carry out service management and control only according to the online service management and control status of this component; Component, according to the online service control status of this component and related components, jointly determine whether to perform service management and control.

可选的,如果服务控制总开关处于工作状态,则获取调用请求报文中的服务交易码,并确定与服务交易码匹配的服务控制策略,可以包括:如果外呼联机服务控制总开关处于工作状态,则从调用请求报文中获取本组件的外呼服务交易码,并确定与外呼服务交易码匹配的外呼服务控制策略;Optionally, if the service control master switch is in the working state, obtain the service transaction code in the call request message, and determine the service control policy matching the service transaction code, which may include: if the outbound online service control master switch is in operation status, obtain the outbound call service transaction code of this component from the call request message, and determine the outbound call service control policy that matches the outbound call service transaction code;

其中,外呼服务控制策略包括:根据本组件的外呼服务交易码所对应的服务管控数据,确定服务是否被管控;或者,根据本组件和关联调用方的外呼服务交易码所对应的服务管控数据,确定服务是否被管控;或者,根据预设的常用外呼服务交易码所对应的服务管控数据,确定服务是否被管控。The outbound call service control strategy includes: determining whether the service is controlled according to the service control data corresponding to the outbound call service transaction code of this component; or, according to the service corresponding to the outbound call service transaction code of this component and the associated caller Control data to determine whether the service is under control; or, determine whether the service is under control according to the service control data corresponding to the preset common outbound service transaction code.

本实施例中,针对外呼其他组件的联机服务的场景,如果确定外呼联机服务控制总开关处于工作状态,则根据调用请求报文中的外呼服务交易码确定匹配的外呼服务控制策略。其中,针对外呼其他组件的联机服务场景,设置了三种服务控制策略,其一,只根据本组件的外呼服务管控状态确定是否进行服务管控;其二,获取本交易中与本组件相关联的其他组件,根据本组件和关联组件的外呼服务管控状态,共同确定是否进行服务管控;其三,根据一些预设的常用外呼服务是否被管控,来确定本组件的服务是否需要被管控。例如,所有账务交易流程中都会涉及到外呼E0181S421进行户名信息查询,因此,当该常用服务进行了管控,则其他所有外呼的服务也应受到管控。In this embodiment, for the scenario of outgoing calls to online services of other components, if it is determined that the main switch for outgoing online service control is in the working state, the matching outgoing service control strategy is determined according to the outgoing call service transaction code in the call request message. . Among them, three service control strategies are set for the online service scenario of outbound calls to other components. One is to determine whether to carry out service management and control only according to the control status of the outbound call service of this component; Other components in the connection, according to the outbound call service management and control status of this component and related components, jointly determine whether to carry out service management and control; thirdly, according to whether some preset common outbound call services are controlled, to determine whether the services of this component need to be controlled. Control. For example, outbound calls E0181S421 will be involved in all account transaction processes to query account information. Therefore, when this common service is controlled, all other outbound services should also be controlled.

可选的,如果服务控制总开关处于工作状态,则获取调用请求报文中的服务交易码,并确定与服务交易码匹配的服务控制策略,可以包括:如果定时扫描服务控制总开关处于工作状态,则从调用请求报文中获取本组件的扫描服务交易码,并确定与扫描服务交易码匹配的扫描服务控制策略;Optionally, if the main service control switch is in the working state, acquiring the service transaction code in the invocation request message, and determining the service control strategy matching the service transaction code, which may include: if the main service control switch is in the working state by regularly scanning , the scanning service transaction code of this component is obtained from the invocation request message, and the scanning service control policy matching the scanning service transaction code is determined;

其中,扫描服务控制策略包括:根据本组件的扫描服务交易码所对应的服务管控数据,确定服务是否被管控;或者,根据本组件和关联调用方的扫描服务交易码所对应的服务管控数据,确定服务是否被管控;或者,根据预设的常用外呼服务交易码所对应的服务管控数据,确定服务是否被管控;或者,根据预设的账务联机服务交易码所对应的服务管控数据,确定服务是否被管控。The scanning service control strategy includes: determining whether the service is controlled according to the service control data corresponding to the scanning service transaction code of this component; or, according to the service control data corresponding to the scanning service transaction code of this component and the associated caller, Determine whether the service is under control; or, determine whether the service is under control according to the service control data corresponding to the preset common outbound service transaction code; or, according to the service control data corresponding to the preset account online service transaction code, Determines whether the service is governed.

本实施例中,针对调度定时扫描服务执行的场景,如果确定定时扫描服务控制总开关处于工作状态,则根据调用请求报文中的扫描服务交易码确定匹配的扫描服务控制策略。其中,针对调度定时扫描服务执行场景,设置了四种服务控制策略,其一,只根据本组件的扫描服务管控状态确定是否进行服务管控;其二,获取本交易中与本组件相关联的其他组件,根据本组件和关联组件的扫描服务管控状态,共同确定是否进行服务管控;其三,根据一些预设的常用外呼服务是否被管控,来确定本组件的服务是否需要被管控;其四,根据一些预设的重要的账务联机服务是否被管控,来确定本组件的服务是否需要被管控。In this embodiment, for the scenario of scheduling the execution of the timed scanning service, if it is determined that the main control switch of the timed scanning service is in the working state, a matching scanning service control policy is determined according to the scanning service transaction code in the invocation request message. Among them, four kinds of service control strategies are set for the execution scenario of scheduling scheduled scanning service. First, it is only determined whether to carry out service management and control according to the scanning service management and control status of this component; Component, according to the scanning service management and control status of this component and related components, jointly determine whether to perform service management and control; thirdly, according to whether some preset common outbound call services are controlled, to determine whether the services of this component need to be controlled; fourthly , to determine whether the services of this component need to be controlled according to whether some preset important accounting online services are controlled.

其中,策略四的设置原因与策略三类似,都是考虑到交易中必不可少的服务的管控状态,如果该服务被管控,则该交易必然会失败,则本组件的服务也相当于被管控。Among them, the reasons for setting strategy 4 are similar to those of strategy 3. They all take into account the management and control status of essential services in the transaction. If the service is controlled, the transaction will inevitably fail, and the service of this component is also equivalent to being controlled. .

步骤130、使用服务交易码查询本地服务控制表,得到与服务控制策略对应的服务管控数据。Step 130: Query the local service control table by using the service transaction code to obtain service management and control data corresponding to the service control policy.

本实施例中,在系统数据库表中增加一个服务控制表,该服务控制表中存储了与每个服务的交易码对应的管控状态,例如,1表示服务正常工作,0表示服务被管控,即服务关闭。在确定服务控制策略后,为了验证本组件服务的管控状态是否符合匹配的服务控制策略,即确定本服务是否被管控,需要使用服务控制策略中涉及的组件的服务交易码查询本地服务控制表,得到与服务控制策略对应的服务管控数据,进而判断是否需要进行服务管控。In this embodiment, a service control table is added to the system database table, and the service control table stores the management and control status corresponding to the transaction code of each service. For example, 1 indicates that the service is working normally, and 0 indicates that the service is under management and control. Service is down. After the service control policy is determined, in order to verify whether the management and control status of the service of this component conforms to the matching service control policy, that is, to determine whether the service is managed and controlled, it is necessary to use the service transaction code of the component involved in the service control policy to query the local service control table. The service control data corresponding to the service control policy is obtained, and then it is judged whether service control is required.

其中,在数据库表中增加服务控制表,由于对于所有请求准入、外呼准出或者自动扫描任务都需访问服务控制表进行判断,因此,为了提高效率,对于服务控制表的访问采取数据库本地缓存机制,即将数据库记录到本地存储。Among them, the service control table is added to the database table. Since all request admission, outbound call authorization or automatic scanning tasks need to access the service control table for judgment, in order to improve efficiency, the access to the service control table adopts the local database. Caching mechanism, that is, the database records to local storage.

可选的,使用服务交易码查询本地服务控制表,得到与服务控制策略对应的服务管控数据,可以包括:根据本组件的联机服务交易码查询本地服务控制表,得到本组件的服务开关状态;或者,根据本组件的联机服务交易码,获取关联调用方的联机服务交易码;根据本组件和关联调用方的联机服务交易码查询本地服务控制表,得到本组件和关联调用方的服务开关状态。Optionally, using the service transaction code to query the local service control table to obtain service management and control data corresponding to the service control strategy may include: querying the local service control table according to the online service transaction code of the component to obtain the service switch status of the component; Or, obtain the online service transaction code of the associated caller according to the online service transaction code of this component; query the local service control table according to the online service transaction code of this component and the associated caller to obtain the service switch status of this component and the associated caller .

本实施例中,为了灵活控制各个服务,为各个服务分别设置一个服务开关,服务控制表中实际上存储的是各个服务的服务开关的状态,例如,状态值为1表示服务可以正常调用,状态值为0表示服务被管控,拒绝调用。基于此,针对外部组件请求调用本组件的联机服务的场景,如果确定联机服务控制策略为第一种,则只需查询本组件的服务开关状态;如果确定联机服务控制策略为第二种,则需要同时查询本组件和关联调用组件的服务开关状态。In this embodiment, in order to flexibly control each service, a service switch is set for each service. The service control table actually stores the status of the service switch of each service. For example, a status value of 1 indicates that the service can be called normally, and the status value is 1. A value of 0 indicates that the service is controlled and the call is rejected. Based on this, for the scenario where the external component requests to call the online service of this component, if the online service control strategy is determined to be the first type, it is only necessary to query the service switch status of this component; if the online service control strategy is determined to be the second type, then It is necessary to query the service switch status of this component and the associated calling component at the same time.

可选的,使用服务交易码查询本地服务控制表,得到与服务控制策略对应的服务管控数据,可以包括:根据本组件的外呼服务交易码查询本地服务控制表,得到本组件的服务开关状态;或者,根据本组件的外呼服务交易码,获取关联调用方的外呼服务交易码;根据本组件和关联调用方的外呼服务交易码查询本地服务控制表,得到本组件和关联调用方的服务开关状态;或者,获取预设的常用外呼服务交易码,根据常用外呼服务交易码查询本地服务控制表,得到常用外呼服务开关状态。Optionally, using the service transaction code to query the local service control table to obtain service management and control data corresponding to the service control strategy may include: querying the local service control table according to the outbound call service transaction code of the component to obtain the service switch status of the component ; Or, obtain the outbound call service transaction code of the associated caller according to the outbound call service transaction code of this component; query the local service control table according to the outbound call service transaction code of this component and the associated caller, and obtain this component and the associated caller or, obtain the preset common outbound call service transaction code, query the local service control table according to the common outbound call service transaction code, and obtain the common outbound call service switch state.

本实施例中,针对外呼其他组件的联机服务的场景,如果确定外呼服务控制策略为第一种,则只需查询本组件的服务开关状态;如果确定外呼服务控制策略为第二种,则需要同时查询本组件和关联调用组件的服务开关状态;如果确定外呼服务控制策略为第三种,则需要查询预设的所有的常用外呼服务开关状态。In this embodiment, for the scenario of outgoing calls to online services of other components, if it is determined that the outbound service control strategy is the first type, it is only necessary to query the service switch status of this component; if it is determined that the outbound service control strategy is the second type , you need to query the service switch status of this component and the associated calling component at the same time; if it is determined that the outbound call service control strategy is the third type, you need to query the preset switch status of all common outbound call services.

可选的,使用服务交易码查询本地服务控制表,得到与服务控制策略对应的服务管控数据,可以包括:根据本组件的扫描服务交易码查询本地服务控制表,得到本组件的服务开关状态;或者,根据本组件的扫描服务交易码,获取关联调用方的扫描服务交易码;根据本组件和关联调用方的扫描服务交易码查询本地服务控制表,得到本组件和关联调用方的服务开关状态;或者,获取预设的常用外呼服务交易码,根据常用外呼服务交易码查询本地服务控制表,得到常用外呼服务开关状态;或者,获取预设的账务联机服务交易码,根据账务联机服务交易码查询本地服务控制表,得到账务联机服务开关状态。Optionally, using the service transaction code to query the local service control table to obtain service management and control data corresponding to the service control strategy may include: querying the local service control table according to the scanning service transaction code of the component to obtain the service switch status of the component; Or, according to the scanning service transaction code of this component, obtain the scanning service transaction code of the associated caller; query the local service control table according to the scanning service transaction code of this component and the associated caller, and obtain the service switch status of this component and the associated caller ; Or, obtain a preset transaction code for common outbound call services, query the local service control table according to the transaction code for common outbound call services, and obtain the switch status of common outbound call services; Query the local service control table with the transaction code of the account online service to obtain the switch status of the account online service.

本实施例中,针对调度定时扫描服务执行的场景,如果确定扫描服务控制策略为第一种,则只需查询本组件的服务开关状态;如果确定扫描服务控制策略为第二种,则需要同时查询本组件和关联调用组件的服务开关状态;如果确定扫描服务控制策略为第三种,则需要查询预设的所有的常用外呼服务开关状态;如果确定扫描服务控制策略为第四种,则需要查询预设的所有的账务联机服务开关状态。In this embodiment, for the scenario of scheduling the execution of the scheduled scan service, if it is determined that the scan service control strategy is the first type, it is only necessary to query the service switch status of the component; if it is determined that the scan service control strategy is the second type, it is necessary to simultaneously Query the service switch status of this component and the associated calling component; if it is determined that the scanning service control strategy is the third type, you need to query the status of all preset common outbound call services; if it is determined that the scanning service control strategy is the fourth type, then You need to query the switch status of all the preset accounting online services.

步骤140、根据服务管控数据,对调用请求报文进行响应处理。Step 140: Respond to the call request message according to the service management and control data.

可选的,根据服务管控数据,对调用请求报文进行响应处理,可以包括:如果服务管控数据中包括的服务开关状态全为工作状态,则接受服务调用请求,否则,拒绝服务调用请求。Optionally, responding to the invocation request message according to the service control data may include: if the service switch states included in the service control data are all working states, accepting the service invocation request, otherwise, rejecting the service invocation request.

本实施例中,在获取到服务控制策略中相关组件的服务开关状态之后,如果获取到的所有服务开关状态全部都是工作状态,则该服务未被管控,可以接受服务调用请求;如果至少一个服务开关状态为关闭状态,即交易中的至少一个关联服务被管控,则该交易会失败,因此可以拒绝当前的服务调用请求。In this embodiment, after acquiring the service switch states of the relevant components in the service control policy, if all the acquired service switch states are working states, the service is not under control, and the service invocation request can be accepted; If the service switch status is OFF, that is, at least one associated service in the transaction is controlled, the transaction will fail, so the current service call request can be rejected.

本实施例中,通过针对服务的类别(供其他组件调用自身组件的联机服务、外呼其他组件的联机服务、定时扫描服务)和功能性质(账务类、非账务类)配置不同的服务控制策略,当服务异常时,可以灵活采用服务控制策略对有问题的服务和业务场景进行管控,避免采取停机修复等方式,引起业务中断和影响业务的连续性,将业务影响范围降低到最小。待异常恢复后,可以打开服务管控开关,做到实时生效,规避系统停机重启的时间。In this embodiment, different services are configured according to the types of services (online services for other components to call their own components, online services for outgoing calls to other components, and regular scan services) and functional properties (accounts, non-accounts). Control strategy. When the service is abnormal, the service control strategy can be flexibly used to manage and control problematic services and business scenarios, avoiding downtime repair and other methods, causing business interruption and affecting business continuity, and reducing the scope of business impact to a minimum. After the abnormal recovery, you can turn on the service control switch to make it take effect in real time, avoiding the time for system shutdown and restart.

可选的,还可以包括:如果检测到目标组件出现异常,则将与目标组件关联的所有组件的服务开关状态都设为关闭状态。Optionally, it may further include: if it is detected that the target component is abnormal, setting the service switch states of all components associated with the target component to the off state.

示例性的,对于交易线上的关联组件系统,当下游组件出现异常情况,如交易服务成功率大幅度下降或者交易服务关闭等,在不停机的前提下,可以通过控制对应下游组件服务开关,关闭该服务,避免出现该交易影响带来的异常数据,同时也不影响其他服务。Exemplarily, for the associated component system on the transaction line, when an abnormal situation occurs in the downstream components, such as a significant drop in the success rate of the transaction service or the shutdown of the transaction service, etc., the service switch of the corresponding downstream component can be controlled by controlling the service switch of the corresponding downstream component without stopping the system. Close the service to avoid abnormal data caused by the impact of the transaction, and also do not affect other services.

示例性的,对于核心记账系统或者人行系统出现停机维护等情况,在不停机的前提下,可以控制自身的账务交易服务开关,关闭该服务,及时拒绝客户请求,避免客户资金不能到账引起客户投诉。Exemplarily, if the core accounting system or the PBOC system is shut down for maintenance, etc., under the premise of not shutting down, it can control its own account transaction service switch, close the service, and reject customer requests in a timely manner to prevent customer funds from failing to arrive in the account. cause customer complaints.

示例性的,对于核心记账系统记账功能异常时,通过关闭定时扫描服务开关,暂时将待处理业务数据缓存记录到系统中,待异常恢复后,打开定时扫描服务开关,继续处理留存的待处理业务。Exemplarily, when the accounting function of the core accounting system is abnormal, the timed scanning service switch is turned off to temporarily record the to-be-processed business data cache in the system. Handle business.

可选的,还可以包括:如果检测到组件系统异常,则将与组件系统关联的服务控制总开关的状态设为关闭状态,或者将所有组件的服务开关状态都设为关闭状态。Optionally, it may further include: if an abnormality of the component system is detected, setting the state of the service control master switch associated with the component system to the off state, or setting the service switch states of all components to the off state.

示例性的,对于外部关联系统维护(如人行系统运维日)或者主机核心记账系统停机维护,在不停机的前提下,关闭全部服务的服务开关或全部主机服务进行系统隔离,又或者直接关闭对应的服务控制总开关。Exemplarily, for the maintenance of external related systems (such as the operation and maintenance day of the People's Bank of China) or the shutdown maintenance of the host core accounting system, on the premise of no shutdown, the service switches of all services or all host services are turned off to isolate the system, or directly Turn off the corresponding service control master switch.

可选的,还可以包括:如果服务开关的状态发生变化,则根据变化的服务开关状态对本地的服务控制表进行更新,并更新服务控制表的版本号;其中,服务控制表用于存储各组件的服务开关状态。Optionally, it can also include: if the state of the service switch changes, update the local service control table according to the changed service switch state, and update the version number of the service control table; The service switch state of the component.

本实施例中,如果由于服务异常或者服务异常恢复等原因,导致服务开关的状态发生变化,则记录服务管控状态的服务控制表也要对应更新,同时,服务控制表的版本号也要相应更新,即版本号加1。这样才能保证后续查询该服务的管控状态时,查询到最新的服务控制表,获取到正确的服务管控数据。In this embodiment, if the status of the service switch changes due to service exception or service exception recovery, etc., the service control table that records the service management and control status should be updated accordingly, and the version number of the service control table should be updated accordingly. , that is, the version number plus 1. Only in this way can the latest service control table be queried and the correct service control data can be obtained when the management and control status of the service is subsequently queried.

本发明实施例中,通过接收调用请求报文,并确定与调用请求报文匹配的服务控制总开关的状态;如果服务控制总开关处于工作状态,则获取调用请求报文中的服务交易码,并确定与服务交易码匹配的服务控制策略;使用服务交易码查询本地服务控制表,得到与服务控制策略对应的服务管控数据;根据服务管控数据,对调用请求报文进行响应处理,解决了现有技术中存在异常时直接停机修复,对业务的影响较大的问题,实现了针对性的对异常服务进行管控,避免停机修复,将业务影响范围降低到最小。In the embodiment of the present invention, by receiving the invocation request message, and determining the state of the main service control switch matching the invocation request message; if the main service control switch is in the working state, the service transaction code in the invocation request message is obtained, And determine the service control strategy that matches the service transaction code; use the service transaction code to query the local service control table to obtain the service control data corresponding to the service control strategy; In some technologies, when there is an abnormality, it directly shuts down for repair, which has a great impact on the business. It realizes the targeted management and control of abnormal services, avoids downtime for repair, and minimizes the scope of business impact.

实施例二Embodiment 2

图2是本发明实施例二中的一种交易服务管控装置的结构示意图,本实施例可适用于在不停机的情况下,对异常服务进行管控的情况,该装置可以由硬件和/或软件来实现,并一般可以集成在提供异常服务管控服务的电子设备中。如图2所示,该装置包括:FIG. 2 is a schematic structural diagram of a transaction service management and control device in the second embodiment of the present invention. This embodiment can be applied to the situation of managing and controlling abnormal services without stopping the machine. The device can be configured by hardware and/or software. It can be implemented and generally integrated in electronic devices that provide abnormal service management and control services. As shown in Figure 2, the device includes:

报文接收模块210,用于接收调用请求报文,并确定与调用请求报文匹配的服务控制总开关的状态;Amessage receiving module 210, configured to receive the invocation request message, and determine the state of the main service control switch matching the invocation request message;

策略确定模块220,用于如果服务控制总开关处于工作状态,则获取调用请求报文中的服务交易码,并确定与服务交易码匹配的服务控制策略;apolicy determination module 220, configured to acquire the service transaction code in the invocation request message if the service control master switch is in a working state, and determine a service control policy matching the service transaction code;

管控数据查询模块230,用于使用服务交易码查询本地服务控制表,得到服务管控数据;The management and controldata query module 230 is used to query the local service control table by using the service transaction code to obtain service management and control data;

请求响应模块240,用于对服务控制策略以及服务管控数据进行匹配,根据匹配结果对调用请求报文进行响应处理。The request-response module 240 is configured to match the service control policy and the service management and control data, and respond to the invocation request message according to the matching result.

本发明实施例中,通过接收调用请求报文,并确定与调用请求报文匹配的服务控制总开关的状态;如果服务控制总开关处于工作状态,则获取调用请求报文中的服务交易码,并确定与服务交易码匹配的服务控制策略;使用服务交易码查询本地服务控制表,得到与服务控制策略对应的服务管控数据;根据服务管控数据,对调用请求报文进行响应处理,解决了现有技术中存在异常时直接停机修复,对业务的影响较大的问题,实现了针对性的对异常服务进行管控,避免停机修复,将业务影响范围降低到最小。In the embodiment of the present invention, by receiving the invocation request message, and determining the state of the main service control switch matching the invocation request message; if the main service control switch is in the working state, the service transaction code in the invocation request message is obtained, And determine the service control strategy that matches the service transaction code; use the service transaction code to query the local service control table to obtain the service control data corresponding to the service control strategy; In some technologies, when there is an abnormality, it directly shuts down for repair, which has a great impact on the business. It realizes the targeted management and control of abnormal services, avoids downtime for repair, and minimizes the scope of business impact.

可选的,报文接收模块210,用于:Optionally, themessage receiving module 210 is used for:

如果接收到其他组件的调用请求报文,则确定请求联机服务控制总开关的状态;If a call request message from other components is received, determine the status of the master switch for requesting online service control;

如果接收到外呼其他组件的调用请求报文,则确定外呼联机服务控制总开关的状态;If a call request message for outgoing calls to other components is received, determine the state of the main switch of the outgoing online service control;

如果接收到定时扫描服务的调用请求报文,则确定定时扫描服务控制总开关的状态。If the invocation request message of the timing scanning service is received, the state of the timing scanning service control main switch is determined.

可选的,策略确定模块220,包括:Optionally, thepolicy determination module 220 includes:

联机服务单元,用于如果请求联机服务控制总开关处于工作状态,则从调用请求报文中获取本组件的联机服务交易码,并确定与联机服务交易码匹配的联机服务控制策略;The online service unit is used to obtain the online service transaction code of the component from the invocation request message if the requesting online service control master switch is in the working state, and determine the online service control strategy matching the online service transaction code;

其中,联机服务控制策略包括:根据本组件的联机服务交易码所对应的服务管控数据,确定服务是否被管控;或者,根据本组件和关联调用方的联机服务交易码所对应的服务管控数据,确定服务是否被管控。Wherein, the online service control strategy includes: determining whether the service is controlled according to the service management and control data corresponding to the online service transaction code of the component; or, according to the service management and control data corresponding to the online service transaction code of the component and the associated caller, Determines whether the service is governed.

可选的,管控数据查询模块230,包括:Optionally, the management and controldata query module 230 includes:

联机服务查询单元,用于根据本组件的联机服务交易码查询本地服务控制表,得到本组件的服务开关状态;或者,The online service query unit is used to query the local service control table according to the online service transaction code of the component to obtain the service switch status of the component; or,

根据本组件的联机服务交易码,获取关联调用方的联机服务交易码;Obtain the online service transaction code of the associated caller according to the online service transaction code of this component;

根据本组件和关联调用方的联机服务交易码查询本地服务控制表,得到本组件和关联调用方的服务开关状态。Query the local service control table according to the online service transaction code of the component and the associated caller, and obtain the service switch status of the component and the associated caller.

可选的,策略确定模块220,包括:Optionally, thepolicy determination module 220 includes:

外呼联机服务单元,用于如果外呼联机服务控制总开关处于工作状态,则从调用请求报文中获取本组件的外呼服务交易码,并确定与外呼服务交易码匹配的外呼服务控制策略;The outbound call online service unit is used to obtain the outbound call service transaction code of this component from the call request message if the outbound online service control main switch is in the working state, and to determine the outbound call service that matches the outbound call service transaction code. Control Strategy;

其中,外呼服务控制策略包括:根据本组件的外呼服务交易码所对应的服务管控数据,确定服务是否被管控;或者,根据本组件和关联调用方的外呼服务交易码所对应的服务管控数据,确定服务是否被管控;或者,根据预设的常用外呼服务交易码所对应的服务管控数据,确定服务是否被管控。The outbound call service control strategy includes: determining whether the service is controlled according to the service control data corresponding to the outbound call service transaction code of this component; or, according to the service corresponding to the outbound call service transaction code of this component and the associated caller Control data to determine whether the service is under control; or, determine whether the service is under control according to the service control data corresponding to the preset common outbound service transaction code.

可选的,管控数据查询模块230,包括:Optionally, the management and controldata query module 230 includes:

外呼联机服务查询单元,用于根据本组件的外呼服务交易码查询本地服务控制表,得到本组件的服务开关状态;或者,an outbound online service query unit, used for querying the local service control table according to the outbound call service transaction code of the component to obtain the service switch status of the component; or,

根据本组件的外呼服务交易码,获取关联调用方的外呼服务交易码;According to the outbound call service transaction code of this component, obtain the outbound call service transaction code of the associated caller;

根据本组件和关联调用方的外呼服务交易码查询本地服务控制表,得到本组件和关联调用方的服务开关状态;或者,Query the local service control table according to the outgoing service transaction code of the component and the associated caller to obtain the service switch status of the component and the associated caller; or,

获取预设的常用外呼服务交易码,根据常用外呼服务交易码查询本地服务控制表,得到常用外呼服务开关状态。Obtain the preset common outbound call service transaction code, query the local service control table according to the common outbound call service transaction code, and obtain the common outbound call service switch status.

可选的,策略确定模块220,包括:Optionally, thepolicy determination module 220 includes:

扫描服务单元,用于如果定时扫描服务控制总开关处于工作状态,则从调用请求报文中获取本组件的扫描服务交易码,并确定与扫描服务交易码匹配的扫描服务控制策略;The scanning service unit is used to obtain the scanning service transaction code of the component from the invocation request message if the timing scanning service control main switch is in the working state, and determine the scanning service control policy matching the scanning service transaction code;

其中,扫描服务控制策略包括:根据本组件的扫描服务交易码所对应的服务管控数据,确定服务是否被管控;或者,根据本组件和关联调用方的扫描服务交易码所对应的服务管控数据,确定服务是否被管控;或者,根据预设的常用外呼服务交易码所对应的服务管控数据,确定服务是否被管控;或者,根据预设的账务联机服务交易码所对应的服务管控数据,确定服务是否被管控。The scanning service control strategy includes: determining whether the service is controlled according to the service control data corresponding to the scanning service transaction code of this component; or, according to the service control data corresponding to the scanning service transaction code of this component and the associated caller, Determine whether the service is under control; or, determine whether the service is under control according to the service control data corresponding to the preset common outbound service transaction code; or, according to the service control data corresponding to the preset account online service transaction code, Determines whether the service is governed.

可选的,管控数据查询模块230,包括:Optionally, the management and controldata query module 230 includes:

扫描服务查询单元,用于根据本组件的扫描服务交易码查询本地服务控制表,得到本组件的服务开关状态;或者,a scanning service query unit, configured to query the local service control table according to the scanning service transaction code of the component, to obtain the service switch status of the component; or,

根据本组件的扫描服务交易码,获取关联调用方的扫描服务交易码;According to the scanning service transaction code of this component, obtain the scanning service transaction code of the associated caller;

根据本组件和关联调用方的扫描服务交易码查询本地服务控制表,得到本组件和关联调用方的服务开关状态;或者,Query the local service control table according to the scanning service transaction code of the component and the associated caller to obtain the service switch status of the component and the associated caller; or,

获取预设的常用外呼服务交易码,根据常用外呼服务交易码查询本地服务控制表,得到常用外呼服务开关状态;或者,Obtain the preset common outbound call service transaction code, query the local service control table according to the common outbound call service transaction code, and obtain the common outbound call service switch status; or,

获取预设的账务联机服务交易码,根据账务联机服务交易码查询本地服务控制表,得到账务联机服务开关状态。Acquire the preset transaction code of the online account service, query the local service control table according to the transaction code of the online account service, and obtain the switch status of the online account service.

可选的,请求响应模块240,用于:Optionally, the request-response module 240 is used for:

如果服务管控数据中包括的服务开关状态全为工作状态,则接受服务调用请求,否则,拒绝服务调用请求。If the service switch states included in the service control data are all working states, the service invocation request is accepted; otherwise, the service invocation request is rejected.

可选的,还包括:Optionally, also include:

组件管控模块,用于如果检测到目标组件出现异常,则将与目标组件关联的所有组件的服务开关状态都设为关闭状态。The component control module is used to set the service switch state of all components associated with the target component to the off state if an abnormality of the target component is detected.

可选的,还包括:Optionally, also include:

系统管控模块,用于如果检测到组件系统异常,则将与组件系统关联的服务控制总开关的状态设为关闭状态,或者将所有组件的服务开关状态都设为关闭状态。The system control module is used to set the state of the service control master switch associated with the component system to the off state, or set the service switch states of all the components to the off state if an abnormality of the component system is detected.

可选的,还包括:Optionally, also include:

数据更新模块,用于如果服务开关的状态发生变化,则根据变化的服务开关状态对本地的服务控制表进行更新,并更新服务控制表的版本号;The data update module is used to update the local service control table according to the changed service switch state if the state of the service switch changes, and update the version number of the service control table;

其中,服务控制表用于存储各组件的服务开关状态。Among them, the service control table is used to store the service switch status of each component.

本发明实施例所提供的交易服务管控装置可执行本发明任意实施例所提供的交易服务管控方法,具备执行方法相应的功能模块和有益效果。The transaction service management and control device provided by the embodiment of the present invention can execute the transaction service management and control method provided by any embodiment of the present invention, and has functional modules and beneficial effects corresponding to the execution method.

实施例三Embodiment 3

图3是本发明实施例三中的一种电子设备的结构示意图。图3示出了适于用来实现本发明实施方式的示例性设备12的框图。图3显示的设备12仅仅是一个示例,不应对本发明实施例的功能和使用范围带来任何限制。FIG. 3 is a schematic structural diagram of an electronic device in Embodiment 3 of the present invention. Figure 3 shows a block diagram of anexemplary apparatus 12 suitable for use in implementing embodiments of the present invention. Thedevice 12 shown in FIG. 3 is only an example, and should not impose any limitations on the functions and scope of use of the embodiments of the present invention.

如图3所示,设备12以通用计算设备的形式表现。设备12的组件可以包括但不限于:一个或者多个处理器或者处理单元16,系统存储器28,连接不同系统组件(包括系统存储器28和处理单元16)的总线18。As shown in FIG. 3,device 12 takes the form of a general-purpose computing device. Components ofdevice 12 may include, but are not limited to, one or more processors orprocessing units 16,system memory 28, and abus 18 connecting various system components includingsystem memory 28 andprocessing unit 16.

总线18表示几类总线结构中的一种或多种,包括存储器总线或者存储器控制器,外围总线,图形加速端口,处理器或者使用多种总线结构中的任意总线结构的局域总线。举例来说,这些体系结构包括但不限于工业标准体系结构(ISA)总线,微通道体系结构(MAC)总线,增强型ISA总线、视频电子标准协会(VESA)局域总线以及外围组件互连(PCI)总线。Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor, or a local bus using any of a variety of bus structures. By way of example, these architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect ( PCI) bus.

设备12典型地包括多种计算机系统可读介质。这些介质可以是任何能够被设备12访问的可用介质,包括易失性和非易失性介质,可移动的和不可移动的介质。Device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed bydevice 12, including volatile and non-volatile media, removable and non-removable media.

系统存储器28可以包括易失性存储器形式的计算机系统可读介质,例如随机存取存储器(RAM)30和/或高速缓存存储器32。设备12可以进一步包括其它可移动/不可移动的、易失性/非易失性计算机系统存储介质。仅作为举例,存储系统34可以用于读写不可移动的、非易失性磁介质(图3未显示,通常称为“硬盘驱动器”)。尽管图3中未示出,可以提供用于对可移动非易失性磁盘(例如“软盘”)读写的磁盘驱动器,以及对可移动非易失性光盘(例如CD-ROM,DVD-ROM或者其它光介质)读写的光盘驱动器。在这些情况下,每个驱动器可以通过一个或者多个数据介质接口与总线18相连。存储器28可以包括至少一个程序产品,该程序产品具有一组(例如至少一个)程序模块,这些程序模块被配置以执行本发明各实施例的功能。System memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and/or cache memory 32 .Device 12 may further include other removable/non-removable, volatile/non-volatile computer system storage media. For example only,storage system 34 may be used to read and write to non-removable, non-volatile magnetic media (not shown in FIG. 3, commonly referred to as a "hard disk drive"). Although not shown in Figure 3, a disk drive may be provided for reading and writing to removable non-volatile magnetic disks (eg "floppy disks"), as well as removable non-volatile optical disks (eg CD-ROM, DVD-ROM) or other optical media) to read and write optical drives. In these cases, each drive may be connected tobus 18 through one or more data media interfaces.Memory 28 may include at least one program product having a set (eg, at least one) of program modules configured to perform the functions of various embodiments of the present invention.

具有一组(至少一个)程序模块42的程序/实用工具40,可以存储在例如存储器28中,这样的程序模块42包括但不限于操作系统、一个或者多个应用程序、其它程序模块以及程序数据,这些示例中的每一个或某种组合中可能包括网络环境的实现。程序模块42通常执行本发明所描述的实施例中的功能和/或方法。A program/utility 40 having a set (at least one) ofprogram modules 42, which may be stored, for example, inmemory 28,such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data , each or some combination of these examples may include an implementation of a network environment.Program modules 42 generally perform the functions and/or methods of the described embodiments of the present invention.

设备12也可以与一个或多个外部设备14(例如键盘、指向设备、显示器24等)通信,还可与一个或者多个使得用户能与该设备12交互的设备通信,和/或与使得该设备12能与一个或多个其它计算设备进行通信的任何设备(例如网卡,调制解调器等等)通信。这种通信可以通过输入/输出(I/O)接口22进行。并且,设备12还可以通过网络适配器20与一个或者多个网络(例如局域网(LAN),广域网(WAN)和/或公共网络,例如因特网)通信。如图所示,网络适配器20通过总线18与设备12的其它模块通信。应当明白,尽管图中未示出,可以结合设备12使用其它硬件和/或软件模块,包括但不限于:微代码、设备驱动器、冗余处理单元、外部磁盘驱动阵列、RAID系统、磁带驱动器以及数据备份存储系统等。Device 12 may also communicate with one or more external devices 14 (eg, keyboards, pointing devices,display 24, etc.), may also communicate with one or more devices that enable a user to interact withdevice 12, and/or communicate withDevice 12 can communicate with any device (eg, network card, modem, etc.) that communicates with one or more other computing devices. Such communication may take place through input/output (I/O)interface 22 . Also, thedevice 12 may communicate with one or more networks (eg, a local area network (LAN), a wide area network (WAN), and/or a public network such as the Internet) through anetwork adapter 20 . As shown,network adapter 20 communicates with other modules ofdevice 12 viabus 18 . It should be understood that, although not shown, other hardware and/or software modules may be used in conjunction withdevice 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and Data backup storage system, etc.

处理单元16通过运行存储在系统存储器28中的程序,从而执行各种功能应用以及数据处理,例如实现本发明实施例所提供的交易服务管控方法。Theprocessing unit 16 executes various functional applications and data processing by running the programs stored in thesystem memory 28, for example, to implement the transaction service management and control method provided by the embodiment of the present invention.

也即:实现一种交易服务管控方法,包括:That is: to implement a transaction service management and control method, including:

接收调用请求报文,并确定与调用请求报文匹配的服务控制总开关的状态;Receive the call request message, and determine the status of the service control master switch matching the call request message;

如果服务控制总开关处于工作状态,则获取调用请求报文中的服务交易码,并确定与服务交易码匹配的服务控制策略;If the service control master switch is in the working state, obtain the service transaction code in the call request message, and determine the service control policy matching the service transaction code;

使用服务交易码查询本地服务控制表,得到与服务控制策略对应的服务管控数据;Use the service transaction code to query the local service control table to obtain the service control data corresponding to the service control strategy;

根据服务管控数据,对调用请求报文进行响应处理。According to the service control data, respond to the call request message.

实施例四Embodiment 4

本发明实施例四还公开了一种计算机存储介质,其上存储有计算机程序,该程序被处理器执行时实现一种交易服务管控方法,包括:Embodiment 4 of the present invention further discloses a computer storage medium, on which a computer program is stored, and when the program is executed by a processor, a transaction service management and control method is implemented, including:

接收调用请求报文,并确定与调用请求报文匹配的服务控制总开关的状态;Receive the call request message, and determine the status of the service control master switch matching the call request message;

如果服务控制总开关处于工作状态,则获取调用请求报文中的服务交易码,并确定与服务交易码匹配的服务控制策略;If the service control master switch is in the working state, obtain the service transaction code in the call request message, and determine the service control policy matching the service transaction code;

使用服务交易码查询本地服务控制表,得到与服务控制策略对应的服务管控数据;Use the service transaction code to query the local service control table to obtain the service control data corresponding to the service control strategy;

根据服务管控数据,对调用请求报文进行响应处理。According to the service control data, respond to the call request message.

本发明实施例的计算机存储介质,可以采用一个或多个计算机可读的介质的任意组合。计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质。计算机可读存储介质例如可以是,但不限于电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本文件中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。The computer storage medium in the embodiments of the present invention may adopt any combination of one or more computer-readable mediums. The computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. The computer readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or a combination of any of the above. More specific examples (a non-exhaustive list) of computer readable storage media include: electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), Erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disk read only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.

计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。A computer-readable signal medium may include a propagated data signal in baseband or as part of a carrier wave, with computer-readable program code embodied thereon. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device .

计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于无线、电线、光缆、RF等等,或者上述的任意合适的组合。Program code embodied on a computer readable medium may be transmitted using any suitable medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

可以以一种或多种程序设计语言或其组合来编写用于执行本发明操作的计算机程序代码,程序设计语言包括面向对象的程序设计语言,诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言,诸如”C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络,包括局域网(LAN)或广域网(WAN),连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。Computer program code for carrying out operations of the present invention may be written in one or more programming languages, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural A programming language, such as the "C" language or similar programming language. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a local area network (LAN) or wide area network (WAN), or may be connected to an external computer (eg, through the Internet using an Internet service provider) connect).

注意,上述仅为本发明的较佳实施例及所运用技术原理。本领域技术人员会理解,本发明不限于这里所述的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本发明的保护范围。因此,虽然通过以上实施例对本发明进行了较为详细的说明,但是本发明不仅仅限于以上实施例,在不脱离本发明构思的情况下,还可以包括更多其他等效实施例,而本发明的范围由所附的权利要求范围决定。Note that the above are only preferred embodiments of the present invention and applied technical principles. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the protection scope of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments, and can also include more other equivalent embodiments without departing from the concept of the present invention. The scope is determined by the scope of the appended claims.

Claims (15)

Translated fromChinese
1.一种交易服务管控方法,其特征在于,包括:1. A transaction service management and control method, comprising:接收调用请求报文,并确定与所述调用请求报文匹配的服务控制总开关的状态;Receive the call request message, and determine the state of the service control master switch that matches the call request message;如果所述服务控制总开关处于工作状态,则获取所述调用请求报文中的服务交易码,并确定与所述服务交易码匹配的服务控制策略;If the service control master switch is in a working state, obtain the service transaction code in the invocation request message, and determine a service control strategy that matches the service transaction code;使用所述服务交易码查询本地服务控制表,得到与所述服务控制策略对应的服务管控数据;Using the service transaction code to query the local service control table to obtain service control data corresponding to the service control strategy;根据所述服务管控数据,对所述调用请求报文进行响应处理。According to the service management and control data, response processing is performed to the invocation request message.2.根据权利要求1所述的方法,其特征在于,接收调用请求报文,并确定与所述调用请求报文匹配的服务控制总开关的状态,包括:2. The method according to claim 1, wherein receiving an invocation request message and determining the state of a service control master switch matching the invocation request message, comprising:如果接收到其他组件的调用请求报文,则确定请求联机服务控制总开关的状态;If a call request message from other components is received, determine the status of the master switch for requesting online service control;如果接收到外呼其他组件的调用请求报文,则确定外呼联机服务控制总开关的状态;If a call request message for outgoing calls to other components is received, determine the state of the main switch of the outgoing online service control;如果接收到定时扫描服务的调用请求报文,则确定定时扫描服务控制总开关的状态。If the invocation request message of the timing scanning service is received, the state of the timing scanning service control main switch is determined.3.根据权利要求2所述的方法,其特征在于,如果所述服务控制总开关处于工作状态,则获取所述调用请求报文中的服务交易码,并确定与所述服务交易码匹配的服务控制策略,包括:3. The method according to claim 2, wherein, if the service control master switch is in a working state, the service transaction code in the invocation request message is obtained, and the service transaction code matching the service transaction code is determined. Service control policies, including:如果请求联机服务控制总开关处于工作状态,则从所述调用请求报文中获取本组件的联机服务交易码,并确定与所述联机服务交易码匹配的联机服务控制策略;If the master switch for requesting online service control is in a working state, obtain the online service transaction code of the component from the invocation request message, and determine an online service control strategy matching the online service transaction code;其中,所述联机服务控制策略包括:根据本组件的联机服务交易码所对应的服务管控数据,确定服务是否被管控;或者,根据本组件和关联调用方的联机服务交易码所对应的服务管控数据,确定服务是否被管控。Wherein, the online service control strategy includes: determining whether the service is controlled according to the service management and control data corresponding to the online service transaction code of the component; or, according to the service management and control corresponding to the online service transaction code of the component and the associated caller data to determine whether the service is regulated.4.根据权利要求3所述的方法,其特征在于,使用所述服务交易码查询本地服务控制表,得到与所述服务控制策略对应的服务管控数据,包括:4. The method according to claim 3, wherein the service transaction code is used to query a local service control table to obtain service control data corresponding to the service control strategy, comprising:根据本组件的联机服务交易码查询本地服务控制表,得到本组件的服务开关状态;或者,Query the local service control table according to the online service transaction code of this component to obtain the service switch status of this component; or,根据本组件的联机服务交易码,获取关联调用方的联机服务交易码;Obtain the online service transaction code of the associated caller according to the online service transaction code of this component;根据本组件和关联调用方的联机服务交易码查询本地服务控制表,得到本组件和关联调用方的服务开关状态。Query the local service control table according to the online service transaction code of the component and the associated caller, and obtain the service switch status of the component and the associated caller.5.根据权利要求2所述的方法,其特征在于,如果所述服务控制总开关处于工作状态,则获取所述调用请求报文中的服务交易码,并确定与所述服务交易码匹配的服务控制策略,包括:5. The method according to claim 2, wherein, if the service control master switch is in a working state, the service transaction code in the invocation request message is acquired, and the service transaction code that matches the service transaction code is determined. Service control policies, including:如果外呼联机服务控制总开关处于工作状态,则从所述调用请求报文中获取本组件的外呼服务交易码,并确定与所述外呼服务交易码匹配的外呼服务控制策略;If the outbound call online service control master switch is in a working state, obtain the outbound call service transaction code of the component from the invocation request message, and determine an outbound call service control strategy matching the outbound call service transaction code;其中,所述外呼服务控制策略包括:根据本组件的外呼服务交易码所对应的服务管控数据,确定服务是否被管控;或者,根据本组件和关联调用方的外呼服务交易码所对应的服务管控数据,确定服务是否被管控;或者,根据预设的常用外呼服务交易码所对应的服务管控数据,确定服务是否被管控。Wherein, the outbound call service control strategy includes: determining whether the service is controlled according to the service control data corresponding to the outbound call service transaction code of the component; or, according to the outbound call service transaction code corresponding to the component and the associated caller determine whether the service is under management and control; or, according to the service management and control data corresponding to the preset common outbound service transaction code, determine whether the service is under management and control.6.根据权利要求5所述的方法,其特征在于,使用所述服务交易码查询本地服务控制表,得到与所述服务控制策略对应的服务管控数据,包括:6. The method according to claim 5, wherein the service transaction code is used to query a local service control table to obtain service control data corresponding to the service control strategy, comprising:根据本组件的外呼服务交易码查询本地服务控制表,得到本组件的服务开关状态;或者,Query the local service control table according to the outbound call service transaction code of this component to obtain the service switch status of this component; or,根据本组件的外呼服务交易码,获取关联调用方的外呼服务交易码;According to the outbound call service transaction code of this component, obtain the outbound call service transaction code of the associated caller;根据本组件和关联调用方的外呼服务交易码查询本地服务控制表,得到本组件和关联调用方的服务开关状态;或者,Query the local service control table according to the outgoing service transaction code of the component and the associated caller to obtain the service switch status of the component and the associated caller; or,获取预设的常用外呼服务交易码,根据常用外呼服务交易码查询本地服务控制表,得到常用外呼服务开关状态。Obtain the preset common outbound call service transaction code, query the local service control table according to the common outbound call service transaction code, and obtain the common outbound call service switch status.7.根据权利要求2所述的方法,其特征在于,如果所述服务控制总开关处于工作状态,则获取所述调用请求报文中的服务交易码,并确定与所述服务交易码匹配的服务控制策略,包括:7. The method according to claim 2, wherein, if the service control master switch is in a working state, the service transaction code in the invocation request message is acquired, and the service transaction code matching the service transaction code is determined. Service control policies, including:如果定时扫描服务控制总开关处于工作状态,则从所述调用请求报文中获取本组件的扫描服务交易码,并确定与所述扫描服务交易码匹配的扫描服务控制策略;If the main switch of the regular scanning service control is in the working state, the scanning service transaction code of the component is obtained from the invocation request message, and the scanning service control strategy matching the scanning service transaction code is determined;其中,所述扫描服务控制策略包括:根据本组件的扫描服务交易码所对应的服务管控数据,确定服务是否被管控;或者,根据本组件和关联调用方的扫描服务交易码所对应的服务管控数据,确定服务是否被管控;或者,根据预设的常用外呼服务交易码所对应的服务管控数据,确定服务是否被管控;或者,根据预设的账务联机服务交易码所对应的服务管控数据,确定服务是否被管控。Wherein, the scanning service control strategy includes: determining whether the service is controlled according to the service control data corresponding to the scanning service transaction code of the component; or, according to the service management and control corresponding to the scanning service transaction code of the component and the associated caller data to determine whether the service is under control; or, according to the service management and control data corresponding to the preset transaction code for common outbound services, to determine whether the service is under control; or, according to the preset transaction code for the online account service transaction code corresponding to the service management and control data to determine whether the service is regulated.8.根据权利要求7所述的方法,其特征在于,使用所述服务交易码查询本地服务控制表,得到与所述服务控制策略对应的服务管控数据,包括:8. The method according to claim 7, wherein the service transaction code is used to query a local service control table to obtain service control data corresponding to the service control strategy, comprising:根据本组件的扫描服务交易码查询本地服务控制表,得到本组件的服务开关状态;或者,Query the local service control table according to the scanning service transaction code of this component to obtain the service switch status of this component; or,根据本组件的扫描服务交易码,获取关联调用方的扫描服务交易码;According to the scanning service transaction code of this component, obtain the scanning service transaction code of the associated caller;根据本组件和关联调用方的扫描服务交易码查询本地服务控制表,得到本组件和关联调用方的服务开关状态;或者,Query the local service control table according to the scanning service transaction code of the component and the associated caller to obtain the service switch status of the component and the associated caller; or,获取预设的常用外呼服务交易码,根据常用外呼服务交易码查询本地服务控制表,得到常用外呼服务开关状态;或者,Obtain the preset common outbound call service transaction code, query the local service control table according to the common outbound call service transaction code, and obtain the common outbound call service switch status; or,获取预设的账务联机服务交易码,根据账务联机服务交易码查询本地服务控制表,得到账务联机服务开关状态。Acquire the preset transaction code of the online account service, query the local service control table according to the transaction code of the online account service, and obtain the switch status of the online account service.9.根据权利要求1-8中任一项所述的方法,其特征在于,根据所述服务管控数据,对所述调用请求报文进行响应处理,包括:9. The method according to any one of claims 1-8, wherein, according to the service management and control data, responding to the invocation request message, comprising:如果所述服务管控数据中包括的服务开关状态全为工作状态,则接受服务调用请求,否则,拒绝服务调用请求。If the service switch states included in the service management and control data are all working states, the service invocation request is accepted; otherwise, the service invocation request is rejected.10.根据权利要求1所述的方法,其特征在于,还包括:10. The method of claim 1, further comprising:如果检测到目标组件出现异常,则将与所述目标组件关联的所有组件的服务开关状态都设为关闭状态。If it is detected that the target component is abnormal, the service switch states of all components associated with the target component are set to the off state.11.根据权利要求1所述的方法,其特征在于,还包括:11. The method of claim 1, further comprising:如果检测到组件系统异常,则将与组件系统关联的服务控制总开关的状态设为关闭状态,或者将所有组件的服务开关状态都设为关闭状态。If a component system abnormality is detected, the state of the service control master switch associated with the component system is set to the off state, or the service switch states of all components are set to the off state.12.根据权利要求10或11所述的方法,其特征在于,还包括:12. The method of claim 10 or 11, further comprising:如果服务开关的状态发生变化,则根据变化的服务开关状态对本地的服务控制表进行更新,并更新所述服务控制表的版本号;If the state of the service switch changes, the local service control table is updated according to the changed service switch state, and the version number of the service control table is updated;其中,所述服务控制表用于存储各组件的服务开关状态。Wherein, the service control table is used to store the service switch state of each component.13.一种交易服务管控装置,其特征在于,包括:13. A transaction service management and control device, comprising:报文接收模块,用于接收调用请求报文,并确定与所述调用请求报文匹配的服务控制总开关的状态;a message receiving module, configured to receive a call request message, and determine the state of the main service control switch matching the call request message;策略确定模块,用于如果所述服务控制总开关处于工作状态,则获取所述调用请求报文中的服务交易码,并确定与所述服务交易码匹配的服务控制策略;a policy determination module, configured to acquire a service transaction code in the invocation request message if the service control master switch is in a working state, and determine a service control policy that matches the service transaction code;管控数据查询模块,用于使用所述服务交易码查询本地服务控制表,得到服务管控数据;A management and control data query module, used for querying the local service control table by using the service transaction code to obtain service management and control data;请求响应模块,用于对所述服务控制策略以及所述服务管控数据进行匹配,根据匹配结果对所述调用请求报文进行响应处理。A request-response module, configured to match the service control policy and the service management and control data, and respond to the invocation request message according to the matching result.14.一种电子设备,其特征在于,所述设备包括:14. An electronic device, characterized in that the device comprises:一个或多个处理器;one or more processors;存储装置,用于存储一个或多个程序,storage means for storing one or more programs,当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如权利要求1-12中任一所述的交易服务管控方法。When the one or more programs are executed by the one or more processors, the one or more processors implement the transaction service management and control method according to any one of claims 1-12.15.一种计算机可读存储介质,其上存储有计算机程序,其特征在于,该程序被处理器执行时实现如权利要求1-12中任一所述的交易服务管控方法。15. A computer-readable storage medium on which a computer program is stored, characterized in that, when the program is executed by a processor, the transaction service management and control method according to any one of claims 1-12 is implemented.
CN202110517565.7A2021-05-122021-05-12Transaction service control method, device, equipment and storage mediumPendingCN113127110A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202110517565.7ACN113127110A (en)2021-05-122021-05-12Transaction service control method, device, equipment and storage medium

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202110517565.7ACN113127110A (en)2021-05-122021-05-12Transaction service control method, device, equipment and storage medium

Publications (1)

Publication NumberPublication Date
CN113127110Atrue CN113127110A (en)2021-07-16

Family

ID=76781725

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202110517565.7APendingCN113127110A (en)2021-05-122021-05-12Transaction service control method, device, equipment and storage medium

Country Status (1)

CountryLink
CN (1)CN113127110A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN114064234A (en)*2021-09-262022-02-18荣耀终端有限公司Method and device for repairing WMI service
CN116701474A (en)*2023-05-182023-09-05中国工商银行股份有限公司 Request response method, device, electronic device and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN103825830A (en)*2014-02-242014-05-28北京南天软件有限公司Method and device for system to achieve flow control based on TUXEDO middleware
WO2018090988A1 (en)*2016-11-212018-05-24中兴通讯股份有限公司Method and apparatus for controlling terminal network data, and routing device
TWI631519B (en)*2017-08-232018-08-01中華電信股份有限公司 Scalable multi-dimensional service strategy management system
CN108768786A (en)*2018-06-142018-11-06厦门理工学院A kind of device detection system, method, terminal and storage medium
CN110048861A (en)*2018-01-172019-07-23华为技术有限公司A kind of business datum method for stream processing and its relevant device
CN112039975A (en)*2020-08-262020-12-04中国建设银行股份有限公司Method, device, equipment and storage medium for processing message field
CN112184243A (en)*2020-09-282021-01-05中国建设银行股份有限公司 A transaction method, device, device and storage medium based on biometric identification

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN103825830A (en)*2014-02-242014-05-28北京南天软件有限公司Method and device for system to achieve flow control based on TUXEDO middleware
WO2018090988A1 (en)*2016-11-212018-05-24中兴通讯股份有限公司Method and apparatus for controlling terminal network data, and routing device
TWI631519B (en)*2017-08-232018-08-01中華電信股份有限公司 Scalable multi-dimensional service strategy management system
CN110048861A (en)*2018-01-172019-07-23华为技术有限公司A kind of business datum method for stream processing and its relevant device
CN108768786A (en)*2018-06-142018-11-06厦门理工学院A kind of device detection system, method, terminal and storage medium
CN112039975A (en)*2020-08-262020-12-04中国建设银行股份有限公司Method, device, equipment and storage medium for processing message field
CN112184243A (en)*2020-09-282021-01-05中国建设银行股份有限公司 A transaction method, device, device and storage medium based on biometric identification

Cited By (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN114064234A (en)*2021-09-262022-02-18荣耀终端有限公司Method and device for repairing WMI service
CN114064234B (en)*2021-09-262022-11-18荣耀终端有限公司Method and device for repairing WMI service
CN116701474A (en)*2023-05-182023-09-05中国工商银行股份有限公司 Request response method, device, electronic device and storage medium

Similar Documents

PublicationPublication DateTitle
US20200019543A1 (en)Method, apparatus and device for updating data, and medium
US20100228960A1 (en)Virtual memory over baseboard management controller
CN110806933A (en)Batch task processing method, device, equipment and storage medium
WO2019179026A1 (en)Electronic device, method for automatically generating cluster access domain name, and storage medium
CN113127110A (en)Transaction service control method, device, equipment and storage medium
CN107729176A (en)The disaster recovery method and disaster tolerance system of a kind of profile management systems
CN109670943A (en)A kind of settlement system, method, computer equipment and storage medium
CN112181723A (en)Financial disaster recovery method and device, storage medium and electronic equipment
CN116389601A (en) A communication method, device, device and storage medium
CN110765148B (en)Service data processing method and device
CN110727523A (en)Service request processing method, processing device and readable storage medium
CN115086311A (en)Management system of enterprise cross-system service based on cloud service bus
CN115222515A (en)Capital clearing method, device, computer equipment and storage medium
US11496525B2 (en)ACR buffering in the cloud
CN114510398A (en) Abnormal monitoring method, device, equipment, system and medium
US5668994A (en)Conversation management routine for co-operative processing applications
CN112711527A (en)Debugging method and device of real-time process, target machine and storage medium
WO2024103897A1 (en)Memory resource management method, system and apparatus, and medium
CN114398384A (en) A financial data processing method, device, equipment and storage medium
CN114490747A (en) Management and control method, device, electronic device and storage medium for business processing request
CN107133868A (en)Fund classifying method, device, terminal and storage medium
CN102447798A (en)Recharging and answering method and device
CN114764324A (en)Enterprise resource planning system and integration method thereof
CN114529263B (en) Data processing method, device, electronic device and storage medium
US20110264624A1 (en)Centralized backup system and backup method for an homogeneous real-time system at different locations

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination

[8]ページ先頭

©2009-2025 Movatter.jp