{"id":1481,"date":"2019-07-01T09:17:45","date_gmt":"2019-07-01T01:17:45","guid":{"rendered":"http:\/\/www.hefeiyu.com\/?p=1481"},"modified":"2019-07-01T09:17:45","modified_gmt":"2019-07-01T01:17:45","slug":"tiptop%e9%9b%86%e6%88%90%e4%bd%9c%e4%b8%9a%e8%b0%83%e6%95%b4%e6%96%b9%e6%b3%95new","status":"publish","type":"post","link":"https:\/\/www.hefeiyu.com\/?p=1481","title":{"rendered":"TIPTOP\u96c6\u6210\u4f5c\u4e1a\u8c03\u6574\u65b9\u6cd5(new)"},"content":{"rendered":"<p><strong>TIPTOP\u96c6\u6210\u4f5c\u4e1a\u8c03\u6574\u65b9\u6cd5<\/strong><\/p>\n<p><strong>\u674e\u950b<\/strong><\/p>\n<p><strong>\u6982\u8ff0<\/strong><\/p>\n<p>TIPTOP\u548c\u5916\u90e8\u7cfb\u7edf\u4e4b\u95f4\u91c7\u7528Web Service\u673a\u5236\uff0c\u57fa\u4e8e\u4f01\u4e1a\u5bf9\u8c61\u8fdb\u884c\u6570\u636e\u4ea4\u6362\uff0c\u4f01\u4e1a\u5bf9\u8c61\u5927\u81f4\u4e0a\u53ef\u4ee5\u548cTIPTOP\u4e2d\u7684\u4f5c\u4e1a\u5efa\u7acb\u5bf9\u5e94\u5173\u7cfb\u3002\u4e8e\u7a0b\u5e8f\u5458\u800c\u8a00\uff0c\u7cfb\u7edf\u901a\u8fc7\u63d0\u4f9b\u4e24\u4e2aAPI\u51fd\u6570\u6765\u5b9e\u73b0\u548c\u5916\u90e8\u7cfb\u7edf\u7684\u6570\u636e\u4ea4\u6362\u3002<\/p>\n<p><strong>API\u4ecb\u7ecd<\/strong><\/p>\n<p><strong>FUNCTION<\/strong> aws_exportData(p_sysid,p_objectid,p_fieldlist,p_operate,p_cond)<\/p>\n<p><strong>RETURNING<\/strong> l_errCode,l_errDesc<\/p>\n<p><strong>\u529f\u80fd\u8bf4\u660e<\/strong>\uff1a\u628aTIPTOP\u4e2d\u7684\u6570\u636e\u5199\u5165\u76ee\u6807\u7cfb\u7edf<\/p>\n<p><strong>\u53c2\u6570\u8bf4\u660e<\/strong>\uff1ap_sysid : \u76ee\u6807\u7cfb\u7edf\u522b\uff0c\u5982CRM\u6216HR<\/p>\n<p>p_objectid : \u4f01\u4e1a\u5bf9\u8c61id\uff0c\u4e0d\u540c\u4f5c\u4e1a\u4e2d\u7684\u8bbe\u5b9a\u8bf7\u53c2\u8003\u4e0b\u9762\u8868\u683c\u8bf4\u660e<\/p>\n<p>p_fieldlist : \u8981\u4f20\u9012\u7684\u5b57\u6bb5\u5217\u8868\uff0c\u8f93\u5165\u7a7a\u5b57\u7b26\u4e32\u8868\u793a\u4f20\u9012\u6240\u6709\u680f\u4f4d<\/p>\n<p>p_operate : \u4f20\u9012\u65b9\u5f0f\uff0cINSERT\u8868\u793a\u65b0\u589e\uff0cDELETE\u8868\u793a\u5220\u9664\uff0cADJUST\u8868\u793a\u4fee\u6539<\/p>\n<p>\u5f53\u76ee\u6807\u7cfb\u7edf\u4e2d\u5b58\u5728\u76f8\u540c\u4e3b\u952e\u7684\u8bb0\u5f55\u65f6\uff0cINSERT\u64cd\u4f5c\u4f1a\u5931\u8d25\u3002ADJUST\u64cd\u4f5c\u5728\u76ee\u6807\u7cfb\u7edf\u4e2d\u4e0d\u5b58\u5219\u76f8\u540c\u4e3b\u952e\u65f6\u6267\u884c\u65b0\u589e\u64cd\u4f5c\uff0c\u5f53\u5b58\u5728\u76f8\u540c\u4e3b\u952e\u65f6\u6267\u884c\u4fee\u6539\u64cd\u4f5c\u3002\u4e00\u822c\u6765\u8bf4\u63a8\u8350\u4f7f\u7528ADJUST\u65b9\u5f0f<\/p>\n<p>p_cond : \u8981\u66f4\u65b0\u6570\u636e\u7684\u6761\u4ef6\uff0c\u4e3a\u4e00\u4e2aSQL\u6761\u4ef6\u5b50\u53e5<\/p>\n<p><strong>\u8fd4 \u56de \u503c<\/strong>\uff1al_errCode : \u9519\u8bef\u7801\uff0c\u5982\u679c\u64cd\u4f5c\u6210\u529f\u5219\u8fd4\u56de\u7a7a\u503c<\/p>\n<p>l_errDesc : \u9519\u8bef\u63d0\u793a\u4fe1\u606f<\/p>\n<p><strong>FUNCTION<\/strong> aws_importData(p_sysid,p_objectid,p_fieldlist,p_cond)<\/p>\n<p><strong>RETURNING<\/strong> l_errCode,l_errDesc<\/p>\n<p><strong>\u529f\u80fd\u8bf4\u660e<\/strong>\uff1a\u4ece\u76ee\u6807\u7cfb\u7edf\u5bfc\u5165\u6570\u636e<\/p>\n<p><strong>\u53c2\u6570\u8bf4\u660e<\/strong>\uff1ap_sysid : \u76ee\u6807\u7cfb\u7edf\u522b\uff0c\u5982CRM\u6216HR<\/p>\n<p>p_objectid : \u4f01\u4e1a\u5bf9\u8c61id\uff0c\u4e0d\u540c\u4f5c\u4e1a\u4e2d\u7684\u8bbe\u5b9a\u8bf7\u53c2\u8003\u4e0b\u9762\u8868\u683c\u8bf4\u660e<\/p>\n<p>p_fieldlist : \u8981\u5bfc\u5165\u7684\u5b57\u6bb5\u5217\u8868\uff0c\u8f93\u5165\u7a7a\u5b57\u7b26\u4e32\u8868\u793a\u5bfc\u5165\u6240\u6709\u680f\u4f4d<\/p>\n<p>p_cond : \u8981\u5bfc\u5165\u6570\u636e\u7684\u6761\u4ef6\uff0c\u5176\u683c\u5f0f\u5982\u4e0b\uff1a<\/p>\n<p>((\u680f\u4f4d,\u64cd\u4f5c\u7b26,\u503c)AND\/OR(\u680f\u4f4d,\u64cd\u4f5c\u7b26,\u503c))<\/p>\n<p><strong>\u8fd4 \u56de \u503c<\/strong>\uff1al_errCode : \u9519\u8bef\u7801\uff0c\u5982\u679c\u64cd\u4f5c\u6210\u529f\u5219\u8fd4\u56de\u7a7a\u503c<\/p>\n<p>l_errDesc : \u9519\u8bef\u63d0\u793a\u4fe1\u606f<\/p>\n<p><strong>*\u672c\u6b21\u4e3b\u8981\u4f7f\u7528\u5230\u7684\u662faws_exportData\u51fd\u6570<\/strong><\/p>\n<p>\u4ee5\u4e0b\u662f\u90e8\u5206\u4f01\u4e1a\u5bf9\u8c61\u548c\u7ef4\u62a4\u4f5c\u4e1a\u4e4b\u95f4\u7684\u5bf9\u5e94\u5173\u7cfb\uff1a<\/p>\n<table>\n<tbody>\n<tr>\n<td><strong>\u4f01\u4e1a\u5bf9\u8c61<\/strong><\/td>\n<td><strong>\u8bf4\u660e<\/strong><\/td>\n<td><strong>\u4e3b\u6570\u636e\u8868<\/strong><\/td>\n<td><strong>\u4f5c\u4e1a\u4ee3\u53f7<\/strong><\/td>\n<td><strong>\u4f5c\u4e1a\u540d\u79f0<\/strong><\/td>\n<\/tr>\n<tr>\n<td>MEMBER<\/td>\n<td>\u4f1a\u5458<\/td>\n<td>tc_mbi_file<\/td>\n<td>ctmi350<\/td>\n<td>\u4f1a\u5458\u57fa\u672c\u8d44\u6599\u7ef4\u62a4<\/td>\n<\/tr>\n<tr>\n<td>BUSINESS<\/td>\n<td>\u7b7e\u7ea6\u5546\u6237<\/td>\n<td>tc_ten_file<\/td>\n<td>ctmi245<\/td>\n<td>\u5546\u6237\u57fa\u672c\u8d44\u6599\u7ef4\u62a4<\/td>\n<\/tr>\n<tr>\n<td>DEPARTMENT<\/td>\n<td>\u90e8\u95e8<\/td>\n<td>gem_file<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>EMPLOYEE<\/td>\n<td>\u5458\u5de5<\/td>\n<td>gen_file<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>BRAND<\/td>\n<td>\u54c1\u724c<\/td>\n<td>tqa_file<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>BIGSORT<\/td>\n<td>\u7ecf\u8425\u5927\u7c7b<\/td>\n<td>tc_cat_file<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>MIDDLESORT<\/td>\n<td>\u7ecf\u8425\u4e2d\u7c7b<\/td>\n<td>tc_cav_file<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>SMALLSORT<\/td>\n<td>\u7ecf\u8425\u5c0f\u7c7b<\/td>\n<td>tc_cau_file<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>SMALLRES<\/td>\n<td>\u5546\u54c1\u5c0f\u7c7b<\/td>\n<td>tc_cxc_file<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>COUNTRY<\/td>\n<td>\u56fd\u5bb6<\/td>\n<td>tc_geb_file<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>\u7a0b\u5e8f\u8c03\u6574<\/strong><\/p>\n<p>\u5bf9\u4e8e\u8d44\u6599\u7ef4\u62a4\u4f5c\u4e1a\uff0c\u6211\u4eec\u91c7\u7528\u65b0\u589e\u7684ACTION\u6309\u94ae\u7684\u65b9\u5f0f\u6765\u5b9e\u73b0\u6570\u636e\u5411\u76ee\u6807\u7cfb\u7edf\u7684\u540c\u6b65\uff08\u5305\u542b\u4e86\u65b0\u589e\u548c\u4fee\u6539\u4e24\u79cd\u64cd\u4f5c\uff09\uff0c\u56fe\u793a\u5982\u4e0b\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"619\" class=\"wp-image-1482\" src=\"http:\/\/www.hefeiyu.com\/wp-content\/uploads\/2019\/07\/word-image-16.png\" srcset=\"https:\/\/www.hefeiyu.com\/wp-content\/uploads\/2019\/07\/word-image-16.png 800w, https:\/\/www.hefeiyu.com\/wp-content\/uploads\/2019\/07\/word-image-16-768x594.png 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/p>\n<p>\u4e0b\u9762\u4ee5\u4f1a\u5458\u57fa\u672c\u8d44\u6599\u7ef4\u62a4\u4f5c\u4e1a(ctmi350)\u4e3a\u4f8b\u6765\u8bf4\u660e\u5bf9TIPTOP\u7a0b\u5e8f\u7684\u8c03\u6574\uff1a<\/p>\n<p><strong>\u4fee\u6539\u4f4d\u7f6e1\uff1a\u4e3b\u83dc\u5355\u51fd\u6570i350_menu()<\/strong><\/p>\n<p>&#8230;&#8230;<\/p>\n<p>WHEN &#8220;invalid&#8221;<\/p>\n<p>IF cl_chk_act_auth() THEN<\/p>\n<p>CALL i350_x()<\/p>\n<p>END IF<\/p>\n<p><strong> WHEN &#8220;exportdata&#8221;<\/strong><\/p>\n<p><strong># IF cl_chk_act_auth() THEN<\/strong><\/p>\n<p><strong> CALL i350_exportdata()<\/strong><\/p>\n<p><strong># END IF <\/strong><\/p>\n<p>WHEN &#8220;reproduce&#8221;<\/p>\n<p>IF cl_chk_act_auth() THEN<\/p>\n<p>CALL i350_copy()<\/p>\n<p>END IF<\/p>\n<p>&#8230;&#8230;<\/p>\n<p><em>\u8bf4\u660e\uff1a\u589e\u52a0\u4e00\u4e2aMENU ACTION\uff0c\u8c03\u7528\u81ea\u5b9a\u4e49\u51fd\u6570xxx_exportData(),\u6743\u9650\u7684\u63a7\u7ba1\u8fd9\u91cc\u88ab\u53d6\u6d88\u4e86\uff0c\u53ef\u6839\u636e\u5b9e\u9645\u72b6\u51b5\u51b3\u5b9a\u662f\u5426\u589e\u52a0 <\/em><\/p>\n<p><strong>\u4fee\u6539\u4f4d\u7f6e2\uff1a\u589e\u52a0\u5bfc\u51fa\u51fd\u6570i350_exportdata()<\/strong><\/p>\n<p>FUNCTION <strong>i350<\/strong>_exportdata()<\/p>\n<p>DEFINE l_errCode STRING<\/p>\n<p>DEFINE l_errDesc STRING<\/p>\n<p>IF cl_null(<strong>g_tc_mbi.tc_mbi01<\/strong>) THEN<\/p>\n<p>CALL cl_err(&#8220;&#8221;,-400,1)<\/p>\n<p>RETURN<\/p>\n<p>END IF<\/p>\n<p>CALL aws_exportData(&#8216;CRM&#8217;,&#8217;<strong>MEMBER<\/strong>&#8216;,&#8221;,&#8217;ADJUST&#8217;,<\/p>\n<p>&#8220;(<strong>tc_mbi01<\/strong> ='&#8221;||<strong>g_tc_mbi.tc_mbi01<\/strong>||&#8221;&#8216;)&#8221;)<\/p>\n<p>RETURNING l_errCode,l_errDesc<\/p>\n<p>IF cl_null(l_errCode) THEN<\/p>\n<p>CALL cl_err(&#8220;&#8221;,&#8217;aws-111&#8242;,1)<\/p>\n<p>ELSE<\/p>\n<p>CALL cl_err(l_errDesc,&#8217;aws-112&#8217;,1)<\/p>\n<p>END IF<\/p>\n<p>END FUNCTION<\/p>\n<p><em>\u8bf4\u660e\uff1a\u8be5\u51fd\u6570\u662f\u5bf9\u7cfb\u7edf\u96c6\u6210API\u51fd\u6570aws_exportData\u7684\u5c01\u88c5\uff0c\u4f20\u5165\u5f53\u524d\u8d44\u6599\u7684\u4e3b\u952e\u4fe1\u606f\u5e76\u63a5\u6536\u5730\u5c42\u51fd\u6570\u8fd4\u56de\u7684\u64cd\u4f5c\u7ed3\u679c\uff0c\u6574\u4e2a\u51fd\u6570\u90fd\u9700\u8981\u65b0\u589e\uff0c\u6240\u4ee5\u53ef\u4ee5\u76f4\u63a5\u62f7\u8d1d\u5230\u5176\u4ed6\u7ef4\u62a4\u4f5c\u4e1a\u4e2d\u53bb\uff0c\u4f46\u5176\u4e2d\u84dd\u8272\u90e8\u5206\u662f\u9700\u8981\u7ed3\u5408\u4e0d\u540c\u4f5c\u4e1a\u7684\u5177\u4f53\u60c5\u51b5\u8fdb\u884c\u4fee\u6539\u7684\u3002<\/em><\/p>\n<p><strong>\u603b\u7ed3<\/strong><\/p>\n<p><strong>\u4e0a\u9762\u4ec5\u9488\u5bf9\u5178\u578b\u60c5\u51b5\u8fdb\u884c\u4e86\u4e3e\u4f8b\u8bf4\u660e\uff0c\u5bf9\u4e8e\u6bd4\u8f83\u590d\u6742\u7684\u5904\u7406\u4f5c\u4e1a\uff0c\u53ef\u4ee5\u6309\u5b9e\u9645\u60c5\u51b5\u7075\u6d3b\u5730\u8c03\u7528API\u51fd\u6570\uff0c\u76f8\u5173\u5e94\u7528\u4e2d\u7684\u95ee\u9898\u8bf7\u4e8e\u6613\u62d3\u7814\u53d1\u90e8 \u674e\u950b\uff08021-62383311-964\uff09\u8054\u7cfb\uff0c\u8c22\u8c22<\/strong><\/p>\n<p><strong>E-mail\uff1aLifenga@digitalchina.com<\/strong><\/p>\n<p>\u8f6c\u8f7d\u8bf7\u6ce8\u660e\uff1a<a href=\"https:\/\/www.hefeiyu.com\">\u8d6b\u975e\u57df<\/a> &raquo; <a href=\"https:\/\/www.hefeiyu.com\/?p=1481\">TIPTOP\u96c6\u6210\u4f5c\u4e1a\u8c03\u6574\u65b9\u6cd5(new)<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>TIPTOP\u96c6\u6210\u4f5c\u4e1a\u8c03\u6574\u65b9\u6cd5 \u674e\u950b \u6982\u8ff0 TIPTOP\u548c\u5916\u90e8\u7cfb\u7edf\u4e4b\u95f4\u91c7\u7528Web Service\u673a\u5236\uff0c\u57fa\u4e8e\u4f01\u4e1a\u5bf9\u8c61\u8fdb\u884c\u6570\u636e\u4ea4\u6362\uff0c\u4f01\u4e1a\u5bf9\u8c61\u5927\u81f4\u4e0a\u53ef\u4ee5\u548cTIPTOP\u4e2d\u7684\u4f5c\u4e1a\u5efa\u7acb\u5bf9\u5e94\u5173\u7cfb\u3002\u4e8e\u7a0b\u5e8f\u5458\u800c\u8a00\uff0c\u7cfb\u7edf\u901a\u8fc7\u63d0\u4f9b\u4e24\u4e2aAPI\u51fd\u6570\u6765\u5b9e\u73b0\u548c\u5916\u90e8\u7cfb\u7edf\u7684\u6570\u636e\u4ea4\u6362\u3002  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[10,269,185],"class_list":["post-1481","post","type-post","status-publish","format-standard","hentry","category-4gl","tag-tiptop","tag-269","tag-185"],"_links":{"self":[{"href":"https:\/\/www.hefeiyu.com\/index.php?rest_route=\/wp\/v2\/posts\/1481","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hefeiyu.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hefeiyu.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hefeiyu.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hefeiyu.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1481"}],"version-history":[{"count":1,"href":"https:\/\/www.hefeiyu.com\/index.php?rest_route=\/wp\/v2\/posts\/1481\/revisions"}],"predecessor-version":[{"id":1483,"href":"https:\/\/www.hefeiyu.com\/index.php?rest_route=\/wp\/v2\/posts\/1481\/revisions\/1483"}],"wp:attachment":[{"href":"https:\/\/www.hefeiyu.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1481"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hefeiyu.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1481"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hefeiyu.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1481"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}