diff --git a/WebSiteCode/Cmdjy/Cmdjy/Controllers/WsdInterfaceController.cs b/WebSiteCode/Cmdjy/Cmdjy/Controllers/WsdInterfaceController.cs
index d1abab0..f02f37c 100644
--- a/WebSiteCode/Cmdjy/Cmdjy/Controllers/WsdInterfaceController.cs
+++ b/WebSiteCode/Cmdjy/Cmdjy/Controllers/WsdInterfaceController.cs
@@ -34,7 +34,7 @@ namespace Cmdjy.Controllers
}
if(string.IsNullOrEmpty(cKey)) {
result.Code = EnumCode.Exception;
- result.Msg = "CompanyCode值错误";
+ result.Msg = "CompanyCode值错误或平台未注册该机构";
}
//获取数据
int start = 0;
@@ -80,6 +80,7 @@ namespace Cmdjy.Controllers
result.Code = EnumCode.Success;
result.Count = result.Prescriptions.Where(m => m.Type != WsdPrescriptionType.NullOrder).Count();
result.Msg = "";
+ result.MaxId = db.PrescriptionInfos.Max(m => m.Id).ToString();
result.More = db.PrescriptionInfos.Max(m => m.Id) > (start + count);
}
//编码:json串 + 加密信息
diff --git a/WebSiteCode/Cmdjy/WsdInterfaceModels/WsdResult.cs b/WebSiteCode/Cmdjy/WsdInterfaceModels/WsdResult.cs
index b08c5e2..5fee1d7 100644
--- a/WebSiteCode/Cmdjy/WsdInterfaceModels/WsdResult.cs
+++ b/WebSiteCode/Cmdjy/WsdInterfaceModels/WsdResult.cs
@@ -24,6 +24,10 @@ namespace WsdInterfaceModels
///
public bool More { get; set; }
///
+ /// 目前最大处方号
+ ///
+ public string MaxId { get; set; }
+ ///
/// 处方信息
///
public List Prescriptions { get; set; }