说明
耗材字典数据同步接口
调用方式
基于http方式,数据采用json方式进行封装。
需要指定contentType为:application/json; charset=utf-8
url地址
http://sub-usc.keshiku.cn/rest/hisMaterialInfo/syncMaterial
参数(参见WebService部分你的参数说明)
{ "orgCode": "1761", "user": "his01", "accesskey": "e10adc3949ba59abbe56e057f20f883e", "startDate": "2018-07-21 16:06:55", "endDate": "2018-07-21 16:06:55", "materialId": "-1", "materialName": "18233211314" }
返回值
无物资信息:
{"code":"00","msg":[]}
有物资信息:
{
"code": "00",
"msg": [{
"orgCode": "1761",
"materialId": "686400000102357",
"materialName": "OUR系列碳纤维敷料[商品名:OUR伤安素(片状、自粘片状、防水自粘片状)]",
"manufactureName": "北京奥尔康科技发展有限公司",
"materialUnits": "片",
"unitsPrice": "47.56",
"packageUnits": "片",
"amountPerPackage": "1",
"materialSpec": "10cm×10cm",
"materialModel": "片状",
"materialStatus": "01",
"createDate": "2018-12-21 11:06:57",
"chargeCode": ""
}, {
"orgCode": "1761",
"materialId": "686400000102373",
"materialName": "OUR系列碳纤维敷料[商品名:OUR伤安素(片状、自粘片状、防水自粘片状)]",
"manufactureName": "北京奥尔康科技发展有限公司",
"materialUnits": "片",
"unitsPrice": "123.56",
"packageUnits": "片",
"amountPerPackage": "1",
"materialSpec": "10cm×40cm",
"materialModel": "片状",
"materialStatus": "01",
"createDate": "2018-12-21 11:08:06",
"chargeCode": ""
}]
}
调用示例
curl -X POST -H 'contentType: application/json; charset=utf-8' -i 'http://sub-usc.keshiku.cn/rest/hisMaterialInfo/syncMaterial' --data '{ "orgCode": "1761", "user": "his01", "accesskey": "e10adc3949ba59abbe56e057f20f883e", "startDate": "2018-07-21 16:06:55", "endDate": "2018-07-21 16:06:55", "materialId": "-1", "materialName": "18233211314" }'
文档更新时间: 2019-03-06 15:01 作者:曹圣泉