|
|
|
@ -31,7 +31,7 @@ namespace Shentun.Peis.AsbitemGuides |
|
|
|
public AsbitemGuide CreateAsync(AsbitemGuide entity) |
|
|
|
{ |
|
|
|
DataHelper.CheckGuidIsDefaultValue(entity.AsbitemId, "组合项目编号"); |
|
|
|
DataHelper.CheckGuidIsDefaultValue(entity.OrganizationUnitId, "体检中心"); |
|
|
|
DataHelper.CheckGuidIsDefaultValue(entity.MedicalCenterId, "体检中心"); |
|
|
|
if (entity.ForSexId != ForSexFlag.All |
|
|
|
&& entity.ForSexId != ForSexFlag.Male |
|
|
|
&& entity.ForSexId != ForSexFlag.Female |
|
|
|
@ -72,7 +72,7 @@ namespace Shentun.Peis.AsbitemGuides |
|
|
|
public string GetAsbitemGuideConvertSexId(Guid OrOrganizationUnitId, Guid AsbitemId, char SexId) |
|
|
|
{ |
|
|
|
//以体检中心跟组合项目去查
|
|
|
|
var entlist = _asbitemGuideRepository.GetListAsync(m => m.OrganizationUnitId == OrOrganizationUnitId && m.AsbitemId == AsbitemId).Result; |
|
|
|
var entlist = _asbitemGuideRepository.GetListAsync(m => m.MedicalCenterId == OrOrganizationUnitId && m.AsbitemId == AsbitemId).Result; |
|
|
|
if (SexFlag.UnKnown == SexId) |
|
|
|
{ |
|
|
|
//判断是否为未知、未知去找适用性别为全部的
|
|
|
|
|