当前位置:网站首页>"Developer theory" multi system integrated development - rapid nailing of enterprise owned systems

"Developer theory" multi system integrated development - rapid nailing of enterprise owned systems

2022-06-25 21:10:00 Nailing developer community

“ stay 2020 At the beginning of the year, the epidemic broke out , It's time for Hu Tian to fly snow again , Nails, like pear blossoms brought by the spring breeze in one night, bring us hope and strength , From the initial approval 、 To do 、 Use of basic functions such as schedule , To the later internal integrated development , Office efficiency is improved step by step , The digital concept is gradually integrated into our work .”

——「 developer 」 say

01 First acquaintance nail —— All of a sudden, spring breeze comes

      20 At the beginning of the year, Chongqing Pinsheng Technology Co., Ltd. officially gave up the OA product , Enable pinning . Although it is not spring , But it was like a spring breeze , Just after the bitter winter surrounded by the epidemic , It brings warmth to the company . At the time , Although some people are not used to switching from old products , But from the feedback of the people who have used it , The effect is still very ideal . Intelligent approval 、 To do 、 Calendar 、 Video conference and other functions , In the real realization of paperless office , Also obviously feel the improvement of work efficiency , And data visualization can be analyzed , More convenient for enterprise management .

 02 First experience of application development —— Hold your mind , Hit the pain point

“ After starting to use nails , As a developer , I also started to solve the problem of integrated development of nail business between different systems . With the expansion of the company's business , Archiving of contact records we are using Yunshu CRM System , The necessary business system of the supply chain adopts Kingdee ERP, So the first problem I need to solve is Yunshu 、 Kingdee ERP Integrated development with nailing system .”

——「 developer 」 say

( One ) Yunshu BPM Integration with nailing system

  • Basic integration —— Realize nail free login

The basic integration can embed the cloud hub as a small program into the workbench to achieve one click login free , And the process message can be sent to nail .

Key capabilities of nails used :

  • Secondary development integration —— It is suggested that the data synchronization notification and early warning mechanism

Customized pages and functions on the cloud hub need to be integrated into nailing through secondary development .

Solution scenario :

During data synchronization , Yunshu and Kingdee ERP Two way synchronized roster 、 Express information after these data , If the synchronization fails, you need to push a message to the nail to notify the maintenance personnel .

Method : First of all, you can use postman Debug the communication authorization interface , But at first, the nail interface was configured IP White list restrictions , It was not found during the development process, so it has not been adjusted . Later, the intermediate server is used as the proxy , To facilitate debugging . Then according to the authorized token Call the message interface that sends the work notification , The message format has text 、 card 、markdown And so on , Very rich , Can intuitively express the content .

Key capabilities of nails used :

( Two ) Kingdee ERP Integration with nails

  • Basic integration — Realize nailing and Kingdee ERP System account interworking and login free

Solution scenario :

Kingdee ERP The system realizes one click login free on the nailing workbench , Log in to the internal system of the enterprise through the pin account .

Method :

Nailing can only hang fixed jump on self built applications URL Address , Therefore, it is inappropriate to directly put Kingdee's single sign on authorization address . After carefully reviewing the nail documentation, I found that the nail H5 Front end of micro application api The details of each user can be dynamically obtained at the client , Think about using a jump page to support this function .

  • Create a new one in the background H5 application , Get into “ Set up — Development management — App home address ” Put in a custom open jump page address accessible from the public network ;

  • Introduce... In the jump page H5 Micro applications jsapi, Add... To the page dd.ready When loading, you can use jsapi Interface (runtime.permission.requestAuthCode) Get the authorization code code;

  • Then call the server interface Obtain user information through registration free code

  • Then, the user name and the three-party authorization parameter information provided by Kingdee are used to obtain Kingdee ERP The login TOKEN;

  • The Kingdee system can realize one click login free on the nailing workbench

The nail key used can :

03 The change brought about by nailing —— Thousands of trees and thousands of pear blossom

Although the initial process is painful , But the rainbow after the rain is beautiful . up to now , The integration of Pinsheng and nailing mainly focuses on the integration of three-party systems , Including Yunshu 、 Kingdee 、 Cloud box 、 Staples and other systems , Multiple application systems are placed on the nailing workbench , Implements the collection of entries , And the account number is opened to realize the login free on the nailing workbench .

原网站

版权声明
本文为[Nailing developer community]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202181333440527.html