MyService
单击此处,获取完整的操作列表。
GetRouteStaticdata
2025 新版APP首页所有数据返回接口:(任务执行情况,结合静态数据)
参数:
string Token: 非空,Token数据
string ListRouteID: 线路ID,多条线路之间,用英文逗号,隔开; 可以为空,加密
string ListAddressCode: 地址卡集合,多个地址卡之间,用英文逗号,隔开; 可以为空,加密
string ListUserCode: 人员卡集合,多个地址卡之间,用英文逗号,隔开; 可以为空,加密
string ListTypeID: 查询状态,多个状态之间,用英文逗号,隔开; 加密 【目前占位,直接传入空值】
string BeginTime:“查询开始时间(格式为:yyyy-MM-dd HH:mm:ss 或者 yyyy-MM-dd,举例 2020-05-31 00:00:00)”,非空,加密 【在新APP首页,直接传入 yyyy-MM-dd】
string EndTime:“查询结束时间(格式为:yyyy-MM-dd HH:mm:ss 或者 yyyy-MM-dd,举例 2020-05-31 23:59:59)”,非空,加密 【在新APP首页,直接传入 yyyy-MM-dd】
返回结构:
ReturnValue<List<SpotInfo>> json字符串数据
public class ReturnValue
{
public long Result;//错误代码
public int MaxCount;//汇总性数据 数量
public string ListPatrolSata;//汇总性数据 明细
public int MaxCount1;//【1、巡检单】 数量
public string ListQueryDetailed1;//【1、巡检单】 明细
public int MaxCount4;//【4、任务工单】 数量
public string ListQueryDetailed4;//【4、任务工单】 明细
public int MaxCount2;//【2、任务进行中】 数量
public string ListQueryDetailed2;//【2、任务进行中】 明细
public int MaxCount3;//【3、已完成;】 数量
public string ListQueryDetailed3;//【3、已完成;】 明细
public int PageSize;//每页显示记录数
public string Message;
public T Values;
}
public class Values
{
public string AutoString;//强行增加的唯一值 RoutID_BeginTime.ToString("yyyyMMddHHmmss") 【如果没有时间段,这默认为 0】
public int TypeID;//线路类型【1、普通线路(棒子、事件、三级项目,首页蓝色显示);2、普通线路(带任务的四级项目,首页蓝色显示);3、模板线路(不可能出现在首页,首页蓝色显示);4、临时任务(工单)(首页橙色显示);】
public int ClassID;//数据类型【1、正常任务(棒子【啥都没有】);2、工单任务(带任务的巡检项目【四级项目】);3、正常任务(事件);4、正常任务(三级项目【和Z-9000、Z-M900 Pro相同】);】
public int RouteID;//线路 ID
public string RouteName;//线路名称
public string StartTime;// 计划时间段开始时间
public string EndTime; //计划时间段结束时间
public int PatrolResult; //执行结果 (1、待巡(未开始);2、任务进行中;3、已完成;)
}
public class ListPatrolSata
{
public int ID; //自增字段
public int RouteID; //线路 ID
public string RouteName; //线路名称
public int CardNoNum; //线路的巡更点个数
public bool HaveTask; //如果线路没有任务,则同样需要显示在新版APP的首页上(true、当天指定线路“有”任务;false、当天指定线路“没有”任务;)
public string SataDate; //统计时间(格式 yyyy-MM-dd)
public int ShouldCheckNum; //应捡数量
public int MissNum; //漏检数量
public int NoCheckNum; //待巡数量
public int CheckNum; //已检数量
public double CheckProportion; //已检比例
}
返回值:
| Result | 描述 |
|---|---|
| Result=0 | 获取数据成功 |
| Result=-1 | 出错, Message为错误信息 |
| Result=-2 | Token非法 |
| Result=-10 | 当前登录帐号已经在其他机器上登录 |
| Result=-31 | Token失效 |
提示:
如果地点卡数据超过一页(>50 spots), 请循环这个方法进行获取
测试
若要使用 HTTP POST 协议对操作进行测试,请单击“调用”按钮。SOAP 1.1
以下是 SOAP 1.2 请求和响应示例。所显示的占位符需替换为实际值。
POST /MyService.asmx HTTP/1.1
Host: www.zooytech.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://tempuri.org/GetRouteStaticdata"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<GetRouteStaticdata xmlns="http://tempuri.org/">
<Token>string</Token>
<ListRouteID>string</ListRouteID>
<ListAddressCode>string</ListAddressCode>
<ListUserCode>string</ListUserCode>
<ListTypeID>string</ListTypeID>
<BeginTime>string</BeginTime>
<EndTime>string</EndTime>
</GetRouteStaticdata>
</soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<GetRouteStaticdataResponse xmlns="http://tempuri.org/">
<GetRouteStaticdataResult>string</GetRouteStaticdataResult>
</GetRouteStaticdataResponse>
</soap:Body>
</soap:Envelope>
SOAP 1.2
以下是 SOAP 1.2 请求和响应示例。所显示的占位符需替换为实际值。
POST /MyService.asmx HTTP/1.1
Host: www.zooytech.com
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<GetRouteStaticdata xmlns="http://tempuri.org/">
<Token>string</Token>
<ListRouteID>string</ListRouteID>
<ListAddressCode>string</ListAddressCode>
<ListUserCode>string</ListUserCode>
<ListTypeID>string</ListTypeID>
<BeginTime>string</BeginTime>
<EndTime>string</EndTime>
</GetRouteStaticdata>
</soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<GetRouteStaticdataResponse xmlns="http://tempuri.org/">
<GetRouteStaticdataResult>string</GetRouteStaticdataResult>
</GetRouteStaticdataResponse>
</soap12:Body>
</soap12:Envelope>
HTTP GET
以下是 HTTP GET 请求和响应示例。所显示的占位符需替换为实际值。
GET /MyService.asmx/GetRouteStaticdata?Token=string&ListRouteID=string&ListAddressCode=string&ListUserCode=string&ListTypeID=string&BeginTime=string&EndTime=string HTTP/1.1 Host: www.zooytech.com
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <string xmlns="http://tempuri.org/">string</string>
HTTP POST
以下是 HTTP POST 请求和响应示例。所显示的占位符需替换为实际值。
POST /MyService.asmx/GetRouteStaticdata HTTP/1.1 Host: www.zooytech.com Content-Type: application/x-www-form-urlencoded Content-Length: length Token=string&ListRouteID=string&ListAddressCode=string&ListUserCode=string&ListTypeID=string&BeginTime=string&EndTime=string
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <string xmlns="http://tempuri.org/">string</string>