|
@@ -28,6 +28,7 @@ public class OrderController : BaseController
|
|
|
private readonly IWorkflowApplication _workflowApplication;
|
|
|
private readonly IWorkflowDomainService _workflowDomainService;
|
|
|
private readonly IHotSpotTypeRepository _hotSpotTypeRepository;
|
|
|
+ private readonly ISystemDomainService _systemDomainService;
|
|
|
private readonly ISystemOrganizeRepository _organizeRepository;
|
|
|
private readonly IMapper _mapper;
|
|
|
|
|
@@ -37,6 +38,7 @@ public class OrderController : BaseController
|
|
|
IWorkflowApplication workflowApplication,
|
|
|
IWorkflowDomainService workflowDomainService,
|
|
|
IHotSpotTypeRepository hotSpotTypeRepository,
|
|
|
+ ISystemDomainService systemDomainService,
|
|
|
ISystemOrganizeRepository organizeRepository,
|
|
|
IMapper mapper)
|
|
|
{
|
|
@@ -45,6 +47,7 @@ public class OrderController : BaseController
|
|
|
_workflowApplication = workflowApplication;
|
|
|
_workflowDomainService = workflowDomainService;
|
|
|
_hotSpotTypeRepository = hotSpotTypeRepository;
|
|
|
+ _systemDomainService = systemDomainService;
|
|
|
_organizeRepository = organizeRepository;
|
|
|
_mapper = mapper;
|
|
|
}
|
|
@@ -198,12 +201,11 @@ public class OrderController : BaseController
|
|
|
GenderOptions = EnumExts.GetDescriptions<EGender>(),
|
|
|
IdentityTypeOptions = EnumExts.GetDescriptions<EIdentityType>(),
|
|
|
LicenceTypeOptions = EnumExts.GetDescriptions<ELicenceType>(),
|
|
|
- //AgeRangeOptions =
|
|
|
+ AgeRangeOptions = _systemDomainService.GetSysDicDataByCode(SysDicTypeConsts.AgeRange),
|
|
|
OrderTypeOptions = EnumExts.GetDescriptions<EOrderType>(),
|
|
|
AcceptTypeOptions = EnumExts.GetDescriptions<EAcceptType>(),
|
|
|
EmergencyLevelOptions = EnumExts.GetDescriptions<EEmergencyLevel>(),
|
|
|
PushTypeOptions = EnumExts.GetDescriptions<EPushType>(),
|
|
|
- //todo 是否重复
|
|
|
};
|
|
|
}
|
|
|
|
|
@@ -214,10 +216,20 @@ public class OrderController : BaseController
|
|
|
[HttpGet("base-data-ext")]
|
|
|
public dynamic BaseDataExtension()
|
|
|
{
|
|
|
- //todo
|
|
|
return new
|
|
|
{
|
|
|
- //LicenceTypeOptions = SysDicTypeConsts.LicenceType,
|
|
|
+ LicenceTypeOptions = _systemDomainService.GetSysDicDataByCode(SysDicTypeConsts.LicenceType),
|
|
|
+ IdentityTypeOptions = _systemDomainService.GetSysDicDataByCode(SysDicTypeConsts.ProviderIdentityType),
|
|
|
+ IdentityOptions = _systemDomainService.GetSysDicDataByCode(SysDicTypeConsts.Identity),
|
|
|
+ NationalityOptions = _systemDomainService.GetSysDicDataByCode(SysDicTypeConsts.Nationality),
|
|
|
+ NationOptions = _systemDomainService.GetSysDicDataByCode(SysDicTypeConsts.Nation),
|
|
|
+ MarketTypeOptions = _systemDomainService.GetSysDicDataByCode(SysDicTypeConsts.MarketType),
|
|
|
+ IndustryClassifyOptions = _systemDomainService.GetSysDicDataByCode(SysDicTypeConsts.IndustryClassify),
|
|
|
+ BrandOptions = _systemDomainService.GetSysDicDataByCode(SysDicTypeConsts.Brand),
|
|
|
+ ObjectClassifyOptions = _systemDomainService.GetSysDicDataByCode(SysDicTypeConsts.ObjectClassify),
|
|
|
+ ComplainClassifyOptions = _systemDomainService.GetSysDicDataByCode(SysDicTypeConsts.ComplainClassify),
|
|
|
+ SalesModeOptions = _systemDomainService.GetSysDicDataByCode(SysDicTypeConsts.SalesMode),
|
|
|
+ ECommercePlatformOptions = _systemDomainService.GetSysDicDataByCode(SysDicTypeConsts.ECommercePlatform),
|
|
|
ComplainTypeOptions = EnumExts.GetDescriptions<EComplainType>()
|
|
|
};
|
|
|
}
|