EXP API设计

测试网域名:http://dev.nbeport.com

快件

提交

  • url:/exp/rest/decl/save
  • method:post
  • request:EXP_DECL对象,id为空新增,不为空其他更新
  • response:EXP_DECL对象

获取

  • url:/exp/rest/decl/get
  • method:get
  • request:id
  • response:EXP_DECL对象

列表

  • url:/exp/rest/decl/list
  • method:get
  • request:
  • response:EXP_DECL对象列表

受理-主单

  • 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:

查验接单-主单

  • 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:

查验结果登记-子单

  • url:/exp/rest/decl/CheckLgs
  • method:post
  • request:ID,CHECK_FLG(2=查验合格,3=查验不合格),CHECK_REMARK,CHECK_REASON,CHECK_RESULT(技术处理=01,检疫处理=02,退运处理=03,销毁处理=04)
    ,例如:{"ID":"xxx","CHECK_FLG":"xxx","CHECK_REMARK":"xxx","CHECK_REASON":"xxx","CHECK_RESULT","xxx"}
  • response:

调回-子单

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

确认调回-总单

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

批量通过-子单

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

平台端快件申报

  • 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:

企业

获取企业备案总列表

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

获取单个企业备案信息

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

新增或更新企业信息

  • url:/exp/rest/org/save
  • method:post
  • request:EXP_ORG_INFO对象,id为空新增,其他更新
  • response:EXP_ORG_INFO

审核

  • url:/exp/rest/org/check
  • method:post
  • request:id,result(结果,1通过,2不通过),remark
  • response:

锁定解锁

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

申报端申报

  • url:/exp/rest/org/Register
  • method:post
  • request:{"ID":"868189765be5cb47015be5cd0dd20000","ORG_CODE":"33344233255555","ORG_NAME":"宁波口岸测试公司","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":"中国","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:

查验规则

获取列表

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

获取单个

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

新增或更新

  • url:/exp/rest/CheckRate/save
  • method:post
  • request:EXP_CHECK_RATE对象,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列表

获取单个

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

新增或更新

  • url:/exp/rest/WorkLog/save
  • method:post
  • request:EXP_WORK_LOG对象,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=当前id,userName=用户名
  • response:{Result = result} result=true可以编辑,result=false不可编辑

是否可以删除

  • url:/exp/rest/WorkLog/CanDelete
  • method:get
  • request:id=当前id,userName=用户名
  • response:{Result = result} result=true可以编辑,result=false不可编辑

查阅

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

统计

快件业务量统计2

  • url:/exp/rest/count/KjCount2
  • method:get
  • request:startDate=2018-01-01起始时间,endDate=2018-01-08结束时间
  • response:Amount=出入境数量,Weight=出入境重量,ImAmount=入境数量,ImWeight=入境重量,ExAmount=出境数量,ExWeight=出境重量

目的地统计

  • url:/exp/rest/count/DestinationCount
  • method:get
  • request:startDate=2018-01-01起始时间,endDate=2018-01-08结束时间,ieFlag=I或者E进出境
  • response:CONSIGNEE_CITY=目的地,LGS_COUNT=票数

收发货人统计

  • url:/exp/rest/count/ConsigneeCount
  • method:get
  • request:startDate=2018-01-01起始时间,endDate=2018-01-08结束时间,ieFlag=I或者E进出境
  • response:CONSIGNEE_NAME=收件人,CARD_ID=身份证号码,LGS_COUNT=票数,DECL_TYPE=快件类型

不合格快件统计

  • url:/exp/rest/count/UnqualifiedCount
  • method:get
  • request:startDate=2018-01-01起始时间,endDate=2018-01-08结束时间
  • response:CheckAmount=进出境查验票数,TyAmount=退运,XhAmount=销毁,ZghgAmount=整改合格放行,UnqualifiedAmount=合计,ImCheckAmount=进境查验票数,ImTyAmount=退运,ImXhAmount=销毁,ImZghgAmount=整改合格放行,ImUnqualifiedAmount=合计,ExCheckAmount=出境查验票数,ExTyAmount=退运,ExXhAmount=销毁,ExZghgAmount=整改合格放行,ExUnqualifiedAmount=合计
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 203,937评论 6 478
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 85,503评论 2 381
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 150,712评论 0 337
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 54,668评论 1 276
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 63,677评论 5 366
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 48,601评论 1 281
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 37,975评论 3 396
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 36,637评论 0 258
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 40,881评论 1 298
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 35,621评论 2 321
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 37,710评论 1 329
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 33,387评论 4 319
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 38,971评论 3 307
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 29,947评论 0 19
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 31,189评论 1 260
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 44,805评论 2 349
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 42,449评论 2 342

推荐阅读更多精彩内容

  • Spring Cloud为开发人员提供了快速构建分布式系统中一些常见模式的工具(例如配置管理,服务发现,断路器,智...
    卡卡罗2017阅读 134,590评论 18 139
  • 主表 提交主表 url:/nap/rest/decl/{id} method:post request:NAP_D...
    sunshine_hao阅读 526评论 0 0
  • 邮检管理 主表 提交主表 url:/pos/rest/ptdecl/{id} method:post reques...
    sunshine_hao阅读 983评论 0 1
  • 每个人最终都是行走在自己心里,你所抵达的,不过是自己的本质。 唯其当心灵恢复健康,才会看到这世上的无数花朵,与你的...
    龙之君临天下阅读 480评论 0 0
  • 消瘦的身形,精致的妆容,白衬衫的一边扎在紧身的西裤里,散发着知性的魅力,夕阳的余晖即将褪去,她踩着沉重的步子,面无...
    笨丫头_3047阅读 389评论 0 2