(#17)万事诚接口处方信息增加MaxId字段

This commit is contained in:
falcon 2019-04-01 15:06:03 +08:00
parent e1a088bbb6
commit 6837dc7c81
2 changed files with 6 additions and 1 deletions

View File

@ -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串 + 加密信息

View File

@ -24,6 +24,10 @@ namespace WsdInterfaceModels
/// </summary>
public bool More { get; set; }
/// <summary>
/// 目前最大处方号
/// </summary>
public string MaxId { get; set; }
/// <summary>
/// 处方信息
/// </summary>
public List<WsdPrescriptionInfo> Prescriptions { get; set; }