[go: up one dir, main page]

CN116501766A - Dynamic data processing method and system at the APP terminal of railway employee welfare mall - Google Patents

Dynamic data processing method and system at the APP terminal of railway employee welfare mall Download PDF

Info

Publication number
CN116501766A
CN116501766A CN202310357905.3A CN202310357905A CN116501766A CN 116501766 A CN116501766 A CN 116501766A CN 202310357905 A CN202310357905 A CN 202310357905A CN 116501766 A CN116501766 A CN 116501766A
Authority
CN
China
Prior art keywords
app
data
dynamic data
railway
employee welfare
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
CN202310357905.3A
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.)
Institute of Computing Technologies of CARS
Beijing Jingwei Information Technology Co Ltd
Original Assignee
Institute of Computing Technologies of CARS
Beijing Jingwei Information Technology 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 Institute of Computing Technologies of CARS, Beijing Jingwei Information Technology Co Ltd filed Critical Institute of Computing Technologies of CARS
Priority to CN202310357905.3A priority Critical patent/CN116501766A/en
Publication of CN116501766A publication Critical patent/CN116501766A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • G06F16/24552Database cache management
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2458Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
    • G06F16/2474Sequence data queries, e.g. querying versioned data
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0207Discounts or incentives, e.g. coupons or rebates
    • G06Q30/0222During e-commerce, i.e. online transactions
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Development Economics (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • Computational Linguistics (AREA)
  • Computing Systems (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Game Theory and Decision Science (AREA)
  • Software Systems (AREA)
  • Probability & Statistics with Applications (AREA)
  • Mathematical Physics (AREA)
  • Fuzzy Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本申请提供一种铁路职工福利商城APP端的动态数据处理方法及系统,方法包括:向后端服务器发送针对目标业务场景的版本信息获取请求以自APP分布式缓存或从库获取当前版本信息,Web端与APP端对应不同的后端服务器及分布式缓存;接收当前版本信息并其与APP端本地缓存或数据库中的历史版本信息是否相同,若否,自APP分布式缓存或从库中调取目标业务场景动态数据以渲染并更新APP端本地缓存或数据库,若是,自APP端本地缓存或数据库调取历史场景动态数据以渲染。本申请能够适用于铁路相关企业职工福利线上商城的业务场景需求,并能够有效提高APP端动态数据的获取效率及可靠性,提高企业职工在线上福利兑换时的用户体检。

This application provides a dynamic data processing method and system on the APP side of the railway employee welfare mall. The method includes: sending a version information acquisition request for the target business scenario to the back-end server to obtain the current version information from the APP distributed cache or from the library. The client and the APP correspond to different backend servers and distributed caches; receive the current version information and check whether it is the same as the historical version information in the local cache or database of the APP, if not, retrieve it from the APP distributed cache or from the library The dynamic data of the target business scene is used to render and update the local cache or database of the APP side. If so, the dynamic data of the historical scene is called from the local cache or database of the APP side for rendering. This application can be applied to the business scenario requirements of the employee welfare online mall of railway-related enterprises, and can effectively improve the efficiency and reliability of dynamic data acquisition on the APP side, and improve the user physical examination when enterprise employees redeem online benefits.

Description

铁路职工福利商城APP端的动态数据处理方法及系统Dynamic data processing method and system at the APP terminal of railway employee welfare mall

技术领域technical field

本申请涉及数据处理技术领域,尤其涉及铁路职工福利商城APP端的动态数据处理方法及系统。This application relates to the technical field of data processing, in particular to a dynamic data processing method and system at the APP end of the railway employee welfare mall.

背景技术Background technique

为了提高铁路相关企业或单位的职工福利的采购及兑换的便捷性,铁路相关企业或单位希望通过构建自动化服务系统来实现铁路单位、商户进行职工福利采购交易,具体可以通过参考铁路线上服务商城的APP端调用后台接口获取数据,然后在APP端进行数据展示的方式来实现。In order to improve the convenience of purchasing and exchanging employee benefits of railway-related enterprises or units, railway-related enterprises or units hope to realize the purchase and transaction of employee benefits by railway units and merchants by building an automated service system. For details, please refer to the railway online service mall The APP side calls the background interface to obtain data, and then displays the data on the APP side.

然而,现有的铁路线上服务商城无法满足铁路相关企业职工福利线上商城的业务场景需求,即使在现有的铁路线上服务商城基础上构建能够满足铁路相关企业职工福利线上商城的业务场景需求的铁路职工福利商城,也会存在铁路职工福利商城APP端数据处理速度慢及可靠性差等问题。因为,在铁路线上服务商城APP端进行数据获取时,虽然为APP端提供接口的服务在有些数据接口中使用了分布式缓存,但由于为APP端提供数据接口的服务缺乏有针对性的缓存方案,且现有的数据库虽然使用了mysql的MHA架构,但均仅使用MHA架构的主库,因此大幅影响了APP端数据的处理速度及用户体验。However, the existing railway online service mall cannot meet the business scenario needs of the employee welfare online mall of railway-related enterprises. The railway employee welfare mall required by the scene will also have problems such as slow data processing speed and poor reliability on the railway employee welfare mall app. Because, when data acquisition is performed on the APP side of the railway online service mall, although the services that provide interfaces for the APP side use distributed caching in some data interfaces, the services that provide data interfaces for the APP side lack targeted caching In addition, although the existing databases use the MHA architecture of mysql, they only use the main library of the MHA architecture, which greatly affects the data processing speed and user experience on the APP side.

因此,亟需设计一种不仅能满足铁路相关企业职工福利线上商城的业务场景需求,还能够提高商城APP端数据处理速度及用户体验的APP端的态数据获取方法。Therefore, it is urgent to design an APP-side dynamic data acquisition method that can not only meet the business scenario requirements of the employee welfare online mall of railway-related enterprises, but also improve the data processing speed and user experience of the APP-side of the mall.

发明内容Contents of the invention

鉴于此,本申请实施例提供了铁路职工福利商城APP端的动态数据处理方法及系统,以消除或改善现有技术中存在的一个或更多个缺陷。In view of this, the embodiment of the present application provides a dynamic data processing method and system on the APP side of the railway employee welfare mall, so as to eliminate or improve one or more defects existing in the prior art.

本申请的一个方面提供了一种铁路职工福利商城APP端的动态数据处理方法,包括:One aspect of the present application provides a dynamic data processing method at the APP end of the railway employee welfare mall, including:

从铁路职工福利商城的APP端向对应的后端服务器发送针对目标业务场景的版本信息获取请求,以使该后端服务器自对应的APP分布式缓存或数据库中的从库获取所述目标业务场景的当前版本信息,其中,所述铁路职工福利商城还包括Web端,所述Web端与所述APP端对应不同的后端服务器且采用不同的分布式缓存;Send a version information acquisition request for the target business scenario from the APP side of the Railway Employee Welfare Mall to the corresponding back-end server, so that the back-end server can obtain the target business scenario from the corresponding APP distributed cache or the slave library in the database The current version information of the railway employee welfare mall, wherein the railway employee welfare mall also includes a Web terminal, and the Web terminal and the APP terminal correspond to different back-end servers and adopt different distributed caches;

接收所述APP端对应的后端服务器发送的所述当前版本信息,并比较该当前版本信息与存储在APP端本地缓存或数据库中的所述目标业务场景的历史版本信息是否相同,若否,则自所述APP分布式缓存或所述从库中调取所述目标业务场景的场景动态数据,以基于该场景动态数据对所述目标业务场景进行渲染处理并更新所述APP端本地缓存或数据库;若是,则自所述APP端本地缓存或数据库调取目标业务场景的历史场景动态数据以进行渲染处理。在本申请的一些实施例中,所述APP端采用预设的登录分布式缓存、所述APP分布式缓存或所述从库读取数据,并采用所述业务分布式缓存、APP分布式缓存或所述主库写入数据;Receive the current version information sent by the backend server corresponding to the APP, and compare whether the current version information is the same as the historical version information of the target business scenario stored in the APP local cache or database, if not, The scene dynamic data of the target business scene is called from the APP distributed cache or the library, so as to render the target business scene based on the scene dynamic data and update the APP local cache or database; if so, the historical scene dynamic data of the target business scene is transferred from the local cache or database of the APP side for rendering processing. In some embodiments of the present application, the APP side uses the preset login distributed cache, the APP distributed cache or the data read from the library, and uses the service distributed cache, APP distributed cache or the main library writes data;

所述Web端采用所述登录分布式缓存、所述业务分布式缓存或所述从库读取数据,并采用所述业务分布式缓存、APP分布式缓存或所述主库写入数据。The Web terminal uses the login distributed cache, the service distributed cache or the slave database to read data, and uses the business distributed cache, APP distributed cache or the main database to write data.

在本申请的一些实施例中,所述目标业务场景为预设的各个铁路职工福利业务场景中的任意一个;In some embodiments of the present application, the target business scenario is any one of preset railway employee welfare business scenarios;

所述铁路职工福利业务场景包括列表数据和详情数据;The railway employee welfare business scenario includes list data and detailed data;

所述列表数据包括:导航图片、首页礼包列表、可兑换礼包列表、兑换券列表、订单列表、售后列表和地址列表中的至少一项;The list data includes: at least one of a navigation picture, a list of homepage gift packages, a list of redeemable gift packages, a list of exchange vouchers, an order list, an after-sales list, and an address list;

所述详情数据包括:礼包详情、订单详情和售后详情中的至少一项。The detailed data includes: at least one of gift package details, order details and after-sales details.

在本申请的一些实施例中,不同的所述铁路职工福利业务场景分别对应不同的版本接口和数据接口;In some embodiments of the present application, different railway employee welfare business scenarios correspond to different version interfaces and data interfaces;

相对应的,所述从铁路职工福利商城的APP端向对应的后端服务器发送针对目标业务场景的版本信息获取请求,包括:Correspondingly, the request for obtaining version information for the target business scenario is sent from the APP end of the railway employee welfare mall to the corresponding back-end server, including:

在铁路职工福利商城的APP端调用针对目标业务场景的版本接口,以向对应的后端服务器发送针对目标业务场景的版本信息获取请求。Call the version interface for the target business scenario on the APP side of the railway employee welfare mall to send a request for obtaining version information for the target business scenario to the corresponding back-end server.

在本申请的一些实施例中,还包括:In some embodiments of the present application, also include:

若经比较获知所述目标业务场景的当前版本信息与历史版本信息不同,则调用针对所述目标业务场景的数据接口,以向对应的后端服务器发送针对目标业务场景的场景动态请求,使得所述后端服务器自所述APP分布式缓存或所述从库获取所述目标业务场景的场景动态数据;If it is known through comparison that the current version information of the target business scenario is different from the historical version information, call the data interface for the target business scenario to send a scene dynamic request for the target business scenario to the corresponding backend server, so that all The back-end server acquires scene dynamic data of the target business scene from the APP distributed cache or the slave library;

接收所述APP端对应的后端服务器发送的所述场景动态数据,以基于该场景动态数据对所述目标业务场景进行渲染处理,并根据所述当前版本信息和接收的该场景动态数据更新所述APP端本地缓存或数据库。receiving the scene dynamic data sent by the backend server corresponding to the APP end, rendering the target business scene based on the scene dynamic data, and updating the scene dynamic data according to the current version information and the received scene dynamic data; The local cache or database on the APP side.

在本申请的一些实施例中,还包括:In some embodiments of the present application, also include:

自铁路职工福利商城的WEB端请求创建或更新一铁路职工福利业务场景;Request to create or update a railway employee welfare business scenario from the WEB side of the railway employee welfare mall;

若所述铁路职工福利业务场景的创建或更新审核通过,则更新针对该铁路职工福利业务场景当前的场景动态数据和版本数据;If the creation or update of the railway employee welfare business scenario is approved, update the current scenario dynamic data and version data for the railway employee welfare business scenario;

将所述铁路职工福利业务场景当前的场景动态数据和版本数据分别写入所述业务分布式缓存、APP分布式缓存及所述主库。Write the current scene dynamic data and version data of the railway employee welfare business scene into the business distributed cache, APP distributed cache and the main library respectively.

本申请的另一个方面提供了一种铁路职工福利商城APP,包括:Another aspect of the application provides a railway employee welfare mall APP, including:

版本比较模块,用于从铁路职工福利商城的APP端向对应的后端服务器发送针对目标业务场景的版本信息获取请求,以使该后端服务器自对应的APP分布式缓存或数据库中的从库获取所述目标业务场景的当前版本信息,其中,所述铁路职工福利商城还包括Web端,所述Web端与所述APP端对应不同的后端服务器且采用不同的分布式缓存;The version comparison module is used to send the version information acquisition request for the target business scenario from the APP end of the railway employee welfare mall to the corresponding back-end server, so that the back-end server can obtain the version information from the corresponding APP distributed cache or the slave library in the database. Acquiring the current version information of the target business scenario, wherein the railway employee welfare mall also includes a Web terminal, and the Web terminal and the APP terminal correspond to different back-end servers and adopt different distributed caches;

数据获取模块,用于接收所述APP端对应的后端服务器发送的所述当前版本信息,并比较该当前版本信息与存储在APP端本地缓存或数据库中的所述目标业务场景的历史版本信息是否相同,若否,则自所述APP分布式缓存或所述从库中调取所述目标业务场景的场景动态数据,以基于该场景动态数据对所述目标业务场景进行渲染处理并更新所述APP端本地缓存或数据库;若是,则自所述APP端本地缓存或数据库调取目标业务场景的历史场景动态数据以进行渲染处理。A data acquisition module, configured to receive the current version information sent by the backend server corresponding to the APP, and compare the current version information with the historical version information of the target business scenario stored in the APP local cache or database Whether they are the same, if not, call the scene dynamic data of the target business scene from the APP distributed cache or the slave library, so as to render the target business scene based on the scene dynamic data and update the The local cache or database of the APP side; if so, the historical scene dynamic data of the target business scene is transferred from the local cache or database of the APP side for rendering processing.

本申请的另一个方面还提供了一种铁路职工福利商城系统,包括:Another aspect of the present application also provides a railway employee welfare mall system, including:

APP端,对应的用户角色包括:企业职工;所述APP端采用预设的登录分布式缓存、APP分布式缓存或从库读取数据,并采用业务分布式缓存、APP分布式缓存或主库写入数据;所述APP端用于实现所述的铁路职工福利商城APP端的动态数据处理方法;On the APP side, the corresponding user roles include: enterprise employees; the APP side uses the preset login distributed cache, APP distributed cache or reads data from the library, and uses the business distributed cache, APP distributed cache or main library Write data; the APP end is used to realize the dynamic data processing method of the APP end of the railway employee welfare mall;

Web端,对应的用户角色包括:供应商和运营商;所述Web端采用所述登录分布式缓存、所述业务分布式缓存或所述从库读取数据,并采用所述业务分布式缓存、APP分布式缓存或所述主库写入数据。On the Web side, the corresponding user roles include: suppliers and operators; the Web side uses the login distributed cache, the business distributed cache or the data read from the library, and uses the business distributed cache , the APP distributed cache or the master library writes data.

本申请的另一个方面提供了一种电子设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现所述的铁路职工福利商城APP端的动态数据处理方法。Another aspect of the present application provides an electronic device, including a memory, a processor, and a computer program stored on the memory and operable on the processor. When the processor executes the computer program, the railway worker The dynamic data processing method of the Welfare Mall APP.

本申请的另一个方面提供了一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现所述的铁路职工福利商城APP端的动态数据处理方法。Another aspect of the present application provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the above-mentioned dynamic data processing method at the APP end of the Railway Workers Welfare Mall is implemented.

本申请提供的铁路职工福利商城APP端的动态数据处理方法,通过铁路职工福利商城的APP端以及铁路职工福利商城的目标业务场景,能够有效适用于铁路相关企业职工福利线上商城的业务场景需求,Web端与所述APP端对应不同的后端服务器且采用不同的分布式缓存,且APP端从APP分布式缓存或从库读取数据,而WEB端则是从业务分布式缓存或从库获取数据,能够有效区分WEB端分布式缓存和APP端分布式缓存,实现APP端的有针对性的缓存及数据库存储,进而能够实现一整套后台缓存方案及APP端本地缓存方案,以有效提高铁路职工福利商城APP端的动态数据处理效率及可靠性,并提高用户体验;通过先比较版本数据再确定是否从APP端本地缓存中直接获取场景动态数据,能够进一步提高APP端的动态数据处理效率及可靠性,并进一步提高用户体验。The dynamic data processing method of the APP terminal of the railway employee welfare mall provided by this application can effectively apply to the business scenario requirements of the railway employee welfare online mall through the APP terminal of the railway employee welfare mall and the target business scenario of the railway employee welfare mall. The Web side and the APP side correspond to different back-end servers and use different distributed caches, and the APP side reads data from the APP distributed cache or from the library, while the WEB side obtains data from the business distributed cache or from the library Data can effectively distinguish between WEB-side distributed cache and APP-side distributed cache, realize targeted cache and database storage on the APP side, and then realize a complete set of background cache solutions and APP-side local cache solutions to effectively improve the welfare of railway employees The efficiency and reliability of dynamic data processing on the APP side of the mall, and improve user experience; by comparing the version data first and then determining whether to directly obtain scene dynamic data from the local cache of the APP side, the dynamic data processing efficiency and reliability of the APP side can be further improved, and Further improve user experience.

本申请的附加优点、目的,以及特征将在下面的描述中将部分地加以阐述,且将对于本领域普通技术人员在研究下文后部分地变得明显,或者可以根据本申请的实践而获知。本申请的目的和其它优点可以通过在说明书以及附图中具体指出的结构实现到并获得。Additional advantages, objectives, and features of the present application will be partially set forth in the following description, and will be partially apparent to those of ordinary skill in the art after studying the following, or can be known from the practice of the present application. The objectives and other advantages of the application will be realized and obtained by the structure particularly pointed out in the description and appended drawings.

本领域技术人员将会理解的是,能够用本申请实现的目的和优点不限于以上具体所述,并且根据以下详细说明将更清楚地理解本申请能够实现的上述和其他目的。Those skilled in the art will appreciate that the purposes and advantages that can be achieved by the present application are not limited to the above specific description, and the above and other purposes that can be achieved by the present application will be more clearly understood from the following detailed description.

附图说明Description of drawings

此处所说明的附图用来提供对本申请的进一步理解,构成本申请的一部分,并不构成对本申请的限定。附图中的部件不是成比例绘制的,而只是为了示出本申请的原理。为了便于示出和描述本申请的一些部分,附图中对应部分可能被放大,即,相对于依据本申请实际制造的示例性装置中的其它部件可能变得更大。在附图中:The drawings described here are used to provide a further understanding of the application, constitute a part of the application, and do not limit the application. The components in the figures are not to scale but merely serve to illustrate the principles of the application. For ease of illustration and description of some parts of the present application, corresponding parts in the drawings may be exaggerated, ie, may be made larger relative to other components in the exemplary apparatus actually manufactured in accordance with the present application. In the attached picture:

图1为本申请一实施例中的铁路职工福利商城APP端的动态数据处理方法的第一种流程示意图。Fig. 1 is a schematic flow chart of the first dynamic data processing method on the APP side of the railway employee welfare mall in an embodiment of the present application.

图2为本申请一实施例中的铁路职工福利商城APP端的动态数据处理方法的第二种流程示意图。Fig. 2 is a schematic flow chart of the second dynamic data processing method on the APP side of the railway employee welfare mall in an embodiment of the present application.

图3为本申请一实施例中的铁路职工福利商城APP端的动态数据处理方法的第三种流程示意图。Fig. 3 is a schematic flow chart of the third method for processing dynamic data on the APP side of the Railway Employee Welfare Mall APP in an embodiment of the present application.

图4为本申请另一实施例中的铁路职工福利商城APP的结构示意图。Fig. 4 is a schematic structural diagram of a railway employee welfare mall APP in another embodiment of the present application.

图5为本申请另一实施例中的铁路职工福利商城系统的架构示意图。Fig. 5 is a schematic diagram of the architecture of the railway employee welfare mall system in another embodiment of the present application.

图6为本申请应用实例中提供的APP端动态数据读取使用缓存的接口的应用举例示意图。FIG. 6 is a schematic diagram of an application example of an interface for reading dynamic data on the APP side using a cache provided in the application example of the present application.

图7(1)为本申请应用实例中提供的导航(banner)图和首页礼包列表的APP端读取动态数据接口业务流程图。Fig. 7(1) is the business flow chart of reading the dynamic data interface on the APP end of the navigation (banner) map and home page gift package list provided in the application example of this application.

图7(2)为本申请应用实例中提供的可兑换礼包列表和礼包详情的APP端读取动态数据接口业务流程图。Fig. 7(2) is a flow chart of the APP side reading the dynamic data interface for the exchangeable gift bag list and gift bag details provided in the application example of this application.

图7(3)为本申请应用实例中提供的兑换券列表和订单列表的APP端读取动态数据接口业务流程图。Fig. 7 (3) is the business flow chart of the APP end reading the dynamic data interface of the exchange coupon list and the order list provided in the application example of this application.

图7(4)为本申请应用实例中提供的订单详情的APP端读取动态数据接口业务流程图。Fig. 7(4) is the business flow chart of the APP side reading the dynamic data interface of the order details provided in the application example of this application.

图7(5)为本申请应用实例中提供的售后列表和售后详情的APP端读取动态数据接口业务流程图。Fig. 7(5) is the business flow chart of the APP end reading the dynamic data interface of the after-sales list and after-sales details provided in the application example of this application.

图7(6)为本申请应用实例中提供的地址列表的APP端读取动态数据接口业务流程图。Fig. 7(6) is a business flow chart of the APP end reading the dynamic data interface of the address list provided in the application example of this application.

图8为本申请应用实例中提供的APP分布式缓存数据写入流程示意图。FIG. 8 is a schematic diagram of the writing process of APP distributed cache data provided in the application example of this application.

图9为本申请应用实例中提供的APP分布式缓存数据更新流程示意图。FIG. 9 is a schematic diagram of an APP distributed cache data update process provided in an application example of the present application.

图10为本申请应用实例中提供的礼包详情数据读取及渲染流程示意图。FIG. 10 is a schematic diagram of the process of reading and rendering gift package detail data provided in the application example of this application.

图11为本申请应用实例中提供的礼包列表数据读取及渲染流程示意图。Fig. 11 is a schematic diagram of the process of reading and rendering gift package list data provided in the application example of this application.

具体实施方式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 implementation manners and accompanying drawings. Here, the exemplary embodiments of the present application and their descriptions are used to explain the present application, but not to limit the present application.

在此,还需要说明的是,为了避免因不必要的细节而模糊了本申请,在附图中仅仅示出了与根据本申请的方案密切相关的结构和/或处理步骤,而省略了与本申请关系不大的其他细节。Here, it should also be noted that, in order to avoid obscuring the application due to unnecessary details, only the structures and/or processing steps that are closely related to the solution according to the application are shown in the drawings, and the related Other details that are not relevant to this application.

应该强调,术语“包括/包含”在本文使用时指特征、要素、步骤或组件的存在,但并不排除一个或更多个其它特征、要素、步骤或组件的存在或附加。It should be emphasized that the term "comprising/comprising" when used herein refers to the presence of a feature, element, step or component, but does not exclude the presence or addition of one or more other features, elements, steps or components.

在此,还需要说明的是,如果没有特殊说明,术语“连接”在本文不仅可以指直接连接,也可以表示存在中间物的间接连接。Here, it should also be noted that, unless otherwise specified, the term "connection" herein may refer not only to a direct connection, but also to an indirect connection with an intermediate.

在下文中,将参考附图描述本申请的实施例。在附图中,相同的附图标记代表相同或类似的部件,或者相同或类似的步骤。Hereinafter, embodiments of the present application will be described with reference to the drawings. In the drawings, the same reference numerals represent the same or similar components, or the same or similar steps.

在本申请的一个或多个实施例中,所述铁路职工福利商城能够实现采购方线上委托运营方提供线上福利发放服务、运营方组织供应商开展线上兑换活动、以及企业职工线上兑换下单的业务模式,实现运营方礼包和兑换券管理,职工注册、兑换下单、订单跟踪,供应商接单、发货、物流维护等功能。In one or more embodiments of the present application, the railway employee welfare mall can realize that the purchaser entrusts the operator to provide online welfare distribution services online, the operator organizes suppliers to carry out online exchange activities, and the online The business model of redemption and ordering realizes the management of gift packages and redemption coupons of the operator, employee registration, redemption and order placement, order tracking, supplier order receiving, delivery, and logistics maintenance.

在一种举例中,所述铁路职工福利商城的基础架构可以参照如国铁商城等铁路线上服务商城的现有架构实现。In one example, the infrastructure of the railway employee welfare mall can be implemented with reference to the existing architecture of railway online service malls such as National Railway Mall.

然而,铁路线上服务商城为APP端提供接口的服务在有些数据接口中使用了分布式缓存,但为APP端提供数据接口的服务并没有提供一整套后台缓存方案及APP端本地缓存方案。数据库使用了mysql的MHA架构,但读写上没有进行区分均使用MHA架构的主库,因此,若将铁路线上服务商城的功能直接用于铁路职工福利商城,则会出现铁路企业或单位的职工在线上进行兑换福利等操作时,存在效率低下且交互体验差等问题。However, the service that the railway online service mall provides interfaces for APPs uses distributed cache in some data interfaces, but the service that provides data interfaces for APPs does not provide a complete set of background caching solutions and local caching solutions for APPs. The database uses the MHA architecture of mysql, but there is no distinction between reading and writing. The main library of the MHA architecture is used. Therefore, if the functions of the railway online service mall are directly used in the railway employee welfare mall, there will be problems for railway enterprises or units. When employees exchange benefits and other operations online, there are problems such as low efficiency and poor interactive experience.

基于此,本申请实施例分别提供一种铁路职工福利商城APP端的动态数据处理方法、用于实现该方法的APP、一种铁路职工福利商城系统、电子设备和计算机可读存储介质,能够适用于铁路相关企业职工福利线上商城的业务场景需求,并能够有效提高APP端动态数据的获取效率及可靠性,提高企业职工在线上福利兑换时的用户体检。Based on this, the embodiments of the present application respectively provide a dynamic data processing method at the APP end of the railway employee welfare mall, an APP for realizing the method, a railway employee welfare mall system, electronic equipment, and a computer-readable storage medium, which can be applied to The business scenario requirements of the employee welfare online mall of railway-related enterprises can effectively improve the efficiency and reliability of dynamic data acquisition on the APP side, and improve the user's physical examination when enterprise employees exchange benefits online.

具体通过下述实施例进行详细说明。Specifically, it will be described in detail through the following examples.

基于此,本申请实施例提供一种可由铁路职工福利商城APP实现的铁路职工福利商城APP端的动态数据处理方法,参见图1,所述铁路职工福利商城APP端的动态数据处理方法具体包含有如下内容:Based on this, the embodiment of the present application provides a dynamic data processing method at the APP end of the railway employee welfare mall APP that can be realized by the railway employee welfare mall APP. Referring to Figure 1, the dynamic data processing method at the APP end of the railway employee welfare mall specifically includes the following content :

步骤100:从铁路职工福利商城的APP端向对应的后端服务器发送针对目标业务场景的版本信息获取请求,以使该后端服务器自对应的APP分布式缓存或数据库中的从库获取所述目标业务场景的当前版本信息,其中,所述铁路职工福利商城还包括Web端,所述Web端与所述APP端对应不同的后端服务器且采用不同的分布式缓存。Step 100: Send a version information acquisition request for the target business scenario from the APP end of the railway employee welfare mall to the corresponding back-end server, so that the back-end server can obtain the described version information from the corresponding APP distributed cache or database. The current version information of the target business scenario, wherein the railway employee welfare mall also includes a web end, and the web end and the APP end correspond to different backend servers and use different distributed caches.

在步骤100的一种举例中,若所述目标业务场景为:可兑换礼包列表;则上述步骤100的实现过程包括:APP接收用户录入或选中的可兑换礼包列表并生成对应的针对可兑换礼包列表的版本信息获取请求,而后调用APP对应的后端服务器的针对可兑换礼包列表的版本接口,以使该后端服务器自其对应的后端缓存中调取所述可兑换礼包列表的当前版本信息,并将该可兑换礼包列表的当前版本信息发送给APP。In an example of step 100, if the target business scenario is: a list of redeemable gift packs; then the implementation process of the above step 100 includes: the APP receives the list of redeemable gift packs entered or selected by the user and generates a corresponding exchangeable gift pack The version information acquisition request of the list, and then call the version interface of the back-end server corresponding to the APP for the exchangeable gift bag list, so that the back-end server can retrieve the current version of the exchangeable gift bag list from its corresponding back-end cache information, and send the current version information of the redeemable gift package list to the APP.

可以理解的是,所述后端服务器在读取数据时,先自其对应的APP分布式缓存中读取数据,若未读取到,则会去数据库中的从库进行读取,以在提高后端服务器数据读取效率的基础上进一步保证后端服务器数据读取的可靠性。It can be understood that when the back-end server reads the data, it first reads the data from its corresponding APP distributed cache, if not, it will go to the slave library in the database to read the data, so as to On the basis of improving the data reading efficiency of the back-end server, the reliability of the data reading of the back-end server is further guaranteed.

步骤200:接收所述APP端对应的后端服务器发送的所述当前版本信息,并比较该当前版本信息与存储在APP端本地缓存或数据库中的所述目标业务场景的历史版本信息是否相同,若否,则自所述APP分布式缓存或所述从库中调取所述目标业务场景的场景动态数据,以基于该场景动态数据对所述目标业务场景进行渲染处理并更新所述APP端本地缓存或数据库;若是,则自所述APP端本地缓存或数据库调取目标业务场景的历史场景动态数据以进行渲染处理。Step 200: receiving the current version information sent by the backend server corresponding to the APP, and comparing whether the current version information is the same as the historical version information of the target business scenario stored in the APP local cache or database, If not, retrieve the scene dynamic data of the target business scene from the APP distributed cache or the slave library, so as to render the target business scene based on the scene dynamic data and update the APP end A local cache or database; if so, the historical scene dynamic data of the target business scene is retrieved from the APP-side local cache or database for rendering processing.

在步骤200的一种举例中,若所述目标业务场景为:可兑换礼包列表;则上述步骤200的实现过程包括:APP接收后端服务器发送的可兑换礼包列表的当前版本信息,然后自本地的APP端本地缓存或数据库中调取可兑换礼包列表的最新的历史版本信息;而后比较可兑换礼包列表的当前版本信息和历史版本信息,若一致,则直至自APP端本地缓存或数据中调取可兑换礼包列表的历史版本信息对应的场景动态数据,并基于该场景动态数据进行数据渲染,以使用户自APP端查看到所述可兑换礼包列表的内容。In an example of step 200, if the target business scenario is: a list of redeemable gift packages; the implementation process of the above step 200 includes: the APP receives the current version information of the list of redeemable gift packages sent by the backend server, and then from the local The latest historical version information of the redeemable gift package list is retrieved from the local cache or database of the APP side; then the current version information and historical version information of the redeemable gift package list are compared. Get the scene dynamic data corresponding to the historical version information of the redeemable gift bag list, and perform data rendering based on the scene dynamic data, so that the user can view the content of the redeemable gift bag list from the APP side.

可以理解的是,所述APP在读取数据时,先自其本地对应的APP端本地缓存中读取数据,若未读取到,则会去数据库中进行读取,以在提高APP数据读取效率的基础上进一步保证APP数据读取的可靠性。It can be understood that when the APP reads the data, it first reads the data from its local corresponding APP-side local cache, and if it does not read it, it will go to the database to read it, so as to improve the APP data reading. On the basis of taking efficiency, the reliability of APP data reading is further guaranteed.

从上述描述可知,本申请实施例提供的铁路职工福利商城APP端的动态数据处理方法,通过铁路职工福利商城的APP端以及铁路职工福利商城的目标业务场景,能够有效适用于铁路相关企业职工福利线上商城的业务场景需求,Web端与所述APP端对应不同的后端服务器且采用不同的分布式缓存,且APP端从APP分布式缓存或从库读取数据,而WEB端则是从业务分布式缓存或从库获取数据,能够有效区分WEB端分布式缓存和APP端分布式缓存,实现APP端的有针对性的缓存及数据库存储,进而能够实现一整套后台缓存方案及APP端缓存方案,以有效提高铁路职工福利商城APP端的动态数据处理效率及可靠性,并提高用户体验;通过先比较版本数据再确定是否从APP本地缓存中直接获取场景动态数据,能够进一步提高APP端的动态数据处理效率及可靠性,并进一步提高用户体验。即:为企业职工在福利兑换时提供更流畅的感官和交互体检,能够提高为企业职工福利采购、发放及兑换等各类业务场景的执行效率及有效性。It can be seen from the above description that the dynamic data processing method provided by the embodiment of the present application on the APP end of the railway employee welfare mall can be effectively applied to the employee welfare lines of railway-related enterprises through the APP end of the railway employee welfare mall and the target business scenario of the railway employee welfare mall. According to the business scenario requirements of the online shopping mall, the Web end and the APP end correspond to different back-end servers and use different distributed caches, and the APP end reads data from the APP distributed cache or from the library, while the WEB end reads data from the business Distributed caching or obtaining data from the library can effectively distinguish between WEB-side distributed caching and APP-side distributed caching, realize targeted caching and database storage on the APP side, and then realize a complete set of background caching solutions and APP-side caching solutions, In order to effectively improve the efficiency and reliability of dynamic data processing on the APP side of the railway employee welfare mall, and improve user experience; by comparing the version data first and then determining whether to directly obtain scene dynamic data from the APP local cache, the dynamic data processing efficiency on the APP side can be further improved and reliability, and further improve the user experience. That is: to provide employees with smoother sensory and interactive physical examinations when exchanging benefits, which can improve the execution efficiency and effectiveness of various business scenarios such as purchasing, issuing, and exchanging benefits for enterprise employees.

为了进一步提高一整套后台缓存方案及APP端本地缓存方案的应用可靠性及有效性,在本申请实施例提供的一种铁路职工福利商城APP端的动态数据处理方法中,所述APP端采用预设的登录分布式缓存、所述APP分布式缓存或所述从库读取数据,并采用所述业务分布式缓存、APP分布式缓存或所述主库写入数据;In order to further improve the application reliability and effectiveness of a whole set of background caching schemes and APP-side local caching schemes, in the method for processing dynamic data on the APP side of the railway employee welfare mall provided by the embodiment of the present application, the APP side uses preset The login distributed cache, the APP distributed cache, or the slave library reads data, and uses the business distributed cache, APP distributed cache, or the master library to write data;

所述Web端采用所述登录分布式缓存、所述业务分布式缓存或所述从库读取数据,并采用所述业务分布式缓存、APP分布式缓存或所述主库写入数据。The Web terminal uses the login distributed cache, the service distributed cache or the slave database to read data, and uses the business distributed cache, APP distributed cache or the main database to write data.

具体来说,通过为APP端提供数据接口的服务提供了一整套后台缓存方案及APP端本地缓存方案,且数据库读写上进行区分,能够提高数据接口响应速度和资源访问效率,能够提高APP端数据处理速度,为企业职工在福利兑换时提供更流畅的感官和交互体检,能够提高为企业职工福利采购、发放及兑换等各类业务场景的执行效率及有效性。Specifically, by providing a data interface service for the APP side, a complete set of background caching solutions and APP local caching solutions are provided, and database reading and writing are distinguished, which can improve the data interface response speed and resource access efficiency, and can improve the APP side. The speed of data processing provides smoother sensory and interactive physical examinations for enterprise employees when exchanging benefits, and can improve the execution efficiency and effectiveness of various business scenarios such as purchasing, issuing, and exchanging benefits for enterprise employees.

为了进一步适用于铁路相关企业职工福利线上商城的业务场景需求,在本申请实施例提供的一种铁路职工福利商城APP端的动态数据处理方法中,所述目标业务场景为预设的各个铁路职工福利业务场景中的任意一个;In order to be further applicable to the business scene requirements of the employee welfare online mall of railway-related enterprises, in the dynamic data processing method of the APP terminal of the railway employee welfare mall provided by the embodiment of the application, the target business scenario is each preset railway employee Any one of the welfare business scenarios;

所述铁路职工福利业务场景包括列表数据和详情数据;The railway employee welfare business scenario includes list data and detailed data;

所述列表数据包括:导航图片、首页礼包列表、可兑换礼包列表、兑换券列表、订单列表、售后列表和地址列表中的至少一项;The list data includes: at least one of a navigation picture, a list of homepage gift packages, a list of redeemable gift packages, a list of exchange vouchers, an order list, an after-sales list, and an address list;

所述详情数据包括:礼包详情、订单详情和售后详情中的至少一项。The detailed data includes: at least one of gift package details, order details and after-sales details.

为了进一步提高铁路职工福利商城APP端的动态数据处理的效率及有效性,在本申请实施例提供的一种铁路职工福利商城APP端的动态数据处理方法中,不同的所述铁路职工福利业务场景分别对应不同的版本接口和数据接口;相对应的,参见图2,所述铁路职工福利商城APP端的动态数据处理方法中的步骤100具体包含有如下内容:In order to further improve the efficiency and effectiveness of dynamic data processing at the APP end of the railway employee welfare mall, in the method for processing dynamic data at the APP end of the railway employee welfare mall provided in the embodiment of the present application, different railway employee welfare business scenarios correspond to Different version interfaces and data interfaces; Correspondingly, referring to Fig. 2, the step 100 in the dynamic data processing method of the APP end of the railway employee welfare mall specifically includes the following contents:

步骤110:在铁路职工福利商城的APP端调用针对目标业务场景的版本接口,以向对应的后端服务器发送针对目标业务场景的版本信息获取请求。Step 110: Call the version interface for the target business scenario on the APP side of the railway employee welfare mall to send a request for obtaining version information for the target business scenario to the corresponding back-end server.

为了进一步提高铁路职工福利商城APP端的动态数据处理的效率及有效性,在本申请实施例提供的一种铁路职工福利商城APP端的动态数据处理方法中,参见图2,所述铁路职工福利商城APP端的动态数据处理方法中的步骤200具体包含有如下内容:In order to further improve the efficiency and effectiveness of the dynamic data processing at the APP end of the Railway Employee Welfare Mall, in the method for processing dynamic data at the APP end of the Railway Employee Welfare Mall provided in the embodiment of this application, see Figure 2, the Railway Employee Welfare Mall APP The step 200 in the dynamic data processing method at the terminal specifically includes the following contents:

步骤210:接收所述APP端对应的后端服务器发送的所述当前版本信息。Step 210: Receive the current version information sent by the backend server corresponding to the APP.

步骤220:比较该当前版本信息与存储在APP端本地缓存或数据库中的所述目标业务场景的历史版本信息是否相同,若是,则执行步骤230;若否,则执行步骤240:Step 220: Compare whether the current version information is the same as the historical version information of the target business scenario stored in the APP local cache or database, if yes, perform step 230; if not, perform step 240:

步骤230:自所述APP端本地缓存或数据库中调取所述目标业务场景的历史场景动态数据,以基于该场景动态数据对所述目标业务场景进行渲染处理。Step 230: Retrieving the historical scene dynamic data of the target business scene from the local cache or database of the APP, so as to render the target business scene based on the scene dynamic data.

步骤240:若经比较获知所述目标业务场景的当前版本信息与历史版本信息不同,则调用针对所述目标业务场景的数据接口,以向对应的后端服务器发送针对目标业务场景的场景动态请求,使得所述后端服务器自所述APP分布式缓存或所述从库获取所述目标业务场景的场景动态数据。Step 240: If the current version information of the target business scenario is different from the historical version information after comparison, call the data interface for the target business scenario to send a scene dynamic request for the target business scenario to the corresponding backend server , so that the backend server obtains the scene dynamic data of the target business scene from the APP distributed cache or the slave library.

步骤250:接收所述APP端对应的后端服务器发送的所述场景动态数据,以基于该场景动态数据对所述目标业务场景进行渲染处理,并根据所述当前版本信息和接收的该场景动态数据更新所述APP端本地缓存或数据库。Step 250: Receive the scene dynamic data sent by the backend server corresponding to the APP, to render the target business scene based on the scene dynamic data, and perform rendering processing on the target business scene according to the current version information and the received scene dynamic data The data updates the local cache or database of the APP.

为了进一步提高铁路职工福利商城APP端的动态数据处理的效率及有效性,在本申请实施例提供的一种铁路职工福利商城APP端的动态数据处理方法中,参见图3,所述铁路职工福利商城APP端的动态数据处理方法还具体包含有如下内容:In order to further improve the efficiency and effectiveness of the dynamic data processing at the APP end of the Railway Employee Welfare Mall, in the method for processing dynamic data at the APP end of the Railway Employee Welfare Mall provided in the embodiment of the present application, see FIG. 3 , the Railway Employee Welfare Mall APP The dynamic data processing method at the terminal also specifically includes the following contents:

步骤300:自铁路职工福利商城的WEB端请求创建或更新一铁路职工福利业务场景。Step 300: Request to create or update a railway employee welfare business scenario from the WEB side of the railway employee welfare mall.

步骤400:若所述铁路职工福利业务场景的创建或更新审核通过,则更新针对该铁路职工福利业务场景当前的场景动态数据和版本数据。Step 400: If the creation or update of the railway employee welfare business scenario is approved, update the current scenario dynamic data and version data for the railway employee welfare business scenario.

步骤500:将所述铁路职工福利业务场景当前的场景动态数据和版本数据分别写入所述业务分布式缓存、APP分布式缓存及所述主库。Step 500: Write the current scene dynamic data and version data of the railway employee welfare business scene into the business distributed cache, APP distributed cache and the main library respectively.

从软件层面来说,本申请还提供一种用于执行所述铁路职工福利商城APP端的动态数据处理方法中全部或部分内的铁路职工福利商城APP,参见图4,所述铁路职工福利商城APP具体包含有如下内容:From the perspective of software, this application also provides a railway employee welfare mall APP for executing all or part of the dynamic data processing method of the railway employee welfare mall APP, see Figure 4, the railway employee welfare mall APP Specifically include the following:

版本比较模块10,用于从铁路职工福利商城的APP端向对应的后端服务器发送针对目标业务场景的版本信息获取请求,以使该后端服务器自对应的APP分布式缓存或数据库中的从库获取所述目标业务场景的当前版本信息,其中,所述铁路职工福利商城还包括Web端,所述Web端与所述APP端对应不同的后端服务器且采用不同的分布式缓存;The version comparison module 10 is used to send the version information acquisition request for the target business scenario from the APP end of the railway employee welfare mall to the corresponding back-end server, so that the back-end server can obtain the version information from the corresponding APP distributed cache or database. The library obtains the current version information of the target business scenario, wherein the railway employee welfare mall also includes a Web terminal, and the Web terminal and the APP terminal correspond to different back-end servers and adopt different distributed caches;

数据获取模块20,用于接收所述APP端对应的后端服务器发送的所述当前版本信息,并比较该当前版本信息与存储在APP端本地缓存或数据库中的所述目标业务场景的历史版本信息是否相同,若否,则自所述APP分布式缓存或所述从库中调取所述目标业务场景的场景动态数据,以基于该场景动态数据对所述目标业务场景进行渲染处理并更新所述APP端本地缓存或数据库;若是,则自所述APP端本地缓存或数据库调取目标业务场景的历史场景动态数据以进行渲染处理。The data acquisition module 20 is configured to receive the current version information sent by the backend server corresponding to the APP end, and compare the current version information with the historical version of the target business scenario stored in the local cache or database of the APP end Whether the information is the same, if not, call the scene dynamic data of the target business scene from the APP distributed cache or the slave library, so as to render and update the target business scene based on the scene dynamic data The local cache or database of the APP; if so, the historical scene dynamic data of the target business scene is retrieved from the local cache or database of the APP for rendering processing.

本申请提供的铁路职工福利商城APP的实施例具体可以用于执行上述实施例中的铁路职工福利商城APP端的动态数据处理方法的实施例的处理流程,其功能在此不再赘述,可以参照上述铁路职工福利商城APP端的动态数据处理方法实施例的详细描述。The embodiment of the railway employee welfare mall APP provided by this application can be specifically used to execute the processing flow of the embodiment of the dynamic data processing method of the railway employee welfare mall APP in the above-mentioned embodiment, and its functions will not be described in detail here, and you can refer to the above-mentioned A detailed description of an embodiment of a method for processing dynamic data at the APP end of the Railway Employee Welfare Mall.

所述铁路职工福利商城APP进行铁路职工福利商城APP端的动态数据处理的部分可以在客户端设备中完成。具体可以根据所述客户端设备的处理能力,以及用户使用场景的限制等进行选择。本申请对此不作限定。若所有的操作都在所述客户端设备中完成,所述客户端设备还可以包括处理器,用于铁路职工福利商城APP端的动态数据处理的具体处理。The part of the railway employee welfare mall APP that performs dynamic data processing at the railway employee welfare mall APP end can be completed in the client device. Specifically, the selection may be made according to the processing capability of the client device, the limitation of the user usage scenario, and the like. This application is not limited to this. If all operations are completed in the client device, the client device may also include a processor for specific processing of dynamic data processing on the APP side of the railway employee welfare mall.

上述的客户端设备可以具有通信模块(即通信单元),可以与远程的服务器进行通信连接,实现与所述服务器的数据传输。所述服务器可以包括任务调度中心一侧的服务器,其他的实施场景中也可以包括中间平台的服务器,例如与任务调度中心服务器有通信链接的第三方服务器平台的服务器。所述的服务器可以包括单台计算机设备,也可以包括多个服务器组成的服务器集群,或者分布式装置的服务器结构。The above-mentioned client device may have a communication module (that is, a communication unit), which can communicate with a remote server to realize data transmission with the server. The server may include a server on the side of the task scheduling center, and may also include a server of an intermediate platform in other implementation scenarios, such as a server of a third-party server platform that has a communication link with the server of the task scheduling center. The server may include a single computer device, or a server cluster composed of multiple servers, or a server structure of a distributed device.

上述服务器与所述客户端设备端之间可以使用任何合适的网络协议进行通信,包括在本申请提交日尚未开发出的网络协议。所述网络协议例如可以包括TCP/IP协议、UDP/IP协议、HTTP协议、HTTPS协议等。当然,所述网络协议例如还可以包括在上述协议之上使用的RPC协议(Remote Procedure Call Protocol,远程过程调用协议)、REST协议(Representational State Transfer,表述性状态转移协议)等。Any suitable network protocol may be used for communication between the above server and the client device, including network protocols that have not been developed as of the filing date of this application. The network protocol may include, for example, TCP/IP protocol, UDP/IP protocol, HTTP protocol, HTTPS protocol, and the like. Of course, the network protocol may also include RPC protocol (Remote Procedure Call Protocol, remote procedure call protocol), REST protocol (Representational State Transfer, representational state transfer protocol) etc. used on top of the above protocols, for example.

从上述描述可知,本申请实施例提供的铁路职工福利商城APP,通过铁路职工福利商城的APP端以及铁路职工福利商城的目标业务场景,能够有效适用于铁路相关企业职工福利线上商城的业务场景需求,Web端与所述APP端对应不同的后端服务器且采用不同的分布式缓存,且APP端从APP分布式缓存或从库读取数据,而WEB端则是从业务分布式缓存或从库获取数据,能够有效区分WEB端分布式缓存和APP端分布式缓存,实现APP端的有针对性的缓存及数据库存储,进而能够实现一整套后台缓存方案及APP端本地缓存方案,以有效提高铁路职工福利商城APP端的动态数据处理效率及可靠性,并提高用户体验;通过先比较版本数据再确定是否从APP本地缓存中直接获取场景动态数据,能够进一步提高APP端的动态数据处理效率及可靠性,并进一步提高用户体验。即:为企业职工在福利兑换时提供更流畅的感官和交互体检,能够提高为企业职工福利采购、发放及兑换等各类业务场景的执行效率及有效性。It can be seen from the above description that the railway employee welfare mall APP provided by the embodiment of the present application can be effectively applied to the business scenario of the railway employee welfare online mall through the APP terminal of the railway employee welfare mall and the target business scenario of the railway employee welfare mall Requirements, the Web end and the APP end correspond to different back-end servers and use different distributed caches, and the APP end reads data from the APP distributed cache or from the library, while the WEB end reads data from the business distributed cache or from the The database can obtain data, which can effectively distinguish between WEB-side distributed cache and APP-side distributed cache, realize targeted cache and database storage on the APP side, and then realize a complete set of background cache solutions and APP-side local cache solutions, so as to effectively improve railway The dynamic data processing efficiency and reliability of the APP side of the Employee Welfare Mall can improve the user experience; by comparing the version data first and then determining whether to directly obtain the scene dynamic data from the APP local cache, the dynamic data processing efficiency and reliability of the APP side can be further improved. And further improve user experience. That is: to provide employees with smoother sensory and interactive physical examinations when exchanging benefits, which can improve the execution efficiency and effectiveness of various business scenarios such as purchasing, issuing, and exchanging benefits for enterprise employees.

基于上述的铁路职工福利商城APP和/或铁路职工福利商城APP端的动态数据处理方法,本申请还提供一种铁路职工福利商城系统,参见图5,所述铁路职工福利商城系统具体包含有如下内容:Based on the above-mentioned railway employee welfare mall APP and/or the dynamic data processing method of the railway employee welfare mall APP, this application also provides a railway employee welfare mall system, see Figure 5, the railway employee welfare mall system specifically includes the following content :

APP端,对应的用户角色包括:企业职工;所述APP端采用预设的登录分布式缓存、APP分布式缓存或从库读取数据,并采用业务分布式缓存、APP分布式缓存或主库写入数据;On the APP side, the corresponding user roles include: enterprise employees; the APP side uses the preset login distributed cache, APP distributed cache or reads data from the library, and uses the business distributed cache, APP distributed cache or main library data input;

Web端,对应的用户角色包括:供应商和运营商;所述Web端采用所述登录分布式缓存、所述业务分布式缓存或所述从库读取数据,并采用所述业务分布式缓存、APP分布式缓存或所述主库写入数据。On the Web side, the corresponding user roles include: suppliers and operators; the Web side uses the login distributed cache, the business distributed cache or the data read from the library, and uses the business distributed cache , the APP distributed cache or the master library writes data.

具体来说,铁路职工福利商城系统从服务上进行了APP端和WEB端后端支撑服务的划分;从数据存储层上,分布式缓存分为了C端用户使用的登录分布式缓存、APP分布式缓存和业务分布式缓存,数据库写请求使用主库,读请求使用从库;从业务上为APP端所有业务场景提供了一整套分布式缓存方案:后端支撑服务为APP端各业务场景提供了缓存版本接口和数据接口;在APP端具体业务场景下,APP获取后台数据时先获取版本信息,再根据APP端本地缓存的版本信息与获取到的版本信息进行比较,判断是否需要调用具体数据接口获取信息。后端在分布式缓存中,针对不同的场景会有相对应的版本缓存数据及具体数据信息,版本信息格式针对具体场景不同,其数据结构也会不同,后端服务为APP端提供的数据读取接口直接访问APP端分布式缓存,不访问数据库。Specifically, the railway employee welfare mall system divides the back-end support services of the APP end and the WEB end from the service point; from the data storage layer, the distributed cache is divided into the login distributed cache used by the C-end users, the APP distributed cache, and the APP distributed cache. Caching and business distributed caching, database write requests use the main library, and read requests use the slave library; from the business perspective, it provides a complete set of distributed caching solutions for all business scenarios on the APP side: the back-end support service provides various business scenarios on the APP side. Cache version interface and data interface; in the specific business scenario of the APP side, when the APP obtains the background data, it first obtains the version information, and then compares the locally cached version information on the APP side with the obtained version information to determine whether to call the specific data interface getting information. In the distributed cache at the back end, there will be corresponding version cache data and specific data information for different scenarios. The format of the version information is different for specific scenarios, and its data structure will be different. The back-end service is the data read provided by the APP. Take the interface to directly access the APP-side distributed cache without accessing the database.

铁路职工福利商城系统的福利兑换业务主要用户包括运营方、供应商、企业职工三种用户角色。前端搭建职工福利中心、福利运营中心,供应商中心。职工福利中心采用APP方式实现,福利运营中心和供应商中心采用Web方式实现。The main users of the welfare exchange business of the railway employee welfare mall system include three user roles: operators, suppliers, and enterprise employees. The front end builds an employee welfare center, welfare operation center, and supplier center. The employee welfare center is realized by APP, and the welfare operation center and supplier center are realized by web.

铁路职工福利商城系统采用微服务框架,根据业务划分为用户、登录、礼包、订单、售后、结算等微服务。首先,APP端和WEB端的后台支撑服务从服务层进行分离。其次,APP端所有读写业务从服务层进行了划分,读请求数据从APP分布式缓存中获取,写请求操作业务、APP分布式缓存和主库;运营中心和供应商中心所有读写操作也从服务层进行了划分,读请求使用业务分布式缓存和从库,写请求操作业务、APP分布式缓存和主库。为提高APP端数据接口响应速度,支撑WEB端服务的后台接口在实现业务功能的基础上,对APP分布式缓存进行新增、更新和删除操作,以便APP端提供接口的服务可以直接读取APP分布式缓存数据。The railway employee welfare mall system adopts a micro-service framework, which is divided into micro-services such as users, login, gift packages, orders, after-sales, and settlement according to business. First of all, the background support services of the APP side and the WEB side are separated from the service layer. Secondly, all read and write services on the APP side are divided from the service layer. The read request data is obtained from the APP distributed cache, and the write request operates the business, the APP distributed cache and the main library; all read and write operations in the operation center and supplier center are also It is divided from the service layer, the read request uses the business distributed cache and the slave library, and the write request operates the business, APP distributed cache and the main library. In order to improve the response speed of the APP-side data interface, the background interface that supports the WEB-side service implements business functions, and adds, updates, and deletes the APP distributed cache, so that the service that provides the interface on the APP side can directly read the APP Distributed cache data.

故此方案提升了铁路企业职工福利商城APP端数据接口速度,且提供了一整套后台缓存方案及APP端本地缓存方案,提升用户感官和交互体验,本发明提高了数据接口响应速度和资源访问效率。Therefore, this solution improves the data interface speed of the APP terminal of the railway enterprise employee welfare mall, and provides a complete set of background caching scheme and APP local caching scheme to improve the user's sensory experience and interactive experience. The invention improves the response speed of the data interface and the efficiency of resource access.

为了进一步说明本方案,本申请还提供一种铁路职工福利商城APP端的动态数据处理方法的具体应用实例,不仅能适用于铁路相关企业职工福利商城各业务场景需求,还能够为APP端提供数据接口的服务提供了一整套后台缓存方案及APP端本地缓存方案,提高了APP端数据获取速度,还可以提升用户的感官体验和交互体验。In order to further illustrate this solution, this application also provides a specific application example of a dynamic data processing method on the APP end of the railway employee welfare mall, which can not only be applicable to the needs of various business scenarios of the employee welfare mall of railway-related enterprises, but also provide data interfaces for the APP end The service provides a complete set of background caching solutions and APP-side local caching solutions, which improves the speed of data acquisition on the APP side, and can also improve the user's sensory experience and interactive experience.

在本应用实例中,APP端动态数据读取使用缓存的接口如图6所示。In this application example, the interface for reading dynamic data on the APP side using the cache is shown in Figure 6.

福利商城APP端使用本地缓存存储礼包列表、礼包详情、兑换券列表等版本和数据信息,获取后台数据时先获取版本数据,再根据本地缓存的版本数据与获取到的版本数据进行比较,判断时候需要获取具体数据信息。The Welfare Mall APP uses local cache to store version and data information such as gift package list, gift package details, and exchange coupon list. When obtaining background data, first obtain the version data, and then compare the locally cached version data with the obtained version data to judge when Need to obtain specific data information.

后端在分布式缓存中,针对不同的场景会有相对应的版本缓存数据及具体数据信息,版本信息格式针对具体场景不同数据结构也会不同,后端为APP端提供的数据读取应用访问APP分布式缓存,不访问数据库。其中,针对不同业务场景的APP动态数据读写流程如图7(1)至图7(6)所示,分别从导航(banner)图片、首页礼包列表、可兑换礼包列表、礼包详情、兑换券列表、订单列表、订单详情、售后列表、售后详情和地址列表进行展示。In the distributed cache, the backend will have corresponding version cache data and specific data information for different scenarios. The format of the version information will be different for different scenarios. The backend provides data reading application access for the APP side. APP distributed cache, does not access the database. Among them, the APP dynamic data reading and writing process for different business scenarios is shown in Figure 7(1) to Figure 7(6), from the navigation (banner) picture, home page gift package list, redeemable gift package list, gift package details, exchange coupons, respectively list, order list, order details, after-sales list, after-sales details and address list for display.

基于上述内容,支撑WEB端服务的后台接口在实现各自具体业务功能的基础上,对APP端缓存(版本信息和数据信息)进行新增、更新和删除操作,APP端提供接口的服务可以直接读取APP分布式缓存数据。具体举例如下:Based on the above content, the background interface supporting the WEB-side service can add, update, and delete the APP-side cache (version information and data information) on the basis of realizing its own specific business functions. The services provided by the APP-side interface can be directly read Get APP distributed cache data. Specific examples are as follows:

(一)APP分布式缓存数据写入和更新流程(1) APP distributed cache data writing and updating process

1.兑换券列表APP分布式缓存数据写入流程1. Distributed cache data writing process of Exchange Coupon List APP

参见图8,APP端分布式缓存数据写入流程如下:Referring to Figure 8, the APP-side distributed cache data writing process is as follows:

步骤1.WEB端创建兑换活动;Step 1. Create an exchange event on the WEB side;

步骤2.运营审核驳回,需重新编写提交兑换活动业务数据,继续进入待审核状态;运营审核通过,执行步骤3;Step 2. If the operation review is rejected, you need to re-write and submit the exchange activity business data, and continue to enter the pending review state; if the operation review is passed, go to step 3;

步骤3.兑换活动审核通过,继续自动或手动绑定兑换券;Step 3. After the exchange activity is approved, continue to automatically or manually bind the exchange voucher;

步骤4.兑换券列表版本信息和数据信息进行APP分布式缓存的写入。Step 4. Write the version information and data information of the exchange coupon list into the APP distributed cache.

2.兑换券列表APP分布式缓存数据更新流程2. Distributed cache data update process of the redemption list APP

参见图9,APP分布式缓存数据更新流程如下:Referring to Figure 9, the APP distributed cache data update process is as follows:

步骤1.WEB端变更兑换活动,兑换活动进入到待审核状态;Step 1. Change the exchange activity on the WEB side, and the exchange activity enters the pending review state;

步骤2.营审核驳回,需重新编写提交兑换活动业务数据,继续进入待审核状态;运营审核通过,执行步骤3;Step 2. If the operation review is rejected, it is necessary to re-write and submit the exchange activity business data, and continue to enter the pending review state; if the operation review is passed, go to step 3;

步骤3.兑换券列表版本信息和数据信息进行APP分布式缓存的更新;Step 3. The version information and data information of the exchange coupon list are updated in the APP distributed cache;

步骤4.用户兑换下单,兑换券进行扣减后,执行步骤3,;Step 4. The user redeems and places an order, and after the redemption coupon is deducted, go to step 3;

步骤5.兑换活动失效,执行步骤3。Step 5. The exchange activity is invalid, go to step 3.

举例来说,版本信息格式可以为:{keyid1:v1,keyid2:v2};数据信息格式可以为:{filed1:v1,filed2:v2}。For example, the version information format may be: {keyid1:v1, keyid2:v2}; the data information format may be: {filed1:v1, filed2:v2}.

(二)APP端分布式缓存数据读取流程(2) App-side distributed cache data reading process

1.参见图10,礼包详情数据读取及渲染流程如下:1. See Figure 10, the data reading and rendering process of gift package details is as follows:

步骤1.APP端调用礼包详情版本数据接口,获取礼包详情版本信息,后台接口返回礼包详情版本全量信息,版本格式{keyID:v0,sub:{key1:v1,key2:v2}};Step 1. The APP calls the package details version data interface to obtain the details version information of the package, and the background interface returns the full version information of the package details, and the version format is {keyID:v0,sub:{key1:v1,key2:v2}};

步骤2.APP端获取到礼包详情版本信息后,通过与APP端本地缓存的礼包详情版本信息进行比较,判断是否有版本差异;Step 2. After the APP side obtains the version information of the gift package details, it compares it with the version information of the gift package details cached locally on the APP side to determine whether there is a version difference;

步骤3.没有版本差异的,执行步骤6;Step 3. If there is no version difference, go to step 6;

步骤4.有版本差异的需要调用礼包详情数据接口获取需要更新的具体礼包详情信息;Step 4. If there is a version difference, you need to call the gift package details data interface to obtain the specific gift package details that need to be updated;

步骤5.更新APP礼包详情版本信息和礼包详情数据信息;Step 5. Update the version information of the APP gift package details and the data information of the gift package details;

步骤6.从APP端本地缓存取数据进行礼包详情数据渲染。Step 6. Get the data from the local cache on the APP side to render the package details data.

2.参见图11,礼包列表数据读取及渲染流程如下:2. See Figure 11, the data reading and rendering process of the package list is as follows:

步骤1.APP端调用礼包列表版本数据接口,获取礼包列表版本信息,后台接口返回礼包列表版本全量信息,版本格式{keyid1:v1,keyid2:v2};Step 1. The APP calls the package list version data interface to obtain the version information of the package list, and the background interface returns the full version information of the package list, and the version format is {keyid1:v1,keyid2:v2};

步骤2.APP端获取到礼包列表版本信息后,通过与APP端本地缓存的礼包列表版本信息进行比较,判断是否有版本差异;Step 2. After the APP side obtains the version information of the gift package list, it compares it with the version information of the gift package list cached locally on the APP side to determine whether there is a version difference;

步骤3.没有版本差异的,执行步骤6;Step 3. If there is no version difference, go to step 6;

步骤4.有版本差异的需要调用礼包列表数据接口获取需要更新的具体礼包列表信息;Step 4. If there is a version difference, you need to call the gift package list data interface to obtain the specific gift package list information that needs to be updated;

步骤5.更新APP礼包列表版本信息和礼包列表数据信息;Step 5. Update the APP gift package list version information and gift package list data information;

步骤6.从APP端本地缓存取数据进行礼包列表数据渲染。Step 6. Fetch data from the local cache on the APP side to render the package list data.

本申请实施例还提供了一种电子设备,该电子设备可以包括处理器、存储器、接收器及发送器,处理器用于执行上述实施例提及的铁路职工福利商城APP端的动态数据处理方法,其中处理器和存储器可以通过总线或者其他方式连接,以通过总线连接为例。该接收器可通过有线或无线方式与处理器、存储器连接。The embodiment of the present application also provides an electronic device, the electronic device may include a processor, a memory, a receiver and a transmitter, and the processor is used to execute the dynamic data processing method at the APP end of the railway employee welfare mall mentioned in the above embodiment, wherein The processor and the memory may be connected through a bus or in other ways, taking the connection through a bus as an example. The receiver can be connected with the processor and the memory in a wired or wireless manner.

处理器可以为中央处理器(Central Processing Unit,CPU)。处理器还可以为其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等芯片,或者上述各类芯片的组合。The processor may be a central processing unit (Central Processing Unit, CPU). The processor can also be other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application-specific integrated circuits (Application Specific Integrated Circuit, ASIC), field-programmable gate array (Field-Programmable Gate Array, FPGA) or other Chips such as programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or combinations of the above-mentioned types of chips.

存储器作为一种非暂态计算机可读存储介质,可用于存储非暂态软件程序、非暂态计算机可执行程序以及模块,如本申请实施例中的铁路职工福利商城APP端的动态数据处理方法对应的程序指令/模块。处理器通过运行存储在存储器中的非暂态软件程序、指令以及模块,从而执行处理器的各种功能应用以及数据处理,即实现上述方法实施例中的铁路职工福利商城APP端的动态数据处理方法。As a non-transitory computer-readable storage medium, the memory can be used to store non-transitory software programs, non-transitory computer-executable programs and modules, such as the dynamic data processing method corresponding to the railway employee welfare mall APP terminal in the embodiment of this application program instructions/modules. The processor executes various functional applications and data processing of the processor by running the non-transitory software programs, instructions and modules stored in the memory, that is, realizes the dynamic data processing method at the APP end of the railway employee welfare mall in the above method embodiment .

存储器可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储处理器所创建的数据等。此外,存储器可以包括高速随机存取存储器,还可以包括非暂态存储器,例如至少一个磁盘存储器件、闪存器件、或其他非暂态固态存储器件。在一些实施例中,存储器可选包括相对于处理器远程设置的存储器,这些远程存储器可以通过网络连接至处理器。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application program required by at least one function; the data storage area may store data created by the processor, and the like. In addition, the memory may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid-state storage devices. In some embodiments, the memory may optionally include memory located remotely from the processor, and such remote memory may be connected to the processor via a network. Examples of the aforementioned networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.

所述一个或者多个模块存储在所述存储器中,当被所述处理器执行时,执行实施例中的铁路职工福利商城APP端的动态数据处理方法。The one or more modules are stored in the memory, and when executed by the processor, execute the dynamic data processing method at the APP terminal of the railway employee welfare mall in the embodiment.

在本申请的一些实施例中,用户设备可以包括处理器、存储器和收发单元,该收发单元可包括接收器和发送器,处理器、存储器、接收器和发送器可通过总线系统连接,存储器用于存储计算机指令,处理器用于执行存储器中存储的计算机指令,以控制收发单元收发信号。In some embodiments of the present application, the user equipment may include a processor, a memory, and a transceiver unit. The transceiver unit may include a receiver and a transmitter. The processor, the memory, the receiver, and the transmitter may be connected through a bus system, and the memory is used for For storing computer instructions, the processor is used for executing the computer instructions stored in the memory to control the transceiver unit to send and receive signals.

作为一种实现方式,本申请中接收器和发送器的功能可以考虑通过收发电路或者收发的专用芯片来实现,处理器可以考虑通过专用处理芯片、处理电路或通用芯片实现。As an implementation, the functions of the receiver and the transmitter in this application can be considered to be implemented by a transceiver circuit or a dedicated transceiver chip, and the processor can be considered to be implemented by a dedicated processing chip, a processing circuit, or a general-purpose chip.

作为另一种实现方式,可以考虑使用通用计算机的方式来实现本申请实施例提供的服务器。即将实现处理器,接收器和发送器功能的程序代码存储在存储器中,通用处理器通过执行存储器中的代码来实现处理器,接收器和发送器的功能。As another implementation manner, it may be considered to use a general-purpose computer to implement the server provided in the embodiment of the present application. The program codes that realize the functions of the processor, receiver and transmitter are stored in the memory, and the general-purpose processor realizes the functions of the processor, receiver and transmitter by executing the codes in the memory.

本申请实施例还提供一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时以实现前述铁路职工福利商城APP端的动态数据处理方法的步骤。该计算机可读存储介质可以是有形存储介质,诸如随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、软盘、硬盘、可移动存储盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质。The embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the above-mentioned steps of the dynamic data processing method at the railway employee welfare mall APP terminal are realized. The computer readable storage medium may be a tangible storage medium such as random access memory (RAM), internal memory, read only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, floppy disk, hard disk, removable storage disk, CD-ROM, or any other form of storage medium known in the art.

本领域普通技术人员应该可以明白,结合本文中所公开的实施方式描述的各示例性的组成部分、系统和方法,能够以硬件、软件或者二者的结合来实现。具体究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。当以硬件方式实现时,其可以例如是电子电路、专用集成电路(ASIC)、适当的固件、插件、功能卡等等。当以软件方式实现时,本申请的元素是被用于执行所需任务的程序或者代码段。程序或者代码段可以存储在机器可读介质中,或者通过载波中携带的数据信号在传输介质或者通信链路上传送。Those of ordinary skill in the art should understand that each exemplary component, system and method described in conjunction with the embodiments disclosed herein can be implemented by hardware, software or a combination of the two. Whether it is implemented in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present application. When implemented in hardware, it may be, for example, an electronic circuit, an application specific integrated circuit (ASIC), suitable firmware, a plug-in, a function card, or the like. When implemented in software, the elements of the present application are the programs or code segments employed to perform the required tasks. Programs or code segments can be stored in machine-readable media, or transmitted over transmission media or communication links by data signals carried in carrier waves.

需要明确的是,本申请并不局限于上文所描述并在图中示出的特定配置和处理。为了简明起见,这里省略了对已知方法的详细描述。在上述实施例中,描述和示出了若干具体的步骤作为示例。但是,本申请的方法过程并不限于所描述和示出的具体步骤,本领域的技术人员可以在领会本申请的精神后,作出各种改变、修改和添加,或者改变步骤之间的顺序。It is to be understood that the application is not limited to the specific configurations and processes described above and shown in the figures. For conciseness, detailed descriptions of known methods are omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art may make various changes, modifications and additions, or change the order of the steps after understanding the spirit of the present application.

本申请中,针对一个实施方式描述和/或例示的特征,可以在一个或更多个其它实施方式中以相同方式或以类似方式使用,和/或与其他实施方式的特征相结合或代替其他实施方式的特征In this application, features described and/or exemplified for one embodiment may be used in the same or similar manner in one or more other embodiments, and/or be combined with or replace other features of other embodiments Features of an embodiment

以上所述仅为本申请的优选实施例,并不用于限制本申请,对于本领域的技术人员来说,本申请实施例可以有各种更改和变化。凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above descriptions are only preferred embodiments of the present application, and are not intended to limit the present application. For those skilled in the art, various modifications and changes may be made to the embodiments of the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of this application shall be included within the protection scope of this application.

Claims (10)

1.一种铁路职工福利商城APP端的动态数据处理方法,其特征在于,包括:1. A dynamic data processing method at the APP end of a railway employee welfare mall, characterized in that it comprises: 从铁路职工福利商城的APP端向对应的后端服务器发送针对目标业务场景的版本信息获取请求,以使该后端服务器自对应的APP分布式缓存或数据库中的从库获取所述目标业务场景的当前版本信息,其中,所述铁路职工福利商城还包括Web端,所述Web端与所述APP端对应不同的后端服务器且采用不同的分布式缓存;Send a version information acquisition request for the target business scenario from the APP side of the Railway Employee Welfare Mall to the corresponding back-end server, so that the back-end server can obtain the target business scenario from the corresponding APP distributed cache or the slave library in the database The current version information of the railway employee welfare mall, wherein the railway employee welfare mall also includes a Web terminal, and the Web terminal and the APP terminal correspond to different back-end servers and adopt different distributed caches; 接收所述APP端对应的后端服务器发送的所述当前版本信息,并比较该当前版本信息与存储在APP端本地缓存或数据库中的所述目标业务场景的历史版本信息是否相同,若否,则自所述APP分布式缓存或所述从库中调取所述目标业务场景的场景动态数据,以基于该场景动态数据对所述目标业务场景进行渲染处理并更新所述APP端本地缓存或数据库;若是,则自所述APP端本地缓存或数据库调取目标业务场景的历史场景动态数据以进行渲染处理。Receive the current version information sent by the backend server corresponding to the APP, and compare whether the current version information is the same as the historical version information of the target business scenario stored in the APP local cache or database, if not, The scene dynamic data of the target business scene is called from the APP distributed cache or the library, so as to render the target business scene based on the scene dynamic data and update the APP local cache or database; if so, the historical scene dynamic data of the target business scene is transferred from the local cache or database of the APP side for rendering processing. 2.根据权利要求1所述的铁路职工福利商城APP端的动态数据处理方法,其特征在于,所述APP端采用预设的登录分布式缓存、所述APP分布式缓存或所述从库读取数据,并采用所述业务分布式缓存、APP分布式缓存或所述主库写入数据;2. The dynamic data processing method of the APP terminal of the railway employee welfare mall according to claim 1, wherein the APP terminal uses a preset login distributed cache, the APP distributed cache or the read from the library data, and use the business distributed cache, APP distributed cache or the main library to write data; 所述Web端采用所述登录分布式缓存、所述业务分布式缓存或所述从库读取数据,并采用所述业务分布式缓存、APP分布式缓存或所述主库写入数据。The Web terminal uses the login distributed cache, the service distributed cache or the slave database to read data, and uses the business distributed cache, APP distributed cache or the main database to write data. 3.根据权利要求1所述的铁路职工福利商城APP端的动态数据处理方法,其特征在于,所述目标业务场景为预设的各个铁路职工福利业务场景中的任意一个;3. The dynamic data processing method at the APP end of the railway employee welfare mall according to claim 1, wherein the target business scenario is any one of preset preset railway employee welfare business scenarios; 所述铁路职工福利业务场景包括列表数据和详情数据;The railway employee welfare business scenario includes list data and detailed data; 所述列表数据包括:导航图片、首页礼包列表、可兑换礼包列表、兑换券列表、订单列表、售后列表和地址列表中的至少一项;The list data includes: at least one of a navigation picture, a list of homepage gift packages, a list of redeemable gift packages, a list of exchange vouchers, an order list, an after-sales list, and an address list; 所述详情数据包括:礼包详情、订单详情和售后详情中的至少一项。The detailed data includes: at least one of gift package details, order details and after-sales details. 4.根据权利要求3所述的铁路职工福利商城APP端的动态数据处理方法,其特征在于,不同的所述铁路职工福利业务场景分别对应不同的版本接口和数据接口;4. The dynamic data processing method at the APP end of the railway employee welfare mall according to claim 3, characterized in that, different described railway employee welfare business scenarios correspond to different version interfaces and data interfaces respectively; 相对应的,所述从铁路职工福利商城的APP端向对应的后端服务器发送针对目标业务场景的版本信息获取请求,包括:Correspondingly, the request for obtaining version information for the target business scenario is sent from the APP end of the railway employee welfare mall to the corresponding back-end server, including: 在铁路职工福利商城的APP端调用针对目标业务场景的版本接口,以向对应的后端服务器发送针对目标业务场景的版本信息获取请求。Call the version interface for the target business scenario on the APP side of the railway employee welfare mall to send a request for obtaining version information for the target business scenario to the corresponding back-end server. 5.根据权利要求4所述的铁路职工福利商城APP端的动态数据处理方法,其特征在于,还包括:5. The dynamic data processing method at the APP end of the railway employee welfare mall according to claim 4, further comprising: 若经比较获知所述目标业务场景的当前版本信息与历史版本信息不同,则调用针对所述目标业务场景的数据接口,以向对应的后端服务器发送针对目标业务场景的场景动态请求,使得所述后端服务器自所述APP分布式缓存或所述从库获取所述目标业务场景的场景动态数据;If it is known through comparison that the current version information of the target business scenario is different from the historical version information, call the data interface for the target business scenario to send a scene dynamic request for the target business scenario to the corresponding backend server, so that all The back-end server acquires scene dynamic data of the target business scene from the APP distributed cache or the slave library; 接收所述APP端对应的后端服务器发送的所述场景动态数据,以基于该场景动态数据对所述目标业务场景进行渲染处理,并根据所述当前版本信息和接收的该场景动态数据更新所述APP端本地缓存或数据库。receiving the scene dynamic data sent by the backend server corresponding to the APP end, rendering the target business scene based on the scene dynamic data, and updating the scene dynamic data according to the current version information and the received scene dynamic data; The local cache or database on the APP side. 6.根据权利要求1至5任一项所述的铁路职工福利商城APP端的动态数据处理方法,其特征在于,还包括:6. According to any one of claims 1 to 5, the method for processing dynamic data at the APP end of the railway employee welfare mall, further comprising: 自铁路职工福利商城的WEB端请求创建或更新一铁路职工福利业务场景;Request to create or update a railway employee welfare business scenario from the WEB side of the railway employee welfare mall; 若所述铁路职工福利业务场景的创建或更新审核通过,则更新针对该铁路职工福利业务场景当前的场景动态数据和版本数据;If the creation or update of the railway employee welfare business scenario is approved, update the current scenario dynamic data and version data for the railway employee welfare business scenario; 将所述铁路职工福利业务场景当前的场景动态数据和版本数据分别写入所述业务分布式缓存、APP分布式缓存及所述主库。Write the current scene dynamic data and version data of the railway employee welfare business scene into the business distributed cache, APP distributed cache and the main library respectively. 7.一种铁路职工福利商城APP,其特征在于,包括:7. A railway employee welfare mall APP, characterized in that it comprises: 版本比较模块,用于从铁路职工福利商城的APP端向对应的后端服务器发送针对目标业务场景的版本信息获取请求,以使该后端服务器自对应的APP分布式缓存或数据库中的从库获取所述目标业务场景的当前版本信息,其中,所述铁路职工福利商城还包括Web端,所述Web端与所述APP端对应不同的后端服务器且采用不同的分布式缓存;The version comparison module is used to send the version information acquisition request for the target business scenario from the APP end of the railway employee welfare mall to the corresponding back-end server, so that the back-end server can obtain the version information from the corresponding APP distributed cache or the slave library in the database. Acquiring the current version information of the target business scenario, wherein the railway employee welfare mall also includes a Web terminal, and the Web terminal and the APP terminal correspond to different back-end servers and adopt different distributed caches; 数据获取模块,用于接收所述APP端对应的后端服务器发送的所述当前版本信息,并比较该当前版本信息与存储在APP端本地缓存或数据库中的所述目标业务场景的历史版本信息是否相同,若否,则自所述APP分布式缓存或所述从库中调取所述目标业务场景的场景动态数据,以基于该场景动态数据对所述目标业务场景进行渲染处理并更新所述APP端本地缓存或数据库;若是,则自所述APP端本地缓存或数据库调取目标业务场景的历史场景动态数据以进行渲染处理。A data acquisition module, configured to receive the current version information sent by the backend server corresponding to the APP, and compare the current version information with the historical version information of the target business scenario stored in the APP local cache or database Whether they are the same, if not, call the scene dynamic data of the target business scene from the APP distributed cache or the slave library, so as to render the target business scene based on the scene dynamic data and update the The local cache or database of the APP side; if so, the historical scene dynamic data of the target business scene is transferred from the local cache or database of the APP side for rendering processing. 8.一种铁路职工福利商城系统,其特征在于,包括:8. A railway employee welfare mall system, characterized in that it comprises: APP端,对应的用户角色包括:企业职工;所述APP端采用预设的登录分布式缓存、APP分布式缓存或从库读取数据,并采用业务分布式缓存、APP分布式缓存或主库写入数据;所述APP端用于实现权利要求1至7任一项所述的铁路职工福利商城APP端的动态数据处理方法;On the APP side, the corresponding user roles include: enterprise employees; the APP side uses the preset login distributed cache, APP distributed cache or reads data from the library, and uses the business distributed cache, APP distributed cache or main library Write data; the APP end is used to realize the dynamic data processing method of the APP end of the railway employee welfare mall described in any one of claims 1 to 7; Web端,对应的用户角色包括:供应商和运营商;所述Web端采用所述登录分布式缓存、所述业务分布式缓存或所述从库读取数据,并采用所述业务分布式缓存、APP分布式缓存或所述主库写入数据。On the Web side, the corresponding user roles include: suppliers and operators; the Web side uses the login distributed cache, the business distributed cache or the data read from the library, and uses the business distributed cache , the APP distributed cache or the master library writes data. 9.一种电子设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现如权利要求1至6任一项所述的铁路职工福利商城APP端的动态数据处理方法。9. An electronic device, comprising a memory, a processor, and a computer program stored on the memory and operable on the processor, characterized in that, when the processor executes the computer program, any of claims 1 to 6 can be realized. A method for processing dynamic data at the APP end of a railway employee welfare mall. 10.一种计算机可读存储介质,其上存储有计算机程序,其特征在于,该计算机程序被处理器执行时实现如权利要求1至6任一项所述的铁路职工福利商城APP端的动态数据处理方法。10. A computer-readable storage medium, on which a computer program is stored, characterized in that, when the computer program is executed by a processor, it realizes the dynamic data of the APP terminal of the railway employee welfare mall as described in any one of claims 1 to 6. Approach.
CN202310357905.3A 2023-04-04 2023-04-04 Dynamic data processing method and system at the APP terminal of railway employee welfare mall Pending CN116501766A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310357905.3A CN116501766A (en) 2023-04-04 2023-04-04 Dynamic data processing method and system at the APP terminal of railway employee welfare mall

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310357905.3A CN116501766A (en) 2023-04-04 2023-04-04 Dynamic data processing method and system at the APP terminal of railway employee welfare mall

Publications (1)

Publication Number Publication Date
CN116501766A true CN116501766A (en) 2023-07-28

Family

ID=87329419

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310357905.3A Pending CN116501766A (en) 2023-04-04 2023-04-04 Dynamic data processing method and system at the APP terminal of railway employee welfare mall

Country Status (1)

Country Link
CN (1) CN116501766A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117312656A (en) * 2023-09-04 2023-12-29 中国银行股份有限公司 Service scene data pushing method, device, computer equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140282468A1 (en) * 2013-03-15 2014-09-18 Microsoft Corporation Local store data versioning
CN106682176A (en) * 2016-12-29 2017-05-17 北京五八信息技术有限公司 Page loading method, equipment and device
CN107133234A (en) * 2016-02-29 2017-09-05 阿里巴巴集团控股有限公司 The method of data cached renewal, apparatus and system
CN107301051A (en) * 2017-06-27 2017-10-27 深圳市金立通信设备有限公司 The caching of terminal dynamic data and exchange method, terminal, system and computer-readable recording medium
KR102340946B1 (en) * 2020-07-08 2021-12-20 황호진 Seller shopping mall system to provide rental goods and method thereof
CN115220720A (en) * 2022-07-28 2022-10-21 电子科大科园股份有限公司 Form rendering method, device and equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140282468A1 (en) * 2013-03-15 2014-09-18 Microsoft Corporation Local store data versioning
CN107133234A (en) * 2016-02-29 2017-09-05 阿里巴巴集团控股有限公司 The method of data cached renewal, apparatus and system
CN106682176A (en) * 2016-12-29 2017-05-17 北京五八信息技术有限公司 Page loading method, equipment and device
CN107301051A (en) * 2017-06-27 2017-10-27 深圳市金立通信设备有限公司 The caching of terminal dynamic data and exchange method, terminal, system and computer-readable recording medium
KR102340946B1 (en) * 2020-07-08 2021-12-20 황호진 Seller shopping mall system to provide rental goods and method thereof
CN115220720A (en) * 2022-07-28 2022-10-21 电子科大科园股份有限公司 Form rendering method, device and equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117312656A (en) * 2023-09-04 2023-12-29 中国银行股份有限公司 Service scene data pushing method, device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
JP6502557B1 (en) Program, information processing method, information processing apparatus
JP5515064B2 (en) Distribution management system, distribution management server, distribution management method, and program for distribution management
JP2023133404A (en) Information processing program, information processing method, and information processing terminal
JP5923691B2 (en) Logistics cloud system and program
CN108494860A (en) WEB accesses system, WEB access methods and device for client
JP6725923B2 (en) Information processing method, information processing apparatus, and program
CN110401630A (en) Verification method, device, electronic equipment and the medium of transaction certificate
US20160063616A1 (en) Techniques for completing pre-arranged transactions
JP2015148891A (en) Privilege grant system, privilege grant method, portable terminal, cash register terminal, and program
JP6473539B1 (en) Program, information processing method, information processing apparatus
CN116501766A (en) Dynamic data processing method and system at the APP terminal of railway employee welfare mall
CN107003981A (en) It is synchronous with the equipment locally matched to obtain data from remote server using point to point link
US12164610B2 (en) System and method for interconnection, translation and transition between disparate digital ecosystems
JP2007079977A (en) Information introduction system and information management device
US8484237B2 (en) Terminal, web application operating method and program
JP7136836B2 (en) Information processing method, information processing device and program
CN110427216A (en) The management method of construction application, calculates equipment and medium at device
JP7731183B1 (en) Coupon providing device, coupon providing method, and coupon providing system
KR20150141230A (en) Device and method for managing of finacial service
US20250292039A1 (en) Accessing application content and features using deep linking with wireless protocols or scannable codes
JP2004070541A (en) Information-providing device, information-receiving device, information-providing system, and information transfer method
CN108446926B (en) Data processing method and server
JP2004070541A6 (en) An information providing device, an information providing device, an information providing system, and an information transmitting method.
CN110121152B (en) Target user position information management method, device and system and electronic equipment
US20130103767A1 (en) Return notifications of tasks performed with entities

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