[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

WO2020253361A1 - Software development method and apparatus, storage medium, and computer device - Google Patents

Software development method and apparatus, storage medium, and computer device Download PDF

Info

Publication number
WO2020253361A1
WO2020253361A1 PCT/CN2020/086156 CN2020086156W WO2020253361A1 WO 2020253361 A1 WO2020253361 A1 WO 2020253361A1 CN 2020086156 W CN2020086156 W CN 2020086156W WO 2020253361 A1 WO2020253361 A1 WO 2020253361A1
Authority
WO
WIPO (PCT)
Prior art keywords
business
database
modules
interface
information
Prior art date
Application number
PCT/CN2020/086156
Other languages
French (fr)
Chinese (zh)
Inventor
张中楫
Original Assignee
深圳壹账通智能科技有限公司
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 深圳壹账通智能科技有限公司 filed Critical 深圳壹账通智能科技有限公司
Publication of WO2020253361A1 publication Critical patent/WO2020253361A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/10Requirements analysis; Specification techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming

Definitions

  • This application relates to the technical field of software development. Specifically, this application relates to a software development method, device, storage medium, and computer equipment.
  • Business requirements include business processing procedures, business work plans, and business execution operations. The business needs are based on the user needs put forward by customers, and the overall business needs compiled by product operations. During the design process, business requirements determine the basic data business processing and determine business rules.
  • the inventor realizes that after the business requirements are implemented, there is great freedom in the way of implementing its functions by the code, but it also brings about the quality of the code. Especially when multiple people collaborate to complete business logic design and coding work, there is no unified method and structure objects that clearly guide functions, resulting in low development efficiency or repeated development of some modules.
  • This application proposes a software development method, device, storage medium, and computer equipment to automate software development based on business demand information and improve the development efficiency of software development.
  • a software development method based on business demand information includes: acquiring business demand information, dividing the business demand information into business to obtain multiple business modules; using a database to perform business modeling on the multiple business modules; The multiple business modules after modeling set the interface of the database, and the process information of the MVC model-view-controller associated with the database is generated according to the multiple business modules after business modeling; determining the system According to the process information of the MVC model-view-controller, call the interface of the database, and use the interface of the database to develop software for the business requirement information.
  • a software development device based on business needs includes: a division module for obtaining business demand information, and dividing the business demand information into business to obtain multiple business modules; a modeling module for using a database to compare the multiple Business modules for business modeling; the setting module is used to set the interface of the database according to the multiple business modules after the business modeling, and generate the interface with the database according to the multiple business modules after the business modeling
  • the associated MVC model-view-controller process information the development module is used to determine that the system calls the database interface according to the MVC model-view-controller process information, and uses the database interface to Software development based on business requirements information.
  • the software development method based on business demand information includes:
  • the determining system calls the interface of the database according to the process information of the MVC model-view-controller, and uses the interface of the database to develop software for the business requirement information.
  • a computer device includes: one or more processors; a memory; one or more application programs, wherein the one or more application programs are stored in the memory and configured to be operated by the one or more Are executed by a processor, and the one or more application programs are configured to execute a software development method based on business demand information:
  • the software development method based on business demand information includes:
  • the determining system calls the interface of the database according to the process information of the MVC model-view-controller, and uses the interface of the database to develop software for the business requirement information.
  • the software development method based on business requirement information divides multiple business modules according to the business requirement information, and uses a database to perform business modeling on the multiple business modules. Further, according to the business module after the business modeling, the interface of the database is set, and the process information of the MVC model-view-controller associated with the database is generated at the same time. Finally, the system calls the database interface according to the MVC model-view-controller process information to automate software development. Therefore, the software development method described in this application can automate software development based on business demand information and improve the efficiency of software development.
  • FIG. 1 is a method flowchart in an embodiment of a software development method based on business demand information provided by this application;
  • FIG. 3 is a flowchart of a method in an embodiment of step S300 provided by this application.
  • FIG. 5 is a structural block diagram of an embodiment of a software development apparatus based on business requirement information provided by this application;
  • FIG. 6 is a schematic structural diagram in an embodiment of a computer device provided by this application.
  • This application provides a software development method based on business demand information, so that the system can perform automated software development based on business demand information, and improve the efficiency of software development.
  • the software development method based on business requirement information includes the following steps:
  • S100 Acquire business requirement information, divide the business requirement information into business, and obtain multiple business modules.
  • the system when the system receives the business demand put forward by the front-end user, it sorts out the business demand based on the target product to obtain business demand information.
  • the business can be divided into multiple business modules according to business demand information. For example, to realize the business requirements of red envelope issuance, the system can divide the business into red envelope issuance rule module, red envelope reward module, red envelope distribution quantity control module, etc. according to the business demand information.
  • the system divides the business demand information into multiple business modules, and develops software according to each business module, which can avoid repeated development when developing software and confusion when developing coding.
  • the business is divided into multiple business modules according to business demand information.
  • each business module in the system is described by information data, and the system cannot directly develop software based on the business model. Therefore, the system database is used to perform business modeling on multiple business models obtained by division.
  • the modeling method may be to describe each business model using data information in the database.
  • business modeling refers to the description of the objects involved in the business, the attributes of the objects, the behaviors of execution, and the relationship between the objects in the form of software models. For example, use a database to create basic object tables, function tables, and record tables of business objects to quickly create a business prototype.
  • the interface of the database and the interface of MVC define the scope of the business corresponding to the software development and the capabilities that the business needs to provide, and the MVC process information defines the modules that implement the business and the message communication between the modules.
  • MVC the full name is Model View Controller, which is an abbreviation of model-view-controller. MVC gathers business logic into one component, and it does not need to rewrite business logic while improving and customizing the interface and user interaction.
  • the relationship between the database and MVC is shown as follows: the business model established in the database corresponds to the model in the MVC structure, the data flow corresponds to the view in the MVC structure, and the various interfaces of the database correspond to MVC.
  • the controller in the structure is shown as follows: the business model established in the database corresponds to the model in the MVC structure, the data flow corresponds to the view in the MVC structure, and the various interfaces of the database correspond to MVC.
  • the controller in the structure is shown as follows: the business model established in the database corresponds to the model in the MVC structure, the data flow corresponds to the view in the MVC structure, and the various interfaces of the database correspond to MVC.
  • the controller in the structure is shown as follows: the business model established in the database corresponds to the model in the MVC structure, the data flow corresponds to the view in the MVC structure, and the various interfaces of the database correspond to MVC.
  • S400 Determine that the system calls the interface of the database according to the process information of the MVC model-view-controller, and uses the interface of the database to develop software for the business requirement information.
  • the system determines a set of standardized business requirements software development framework. According to the standardized development framework, the system can call various interfaces of the database through the process information of MVC to carry out software development for business requirements.
  • the software development method based on business requirement information divides multiple business modules according to the business requirement information, and uses a database to perform business modeling on the multiple business modules. Further, according to the business module after the business modeling, the interface of the database is set, and the process information of the MVC model-view-controller associated with the database is generated at the same time. Finally, the system calls the database interface according to the MVC model-view-controller process information to automate software development. Therefore, the software development method described in this application can automate software development based on business demand information and improve the efficiency of software development.
  • the business modeling includes establishing a business object table, a business function table, and a record table.
  • step S200 includes:
  • S210 Acquire business information of each of the business modules, and use the database to create an object table, a business function table, and a record table for each of the business models according to the business information.
  • the business requirement information includes the business objects selected by the user triggered by the front end and the function information that each business object needs to implement.
  • each business module contains the business object of the module and the function information realized by the business object.
  • the system establishes the object table, business function table and record table of each business module according to the business information of each business module.
  • the record table is used to record the data information of the business object.
  • step S300 includes: determining, according to the object table, the service function table, and the record table of each of the business models, the scope for each interface of the database to achieve business data docking and the The functions implemented by each interface are set for each interface of the database according to the scope of the business data docking and the functions implemented by each interface; according to the object table of each business model, the business The function table and the record table determine the message communication mode between the service modules, and generate the MVC model-view-controller process information associated with the database according to the message communication mode.
  • step S100 includes: acquiring the business requirement information, and dividing the business in a middle-up and down-development manner according to the business requirement information to obtain the multiple service modules.
  • step S300 includes:
  • S310 Generate process information of the MVC model-view-controller associated with the database according to the upward and downward development mode from the middle.
  • S320 Define an interface of the database according to the process information.
  • S340 Perform business logic settings on the interface of the database according to the sequence diagram.
  • the system determines the software development process of the business requirements according to the flowchart, it defines the database interface and the database table structure, based on which the sequence diagram of software development can be determined, and finally uses the database interface and the business logic in the MVC interface Conduct business sub-module development
  • the business demand information includes business demand information associated with a lottery event.
  • Step S100 includes: dividing the business requirement information associated with the lottery activity into business divisions to obtain a rule business module, a lottery business module, an award business module, and a prize business module; the rule business module is used to determine the lottery activity Lottery rules, the lottery business module is used to execute the lottery, the prize business module is used to determine the prize corresponding to the lottery activity, and the prize business module is used to determine the prize corresponding to the prize.
  • step S300 and step S400 include: using the database to model the business modules of the rule business module, the lottery business module, the award business module, and the prize business module, and determine the association relationship of each business module;
  • the modeled service modules and the association relationship set the interface of the database, and the MVC model-view- associated with the database is generated according to the service modeled service modules and the association relationship.
  • Controller process information determining that the system calls the database interface according to the MVC model-view-controller process information, and uses the database interface to execute the software development of the business demand information associated with the lottery .
  • the front-end feedback business requirement is to make a lottery system.
  • the lottery system is used to determine that users who meet certain conditions can perform lottery operations according to the business demand information proposed by users, and send prizes of corresponding levels to the lottery users.
  • the system can separately set four business modules of rules, lottery, prizes and prizes according to the user's business demand information. Specifically, first build a database table, such as a rule table, to determine the relationship between the rule table and the prizes of the lottery.
  • the method further includes:
  • S500 Execute the business requirement information after the software development, and obtain the execution result after the execution.
  • the system uses the above-mentioned software development method based on the business demand information to execute the software development of the business demand information, it is fed back according to the execution result to support the rationality of the business demand and the correctness of the design when the database performs business modeling.
  • the system calls the database interface to execute the development code of the corresponding business module, the code of each business module is executed separately, and the association relationship between the business modules cannot be known.
  • the execution result of each business module combined with the logical structure of the business module stored in the database, the correctness of the execution result of the software development of the final business requirement information can be judged.
  • the process information of the MVC model-view-controller is adjusted according to the logical structure of the multiple service modules, and the interface settings of the database interface are adjusted.
  • the software development apparatus based on business requirements includes a division module 10, a modeling module 20, a setting module 30, and a development module 40.
  • the dividing module 10 is used to obtain business demand information, and divide the business demand information into business to obtain multiple business modules.
  • the system receives the business demand put forward by the front-end user, it sorts out the business demand based on the target product to obtain business demand information.
  • the business can be divided into multiple business modules according to business demand information. For example, to realize the business requirements of red envelope issuance, the system can divide the business into red envelope issuance rule module, red envelope reward module, red envelope issuance quantity control module, etc. according to business demand information.
  • the system divides the business demand information into multiple business modules, and develops software according to each business module, which can avoid repeated development when developing software and confusion when developing coding.
  • the modeling module 20 is configured to use a database to perform business modeling on the multiple business modules.
  • the business is divided into multiple business modules according to business demand information.
  • each business module in the system is described by information data, and the system cannot directly develop software based on the business model. Therefore, the system database is used to perform business modeling on multiple business models obtained by division.
  • the modeling method may be to describe each business model using data information in the database.
  • business modeling refers to the description of the objects involved in the business, the attributes of the objects, the behaviors of execution, and the relationship between the objects in the form of software models. For example, use a database to create basic object tables, function tables, and record tables of business objects to quickly create a business prototype.
  • the setting module 30 is configured to set the interface of the database according to the multiple business modules after business modeling, and to generate the MVC model-view-control associated with the database according to the multiple business modules after business modeling.
  • the process information of the device In this embodiment, by setting the interface of the database, setting the interface of the control layer in the MVC associated with the database, and generating the process information of the MVC, it is ensured that the system performs software development for business requirements under a certain framework.
  • the interface of the database and the interface of MVC define the scope of the business corresponding to the software development and the capabilities that the business needs to provide, and the MVC process information defines the modules that implement the business and the message communication between the modules.
  • MVC Model View Controller
  • MVC gathers business logic into one component, and it does not need to rewrite business logic while improving and customizing the interface and user interaction.
  • the relationship between the database and MVC is shown as follows: the business model established in the database corresponds to the model in the MVC structure, the data flow corresponds to the view in the MVC structure, and the various interfaces of the database correspond to MVC.
  • the controller in the structure is shown as follows: the business model established in the database corresponds to the model in the MVC structure, the data flow corresponds to the view in the MVC structure, and the various interfaces of the database correspond to MVC.
  • the controller in the structure is shown as follows: the business model established in the database corresponds to the model in the MVC structure, the data flow corresponds to the view in the MVC structure, and the various interfaces of the database correspond to MVC.
  • the controller in the structure is shown as follows: the business model established in the database corresponds to the model in the MVC structure, the data flow corresponds to the view in the M
  • the development module 40 is used to determine that the system calls the interface of the database according to the process information of the MVC model-view-controller, and uses the interface of the database to develop software for the business requirement information.
  • the system determines a set of standardized business requirements software development framework. According to the standardized development framework, the system can call various interfaces of the database through the process information of MVC to carry out software development for business requirements.
  • each module in the software development apparatus based on business demand information provided by this application is also used to execute the operations performed corresponding to each step in the software development method based on business demand information described in this application. No more detailed instructions.
  • the present application also provides a storage medium, which is a volatile storage medium or a non-volatile storage medium.
  • the storage medium stores a computer program; when the computer program is executed by a processor, it implements the software development method based on business demand information described in any of the foregoing embodiments.
  • the storage medium may be a memory.
  • the internal memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), flash memory, or random access memory.
  • External storage can include hard disks, floppy disks, ZIP disks, U disks, tapes, etc.
  • the storage medium disclosed in this application includes but is not limited to these types of memories.
  • the memory disclosed in this application is only an example and not a limitation.
  • a computer device includes: one or more processors; memory; and one or more application programs. Wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, and the one or more application programs are configured to execute the one described in any of the above embodiments The software development method based on business demand information.
  • Fig. 6 is a schematic structural diagram of a computer device in an embodiment of the application.
  • the computer device described in this embodiment may be a server, a personal computer, and a network device.
  • the device includes a processor 603, a memory 605, an input unit 607, and a display unit 609.
  • the memory 605 may be used to store the application program 601 and various functional modules, and the processor 603 runs the application program 601 stored in the memory 605 to execute various functional applications and data processing of the device.
  • the memory may be internal memory or external memory, or include both internal memory and external memory.
  • the internal memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), flash memory, or random access memory.
  • ROM read only memory
  • PROM programmable ROM
  • EPROM electrically programmable ROM
  • EEPROM electrically erasable programmable ROM
  • flash memory or random access memory.
  • External storage can include hard disks, floppy disks, ZIP disks, U disks, tapes, etc.
  • the memory disclosed in this application includes but is not limited to these types of memory.
  • the memory disclosed in this application is only an example and not a limitation.
  • the input unit 607 is used for receiving signal input and receiving keywords input by the user.
  • the input unit 607 may include a touch panel and other input devices.
  • the touch panel can collect the user's touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc., to operate on the touch panel or near the touch panel), and according to preset
  • the program drives the corresponding connection device; other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as playback control buttons, switch buttons, etc.), trackball, mouse, and joystick.
  • the display unit 609 can be used to display information input by the user or information provided to the user and various menus of the computer device.
  • the display unit 609 may take the form of a liquid crystal display, an organic light emitting diode, or the like.
  • the processor 603 is the control center of the computer equipment. It uses various interfaces and lines to connect the various parts of the entire computer. It executes by running or executing the software programs and/or modules stored in the memory 605, and calling the data stored in the memory. Various functions and processing data.
  • the device includes one or more processors 603, one or more memories 605, and one or more application programs 601.
  • the one or more application programs 601 are stored in the memory 605 and configured to be executed by the one or more processors 603, and the one or more application programs 601 are configured to execute the above-mentioned embodiments.
  • the software development method based on business demand information.
  • the functional units in the various embodiments of the present application may be integrated into one processing module, or each unit may exist alone physically, or two or more units may be integrated into one module.
  • the above-mentioned integrated modules can be implemented in the form of hardware or software functional modules. If the integrated module is implemented in the form of a software function module and sold or used as an independent product, it may also be stored in a computer readable storage medium.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Stored Programmes (AREA)

Abstract

A software development method and apparatus, a storage medium, and a computer device. The method comprises: obtaining business requirement information, and performing business division on the business requirement information to obtain a plurality of business modules (S100); performing business modeling on the plurality of business models using a database (S200); setting an interface of the database according to the plurality of business-modeled business modules, and generating process information of model-view-controller (MVC) associated with the database according to the plurality of business-modeled business modules (S300); and determining that a system invokes the interface of the database according to the process information of the MVC and performs software development on the business requirement information using the interface of the database (S400). The method can automatically perform software development according to business requirement information, thereby improving the development efficiency of software development.

Description

软件开发方法、装置及存储介质、计算机设备Software development method, device and storage medium, computer equipment
本申请要求于2019年06月19日提交中国专利局、申请号为201910533603.0,发明名称为“软件开发方法、装置及存储介质、计算机设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office on June 19, 2019, the application number is 201910533603.0, and the invention title is "software development methods, devices and storage media, computer equipment", the entire content of which is incorporated by reference In this application.
技术领域Technical field
本申请涉及软件开发技术领域,具体而言,本申请涉及一种软件开发方法、装置及存储介质、计算机设备。This application relates to the technical field of software development. Specifically, this application relates to a software development method, device, storage medium, and computer equipment.
背景技术Background technique
业务需求包括业务的处理流程、业务的工作计划以及业务的执行操作等。业务需求基于客户提出的用户需求,由产品运营整理出的关于整体业务的需求。设计过程中,业务需求确定了基本的数据的业务处理,并确定业务规则。Business requirements include business processing procedures, business work plans, and business execution operations. The business needs are based on the user needs put forward by customers, and the overall business needs compiled by product operations. During the design process, business requirements determine the basic data business processing and determine business rules.
发明人意识到,业务需求落地之后,由代码实现其功能时实现的方式具有很大的自由性,但也带来了代码的质量问题。尤其在多人协作完成业务逻辑设计和编码工作时,没有统一的方法和明确指导功能的架构物件,导致开发效率低下或部分模块重复开发。The inventor realizes that after the business requirements are implemented, there is great freedom in the way of implementing its functions by the code, but it also brings about the quality of the code. Especially when multiple people collaborate to complete business logic design and coding work, there is no unified method and structure objects that clearly guide functions, resulting in low development efficiency or repeated development of some modules.
发明内容Summary of the invention
本申请提出一种软件开发方法、装置及存储介质、计算机设备,以自动化根据业务需求信息进行软件开发,提高软件开发的开发效率。This application proposes a software development method, device, storage medium, and computer equipment to automate software development based on business demand information and improve the development efficiency of software development.
本申请提供以下方案:This application provides the following solutions:
一种基于业务需求信息的软件开发方法,包括:获取业务需求信息,将所述业务需求信息进行业务划分,得到多个业务模块;使用数据库对所述多个业务模块进行业务建模;根据业务建模后的所述多个业务模块设置所述数据库的接口,以及根据业务建模后的所述多个业务模块生成与所述数据库关联的MVC模型-视图-控制器的流程信息;确定系统根据所述MVC模型-视图-控制器的流程信息,调用所述数据库的接口,并使用所述数据库的接口对所述业务需求信息进行软件开发。A software development method based on business demand information includes: acquiring business demand information, dividing the business demand information into business to obtain multiple business modules; using a database to perform business modeling on the multiple business modules; The multiple business modules after modeling set the interface of the database, and the process information of the MVC model-view-controller associated with the database is generated according to the multiple business modules after business modeling; determining the system According to the process information of the MVC model-view-controller, call the interface of the database, and use the interface of the database to develop software for the business requirement information.
一种基于业务需求的软件开发装置,包括:划分模块,用于获取业务需求信息,将所述业务需求信息进行业务划分,得到多个业务模块;建模模块,用于使用数据库对所述多个业务模块进行业务建模;设置模块,用于根据业务建模后的所述多个业务模块设置所述数据库的接口,以及根据业务建模后的所述多个业务模块生成与所述数据库关联的MVC模型-视 图-控制器的流程信息;开发模块,用于确定系统根据所述MVC模型-视图-控制器的流程信息,调用所述数据库的接口,并使用所述数据库的接口对所述业务需求信息进行软件开发。A software development device based on business needs includes: a division module for obtaining business demand information, and dividing the business demand information into business to obtain multiple business modules; a modeling module for using a database to compare the multiple Business modules for business modeling; the setting module is used to set the interface of the database according to the multiple business modules after the business modeling, and generate the interface with the database according to the multiple business modules after the business modeling The associated MVC model-view-controller process information; the development module is used to determine that the system calls the database interface according to the MVC model-view-controller process information, and uses the database interface to Software development based on business requirements information.
一种存储介质,其上存储有计算机程序;所述计算机程序适于由处理器加载并执行一种基于业务需求信息的软件开发方法:A storage medium on which a computer program is stored; the computer program is suitable for being loaded by a processor and executed by a software development method based on business demand information:
其中,所述基于业务需求信息的软件开发方法包括:Wherein, the software development method based on business demand information includes:
获取业务需求信息,将所述业务需求信息进行业务划分,得到多个业务模块;Acquire business demand information, divide the business demand information into business, and obtain multiple business modules;
使用数据库对所述多个业务模块进行业务建模;Use a database to perform business modeling on the multiple business modules;
根据业务建模后的所述多个业务模块设置所述数据库的接口,以及根据业务建模后的所述多个业务模块生成与所述数据库关联的MVC模型-视图-控制器的流程信息;Setting the interface of the database according to the multiple business modules after business modeling, and generating MVC model-view-controller process information associated with the database according to the multiple business modules after business modeling;
确定系统根据所述MVC模型-视图-控制器的流程信息,调用所述数据库的接口,并使用所述数据库的接口对所述业务需求信息进行软件开发。The determining system calls the interface of the database according to the process information of the MVC model-view-controller, and uses the interface of the database to develop software for the business requirement information.
一种计算机设备,其包括:一个或多个处理器;存储器;一个或多个应用程序,其中所述一个或多个应用程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个应用程序配置用于执行一种基于业务需求信息的软件开发方法:A computer device includes: one or more processors; a memory; one or more application programs, wherein the one or more application programs are stored in the memory and configured to be operated by the one or more Are executed by a processor, and the one or more application programs are configured to execute a software development method based on business demand information:
其中,所述基于业务需求信息的软件开发方法包括:Wherein, the software development method based on business demand information includes:
获取业务需求信息,将所述业务需求信息进行业务划分,得到多个业务模块;Acquire business demand information, divide the business demand information into business, and obtain multiple business modules;
使用数据库对所述多个业务模块进行业务建模;Use a database to perform business modeling on the multiple business modules;
根据业务建模后的所述多个业务模块设置所述数据库的接口,以及根据业务建模后的所述多个业务模块生成与所述数据库关联的MVC模型-视图-控制器的流程信息;Setting the interface of the database according to the multiple business modules after business modeling, and generating MVC model-view-controller process information associated with the database according to the multiple business modules after business modeling;
确定系统根据所述MVC模型-视图-控制器的流程信息,调用所述数据库的接口,并使用所述数据库的接口对所述业务需求信息进行软件开发。The determining system calls the interface of the database according to the process information of the MVC model-view-controller, and uses the interface of the database to develop software for the business requirement information.
上述实施例提供的基于业务需求信息的软件开发方法,根据业务需求信息划分多个业务模块,利用数据库对多个业务模块进行业务建模。进一步地,根据业务建模后的业务模块,对数据库的接口进行设置,同时生成与数据库关联的MVC模型-视图-控制器的流程信息。最后,系统根据MVC模型-视图-控制器的流程信息,调用数据库的接口,自动化进行软件开发。因此,本申请所述的软件开发方法,可自动化根据业务需求信息进行软件开发,提高软件开发的开发效率。The software development method based on business requirement information provided in the above embodiment divides multiple business modules according to the business requirement information, and uses a database to perform business modeling on the multiple business modules. Further, according to the business module after the business modeling, the interface of the database is set, and the process information of the MVC model-view-controller associated with the database is generated at the same time. Finally, the system calls the database interface according to the MVC model-view-controller process information to automate software development. Therefore, the software development method described in this application can automate software development based on business demand information and improve the efficiency of software development.
本申请附加的方面和优点将在下面的描述中部分给出,这些将从下面的描述中变得明显,或通过本申请的实践了解到。The additional aspects and advantages of this application will be partly given in the following description, which will become obvious from the following description, or be understood through the practice of this application.
附图说明Description of the drawings
本申请上述的和/或附加的方面和优点从下面结合附图对实施例的描述中将变得明显和容易理解,其中:The above and/or additional aspects and advantages of the present application will become obvious and easy to understand from the following description of the embodiments in conjunction with the accompanying drawings, in which:
图1为本申请提供的一种基于业务需求信息的软件开发方法的一实施例中的方法流程图;FIG. 1 is a method flowchart in an embodiment of a software development method based on business demand information provided by this application;
图2为本申请提供的一种基于业务需求信息的软件开发方法的另一实施例中的方法流程图;2 is a method flowchart in another embodiment of a software development method based on business requirement information provided by this application;
图3为本申请提供的步骤S300的一实施例中的方法流程图;FIG. 3 is a flowchart of a method in an embodiment of step S300 provided by this application;
图4为本申请提供的一种基于业务需求信息的软件开发方法的又一实施例中的部分方法流程图;4 is a flowchart of part of the method in another embodiment of a software development method based on business requirement information provided by this application;
图5为本申请提供的一种基于业务需求信息的软件开发装置的一实施例中的结构框图;FIG. 5 is a structural block diagram of an embodiment of a software development apparatus based on business requirement information provided by this application;
图6为本申请提供的一种计算机设备的一实施例中的结构示意图。FIG. 6 is a schematic structural diagram in an embodiment of a computer device provided by this application.
具体实施方式Detailed ways
下面详细描述本申请的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,仅用于解释本申请,而不能解释为对本申请的限制。The embodiments of the present application are described in detail below. Examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals indicate the same or similar elements or elements with the same or similar functions. The embodiments described below with reference to the drawings are exemplary, and are only used to explain the present application, and cannot be construed as a limitation to the present application.
本技术领域技术人员可以理解,除非特意声明,这里使用的单数形式“一”、“一个”、“所述”和“该”也可包括复数形式,这里使用的“第一”、“第二”仅用于区别同一技术特征,并不对该技术特征的顺序和数量等加以限定。应该进一步理解的是,本申请的说明书中使用的措辞“包括”是指存在所述特征、整数、步骤、操作、元件和/或组件,但是并不排除存在或添加一个或多个其他特征、整数、步骤、操作、元件、组件和/或它们的组。Those skilled in the art can understand that, unless specifically stated otherwise, the singular forms "a", "an", "the" and "the" used herein may also include plural forms. The "first" and "second" used herein "It is only used to distinguish the same technical feature, and does not limit the order and quantity of the technical feature. It should be further understood that the term "comprising" used in the specification of this application refers to the presence of the described features, integers, steps, operations, elements, and/or components, but does not exclude the presence or addition of one or more other features, Integers, steps, operations, elements, components, and/or groups thereof.
本技术领域技术人员可以理解,除非另外定义,这里使用的所有术语(包括技术术语和科学术语),具有与本申请所属领域中的普通技术人员的一般理解相同的意义。还应该理解的是,诸如通用字典中定义的那些术语,应该被理解为具有与现有技术的上下文中的意义一致的意义,并且除非像这里一样被特定定义,否则不会用理想化或过于正式的含义来解释。Those skilled in the art can understand that, unless otherwise defined, all terms (including technical terms and scientific terms) used herein have the same meaning as those commonly understood by those of ordinary skill in the art to which this application belongs. It should also be understood that terms such as those defined in general dictionaries should be understood to have a meaning consistent with the meaning in the context of the prior art, and unless specifically defined as here, they will not be idealized or overly Explain the formal meaning.
本申请提供一种基于业务需求信息的软件开发方法,以使得系统能够根据业务需求信息进行自动化的软件开发,提高软件开发的效率。在一实施中,如图1所示,该基于业务需求信息的软件开发方法,包括以下步骤:This application provides a software development method based on business demand information, so that the system can perform automated software development based on business demand information, and improve the efficiency of software development. In an implementation, as shown in Figure 1, the software development method based on business requirement information includes the following steps:
S100,获取业务需求信息,将所述业务需求信息进行业务划分,得到多个业务模块。S100: Acquire business requirement information, divide the business requirement information into business, and obtain multiple business modules.
在本实施例中,系统接收到前端用户提出的业务需求时,基于目标产品对业务需求进行整理,得到业务需求信息。根据业务需求信息可将业务划分为多个业务模块。例如,实现红包发放的业务需求,系统可根据业务需求信息将业务划分为红包发放的规则模块,红包奖励模块,红包发放数 量控制模块等。为了实现用户的业务需求,系统将业务需求信息划分为多个业务模块,按照每个业务模块进行软件开发,可避免开发软件时的重复开发以及开发编码时的混乱。In this embodiment, when the system receives the business demand put forward by the front-end user, it sorts out the business demand based on the target product to obtain business demand information. The business can be divided into multiple business modules according to business demand information. For example, to realize the business requirements of red envelope issuance, the system can divide the business into red envelope issuance rule module, red envelope reward module, red envelope distribution quantity control module, etc. according to the business demand information. In order to realize the user's business needs, the system divides the business demand information into multiple business modules, and develops software according to each business module, which can avoid repeated development when developing software and confusion when developing coding.
S200,使用数据库对所述多个业务模块进行业务建模。S200: Use a database to perform business modeling on the multiple business modules.
在本实施例中,根据业务需求信息将业务划分为多个业务模块,此处系统中每个业务模块采用信息数据描述,系统无法直接根据业务模型进行软件开发。因此,采用系统的数据库对划分得到的多个业务模型进行业务建模。具体地,建模的方式可以是,采用数据库中的数据信息描述每个业务模型。此处,业务建模指的是,以软件模型的方式描述业务所涉及的对象、对象的属性、执行的行为以及对象间的关联关系等。例如,使用数据库创建业务对象的基本对象表、功能表、记录表等,以快速创建出业务原形。In this embodiment, the business is divided into multiple business modules according to business demand information. Here, each business module in the system is described by information data, and the system cannot directly develop software based on the business model. Therefore, the system database is used to perform business modeling on multiple business models obtained by division. Specifically, the modeling method may be to describe each business model using data information in the database. Here, business modeling refers to the description of the objects involved in the business, the attributes of the objects, the behaviors of execution, and the relationship between the objects in the form of software models. For example, use a database to create basic object tables, function tables, and record tables of business objects to quickly create a business prototype.
S300,根据业务建模后的所述多个业务模块设置所述数据库的接口,以及根据业务建模后的所述多个业务模块生成与所述数据库关联的MVC模型-视图-控制器的流程信息。S300. Set the interface of the database according to the multiple business modules after business modeling, and generate an MVC model-view-controller process associated with the database according to the multiple business modules after business modeling information.
在本实施例中,通过对数据库的接口的设置,以及对与数据库关联的MVC中控制层的接口的设置和生成MVC的流程信息,确保系统在一定的框架下进行业务需求的软件开发。其中,数据库的接口和MVC的接口框定了软件开发对应的业务的范围和业务所需要提供的能力,MVC流程信息框定了实现业务的模块和模块间的消息通信。MVC,全名是Model View Controller,是模型(model)-视图(view)-控制器(controller)的缩写。MVC,将业务逻辑聚集到一个部件里面,在改进和个性化定制界面及用户交互的同时,不需要重新编写业务逻辑。在本实施例中,数据库与MVC的关联关系表现为:数据库中建立的业务模型对应MVC结构中的模型(model),数据流对应MVC结构中的视图(view),数据库的各种接口对应MVC结构中的控制器(controller)。In this embodiment, by setting the interface of the database, setting the interface of the control layer in the MVC associated with the database, and generating the process information of the MVC, it is ensured that the system performs software development for business requirements under a certain framework. Among them, the interface of the database and the interface of MVC define the scope of the business corresponding to the software development and the capabilities that the business needs to provide, and the MVC process information defines the modules that implement the business and the message communication between the modules. MVC, the full name is Model View Controller, which is an abbreviation of model-view-controller. MVC gathers business logic into one component, and it does not need to rewrite business logic while improving and customizing the interface and user interaction. In this embodiment, the relationship between the database and MVC is shown as follows: the business model established in the database corresponds to the model in the MVC structure, the data flow corresponds to the view in the MVC structure, and the various interfaces of the database correspond to MVC. The controller in the structure.
S400,确定系统根据所述MVC模型-视图-控制器的流程信息,调用所述数据库的接口,并使用所述数据库的接口对所述业务需求信息进行软件开发。S400: Determine that the system calls the interface of the database according to the process information of the MVC model-view-controller, and uses the interface of the database to develop software for the business requirement information.
在本实施例中,通过对数据库和与数据库关联的MVC的设置,系统确定出一套规范的业务需求的软件开发框架。系统可以根据规范的开发框架,通过MVC的流程信息,调用数据库的各种接口,进行业务需求的软件开发。In this embodiment, by setting the database and the MVC associated with the database, the system determines a set of standardized business requirements software development framework. According to the standardized development framework, the system can call various interfaces of the database through the process information of MVC to carry out software development for business requirements.
上述实施例提供的基于业务需求信息的软件开发方法,根据业务需求信息划分多个业务模块,利用数据库对多个业务模块进行业务建模。进一步地,根据业务建模后的业务模块,对数据库的接口进行设置,同时生成与数据库关联的MVC模型-视图-控制器的流程信息。最后,系统根据MVC模型-视图-控制器的流程信息,调用数据库的接口,自动化进行软件开发。因此,本申请所述的软件开发方法,可自动化根据业务需求信息进行软件 开发,提高软件开发的开发效率。The software development method based on business requirement information provided in the above embodiment divides multiple business modules according to the business requirement information, and uses a database to perform business modeling on the multiple business modules. Further, according to the business module after the business modeling, the interface of the database is set, and the process information of the MVC model-view-controller associated with the database is generated at the same time. Finally, the system calls the database interface according to the MVC model-view-controller process information to automate software development. Therefore, the software development method described in this application can automate software development based on business demand information and improve the efficiency of software development.
在一实施例中,所述业务建模包括建立业务的对象表、业务功能表以及记录表。如图2所示,步骤S200,包括:In an embodiment, the business modeling includes establishing a business object table, a business function table, and a record table. As shown in Figure 2, step S200 includes:
S210,获取每个所述业务模块的业务信息,根据所述业务信息使用所述数据库对每个所述业务模型建立对象表、业务功能表以及记录表。S210: Acquire business information of each of the business modules, and use the database to create an object table, a business function table, and a record table for each of the business models according to the business information.
在该实施例中,业务需求信息包括前端接收到的用户触发选择的业务对象,每个业务对象需要实现的功能信息。系统根据前端发送的业务需求信息将业务划分为多个业务模块之后,每个业务模块包含该模块的业务对象以及业务对象实现的功能信息。系统通过调用数据库,根据每个业务模块的业务信息建立每个业务模块的对象表、业务功能表以及记录表。其中,记录表用于记录业务对象的数据信息。In this embodiment, the business requirement information includes the business objects selected by the user triggered by the front end and the function information that each business object needs to implement. After the system divides the business into multiple business modules according to the business requirement information sent by the front end, each business module contains the business object of the module and the function information realized by the business object. By calling the database, the system establishes the object table, business function table and record table of each business module according to the business information of each business module. Among them, the record table is used to record the data information of the business object.
进一步地,所述业务建模后的所述多个业务模块包括每个所述业务模型的对象表、业务功能表以及记录表。此时,步骤S300,包括:根据所述每个所述业务模型的对象表、所述业务功能表以及所述记录表,确定所述数据库的每个接口实现业务数据对接的范围以及所述每个接口实现的功能,根据所述业务数据对接的范围以及所述每个接口实现的功能对所述数据库的每个接口进行设置;根据所述每个所述业务模型的对象表、所述业务功能表以及所述记录表确定所述业务模块之间的消息通信方式,根据所述消息通信方式生成与所述数据库关联的MVC模型-视图-控制器的流程信息。Further, the multiple business modules after the business modeling include an object table, a business function table, and a record table of each of the business models. At this time, step S300 includes: determining, according to the object table, the service function table, and the record table of each of the business models, the scope for each interface of the database to achieve business data docking and the The functions implemented by each interface are set for each interface of the database according to the scope of the business data docking and the functions implemented by each interface; according to the object table of each business model, the business The function table and the record table determine the message communication mode between the service modules, and generate the MVC model-view-controller process information associated with the database according to the message communication mode.
在一实施例中,步骤S100,包括:获取所述业务需求信息,根据所述业务需求信息将业务以从中间向上和向下的开发方式进行业务划分,得到所述多个业务模块。In one embodiment, step S100 includes: acquiring the business requirement information, and dividing the business in a middle-up and down-development manner according to the business requirement information to obtain the multiple service modules.
在该实施例中,业务需求设计可以从中间向上和向下扩散的方式进行软件开发。因此,可将业务以从中间向上和向下的开发方式进行业务划分,得到所述多个业务模块。此时,如图3所示,步骤S300,包括:In this embodiment, the business requirement design can be developed in a manner of spreading upward and downward from the middle. Therefore, the business can be divided into business development from the middle upward and downward to obtain the multiple business modules. At this time, as shown in FIG. 3, step S300 includes:
S310,根据所述从中间向上和向下的开发方式生成与所述数据库关联的MVC模型-视图-控制器的流程信息。S310: Generate process information of the MVC model-view-controller associated with the database according to the upward and downward development mode from the middle.
S320,根据所述流程信息定义所述数据库的接口。S320: Define an interface of the database according to the process information.
S330,根据所述流程信息确定出软件开发的时序图。S330: Determine a sequence diagram of software development according to the process information.
S340,根据所述时序图对所述数据库的接口进行业务逻辑设置。S340: Perform business logic settings on the interface of the database according to the sequence diagram.
具体地,系统根据流程图来确定业务需求的软件开发流程后,定义数据库的接口和数据库的表结构,据此可以确定出软件开发的时序图,最后利用数据库的接口和MVC的接口中业务逻辑进行业务的分模块开发Specifically, after the system determines the software development process of the business requirements according to the flowchart, it defines the database interface and the database table structure, based on which the sequence diagram of software development can be determined, and finally uses the database interface and the business logic in the MVC interface Conduct business sub-module development
在一实施例中,所述业务需求信息包括与抽奖活动关联的业务需求信息。步骤S100,包括:将所述与抽奖活动关联的业务需求信息进行业务划分,得到规则业务模块、抽奖业务模块、奖项业务模块以及奖品业务模块;所述规则业务模块用于确定所述抽奖活动的抽奖规则,所述抽奖业务模块用于执行所述抽奖活动,所述奖项业务模块用于确定与所述抽奖活动 对应的奖项,所述奖品业务模块用于确定与所述奖项对应的奖品。In an embodiment, the business demand information includes business demand information associated with a lottery event. Step S100 includes: dividing the business requirement information associated with the lottery activity into business divisions to obtain a rule business module, a lottery business module, an award business module, and a prize business module; the rule business module is used to determine the lottery activity Lottery rules, the lottery business module is used to execute the lottery, the prize business module is used to determine the prize corresponding to the lottery activity, and the prize business module is used to determine the prize corresponding to the prize.
此时,步骤S300和步骤S400,包括:使用所述数据库对所述规则业务模块、抽奖业务模块、奖项业务模块以及奖品业务模块进行业务模块建模,并确定各个业务模块的关联关系;根据业务建模后的所述各个业务模块以及所述关联关系设置所述数据库的接口,以及根据业务建模后的所述各个业务模块以及所述关联关系生成与所述数据库关联的MVC模型-视图-控制器的流程信息;确定系统根据所述MVC模型-视图-控制器的流程信息,调用所述数据库的接口,并使用所述数据库的接口执行所述与抽奖活动关联的业务需求信息的软件开发。At this time, step S300 and step S400 include: using the database to model the business modules of the rule business module, the lottery business module, the award business module, and the prize business module, and determine the association relationship of each business module; The modeled service modules and the association relationship set the interface of the database, and the MVC model-view- associated with the database is generated according to the service modeled service modules and the association relationship. Controller process information; determining that the system calls the database interface according to the MVC model-view-controller process information, and uses the database interface to execute the software development of the business demand information associated with the lottery .
例如,在一具体实施方式中,前端反馈的业务需求为制作抽奖系统。该抽奖系统用于根据用户提出的业务需求信息,确定满足一定条件的用户能够进行抽奖操作,并向抽奖用户发送对应等级的奖品。此时,系统可根据用户的业务需求信息分别设置规则、抽奖、奖项以及奖品四个业务模块。具体先建数据库表,如规则表,确定规则表和抽奖的奖项的关系。然后设计数据库的接口,以及根据业务需求信息生成MVC的流程信息,根据MVC的流程信息设置数据库的接口,以及确定出软件开发的流程,最终系统根据MVC模型-视图-控制器的流程信息,调用数据库的接口,并使用数据库的接口执行抽奖系统的软件开发。For example, in a specific implementation, the front-end feedback business requirement is to make a lottery system. The lottery system is used to determine that users who meet certain conditions can perform lottery operations according to the business demand information proposed by users, and send prizes of corresponding levels to the lottery users. At this time, the system can separately set four business modules of rules, lottery, prizes and prizes according to the user's business demand information. Specifically, first build a database table, such as a rule table, to determine the relationship between the rule table and the prizes of the lottery. Then design the database interface, and generate the MVC process information according to the business requirement information, set the database interface according to the MVC process information, and determine the software development process, and finally the system calls according to the MVC model-view-controller process information The interface of the database, and use the interface of the database to perform the software development of the lottery system.
在一实施例中,如图4所示,步骤S400之后,还包括:In an embodiment, as shown in FIG. 4, after step S400, the method further includes:
S500,执行所述软件开发之后的业务需求信息,并获取执行后的执行结果。S500: Execute the business requirement information after the software development, and obtain the execution result after the execution.
S600,通过所述数据库中的多个业务模块的逻辑结构判断所述执行结果是否正确。S600: Judging whether the execution result is correct according to the logical structure of multiple service modules in the database.
S700,若所述执行结果不正确,根据所述多个业务模块的逻辑结构调整所述MVC模型-视图-控制器的流程信息,以及对所述数据库的接口进行接口设置调整。S700: If the execution result is incorrect, adjust the process information of the MVC model-view-controller according to the logical structure of the multiple business modules, and adjust the interface settings of the database interface.
在该实施例中,系统采用上述基于业务需求信息的软件开发方法执行业务需求信息的软件开发之后,根据执行结果反馈,佐证数据库进行业务建模时业务需求的合理性和设计的正确性。例如,系统调用数据库的接口执行相应的业务模块的开发编码之后,将每个业务模块的编码单独执行结果,无法获知业务模块之间的关联关系。通过每个业务模块的执行结果,结合数据库中存储的业务模块的逻辑结构,可判断出最终业务需求信息的软件开发的执行结果的正确性。在具体的实现过程中,如果数据库中业务建模创建不合理,冗余过多,则表明业务需求信息的软件开发有问题,要重新整理。也即是,若所述执行结果不正确,根据所述多个业务模块的逻辑结构调整所述MVC模型-视图-控制器的流程信息,以及对所述数据库的接口进行接口设置调整。In this embodiment, after the system uses the above-mentioned software development method based on the business demand information to execute the software development of the business demand information, it is fed back according to the execution result to support the rationality of the business demand and the correctness of the design when the database performs business modeling. For example, after the system calls the database interface to execute the development code of the corresponding business module, the code of each business module is executed separately, and the association relationship between the business modules cannot be known. Through the execution result of each business module, combined with the logical structure of the business module stored in the database, the correctness of the execution result of the software development of the final business requirement information can be judged. In the specific implementation process, if the business modeling in the database is created unreasonably and has too much redundancy, it indicates that there is a problem with the software development of the business demand information and needs to be rearranged. That is, if the execution result is incorrect, the process information of the MVC model-view-controller is adjusted according to the logical structure of the multiple service modules, and the interface settings of the database interface are adjusted.
本申请还提供一种基于业务需求的软件开发装置。在一实施例中,如图5所示,该基于业务需求的软件开发装置包括划分模块10、建模模块 20、设置模块30和开发模块40。This application also provides a software development device based on business requirements. In an embodiment, as shown in FIG. 5, the software development apparatus based on business requirements includes a division module 10, a modeling module 20, a setting module 30, and a development module 40.
划分模块10用于获取业务需求信息,将所述业务需求信息进行业务划分,得到多个业务模块。在本实施例中,系统接收到前端用户提出的业务需求时,基于目标产品对业务需求进行整理,得到业务需求信息。根据业务需求信息可将业务划分为多个业务模块。例如,实现红包发放的业务需求,系统可根据业务需求信息将业务划分为红包发放的规则模块,红包奖励模块,红包发放数量控制模块等。为了实现用户的业务需求,系统将业务需求信息划分为多个业务模块,按照每个业务模块进行软件开发,可避免开发软件时的重复开发以及开发编码时的混乱。The dividing module 10 is used to obtain business demand information, and divide the business demand information into business to obtain multiple business modules. In this embodiment, when the system receives the business demand put forward by the front-end user, it sorts out the business demand based on the target product to obtain business demand information. The business can be divided into multiple business modules according to business demand information. For example, to realize the business requirements of red envelope issuance, the system can divide the business into red envelope issuance rule module, red envelope reward module, red envelope issuance quantity control module, etc. according to business demand information. In order to realize the user's business needs, the system divides the business demand information into multiple business modules, and develops software according to each business module, which can avoid repeated development when developing software and confusion when developing coding.
建模模块20用于使用数据库对所述多个业务模块进行业务建模。在本实施例中,根据业务需求信息将业务划分为多个业务模块,此处系统中每个业务模块采用信息数据描述,系统无法直接根据业务模型进行软件开发。因此,采用系统的数据库对划分得到的多个业务模型进行业务建模。具体地,建模的方式可以是,采用数据库中的数据信息描述每个业务模型。此处,业务建模指的是,以软件模型的方式描述业务所涉及的对象、对象的属性、执行的行为以及对象间的关联关系等。例如,使用数据库创建业务对象的基本对象表、功能表、记录表等,以快速创建出业务原形。The modeling module 20 is configured to use a database to perform business modeling on the multiple business modules. In this embodiment, the business is divided into multiple business modules according to business demand information. Here, each business module in the system is described by information data, and the system cannot directly develop software based on the business model. Therefore, the system database is used to perform business modeling on multiple business models obtained by division. Specifically, the modeling method may be to describe each business model using data information in the database. Here, business modeling refers to the description of the objects involved in the business, the attributes of the objects, the behaviors of execution, and the relationship between the objects in the form of software models. For example, use a database to create basic object tables, function tables, and record tables of business objects to quickly create a business prototype.
设置模块30用于根据业务建模后的所述多个业务模块设置所述数据库的接口,以及根据业务建模后的所述多个业务模块生成与所述数据库关联的MVC模型-视图-控制器的流程信息。在本实施例中,通过对数据库的接口的设置,以及对与数据库关联的MVC中控制层的接口的设置和生成MVC的流程信息,确保系统在一定的框架下进行业务需求的软件开发。其中,数据库的接口和MVC的接口框定了软件开发对应的业务的范围和业务所需要提供的能力,MVC流程信息框定了实现业务的模块和模块间的消息通信。MVC,全名是Model View Controller,是模型(model)-视图(view)-控制器(controller)的缩写。MVC,将业务逻辑聚集到一个部件里面,在改进和个性化定制界面及用户交互的同时,不需要重新编写业务逻辑。在本实施例中,数据库与MVC的关联关系表现为:数据库中建立的业务模型对应MVC结构中的模型(model),数据流对应MVC结构中的视图(view),数据库的各种接口对应MVC结构中的控制器(controller)。The setting module 30 is configured to set the interface of the database according to the multiple business modules after business modeling, and to generate the MVC model-view-control associated with the database according to the multiple business modules after business modeling. The process information of the device. In this embodiment, by setting the interface of the database, setting the interface of the control layer in the MVC associated with the database, and generating the process information of the MVC, it is ensured that the system performs software development for business requirements under a certain framework. Among them, the interface of the database and the interface of MVC define the scope of the business corresponding to the software development and the capabilities that the business needs to provide, and the MVC process information defines the modules that implement the business and the message communication between the modules. MVC, the full name is Model View Controller, which is an abbreviation of model-view-controller. MVC gathers business logic into one component, and it does not need to rewrite business logic while improving and customizing the interface and user interaction. In this embodiment, the relationship between the database and MVC is shown as follows: the business model established in the database corresponds to the model in the MVC structure, the data flow corresponds to the view in the MVC structure, and the various interfaces of the database correspond to MVC. The controller in the structure.
开发模块40用于确定系统根据所述MVC模型-视图-控制器的流程信息,调用所述数据库的接口,并使用所述数据库的接口对所述业务需求信息进行软件开发。在本实施例中,通过对数据库和与数据库关联的MVC的设置,系统确定出一套规范的业务需求的软件开发框架。系统可以根据规范的开发框架,通过MVC的流程信息,调用数据库的各种接口,进行业务需求的软件开发。The development module 40 is used to determine that the system calls the interface of the database according to the process information of the MVC model-view-controller, and uses the interface of the database to develop software for the business requirement information. In this embodiment, by setting the database and the MVC associated with the database, the system determines a set of standardized business requirements software development framework. According to the standardized development framework, the system can call various interfaces of the database through the process information of MVC to carry out software development for business requirements.
在其他实施例中,本申请提供的基于业务需求信息的软件开发装置中的各个模块还用于执行本申请所述的基于业务需求信息的软件开发方法中,对应各个步骤执行的操作,在此不再做详细的说明。In other embodiments, each module in the software development apparatus based on business demand information provided by this application is also used to execute the operations performed corresponding to each step in the software development method based on business demand information described in this application. No more detailed instructions.
本申请还提供一种存储介质,所述存储介质为易失性存储介质或非易失性存储介质。该存储介质上存储有计算机程序;所述计算机程序被处理器执行时,实现上述任一实施例所述的基于业务需求信息的软件开发方法。该存储介质可以是存储器。例如,内存储器或外存储器,或者包括内存储器和外存储器两者。内存储器可以包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦写可编程ROM(EEPROM)、快闪存储器、或者随机存储器。外存储器可以包括硬盘、软盘、ZIP盘、U盘、磁带等。本申请所公开的存储介质包括但不限于这些类型的存储器。本申请所公开的存储器只作为例子而非作为限定。The present application also provides a storage medium, which is a volatile storage medium or a non-volatile storage medium. The storage medium stores a computer program; when the computer program is executed by a processor, it implements the software development method based on business demand information described in any of the foregoing embodiments. The storage medium may be a memory. For example, internal memory or external memory, or both internal memory and external memory. The internal memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), flash memory, or random access memory. External storage can include hard disks, floppy disks, ZIP disks, U disks, tapes, etc. The storage medium disclosed in this application includes but is not limited to these types of memories. The memory disclosed in this application is only an example and not a limitation.
本申请还提供一种计算机设备。一种计算机设备包括:一个或多个处理器;存储器;一个或多个应用程序。其中所述一个或多个应用程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个应用程序配置用于执行上述任一实施例所述的基于业务需求信息的软件开发方法。This application also provides a computer device. A computer device includes: one or more processors; memory; and one or more application programs. Wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, and the one or more application programs are configured to execute the one described in any of the above embodiments The software development method based on business demand information.
图6为本申请一实施例中的计算机设备的结构示意图。本实施例所述计算机设备可以是服务器、个人计算机以及网络设备。如图6所示,设备包括处理器603、存储器605、输入单元607以及显示单元609等器件。本领域技术人员可以理解,图6示出的设备结构器件并不构成对所有设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件。存储器605可用于存储应用程序601以及各功能模块,处理器603运行存储在存储器605的应用程序601,从而执行设备的各种功能应用以及数据处理。存储器可以是内存储器或外存储器,或者包括内存储器和外存储器两者。内存储器可以包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦写可编程ROM(EEPROM)、快闪存储器、或者随机存储器。外存储器可以包括硬盘、软盘、ZIP盘、U盘、磁带等。本申请所公开的存储器包括但不限于这些类型的存储器。本申请所公开的存储器只作为例子而非作为限定。Fig. 6 is a schematic structural diagram of a computer device in an embodiment of the application. The computer device described in this embodiment may be a server, a personal computer, and a network device. As shown in FIG. 6, the device includes a processor 603, a memory 605, an input unit 607, and a display unit 609. Those skilled in the art can understand that the device structure shown in FIG. 6 does not constitute a limitation on all devices, and may include more or less components than those shown in the figure, or combine certain components. The memory 605 may be used to store the application program 601 and various functional modules, and the processor 603 runs the application program 601 stored in the memory 605 to execute various functional applications and data processing of the device. The memory may be internal memory or external memory, or include both internal memory and external memory. The internal memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), flash memory, or random access memory. External storage can include hard disks, floppy disks, ZIP disks, U disks, tapes, etc. The memory disclosed in this application includes but is not limited to these types of memory. The memory disclosed in this application is only an example and not a limitation.
输入单元607用于接收信号的输入,以及接收用户输入的关键字。输入单元607可包括触控面板以及其它输入设备。触控面板可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板上或在触控面板附近的操作),并根据预先设定的程序驱动相应的连接装置;其它输入设备可以包括但不限于物理键盘、功能键(比如播放控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。显示单元609可用于显示用户输入的信息或提供给用户的信息以及计算机设备的各种菜单。显示单元609可采用液晶显示器、有机发光二极管等形式。处理器603是计算机设备的控制中心,利用各种接口和线路连接整个电脑的各个部分,通过运行或执行存储在存储器605内的软件程序和/或模块,以及调用存储在存储器内的数据,执行各种功能和处理数据。The input unit 607 is used for receiving signal input and receiving keywords input by the user. The input unit 607 may include a touch panel and other input devices. The touch panel can collect the user's touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc., to operate on the touch panel or near the touch panel), and according to preset The program drives the corresponding connection device; other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as playback control buttons, switch buttons, etc.), trackball, mouse, and joystick. The display unit 609 can be used to display information input by the user or information provided to the user and various menus of the computer device. The display unit 609 may take the form of a liquid crystal display, an organic light emitting diode, or the like. The processor 603 is the control center of the computer equipment. It uses various interfaces and lines to connect the various parts of the entire computer. It executes by running or executing the software programs and/or modules stored in the memory 605, and calling the data stored in the memory. Various functions and processing data.
在一实施方式中,设备包括一个或多个处理器603,以及一个或多个 存储器605,一个或多个应用程序601。其中所述一个或多个应用程序601被存储在存储器605中并被配置为由所述一个或多个处理器603执行,所述一个或多个应用程序601配置用于执行以上实施例所述的基于业务需求信息的软件开发方法。In one embodiment, the device includes one or more processors 603, one or more memories 605, and one or more application programs 601. The one or more application programs 601 are stored in the memory 605 and configured to be executed by the one or more processors 603, and the one or more application programs 601 are configured to execute the above-mentioned embodiments. The software development method based on business demand information.
此外,在本申请各个实施例中的各功能单元可以集成在一个处理模块中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。In addition, the functional units in the various embodiments of the present application may be integrated into one processing module, or each unit may exist alone physically, or two or more units may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware or software functional modules. If the integrated module is implemented in the form of a software function module and sold or used as an independent product, it may also be stored in a computer readable storage medium.
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,该程序可以存储于一计算机可读存储介质中,存储介质可以包括存储器、磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps in the above-mentioned embodiments can be completed by hardware, or by a program instructing related hardware. The program can be stored in a computer-readable storage medium, and the storage medium can include Storage, magnetic disk or optical disc, etc.
以上所述仅是本申请的部分实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本申请原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本申请的保护范围。The above are only part of the implementation of this application. It should be pointed out that for those of ordinary skill in the art, without departing from the principle of this application, several improvements and modifications can be made, and these improvements and modifications are also Should be regarded as the scope of protection of this application.
应该理解的是,在本申请各实施例中的各功能单元可集成在一个处理模块中,也可以各个单元单独物理存在,也可以两个或两个以上单元集成于一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。It should be understood that the functional units in the embodiments of the present application may be integrated into one processing module, or each unit may exist alone physically, or two or more units may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware or software functional modules.
以上所述仅是本申请的部分实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本申请原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本申请的保护范围。The above are only part of the implementation of this application. It should be pointed out that for those of ordinary skill in the art, without departing from the principle of this application, several improvements and modifications can be made, and these improvements and modifications are also Should be regarded as the scope of protection of this application.

Claims (20)

  1. 一种基于业务需求信息的软件开发方法,其中,包括:A software development method based on business demand information, including:
    获取业务需求信息,将所述业务需求信息进行业务划分,得到多个业务模块;Acquire business demand information, divide the business demand information into business, and obtain multiple business modules;
    使用数据库对所述多个业务模块进行业务建模;Use a database to perform business modeling on the multiple business modules;
    根据业务建模后的所述多个业务模块设置所述数据库的接口,以及根据业务建模后的所述多个业务模块生成与所述数据库关联的MVC模型-视图-控制器的流程信息;Setting the interface of the database according to the multiple business modules after business modeling, and generating MVC model-view-controller process information associated with the database according to the multiple business modules after business modeling;
    确定系统根据所述MVC模型-视图-控制器的流程信息,调用所述数据库的接口,并使用所述数据库的接口对所述业务需求信息进行软件开发。The determining system calls the interface of the database according to the process information of the MVC model-view-controller, and uses the interface of the database to develop software for the business requirement information.
  2. 根据权利要求1所述的方法,其中,所述业务建模包括建立业务的对象表、业务功能表以及记录表;所述使用数据库对所述多个业务模块进行业务建模,包括:The method according to claim 1, wherein the business modeling includes establishing a business object table, a business function table, and a record table; and the using a database to perform business modeling on the multiple business modules includes:
    获取每个所述业务模块的业务信息,根据所述业务信息使用所述数据库对每个所述业务模型建立对象表、业务功能表以及记录表。Obtain business information of each of the business modules, and use the database to establish an object table, a business function table, and a record table for each of the business models according to the business information.
  3. 根据权利要求2所述的方法,其中,所述业务建模后的所述多个业务模块包括每个所述业务模型的对象表、业务功能表以及记录表;所述根据业务建模后的所述多个业务模块设置所述数据库的接口,以及根据业务建模后的所述多个业务模块生成与所述数据库关联的MVC模型-视图-控制器的流程信息,包括:2. The method according to claim 2, wherein the plurality of business modules after the business modeling includes an object table, a business function table, and a record table of each of the business models; Setting the interface of the database by the multiple business modules, and generating process information of the MVC model-view-controller associated with the database according to the multiple business modules after business modeling includes:
    根据所述每个所述业务模型的对象表、所述业务功能表以及所述记录表,确定所述数据库的每个接口实现业务数据对接的范围以及所述每个接口实现的功能,根据所述业务数据对接的范围以及所述每个接口实现的功能对所述数据库的每个接口进行设置;According to the object table of each of the business models, the business function table, and the record table, determine the scope of each interface of the database to achieve business data docking and the functions implemented by each interface, according to all Setting up each interface of the database according to the scope of business data docking and the function implemented by each interface;
    根据所述每个所述业务模型的对象表、所述业务功能表以及所述记录表确定所述业务模块之间的消息通信方式,根据所述消息通信方式生成与所述数据库关联的MVC模型-视图-控制器的流程信息。Determine the message communication mode between the service modules according to the object table, the service function table, and the record table of each of the service models, and generate the MVC model associated with the database according to the message communication mode -View-the process information of the controller.
  4. 根据权利要求1所述的方法,其中,所述获取业务需求信息,将所述业务需求信息进行业务划分,得到多个业务模块,包括:The method according to claim 1, wherein said obtaining service requirement information and dividing said service requirement information into services to obtain multiple service modules comprises:
    获取所述业务需求信息,根据所述业务需求信息将业务以从中间向上和向下的开发方式进行业务划分,得到所述多个业务模块。The business requirement information is acquired, and the business is divided into the business development mode from the middle upward and downward according to the business demand information to obtain the multiple business modules.
  5. 根据权利要求4所述的方法,其中,所述根据业务建模后的所述多个业务模块设置所述数据库的接口,以及根据业务建模后的所述多个业务模块生成与所述数据库关联的MVC模型-视图-控制器的流程信息,包括:The method according to claim 4, wherein the interface of the database is set according to the plurality of business modules after business modeling, and the database is generated according to the plurality of business modules after business modeling. The process information of the associated MVC model-view-controller, including:
    根据所述从中间向上和向下的开发方式生成与所述数据库关联的MVC模型-视图-控制器的流程信息;Generating process information of the MVC model-view-controller associated with the database according to the upward and downward development methods from the middle;
    根据所述流程信息定义所述数据库的接口;Define the interface of the database according to the process information;
    根据所述流程信息确定出软件开发的时序图;Determine a sequence diagram of software development according to the process information;
    根据所述时序图对所述数据库的接口进行业务逻辑设置。Perform business logic settings on the interface of the database according to the sequence diagram.
  6. 根据权利要求1所述的方法,其中,所述业务需求信息包括与抽奖活动关联的业务需求信息;所述将所述业务需求信息进行业务划分,得到多个业务模块,包括:The method according to claim 1, wherein the business demand information includes business demand information associated with a lottery; and the business division of the business demand information to obtain multiple business modules includes:
    将所述与抽奖活动关联的业务需求信息进行业务划分,得到规则业务模块、抽奖业务模块、奖项业务模块以及奖品业务模块;所述规则业务模块用于确定所述抽奖活动的抽奖规则,所述抽奖业务模块用于执行所述抽奖活动,所述奖项业务模块用于确定与所述抽奖活动对应的奖项,所述奖品业务模块用于确定与所述奖项对应的奖品;The business requirement information associated with the lottery event is divided into business to obtain a rule business module, a lottery business module, an award business module, and a prize business module; the rule business module is used to determine the lottery rules of the lottery event, The lottery business module is used to execute the lottery, the award business module is used to determine the prize corresponding to the lottery activity, and the prize business module is used to determine the prize corresponding to the prize;
    所述根据业务建模后的所述多个业务模块设置所述数据库的接口,以及根据业务建模后的所述多个业务模块生成与所述数据库关联的MVC模型-视图-控制器的流程信息,确定系统根据所述MVC模型-视图-控制器的流程信息,调用所述数据库的接口,并使用所述数据库的接口对所述业务需求信息进行软件开发,包括:The setting of the interface of the database according to the plurality of business modules after business modeling, and the process of generating the MVC model-view-controller associated with the database according to the plurality of business modules after the business modeling Information, determining that the system calls the interface of the database according to the process information of the MVC model-view-controller, and uses the interface of the database to develop software for the business requirement information, including:
    使用所述数据库对所述规则业务模块、抽奖业务模块、奖项业务模块以及奖品业务模块进行业务模块建模,并确定各个业务模块的关联关系;根据业务建模后的所述各个业务模块以及所述关联关系设置所述数据库的接口,以及根据业务建模后的所述各个业务模块以及所述关联关系生成与所述数据库关联的MVC模型-视图-控制器的流程信息;确定系统根据所述MVC模型-视图-控制器的流程信息,调用所述数据库的接口,并使用所述数据库的接口执行所述与抽奖活动关联的业务需求信息的软件开发。Use the database to model the business modules of the rule business module, the lottery business module, the award business module, and the prize business module, and determine the association relationship of each business module; according to the business modules and all the business modules after the business modeling The association relationship sets the interface of the database, and the process information of the MVC model-view-controller associated with the database is generated according to the various business modules after business modeling and the association relationship; The process information of the MVC model-view-controller calls the interface of the database, and uses the interface of the database to execute the software development of the business requirement information associated with the lottery.
  7. 根据权利要求1所述的方法,其中,所述对所述业务需求信息进行软件开发之后,还包括:The method according to claim 1, wherein after the software development of the business requirement information, the method further comprises:
    执行所述软件开发之后的业务需求信息,并获取执行后的执行结果;Execute the business requirement information after the software development, and obtain the execution result after the execution;
    通过所述数据库中的多个业务模块的逻辑结构判断所述执行结果是否正确;Judging whether the execution result is correct according to the logical structure of multiple business modules in the database;
    若所述执行结果不正确,根据所述多个业务模块的逻辑结构调整所述MVC模型-视图-控制器的流程信息,以及对所述数据库的接口进行接口设置调整。If the execution result is incorrect, the process information of the MVC model-view-controller is adjusted according to the logical structure of the multiple service modules, and the interface settings of the database interface are adjusted.
  8. 一种基于业务需求的软件开发装置,其中,包括:A software development device based on business requirements, including:
    划分模块,用于获取业务需求信息,将所述业务需求信息进行业务划分,得到多个业务模块;The dividing module is used to obtain business demand information, and divide the business demand information into business to obtain multiple business modules;
    建模模块,用于使用数据库对所述多个业务模块进行业务建模;A modeling module, configured to use a database to perform business modeling on the multiple business modules;
    设置模块,用于根据业务建模后的所述多个业务模块设置所述数据库的接口,以及根据业务建模后的所述多个业务模块生成与所述数据库关联的MVC模型-视图-控制器的流程信息;The setting module is used to set the interface of the database according to the multiple business modules after business modeling, and to generate the MVC model-view-control associated with the database according to the multiple business modules after business modeling Process information of the device;
    开发模块,用于确定系统根据所述MVC模型-视图-控制器的流程信 息,调用所述数据库的接口,并使用所述数据库的接口对所述业务需求信息进行软件开发。The development module is used to determine that the system calls the interface of the database according to the process information of the MVC model-view-controller, and uses the interface of the database to develop software for the business requirement information.
  9. 一种存储介质,其中,其上存储有计算机程序;所述计算机程序适于由处理器加载并执行一种基于业务需求信息的软件开发方法:A storage medium, wherein a computer program is stored thereon; the computer program is adapted to be loaded by a processor and execute a software development method based on business demand information:
    其中,所述基于业务需求信息的软件开发方法包括:Wherein, the software development method based on business demand information includes:
    获取业务需求信息,将所述业务需求信息进行业务划分,得到多个业务模块;Acquire business demand information, divide the business demand information into business, and obtain multiple business modules;
    使用数据库对所述多个业务模块进行业务建模;Use a database to perform business modeling on the multiple business modules;
    根据业务建模后的所述多个业务模块设置所述数据库的接口,以及根据业务建模后的所述多个业务模块生成与所述数据库关联的MVC模型-视图-控制器的流程信息;Setting the interface of the database according to the multiple business modules after business modeling, and generating MVC model-view-controller process information associated with the database according to the multiple business modules after business modeling;
    确定系统根据所述MVC模型-视图-控制器的流程信息,调用所述数据库的接口,并使用所述数据库的接口对所述业务需求信息进行软件开发。The determining system calls the interface of the database according to the process information of the MVC model-view-controller, and uses the interface of the database to develop software for the business requirement information.
  10. 根据权利要求9所述的存储介质,其中,所述业务建模包括建立业务的对象表、业务功能表以及记录表;所述使用数据库对所述多个业务模块进行业务建模,包括:The storage medium according to claim 9, wherein the business modeling includes establishing a business object table, a business function table, and a record table; and the using a database to perform business modeling on the multiple business modules includes:
    获取每个所述业务模块的业务信息,根据所述业务信息使用所述数据库对每个所述业务模型建立对象表、业务功能表以及记录表。Obtain business information of each of the business modules, and use the database to establish an object table, a business function table, and a record table for each of the business models according to the business information.
  11. 根据权利要求10所述的存储介质,其中,所述业务建模后的所述多个业务模块包括每个所述业务模型的对象表、业务功能表以及记录表;所述根据业务建模后的所述多个业务模块设置所述数据库的接口,以及根据业务建模后的所述多个业务模块生成与所述数据库关联的MVC模型-视图-控制器的流程信息,包括:The storage medium according to claim 10, wherein the plurality of business modules after the business modelling comprises an object table, a business function table and a record table of each of the business models; The multiple service modules set the interface of the database, and generate the MVC model-view-controller process information associated with the database according to the multiple service modules after the service modeling, including:
    根据所述每个所述业务模型的对象表、所述业务功能表以及所述记录表,确定所述数据库的每个接口实现业务数据对接的范围以及所述每个接口实现的功能,根据所述业务数据对接的范围以及所述每个接口实现的功能对所述数据库的每个接口进行设置;According to the object table of each of the business models, the business function table, and the record table, determine the scope of each interface of the database to achieve business data docking and the functions implemented by each interface, according to all Setting the scope of the business data docking and the functions implemented by each interface to each interface of the database;
    根据所述每个所述业务模型的对象表、所述业务功能表以及所述记录表确定所述业务模块之间的消息通信方式,根据所述消息通信方式生成与所述数据库关联的MVC模型-视图-控制器的流程信息。Determine the message communication mode between the service modules according to the object table, the service function table, and the record table of each of the service models, and generate the MVC model associated with the database according to the message communication mode -View-the process information of the controller.
  12. 根据权利要求9所述的存储介质,其中,所述获取业务需求信息,将所述业务需求信息进行业务划分,得到多个业务模块,包括:The storage medium according to claim 9, wherein said acquiring service requirement information, dividing said service requirement information into services to obtain multiple service modules, comprises:
    获取所述业务需求信息,根据所述业务需求信息将业务以从中间向上和向下的开发方式进行业务划分,得到所述多个业务模块。The business requirement information is acquired, and the business is divided into the business development mode from the middle upward and downward according to the business demand information to obtain the multiple business modules.
  13. 根据权利要求12所述的存储介质,其中,所述根据业务建模后的所述多个业务模块设置所述数据库的接口,以及根据业务建模后的所述多个业务模块生成与所述数据库关联的MVC模型-视图-控制器的流程信息,包括:The storage medium according to claim 12, wherein the interface of the database is set according to the plurality of business modules after business modeling, and the interface of the database is set according to the plurality of business modules after business modeling. The process information of the MVC model-view-controller associated with the database, including:
    根据所述从中间向上和向下的开发方式生成与所述数据库关联的 MVC模型-视图-控制器的流程信息;Generating process information of the MVC model-view-controller associated with the database according to the upward and downward development methods from the middle;
    根据所述流程信息定义所述数据库的接口;Define the interface of the database according to the process information;
    根据所述流程信息确定出软件开发的时序图;Determine a sequence diagram of software development according to the process information;
    根据所述时序图对所述数据库的接口进行业务逻辑设置。Perform business logic settings on the interface of the database according to the sequence diagram.
  14. 根据权利要求9所述的存储介质,其中,所述业务需求信息包括与抽奖活动关联的业务需求信息;所述将所述业务需求信息进行业务划分,得到多个业务模块,包括:The storage medium according to claim 9, wherein the business demand information includes business demand information associated with a lottery; and the business division of the business demand information to obtain multiple business modules includes:
    将所述与抽奖活动关联的业务需求信息进行业务划分,得到规则业务模块、抽奖业务模块、奖项业务模块以及奖品业务模块;所述规则业务模块用于确定所述抽奖活动的抽奖规则,所述抽奖业务模块用于执行所述抽奖活动,所述奖项业务模块用于确定与所述抽奖活动对应的奖项,所述奖品业务模块用于确定与所述奖项对应的奖品;The business requirement information associated with the lottery event is divided into business to obtain a rule business module, a lottery business module, an award business module, and a prize business module; the rule business module is used to determine the lottery rules of the lottery event, The lottery business module is used to execute the lottery, the award business module is used to determine the prize corresponding to the lottery activity, and the prize business module is used to determine the prize corresponding to the prize;
    所述根据业务建模后的所述多个业务模块设置所述数据库的接口,以及根据业务建模后的所述多个业务模块生成与所述数据库关联的MVC模型-视图-控制器的流程信息,确定系统根据所述MVC模型-视图-控制器的流程信息,调用所述数据库的接口,并使用所述数据库的接口对所述业务需求信息进行软件开发,包括:The setting of the interface of the database according to the plurality of business modules after business modeling, and the process of generating the MVC model-view-controller associated with the database according to the plurality of business modules after the business modeling Information, determining that the system calls the interface of the database according to the process information of the MVC model-view-controller, and uses the interface of the database to develop software for the business requirement information, including:
    使用所述数据库对所述规则业务模块、抽奖业务模块、奖项业务模块以及奖品业务模块进行业务模块建模,并确定各个业务模块的关联关系;根据业务建模后的所述各个业务模块以及所述关联关系设置所述数据库的接口,以及根据业务建模后的所述各个业务模块以及所述关联关系生成与所述数据库关联的MVC模型-视图-控制器的流程信息;确定系统根据所述MVC模型-视图-控制器的流程信息,调用所述数据库的接口,并使用所述数据库的接口执行所述与抽奖活动关联的业务需求信息的软件开发。Use the database to model the business modules of the rule business module, the lottery business module, the award business module, and the prize business module, and determine the association relationship of each business module; according to the business modules and all the business modules after the business modeling The association relationship sets the interface of the database, and the process information of the MVC model-view-controller associated with the database is generated according to the various business modules after business modeling and the association relationship; The process information of the MVC model-view-controller calls the interface of the database, and uses the interface of the database to execute the software development of the business requirement information associated with the lottery.
  15. 根据权利要求9所述的存储介质,其中,所述对所述业务需求信息进行软件开发之后,还包括:The storage medium according to claim 9, wherein, after the software development of the business requirement information, further comprising:
    执行所述软件开发之后的业务需求信息,并获取执行后的执行结果;Execute the business requirement information after the software development, and obtain the execution result after the execution;
    通过所述数据库中的多个业务模块的逻辑结构判断所述执行结果是否正确;Judging whether the execution result is correct according to the logical structure of multiple business modules in the database;
    若所述执行结果不正确,根据所述多个业务模块的逻辑结构调整所述MVC模型-视图-控制器的流程信息,以及对所述数据库的接口进行接口设置调整。If the execution result is incorrect, the process information of the MVC model-view-controller is adjusted according to the logical structure of the multiple service modules, and the interface settings of the database interface are adjusted.
  16. 一种计算机设备,其中,其包括:A computer device, which includes:
    一个或多个处理器;One or more processors;
    存储器;Memory
    一个或多个应用程序,其中所述一个或多个应用程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个应用程序配置用于执行一种基于业务需求信息的软件开发方法:One or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, and the one or more application programs are configured to execute A software development method based on business demand information:
    其中,所述基于业务需求信息的软件开发方法包括:Wherein, the software development method based on business demand information includes:
    获取业务需求信息,将所述业务需求信息进行业务划分,得到多个业务模块;Acquire business demand information, divide the business demand information into business, and obtain multiple business modules;
    使用数据库对所述多个业务模块进行业务建模;Use a database to perform business modeling on the multiple business modules;
    根据业务建模后的所述多个业务模块设置所述数据库的接口,以及根据业务建模后的所述多个业务模块生成与所述数据库关联的MVC模型-视图-控制器的流程信息;Setting the interface of the database according to the multiple business modules after business modeling, and generating MVC model-view-controller process information associated with the database according to the multiple business modules after business modeling;
    确定系统根据所述MVC模型-视图-控制器的流程信息,调用所述数据库的接口,并使用所述数据库的接口对所述业务需求信息进行软件开发。The determining system calls the interface of the database according to the process information of the MVC model-view-controller, and uses the interface of the database to develop software for the business requirement information.
  17. 根据权利要求16所述的计算机设备,其中,所述业务建模包括建立业务的对象表、业务功能表以及记录表;所述使用数据库对所述多个业务模块进行业务建模,包括:The computer device according to claim 16, wherein the business modeling includes establishing a business object table, a business function table, and a record table; and the using a database to perform business modeling on the multiple business modules includes:
    获取每个所述业务模块的业务信息,根据所述业务信息使用所述数据库对每个所述业务模型建立对象表、业务功能表以及记录表。Obtain business information of each of the business modules, and use the database to establish an object table, a business function table, and a record table for each of the business models according to the business information.
  18. 根据权利要求17所述的计算机设备,其中,所述业务建模后的所述多个业务模块包括每个所述业务模型的对象表、业务功能表以及记录表;所述根据业务建模后的所述多个业务模块设置所述数据库的接口,以及根据业务建模后的所述多个业务模块生成与所述数据库关联的MVC模型-视图-控制器的流程信息,包括:The computer device according to claim 17, wherein the plurality of business modules after the business modelling comprises an object table, a business function table and a record table of each of the business models; The multiple business modules set up the interface of the database, and generate the MVC model-view-controller process information associated with the database according to the multiple business modules after business modeling, including:
    根据所述每个所述业务模型的对象表、所述业务功能表以及所述记录表,确定所述数据库的每个接口实现业务数据对接的范围以及所述每个接口实现的功能,根据所述业务数据对接的范围以及所述每个接口实现的功能对所述数据库的每个接口进行设置;According to the object table of each of the business models, the business function table, and the record table, determine the scope of each interface of the database to achieve business data docking and the functions implemented by each interface, according to all Setting the scope of the business data docking and the functions implemented by each interface to each interface of the database;
    根据所述每个所述业务模型的对象表、所述业务功能表以及所述记录表确定所述业务模块之间的消息通信方式,根据所述消息通信方式生成与所述数据库关联的MVC模型-视图-控制器的流程信息。Determine the message communication mode between the service modules according to the object table, the service function table, and the record table of each of the service models, and generate the MVC model associated with the database according to the message communication mode -View-the process information of the controller.
  19. 根据权利要求16所述的计算机设备,其中,所述获取业务需求信息,将所述业务需求信息进行业务划分,得到多个业务模块,包括:The computer device according to claim 16, wherein said acquiring service requirement information and dividing said service requirement information into services to obtain multiple service modules includes:
    获取所述业务需求信息,根据所述业务需求信息将业务以从中间向上和向下的开发方式进行业务划分,得到所述多个业务模块。The business requirement information is acquired, and the business is divided into the business development mode from the middle upward and downward according to the business demand information to obtain the multiple business modules.
  20. 根据权利要求19所述的计算机设备,其中,所述根据业务建模后的所述多个业务模块设置所述数据库的接口,以及根据业务建模后的所述多个业务模块生成与所述数据库关联的MVC模型-视图-控制器的流程信息,包括:The computer device according to claim 19, wherein the interface of the database is set according to the plurality of business modules after business modeling, and the interface is generated according to the plurality of business modules after business modeling. The process information of the MVC model-view-controller associated with the database, including:
    根据所述从中间向上和向下的开发方式生成与所述数据库关联的MVC模型-视图-控制器的流程信息;Generating process information of the MVC model-view-controller associated with the database according to the upward and downward development methods from the middle;
    根据所述流程信息定义所述数据库的接口;Define the interface of the database according to the process information;
    根据所述流程信息确定出软件开发的时序图;Determine a sequence diagram of software development according to the process information;
    根据所述时序图对所述数据库的接口进行业务逻辑设置。Perform business logic settings on the interface of the database according to the sequence diagram.
PCT/CN2020/086156 2019-06-19 2020-04-22 Software development method and apparatus, storage medium, and computer device WO2020253361A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910533603.0A CN110389749A (en) 2019-06-19 2019-06-19 Software development methodology, device and storage medium, computer equipment
CN201910533603.0 2019-06-19

Publications (1)

Publication Number Publication Date
WO2020253361A1 true WO2020253361A1 (en) 2020-12-24

Family

ID=68285571

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/086156 WO2020253361A1 (en) 2019-06-19 2020-04-22 Software development method and apparatus, storage medium, and computer device

Country Status (2)

Country Link
CN (1) CN110389749A (en)
WO (1) WO2020253361A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110389749A (en) * 2019-06-19 2019-10-29 深圳壹账通智能科技有限公司 Software development methodology, device and storage medium, computer equipment
CN111858324B (en) * 2020-07-13 2023-08-25 中国工商银行股份有限公司 Automatic generation method and device for test cases
CN117270825A (en) * 2023-10-25 2023-12-22 苏州工业职业技术学院 Flexible software development method and suite for industrial complex business requirements

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8429597B2 (en) * 2008-11-21 2013-04-23 Sap Ag Software for integrated modeling of user interfaces with applications
CN103645908A (en) * 2013-12-29 2014-03-19 中国科学院软件研究所 Full life circle development achievement system of intemetware
CN105761007A (en) * 2016-02-23 2016-07-13 湖南新邦软件开发有限责任公司 Information management software design aiding method and information management software design aiding system
CN106126204A (en) * 2016-06-15 2016-11-16 中邮建技术有限公司 A kind of iterative regarded as output controlling method of information system based on modularized design
CN106648611A (en) * 2016-10-26 2017-05-10 合肥润客软件科技有限公司 Model driving-based computer interlocking software development method
CN108255728A (en) * 2018-01-18 2018-07-06 中国电子产品可靠性与环境试验研究所((工业和信息化部电子第五研究所)(中国赛宝实验室)) The recognition methods of the failure mode of software and device
CN110389749A (en) * 2019-06-19 2019-10-29 深圳壹账通智能科技有限公司 Software development methodology, device and storage medium, computer equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017077544A1 (en) * 2015-11-05 2017-05-11 Vishal Shah G-mvc architecture by providing view rules to handle the action events of controller and states of model
CN106790067B (en) * 2016-12-21 2020-05-26 浙江省公众信息产业有限公司 MVC layering-based service processing method, device and system
CN106874388B (en) * 2017-01-11 2020-08-11 中科院微电子研究所昆山分所 Relational database-based heterogeneous system data cascade operation automatic construction method
CN109739502A (en) * 2018-12-18 2019-05-10 南京宽慧无线网络通信有限公司 One kind being based on MVC framework mode service provisioning platform system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8429597B2 (en) * 2008-11-21 2013-04-23 Sap Ag Software for integrated modeling of user interfaces with applications
CN103645908A (en) * 2013-12-29 2014-03-19 中国科学院软件研究所 Full life circle development achievement system of intemetware
CN105761007A (en) * 2016-02-23 2016-07-13 湖南新邦软件开发有限责任公司 Information management software design aiding method and information management software design aiding system
CN106126204A (en) * 2016-06-15 2016-11-16 中邮建技术有限公司 A kind of iterative regarded as output controlling method of information system based on modularized design
CN106648611A (en) * 2016-10-26 2017-05-10 合肥润客软件科技有限公司 Model driving-based computer interlocking software development method
CN108255728A (en) * 2018-01-18 2018-07-06 中国电子产品可靠性与环境试验研究所((工业和信息化部电子第五研究所)(中国赛宝实验室)) The recognition methods of the failure mode of software and device
CN110389749A (en) * 2019-06-19 2019-10-29 深圳壹账通智能科技有限公司 Software development methodology, device and storage medium, computer equipment

Also Published As

Publication number Publication date
CN110389749A (en) 2019-10-29

Similar Documents

Publication Publication Date Title
CN108021363B (en) Visual game logic editing method and system
US10740072B2 (en) Layout management in a rapid application development tool
CN106484394B (en) A kind of fast software development system with double engines
WO2020253361A1 (en) Software development method and apparatus, storage medium, and computer device
US7590943B2 (en) Systems and methods for creating and managing graphical user interface lists
US9465822B2 (en) Data model generation based on user interface specification
US8671387B2 (en) Compilation and injection of scripts in a rapid application development
US20230367555A1 (en) Application development involving instant protoyping
US7984115B2 (en) Extensible application platform
US9940221B2 (en) System and method for testing data representation for different mobile devices
JP2020521214A (en) Form customization method and device
US20120291011A1 (en) User Interfaces to Assist in Creating Application Scripts
US6772031B1 (en) Method of, system for, and computer program product for providing a job monitor
US10380526B2 (en) System and method for providing a process player for use with a business process design environment
US9098311B2 (en) User interface element for data rating and validation
Nugroho et al. Comparative analysis of software development methods between Parallel, V-Shaped and Iterative
CA2211334A1 (en) Synchronous execution in a medical imaging system
CN108388623B (en) ER relationship generation method and device, computer equipment and storage medium
CN107851089A (en) Distortion document
EP1799317A2 (en) Computer games localisation
CN112631691A (en) Game interface dynamic effect editing method, device, processing equipment and medium
CN115098097A (en) Page construction and management method and system and front-end display method
JPH08305576A (en) Expert system and method for execution of dialog with computer user
US20060047723A1 (en) Custom database system and method of building the same
US9063761B2 (en) Apparatus and method for multi-aspect simulation

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20826090

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20826090

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 310322)

122 Ep: pct application non-entry in european phase

Ref document number: 20826090

Country of ref document: EP

Kind code of ref document: A1