CN106648680A - Information template generating method based on dynamic variable - Google Patents

Information template generating method based on dynamic variable Download PDF

Info

Publication number
CN106648680A
CN106648680A CN201611243119.7A CN201611243119A CN106648680A CN 106648680 A CN106648680 A CN 106648680A CN 201611243119 A CN201611243119 A CN 201611243119A CN 106648680 A CN106648680 A CN 106648680A
Authority
CN
China
Prior art keywords
information
template
variable
model
name
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201611243119.7A
Other languages
Chinese (zh)
Inventor
汪秀兵
胡金叶
陈家制
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jiangxi Borui Tongyun Technology Co Ltd
Original Assignee
Jiangxi Borui Tongyun Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jiangxi Borui Tongyun Technology Co Ltd filed Critical Jiangxi Borui Tongyun Technology Co Ltd
Priority to CN201611243119.7A priority Critical patent/CN106648680A/en
Publication of CN106648680A publication Critical patent/CN106648680A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0633Lists, e.g. purchase orders, compilation or processing
    • G06Q30/0635Processing of requisition or of purchase orders

Abstract

The embodiment of the invention relates to an information template generating method based on a dynamic variable. The information template generating method includes the steps that a variable field of a business recording model is obtained from a business library, and a variable name of the variable in an information template is determined according to a field name of the variable field; descriptive information corresponding to the field name is obtained, and a variable is generated according to the variable name and the descriptive information and stored in a variable library; an operational order of a new template model is received, and an template ID, a template name and the template content are obtained according to the operational order; the template content comprises fixation information and the variable; the template model is generated according o the template ID, the template name and the template content; an item ID and selection information of the template model are received, the selected template model is determined according to the selection information of the template model, and the information template is generated according to the selected template model and the item ID.

Description

Information model generation method based on dynamic variable
Technical field
The present invention relates to communication technical field, more particularly to a kind of information model generation method based on dynamic variable.
Background technology
With the mobile terminals such as the development of mobile communication technology, smart mobile phone have become in people's daily life can not or Scarce electronic product.
Likewise, the customer service mode of ecommerce is updated also with the popularization and application of smart mobile phone.In order to More preferable customer experience is realized, E-commerce businessman provides the message based on e-commerce platform and pushes mostly, to point out to use Family merchandise news, sequence information, logistics information etc..But, because the information sending object that E-commerce businessman is often related to It is large number of, it is unacceptable that one by one editor sends spent time and efforts;And if using the side of uniform template Formula, its content is stereotyped, it is clear that can not meet use demand.
Therefore means commonly used in the trade are to insert the process of variable wherein in the content design of concrete template.But Currently used mode has limitation, and when the factors such as extensibility, reusability are considered, needs carry out the design of elasticity, The thinking found namely is needed to carry out dynamic process these variables.
The content of the invention
The purpose of the present invention is the defect for prior art, there is provided a kind of information model generation side based on dynamic variable Method, by defined variable and non-variables, is called when template model is set up to variable, and is generating user oriented information Template model is called again during template, and different templates are generated according to different project information so that each variable Can be used for multiple information models, each information model can simultaneously call multiple variables again, thus, it is possible to flexible, automatic reality The generation of existing information model.
In view of this, a kind of information model generation method based on dynamic variable is embodiments provided, including:
The variable field of business record model is obtained from business library, is determined according to the field name of the variable field and is believed The name variable of variable in breath template;
The description information corresponding with the name variable is obtained, and one is generated according to the name variable and description information Individual variable, in being stored in base variable;
The operational order of newly-built template model is received, template ID, template name and template are obtained according to the operational order Content;The template content includes fix information and the variable;
Template model is generated according to template ID, template name and template content;
Receive item id and template model selects information, select information to determine selected template according to the template model Model, and described information template is generated according to selected template model and the item id.
Preferably, methods described also includes:
Receive information generates instruction;
Determine that described information generates the corresponding a plurality of business record of instruction, and per the item attribute of business record described in bar Information;The item attribute information includes the information of item id;
The information model of business record according to the item id determines correspondence per bar;
Obtain the parameter value of the variable that every business record includes;
Variable in information model of the parameter value to the business record carries out assignment, obtains the business note The information to be sent of record.
It is further preferred that methods described also includes:
The information of data transfer account is extracted in the parameter value of the variable that every business record includes;
According to the information of the data transfer account, the information to be sent is sent to into corresponding receiving terminal.
Preferably, the information of the data transfer account includes phone number, instant messaging account number or mail ground Location information.
Preferably, the name variable includes O/No., the order amount of money, user name, StoreFront title or data transfer account One or more in number.
Information model generation method based on dynamic variable provided in an embodiment of the present invention, by defined variable and non-change Amount, is called when template model is set up to variable, and when user oriented information model is generated to template model again It is called, and different templates is generated according to different project information so that each variable can be used for multiple information models, Each information model can simultaneously call multiple variables again, thus, it is possible to generation that is flexible, being automatically obtained information model, strengthen Supporting dynamics and flexibility of the system to business.
Description of the drawings
Fig. 1 is the flow chart of the information model generation method based on dynamic variable provided in an embodiment of the present invention;
Fig. 2 is the schematic diagram of business record provided in an embodiment of the present invention;
Fig. 3 is the flow chart of the generation of information to be sent provided in an embodiment of the present invention and sending method.
Specific embodiment
Below by drawings and Examples, technical scheme is described in further detail.
Information model generation method based on dynamic variable provided in an embodiment of the present invention can apply in various platforms Or cross-platform information sends service.Only illustrate as a example by the application of e-commerce field below, but do not limited with this The present embodiment processed provides the range of application of method.
Fig. 1 is the information model generation method flow chart based on dynamic variable provided in an embodiment of the present invention, such as Fig. 1 institutes Show, comprise the steps:
Step 110, obtains the variable field of business record model from business library, true according to the field name of variable field Determine the name variable of variable in information model;
Specifically, a schematic diagram based on the business record of business record model has been disengaged in fig. 2;Such as institute in figure Show, the business record model being stored in business library is made up of variable field, O/No., the order amount of money in Fig. 2, user Name, StoreFront title, the time that places an order, employee name and deadline are all variable field.
As needed, which part can be selected or all as the variable in information model.Such as in this example can be with O/No., the order amount of money, user name and the StoreFront name marked from black box in figure is referred to as variable.
Additionally, variable field can also include data transfer account.
The name of variable field is referred to as into the name variable of variable in information model.
Step 120, obtains the description information corresponding with name variable, and generates one according to name variable and description information Individual variable, in being stored in base variable;
Specifically, the description informations such as corresponding application scenarios are added to name variable, and using its entirety as a variable In being entered into base variable.
By taking O/No. as an example:
Name variable:O/No.
Variable Key:orderCode
Description information:Delivery, picking, use when returning goods, exchanging goods
By taking StoreFront title as an example:
Name variable:StoreFront title
Variable Key:storeName
Description information:Delivery, picking, use when returning goods, exchanging goods
Step 130, receives the operational order of newly-built template model, according to operational order obtain template ID, template name and Template content;
Specifically, template content includes fix information and variable.Template ID, template name and fix information can be by managing Member user is input into by administrator's terminal.
Further, depending on fix information is typically according to business demand.
Step 140, according to template ID, template name and template content template model is generated;
Specifically, the variable that template content includes is chosen from base variable, and sets up call relation, when template mould When type is called, while calling the variable in base variable by template model.With reference to template ID, template name that front step is obtained Template model is generated with fix information.
The example of a specific template model is given below:
Template ID:1
Template name:Delivery is reminded
Template content:Your order ({ orderCode }) is shipped, please arrives { storeName } picking in { Date }
Wherein, orderCode, Date, storeName are the variables stored in base variable, can be according to variable name With the other information for obtaining the variable, such as using scene description information.
Step 150, receives item id and template model selects information, selects information to determine according to template model selected Template model, and information model is generated according to selected template model and item id.
Specifically, information model is the information model that user oriented sends information, and by calling template model letter is built Breath template.
Information model is related to the project, and the item id that information model includes is input into by administrator's setting Can have under each item id it is multiple correlation template models, be consequently formed for disparity items different business demand it is multiple not Same information model.
Such as:Affiliated project:Store platform
Item id:100
Template ID:1
Template name:Delivery is reminded
Template content:Distinguished { userName } client, your order ({ orderCode }) is shipped, please in { Date } To { storeName } picking.
Thus the foundation of information model is completed.
When system needs to generate the information of user oriented transmission, following steps can be performed, specifically can be as shown in Figure 2.
Step 210, receive information generates instruction;
In actual applications, information generates instruction and can automatically generate according to imposing a condition, such as when some are default During action triggers, or during arrival setting time etc..
Step 220, determines that information generates the corresponding a plurality of business record of instruction, and the item attribute of every business record Information;
Specifically, information generates instruction corresponding business record, and it is also likely to be a plurality of that can be one.Business record Item attribute information includes the information of item id.
Step 230, according to item id the information model of every business record of correspondence is determined;
Specifically, corresponding information model is obtained according to item id, determines what is called again according to the information model for determining Template model such that it is able to determine the required variable for calling being related in template model.
Step 240, obtains the parameter value of the variable that every business record includes;
Step 250, extracts the information of data transfer account in the parameter value of the variable that every business record includes;
Specifically, the information of data transfer account can include phone number, instant messaging account number or mail ground Location information.Therefore the transmission that data transfer account information realizes information can be based on.
Step 260, the variable in information model of the parameter value to business record carries out assignment, obtains business record Information to be sent.
Specifically, assignment is carried out to variable using the parameter value of the variable determined according to item id, template model, so as to To the information corresponding with the business record, information referred to as to be sent.
Step 270, according to the information of data transfer account, by information to be sent corresponding receiving terminal is sent to.
Information model generation method based on dynamic variable provided in an embodiment of the present invention, by defined variable and non-change Amount, is called when template model is set up to variable, and when user oriented information model is generated to template model again It is called, and different templates is generated according to different project information so that each variable can be used for multiple information models, Each information model can simultaneously call multiple variables again, thus, it is possible to generation that is flexible, being automatically obtained information model, strengthen Supporting dynamics and flexibility of the system to business.
Professional should further appreciate that, with reference to each example of the embodiments described herein description Unit and algorithm steps, can with electronic hardware, computer software or the two be implemented in combination in, it is hard in order to clearly demonstrate The interchangeability of part and software, according to function has generally described the composition and step of each example in the above description. These functions are performed with hardware or software mode actually, depending on the application-specific and design constraint of technical scheme. Professional and technical personnel can use different methods to realize described function to each specific application, but this realization It is not considered that beyond the scope of this invention.
Can be with hardware, computing device with reference to the method for the embodiments described herein description or the step of algorithm Software module, or the combination of the two is implementing.Software module can be placed in random access memory (RAM), internal memory, read-only storage (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technical field In any other form of storage medium well known to interior.
Specific embodiment above, has been carried out further in detail to the purpose of the present invention, technical scheme and beneficial effect Illustrate, should be understood that the specific embodiment that these are only the present invention, the protection model being not intended to limit the present invention Enclose, all any modification, equivalent substitution and improvements within the spirit and principles in the present invention, done etc. should be included in the present invention Protection domain within.

Claims (5)

1. a kind of information model generation method based on dynamic variable, it is characterised in that methods described includes:
The variable field of business record model is obtained from business library, information mould is determined according to the field name of the variable field The name variable of variable in plate;
The description information corresponding with the name variable is obtained, and a change is generated according to the name variable and description information Amount, in being stored in base variable;
The operational order of newly-built template model is received, template ID, template name and template content are obtained according to the operational order; The template content includes fix information and the variable;
Template model is generated according to template ID, template name and template content;
Receive item id and template model selects information, select information to determine selected template mould according to the template model Type, and described information template is generated according to selected template model and the item id.
2. information model generation method according to claim 1, it is characterised in that methods described also includes:
Receive information generates instruction;
Determine that described information generates the corresponding a plurality of business record of instruction, and the item attribute letter per business record described in bar Breath;The item attribute information includes the information of item id;
The information model of business record according to the item id determines correspondence per bar;
Obtain the parameter value of the variable that every business record includes;
Variable in information model of the parameter value to the business record carries out assignment, obtains the business record Information to be sent.
3. information model generation method according to claim 2, it is characterised in that methods described also includes:
The information of data transfer account is extracted in the parameter value of the variable that every business record includes;
According to the information of the data transfer account, the information to be sent is sent to into corresponding receiving terminal.
4. information model generation method according to claim 3, it is characterised in that the packet of the data transfer account Include phone number, instant messaging account number or mail address information.
5. information model generation method according to claim 1, it is characterised in that the name variable includes that order is compiled Number, one or more in the order amount of money, user name, StoreFront title or data transfer account.
CN201611243119.7A 2016-12-29 2016-12-29 Information template generating method based on dynamic variable Pending CN106648680A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611243119.7A CN106648680A (en) 2016-12-29 2016-12-29 Information template generating method based on dynamic variable

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611243119.7A CN106648680A (en) 2016-12-29 2016-12-29 Information template generating method based on dynamic variable

Publications (1)

Publication Number Publication Date
CN106648680A true CN106648680A (en) 2017-05-10

Family

ID=58835539

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611243119.7A Pending CN106648680A (en) 2016-12-29 2016-12-29 Information template generating method based on dynamic variable

Country Status (1)

Country Link
CN (1) CN106648680A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113535163A (en) * 2020-04-22 2021-10-22 北京沃东天骏信息技术有限公司 Method and device for generating message

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101308490A (en) * 2008-04-28 2008-11-19 北京航空航天大学 Dynamic report generation method and platform
CN104378341A (en) * 2013-12-25 2015-02-25 腾讯科技(深圳)有限公司 Template obtaining method, template providing method, device and system
CN104378282A (en) * 2013-12-25 2015-02-25 腾讯科技(深圳)有限公司 Information sending method and information forwarding method, device and system
CN104615751A (en) * 2015-02-12 2015-05-13 中国农业银行股份有限公司 Report file generation method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101308490A (en) * 2008-04-28 2008-11-19 北京航空航天大学 Dynamic report generation method and platform
CN104378341A (en) * 2013-12-25 2015-02-25 腾讯科技(深圳)有限公司 Template obtaining method, template providing method, device and system
CN104378282A (en) * 2013-12-25 2015-02-25 腾讯科技(深圳)有限公司 Information sending method and information forwarding method, device and system
CN104615751A (en) * 2015-02-12 2015-05-13 中国农业银行股份有限公司 Report file generation method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113535163A (en) * 2020-04-22 2021-10-22 北京沃东天骏信息技术有限公司 Method and device for generating message

Similar Documents

Publication Publication Date Title
CN107395697A (en) Push Channel Selection, information push method, device and equipment, computer-readable recording medium
CN107404481B (en) User information recognition methods and device
CN106598931A (en) Method for generating informative template
CN109327627A (en) Telephone number recognition methods, device and storage medium based on block chain
CN108900924A (en) The method and apparatus of commending friends in direct broadcasting room
CN108255915B (en) File management method and device and machine-readable storage medium
CN108509806A (en) A kind of big data precision marketing system and equipment with secret protection
CN106658447A (en) Data processing method based on short message service
CN104811458A (en) Method and device for displaying information
CN107909375A (en) False proof and retrospect two-dimensional code generation method, terminal and medium
CN111028009A (en) Method and device for processing retrievable service entity
CN107454138A (en) The implementation method and device that business degrades
CN107590682B (en) Advertisement putting method, server, hotspot device and system
CN110188276B (en) Data transmission device, method, electronic device, and computer-readable storage medium
CN114244896A (en) Message pushing method and device, electronic equipment and storage medium
CN106682916A (en) Generation method of returning service information
CN109754285A (en) Information processing method, device, electronic equipment and computer readable storage medium
CN109672694A (en) A kind of method, apparatus and associated component of information collection
CN106648680A (en) Information template generating method based on dynamic variable
CN105991744A (en) Method and equipment used for synchronizing user application data
CN107770165A (en) The method and apparatus that a kind of analog machine sends request
CN106658446A (en) Statistical analysis method for short message
CN106792589A (en) Presentation of information updating menu method and apparatus
CN110209582A (en) The statistical method and device of code coverage, electronic equipment, storage medium
CN110519318A (en) Information-pushing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20170510

RJ01 Rejection of invention patent application after publication