EXP API設(shè)計(jì)

測(cè)試網(wǎng)域名:http://dev.nbeport.com

快件

提交

  • url:/exp/rest/decl/save
  • method:post
  • request:EXP_DECL對(duì)象俺孙,id為空新增牛曹,不為空其他更新
  • response:EXP_DECL對(duì)象

獲取

  • url:/exp/rest/decl/get
  • method:get
  • request:id
  • response:EXP_DECL對(duì)象

列表

  • url:/exp/rest/decl/list
  • method:get
  • request:
  • response:EXP_DECL對(duì)象列表

受理-主單

  • url:/exp/rest/decl/Accept
  • method:post
  • request:id,例如:{"id":"xxx"}
  • response:

退回-總單

  • url:/exp/rest/decl/Return
  • method:post
  • request:{"id":"xxx","remark":"xxx"}
  • response:

審核-主單

  • url:/exp/rest/decl/Examine
  • method:post
  • request:id霜浴,例如:{"id":"xxx"}
  • response:

查驗(yàn)接單-主單

  • url:/exp/rest/decl/AcceptCheck
  • method:post
  • request:id揣云,例如:{"id":"xxx"}
  • response:

放行-主單

  • url:/exp/rest/decl/Pass
  • method:post
  • request:id薄腻,例如:{"id":"xxx"}
  • response:

歸檔-主單

  • url:/exp/rest/decl/Filed
  • method:post
  • request:id姻几,例如:{"id":"xxx"}
  • response:

人工攔截-子單

  • url:/exp/rest/decl/InterceptLgs
  • method:post
  • request:id陨收,例如:{"id":"xxx"}
  • response:

放行-子單

  • url:/exp/rest/decl/PassLgs
  • method:post
  • request:id,例如:{"id":"xxx"}
  • response:

查驗(yàn)結(jié)果登記-子單

  • url:/exp/rest/decl/CheckLgs
  • method:post
  • request:ID,CHECK_FLG(2=查驗(yàn)合格没佑,3=查驗(yàn)不合格),CHECK_REMARK,CHECK_REASON毕贼,CHECK_RESULT(技術(shù)處理=01,檢疫處理=02,退運(yùn)處理=03,銷毀處理=04)
    ,例如:{"ID":"xxx","CHECK_FLG":"xxx","CHECK_REMARK":"xxx","CHECK_REASON":"xxx","CHECK_RESULT","xxx"}
  • response:

調(diào)回-子單

  • url:/exp/rest/decl/BackLgs
  • method:post
  • request:{"id":"xxx"}
  • response:

確認(rèn)調(diào)回-總單

  • url:/exp/rest/decl/ConfirmBackLgs
  • method:post
  • request:{"id":"xxx"}
  • response:

批量通過-子單

  • url:/exp/rest/decl/BatchPassLgs
  • method:post
  • request:["id1","id2","id3"]
  • response:

平臺(tái)端快件申報(bào)

  • url:/exp/rest/decl/Register
  • method:post
  • request:主單蛤奢、分單信息鬼癣,如下例:{"DECL_NO":"11111","TOTAL_LGS_NO":"888888","LGS_COUNT":98.0,"TOTAL_COUNT":4.0,"TOTAL_WEIGHT":4.0,"FLIGHT_DATE":null,"DESP_CTRY":null,"ENTRY_PORT":null,"CARRIER_AVIATION":null,"DECL_ORG_CODE":null,"DECL_ORG_NAME":null,"WOODEN_PACKING":null,"PACKING_TYPE":null,"PACKING_QTY":null,"I_E_FLAG":"I","RE_DECL":"0","picList":[{"PIC_URL":"xxxx","PIC_NAME":"name1","PIC_TYPE":"type1"},{"PIC_URL":"xxxcxccx","PIC_NAME":"name2","PIC_TYPE":"type2"}],
    "lgsList":[
    {"LGS_NO":"111","QTY":null,"WEIGHT":null,"VAL_US":null,"PAY_WAY":null,"ORI_CTRY":null,"MODEL":null,"DECL_TYPE":null,"CONSIGNEE_NAME":null,"CONSIGNEE_ORG":null,"CONSIGNEE_COUNTRY":null,"CONSIGNEE_CITY":null,"CONSIGNEE_ADDR":null,"CONSIGNEE_POSTCODE":null,"CONSIGNEE_TEL":null,"CONSIGNOR_NAME":null,"CONSIGNOR_ORG":null,"CONSIGNOR_COUNTRY":null,"CONSIGNOR_CITY":null,"CONSIGNOR_ADDR":null,"CONSIGNOR_POSTCODE":null,"CONSIGNOR_TEL":null,"cargoList":[{"GOODS_NAME":"name1","HS_NUMBER":"hsnumber1","HS_CODE":"hscode1"},{"GOODS_NAME":"name2","HS_NUMBER":"hsnumber2","HS_CODE":"hscode2"}],"CARD_ID":"xxx","CARD_FILE":"xxx","picList":[{"PIC_URL":"xxxx","PIC_NAME":"name1","PIC_TYPE":"type1"},{"PIC_URL":"xxxcxccx","PIC_NAME":"name2","PIC_TYPE":"type2"}]},
    {"LGS_NO":"222","QTY":null,"WEIGHT":null,"VAL_US":null,"PAY_WAY":null,"ORI_CTRY":null,"MODEL":null,"DECL_TYPE":null,"CONSIGNEE_NAME":null,"CONSIGNEE_ORG":null,"CONSIGNEE_COUNTRY":null,"CONSIGNEE_CITY":null,"CONSIGNEE_ADDR":null,"CONSIGNEE_POSTCODE":null,"CONSIGNEE_TEL":null,"CONSIGNOR_NAME":null,"CONSIGNOR_ORG":null,"CONSIGNOR_COUNTRY":null,"CONSIGNOR_CITY":null,"CONSIGNOR_ADDR":null,"CONSIGNOR_POSTCODE":null,"CONSIGNOR_TEL":null,"cargoList":[{"GOODS_NAME":"name1","HS_NUMBER":"hsnumber1","HS_CODE":"hscode1"},{"GOODS_NAME":"name2","HS_NUMBER":"hsnumber2","HS_CODE":"hscode2"}],"CARD_ID":"xxx","CARD_FILE":"xxx","picList":[{"PIC_URL":"xxxx","PIC_NAME":"name1","PIC_TYPE":"type1"},{"PIC_URL":"xxxcxccx","PIC_NAME":"name2","PIC_TYPE":"type2"}]},
    {"LGS_NO":"333","QTY":null,"WEIGHT":null,"VAL_US":null,"PAY_WAY":null,"ORI_CTRY":null,"MODEL":null,"DECL_TYPE":null,"CONSIGNEE_NAME":null,"CONSIGNEE_ORG":null,"CONSIGNEE_COUNTRY":null,"CONSIGNEE_CITY":null,"CONSIGNEE_ADDR":null,"CONSIGNEE_POSTCODE":null,"CONSIGNEE_TEL":null,"CONSIGNOR_NAME":null,"CONSIGNOR_ORG":null,"CONSIGNOR_COUNTRY":null,"CONSIGNOR_CITY":null,"CONSIGNOR_ADDR":null,"CONSIGNOR_POSTCODE":null,"CONSIGNOR_TEL":null,"cargoList":[{"GOODS_NAME":"name1","HS_NUMBER":"hsnumber1","HS_CODE":"hscode1"},{"GOODS_NAME":"name2","HS_NUMBER":"hsnumber2","HS_CODE":"hscode2"}],"CARD_ID":"xxx","CARD_FILE":"xxx","picList":[{"PIC_URL":"xxxx","PIC_NAME":"name1","PIC_TYPE":"type1"},{"PIC_URL":"xxxcxccx","PIC_NAME":"name2","PIC_TYPE":"type2"}]}
    ]}
  • response:

企業(yè)

獲取企業(yè)備案總列表

  • url:/exp/rest/org/list
  • method:get
  • request:
  • response:EXP_ORG_INFO列表

獲取單個(gè)企業(yè)備案信息

  • url:/exp/rest/org/get
  • method:get
  • request:id
  • response:EXP_ORG_INFO

新增或更新企業(yè)信息

  • url:/exp/rest/org/save
  • method:post
  • request:EXP_ORG_INFO對(duì)象,id為空新增啤贩,其他更新
  • response:EXP_ORG_INFO

審核

  • url:/exp/rest/org/check
  • method:post
  • request:id,result(結(jié)果待秃,1通過,2不通過),remark
  • response:

鎖定解鎖

  • url:/exp/rest/org/lock
  • method:post
  • request:id,result(0解鎖痹屹,1鎖定)
  • response:

申報(bào)端申報(bào)

  • url:/exp/rest/org/Register
  • method:post
  • request:{"ID":"868189765be5cb47015be5cd0dd20000","ORG_CODE":"33344233255555","ORG_NAME":"寧波口岸測(cè)試公司","ORG_TYPE":null,"ADDRESS":"中山路","TEL":"0574-88886666","FACSIMILE_TEL":"0574-88886666","LOCK_FLG":null,"CHECK_FLG":null,"CHECK_TIME":null,"CHECK_REMARK":null,"CONTACT_PERSON":"張三李四","CONTACT_WAY":"12345678901","COUNTRY":"中國(guó)","WH_ADDRESS":null,"WH_CONTACT_PERSON":null,"WH_CONTACT_WAY":null,"OU":"OU333f4c6810f89d8a8377341","picList":[{"PIC_URL":"xxxx","PIC_NAME":"name1","PIC_TYPE":"type1"},{"PIC_URL":"xxxcxccx","PIC_NAME":"name2","PIC_TYPE":"type2"}]}
  • response:

查驗(yàn)規(guī)則

獲取列表

  • url:/exp/rest/CheckRate/list
  • method:get
  • request:
  • response:EXP_CHECK_RATE列表

獲取單個(gè)

  • url:/exp/rest/CheckRate/get
  • method:get
  • request:id
  • response:EXP_CHECK_RATE

新增或更新

  • url:/exp/rest/CheckRate/save
  • method:post
  • request:EXP_CHECK_RATE對(duì)象章郁,id為空新增,其他更新
  • response:EXP_CHECK_RATE

審核

  • url:/exp/rest/CheckRate/Check
  • method:post
  • request:{"ID":"xxx"}
  • response:

選擇

  • url:/exp/rest/CheckRate/Select
  • method:post
  • request:{"ID":"xxx"}
  • response:

刪除

  • url:/exp/rest/CheckRate/Delete
  • method:post
  • request:{"ID":"xxx"}
  • response:

工作日志

獲取列表

  • url:/exp/rest/WorkLog/list
  • method:get
  • request:
  • response:EXP_WORK_LOG列表

獲取單個(gè)

  • url:/exp/rest/WorkLog/get
  • method:get
  • request:id
  • response:EXP_WORK_LOG

新增或更新

  • url:/exp/rest/WorkLog/save
  • method:post
  • request:EXP_WORK_LOG對(duì)象志衍,id為空新增暖庄,其他更新
  • response:EXP_WORK_LOG

刪除

  • url:/exp/rest/WorkLog/Delete
  • method:post
  • request:{"ID":"xxx","CREATE_BY":"username"}
  • response:

是否可以新增

  • url:/exp/rest/WorkLog/CanAdd
  • method:get
  • request:userName用戶名
  • response:{Result = result} result=true可以新增,result=false已添加楼肪,不可新增

是否可以編輯

  • url:/exp/rest/WorkLog/CanEdit
  • method:get
  • request:id=當(dāng)前id培廓,userName=用戶名
  • response:{Result = result} result=true可以編輯,result=false不可編輯

是否可以刪除

  • url:/exp/rest/WorkLog/CanDelete
  • method:get
  • request:id=當(dāng)前id淹辞,userName=用戶名
  • response:{Result = result} result=true可以編輯医舆,result=false不可編輯

查閱

  • url:/exp/rest/WorkLog/Read
  • method:post
  • request:{"ID":"xxx","LAST_MODIFY_BY":"username"}
  • response:

統(tǒng)計(jì)

快件業(yè)務(wù)量統(tǒng)計(jì)2

  • url:/exp/rest/count/KjCount2
  • method:get
  • request:startDate=2018-01-01起始時(shí)間,endDate=2018-01-08結(jié)束時(shí)間
  • response:Amount=出入境數(shù)量,Weight=出入境重量,ImAmount=入境數(shù)量,ImWeight=入境重量,ExAmount=出境數(shù)量,ExWeight=出境重量

目的地統(tǒng)計(jì)

  • url:/exp/rest/count/DestinationCount
  • method:get
  • request:startDate=2018-01-01起始時(shí)間,endDate=2018-01-08結(jié)束時(shí)間,ieFlag=I或者E進(jìn)出境
  • response:CONSIGNEE_CITY=目的地,LGS_COUNT=票數(shù)

收發(fā)貨人統(tǒng)計(jì)

  • url:/exp/rest/count/ConsigneeCount
  • method:get
  • request:startDate=2018-01-01起始時(shí)間,endDate=2018-01-08結(jié)束時(shí)間,ieFlag=I或者E進(jìn)出境
  • response:CONSIGNEE_NAME=收件人,CARD_ID=身份證號(hào)碼象缀,LGS_COUNT=票數(shù)蔬将,DECL_TYPE=快件類型

不合格快件統(tǒng)計(jì)

  • url:/exp/rest/count/UnqualifiedCount
  • method:get
  • request:startDate=2018-01-01起始時(shí)間,endDate=2018-01-08結(jié)束時(shí)間
  • response:CheckAmount=進(jìn)出境查驗(yàn)票數(shù),TyAmount=退運(yùn)央星,XhAmount=銷毀霞怀,ZghgAmount=整改合格放行,UnqualifiedAmount=合計(jì)莉给,ImCheckAmount=進(jìn)境查驗(yàn)票數(shù)毙石,ImTyAmount=退運(yùn)廉沮,ImXhAmount=銷毀,ImZghgAmount=整改合格放行徐矩,ImUnqualifiedAmount=合計(jì)滞时,ExCheckAmount=出境查驗(yàn)票數(shù),ExTyAmount=退運(yùn)滤灯,ExXhAmount=銷毀坪稽,ExZghgAmount=整改合格放行,ExUnqualifiedAmount=合計(jì)
最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
  • 序言:七十年代末鳞骤,一起剝皮案震驚了整個(gè)濱河市窒百,隨后出現(xiàn)的幾起案子,更是在濱河造成了極大的恐慌豫尽,老刑警劉巖篙梢,帶你破解...
    沈念sama閱讀 216,372評(píng)論 6 498
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件,死亡現(xiàn)場(chǎng)離奇詭異美旧,居然都是意外死亡渤滞,警方通過查閱死者的電腦和手機(jī),發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 92,368評(píng)論 3 392
  • 文/潘曉璐 我一進(jìn)店門榴嗅,熙熙樓的掌柜王于貴愁眉苦臉地迎上來蔼水,“玉大人,你說我怎么就攤上這事录肯。” “怎么了吊说?”我有些...
    開封第一講書人閱讀 162,415評(píng)論 0 353
  • 文/不壞的土叔 我叫張陵论咏,是天一觀的道長(zhǎng)。 經(jīng)常有香客問我颁井,道長(zhǎng)厅贪,這世上最難降的妖魔是什么? 我笑而不...
    開封第一講書人閱讀 58,157評(píng)論 1 292
  • 正文 為了忘掉前任雅宾,我火速辦了婚禮养涮,結(jié)果婚禮上,老公的妹妹穿的比我還像新娘眉抬。我一直安慰自己贯吓,他們只是感情好,可當(dāng)我...
    茶點(diǎn)故事閱讀 67,171評(píng)論 6 388
  • 文/花漫 我一把揭開白布蜀变。 她就那樣靜靜地躺著悄谐,像睡著了一般。 火紅的嫁衣襯著肌膚如雪库北。 梳的紋絲不亂的頭發(fā)上爬舰,一...
    開封第一講書人閱讀 51,125評(píng)論 1 297
  • 那天们陆,我揣著相機(jī)與錄音,去河邊找鬼情屹。 笑死坪仇,一個(gè)胖子當(dāng)著我的面吹牛,可吹牛的內(nèi)容都是我干的垃你。 我是一名探鬼主播椅文,決...
    沈念sama閱讀 40,028評(píng)論 3 417
  • 文/蒼蘭香墨 我猛地睜開眼,長(zhǎng)吁一口氣:“原來是場(chǎng)噩夢(mèng)啊……” “哼蜡镶!你這毒婦竟也來了雾袱?” 一聲冷哼從身側(cè)響起,我...
    開封第一講書人閱讀 38,887評(píng)論 0 274
  • 序言:老撾萬榮一對(duì)情侶失蹤官还,失蹤者是張志新(化名)和其女友劉穎芹橡,沒想到半個(gè)月后,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體望伦,經(jīng)...
    沈念sama閱讀 45,310評(píng)論 1 310
  • 正文 獨(dú)居荒郊野嶺守林人離奇死亡林说,尸身上長(zhǎng)有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點(diǎn)故事閱讀 37,533評(píng)論 2 332
  • 正文 我和宋清朗相戀三年,在試婚紗的時(shí)候發(fā)現(xiàn)自己被綠了屯伞。 大學(xué)時(shí)的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片腿箩。...
    茶點(diǎn)故事閱讀 39,690評(píng)論 1 348
  • 序言:一個(gè)原本活蹦亂跳的男人離奇死亡,死狀恐怖劣摇,靈堂內(nèi)的尸體忽然破棺而出珠移,到底是詐尸還是另有隱情,我是刑警寧澤末融,帶...
    沈念sama閱讀 35,411評(píng)論 5 343
  • 正文 年R本政府宣布钧惧,位于F島的核電站,受9級(jí)特大地震影響勾习,放射性物質(zhì)發(fā)生泄漏浓瞪。R本人自食惡果不足惜,卻給世界環(huán)境...
    茶點(diǎn)故事閱讀 41,004評(píng)論 3 325
  • 文/蒙蒙 一巧婶、第九天 我趴在偏房一處隱蔽的房頂上張望乾颁。 院中可真熱鬧,春花似錦艺栈、人聲如沸英岭。這莊子的主人今日做“春日...
    開封第一講書人閱讀 31,659評(píng)論 0 22
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽巴席。三九已至,卻和暖如春诅需,著一層夾襖步出監(jiān)牢的瞬間漾唉,已是汗流浹背荧库。 一陣腳步聲響...
    開封第一講書人閱讀 32,812評(píng)論 1 268
  • 我被黑心中介騙來泰國(guó)打工, 沒想到剛下飛機(jī)就差點(diǎn)兒被人妖公主榨干…… 1. 我叫王不留赵刑,地道東北人分衫。 一個(gè)月前我還...
    沈念sama閱讀 47,693評(píng)論 2 368
  • 正文 我出身青樓,卻偏偏與公主長(zhǎng)得像般此,于是被迫代替她去往敵國(guó)和親蚪战。 傳聞我的和親對(duì)象是個(gè)殘疾皇子,可洞房花燭夜當(dāng)晚...
    茶點(diǎn)故事閱讀 44,577評(píng)論 2 353

推薦閱讀更多精彩內(nèi)容

  • Spring Cloud為開發(fā)人員提供了快速構(gòu)建分布式系統(tǒng)中一些常見模式的工具(例如配置管理铐懊,服務(wù)發(fā)現(xiàn)邀桑,斷路器,智...
    卡卡羅2017閱讀 134,651評(píng)論 18 139
  • 主表 提交主表 url:/nap/rest/decl/{id} method:post request:NAP_D...
    sunshine_hao閱讀 539評(píng)論 0 0
  • 郵檢管理 主表 提交主表 url:/pos/rest/ptdecl/{id} method:post reques...
    sunshine_hao閱讀 996評(píng)論 0 1
  • 每個(gè)人最終都是行走在自己心里科乎,你所抵達(dá)的壁畸,不過是自己的本質(zhì)。 唯其當(dāng)心靈恢復(fù)健康茅茂,才會(huì)看到這世上的無數(shù)花朵捏萍,與你的...
    龍之君臨天下閱讀 489評(píng)論 0 0
  • 消瘦的身形,精致的妝容空闲,白襯衫的一邊扎在緊身的西褲里令杈,散發(fā)著知性的魅力,夕陽的余暉即將褪去碴倾,她踩著沉重的步子逗噩,面無...
    笨丫頭_3047閱讀 395評(píng)論 0 2