From 6837dc7c81c91211f89284bd267ab050e6d11e34 Mon Sep 17 00:00:00 2001 From: falcon <9504402@qq.com> Date: Mon, 1 Apr 2019 15:06:03 +0800 Subject: [PATCH] =?UTF-8?q?(#17)=E4=B8=87=E4=BA=8B=E8=AF=9A=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E5=A4=84=E6=96=B9=E4=BF=A1=E6=81=AF=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?MaxId=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WebSiteCode/Cmdjy/Cmdjy/Controllers/WsdInterfaceController.cs | 3 ++- WebSiteCode/Cmdjy/WsdInterfaceModels/WsdResult.cs | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) 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; }