(#17)万事诚接口处方信息增加MaxId字段
This commit is contained in:
parent
e1a088bbb6
commit
6837dc7c81
|
@ -34,7 +34,7 @@ namespace Cmdjy.Controllers
|
||||||
}
|
}
|
||||||
if(string.IsNullOrEmpty(cKey)) {
|
if(string.IsNullOrEmpty(cKey)) {
|
||||||
result.Code = EnumCode.Exception;
|
result.Code = EnumCode.Exception;
|
||||||
result.Msg = "CompanyCode值错误";
|
result.Msg = "CompanyCode值错误或平台未注册该机构";
|
||||||
}
|
}
|
||||||
//获取数据
|
//获取数据
|
||||||
int start = 0;
|
int start = 0;
|
||||||
|
@ -80,6 +80,7 @@ namespace Cmdjy.Controllers
|
||||||
result.Code = EnumCode.Success;
|
result.Code = EnumCode.Success;
|
||||||
result.Count = result.Prescriptions.Where(m => m.Type != WsdPrescriptionType.NullOrder).Count();
|
result.Count = result.Prescriptions.Where(m => m.Type != WsdPrescriptionType.NullOrder).Count();
|
||||||
result.Msg = "";
|
result.Msg = "";
|
||||||
|
result.MaxId = db.PrescriptionInfos.Max(m => m.Id).ToString();
|
||||||
result.More = db.PrescriptionInfos.Max(m => m.Id) > (start + count);
|
result.More = db.PrescriptionInfos.Max(m => m.Id) > (start + count);
|
||||||
}
|
}
|
||||||
//编码:json串 + 加密信息
|
//编码:json串 + 加密信息
|
||||||
|
|
|
@ -24,6 +24,10 @@ namespace WsdInterfaceModels
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool More { get; set; }
|
public bool More { get; set; }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
/// 目前最大处方号
|
||||||
|
/// </summary>
|
||||||
|
public string MaxId { get; set; }
|
||||||
|
/// <summary>
|
||||||
/// 处方信息
|
/// 处方信息
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public List<WsdPrescriptionInfo> Prescriptions { get; set; }
|
public List<WsdPrescriptionInfo> Prescriptions { get; set; }
|
||||||
|
|
Loading…
Reference in New Issue
Block a user