|
@@ -1,8 +1,4 @@
|
|
|
|
|
|
-
|
|
|
-using NetTaste;
|
|
|
-using System.Drawing.Printing;
|
|
|
-
|
|
|
namespace OASystem.API.Controllers
|
|
|
{
|
|
|
/// <summary>
|
|
@@ -18,8 +14,11 @@ namespace OASystem.API.Controllers
|
|
|
private readonly LocalGuideDataRepository _localGuideDataRep;
|
|
|
private readonly ThreeCodeRepository _ThreeCodeRep;
|
|
|
private readonly HotelDataRepository _hotelDataRep;
|
|
|
+ private readonly ResItemInfoRepository _resItemInfoRep;
|
|
|
|
|
|
- public ResourceController(IMapper mapper, IConfiguration config, CarDataRepository carDataRep, LocalGuideDataRepository localGuideDataRep, ThreeCodeRepository threeCodeRep, HotelDataRepository hotelDataRep)
|
|
|
+ public ResourceController(IMapper mapper, IConfiguration config, CarDataRepository carDataRep,
|
|
|
+ LocalGuideDataRepository localGuideDataRep, ThreeCodeRepository threeCodeRep,
|
|
|
+ HotelDataRepository hotelDataRep, ResItemInfoRepository resItemInfoRep)
|
|
|
{
|
|
|
_mapper = mapper;
|
|
|
_config = config;
|
|
@@ -27,6 +26,7 @@ namespace OASystem.API.Controllers
|
|
|
_localGuideDataRep = localGuideDataRep;
|
|
|
_ThreeCodeRep = threeCodeRep;
|
|
|
_hotelDataRep = hotelDataRep;
|
|
|
+ _resItemInfoRep = resItemInfoRep;
|
|
|
}
|
|
|
#region 车公司资料板块
|
|
|
|
|
@@ -36,37 +36,21 @@ namespace OASystem.API.Controllers
|
|
|
/// <returns></returns>
|
|
|
[HttpPost]
|
|
|
[ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]
|
|
|
- public async Task<IActionResult> QuertCarData(DtoBase dto)
|
|
|
+ public async Task<IActionResult> QueryCarData(QueryCarDataDto dto)
|
|
|
{
|
|
|
try
|
|
|
{
|
|
|
- if (dto.PortType==1)
|
|
|
+ Result LocalGuide = await _carDataRep.QueryCarData(dto);
|
|
|
+ if (LocalGuide.Code == 0)
|
|
|
{
|
|
|
- var carDada = _carDataRep.QueryDto<Res_CarData, CarDataView>().ToList();
|
|
|
- if (carDada.Count == 0)
|
|
|
- {
|
|
|
- return Ok(JsonView(false, "暂无数据!"));
|
|
|
- }
|
|
|
- carDada = carDada.OrderByDescending(s => s.CreateTime).ToList();
|
|
|
- return Ok(JsonView(true, "查询成功", carDada));
|
|
|
- }
|
|
|
- else if(dto.PortType==2)
|
|
|
- {
|
|
|
- var carDada = _carDataRep.QueryDto<Res_CarData, CarDataView>().ToList();
|
|
|
- if (carDada.Count == 0)
|
|
|
- {
|
|
|
- return Ok(JsonView(false, "暂无数据!"));
|
|
|
- }
|
|
|
- carDada=carDada.OrderByDescending(s=>s.CreateTime).ToList();
|
|
|
- return Ok(JsonView(true, "查询成功", carDada));
|
|
|
+ return Ok(JsonView(true, "查询成功", LocalGuide.Data));
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- return Ok(JsonView(false, "请传入PortType参数!1:Web,2:Android,3:IOS"));
|
|
|
+ return Ok(JsonView(false, LocalGuide.Msg));
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
- catch (Exception ex)
|
|
|
+ catch (Exception)
|
|
|
{
|
|
|
return Ok(JsonView(false, "程序错误!"));
|
|
|
throw;
|
|
@@ -75,6 +59,40 @@ namespace OASystem.API.Controllers
|
|
|
|
|
|
}
|
|
|
|
|
|
+ /// <summary>
|
|
|
+ /// 车公司资料下拉框数据
|
|
|
+ /// </summary>
|
|
|
+ /// <returns></returns>
|
|
|
+ [HttpPost]
|
|
|
+ [ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]
|
|
|
+ public async Task<IActionResult> QueryCarSelect()
|
|
|
+ {
|
|
|
+ try
|
|
|
+ {
|
|
|
+ var CarData = _carDataRep.QueryDto<Res_CarData, CarDataSelectView>().ToList();
|
|
|
+ if (CarData.Count == 0)
|
|
|
+ {
|
|
|
+ return Ok(JsonView(false, "暂无数据!"));
|
|
|
+ }
|
|
|
+ CarData.Add(new CarDataSelectView { Id = 0, UnitArea = "全部" });
|
|
|
+ CarData = CarData.Where((x, i) => CarData.FindIndex(z => z.UnitArea == x.UnitArea) == i).ToList();
|
|
|
+ CarData = CarData.OrderBy(x => x.Id).ToList();
|
|
|
+ List<CarDataSelectView> data= new List<CarDataSelectView>();
|
|
|
+ foreach (CarDataSelectView car in CarData)
|
|
|
+ {
|
|
|
+ if (!string.IsNullOrWhiteSpace(car.UnitArea))
|
|
|
+ {
|
|
|
+ data.Add(car);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return Ok(JsonView(true, "查询成功", data));
|
|
|
+ }
|
|
|
+ catch (Exception)
|
|
|
+ {
|
|
|
+ return Ok(JsonView(false, "程序错误!"));
|
|
|
+ throw;
|
|
|
+ }
|
|
|
+ }
|
|
|
/// <summary>
|
|
|
/// 车公司信息添加
|
|
|
/// </summary>
|
|
@@ -102,14 +120,14 @@ namespace OASystem.API.Controllers
|
|
|
return Ok(JsonView(false, "请检查联系方式是否填写正确!"));
|
|
|
}
|
|
|
|
|
|
- var carDada = _carDataRep.QueryDto<Res_CarData, CarDataView>(a=>a.UnitArea==dto.UnitArea && a.UnitName==dto.UnitName && a.Contact==dto.Contact && a.ContactTel==dto.ContactTel).ToList();
|
|
|
- if (carDada.Count!=0)
|
|
|
+ var carDada = _carDataRep.QueryDto<Res_CarData, CarDataView>(a => a.UnitArea == dto.UnitArea && a.UnitName == dto.UnitName && a.Contact == dto.Contact && a.ContactTel == dto.ContactTel).ToList();
|
|
|
+ if (carDada.Count != 0)
|
|
|
{
|
|
|
return Ok(JsonView(false, "该信息已存在,请勿重复添加!"));
|
|
|
}
|
|
|
Res_CarData _CarData = _mapper.Map<Res_CarData>(dto);
|
|
|
int id = await _carDataRep.AddAsyncReturnId(_CarData);
|
|
|
- if (id == 0)
|
|
|
+ if (id == 0)
|
|
|
{
|
|
|
return Ok(JsonView(false, "添加失败!"));
|
|
|
}
|
|
@@ -121,7 +139,7 @@ namespace OASystem.API.Controllers
|
|
|
throw;
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/// <summary>
|
|
|
/// 车公司信息修改
|
|
|
/// </summary>
|
|
@@ -211,33 +229,18 @@ namespace OASystem.API.Controllers
|
|
|
/// <returns></returns>
|
|
|
[HttpPost]
|
|
|
[ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]
|
|
|
- public async Task<IActionResult> QueryLocalGuide(DtoBase dto)
|
|
|
+ public async Task<IActionResult> QueryLocalGuide(QueryLocalGuide dto)
|
|
|
{
|
|
|
try
|
|
|
{
|
|
|
- if (dto.PortType == 1)
|
|
|
+ Result LocalGuide = await _localGuideDataRep.QueryLocalGuide(dto);
|
|
|
+ if (LocalGuide.Code == 0)
|
|
|
{
|
|
|
- var LocalGuideData = _localGuideDataRep.QueryDto<Res_LocalGuideData, LocalGuideDataView>().ToList();
|
|
|
- if (LocalGuideData.Count == 0)
|
|
|
- {
|
|
|
- return Ok(JsonView(false, "暂无数据!"));
|
|
|
- }
|
|
|
- LocalGuideData = LocalGuideData.OrderByDescending(s => s.CreateTime).ToList();
|
|
|
- return Ok(JsonView(true, "查询成功", LocalGuideData));
|
|
|
- }
|
|
|
- else if (dto.PortType == 2)
|
|
|
- {
|
|
|
- var LocalGuideData = _localGuideDataRep.QueryDto<Res_LocalGuideData, LocalGuideDataView>().ToList();
|
|
|
- if (LocalGuideData.Count == 0)
|
|
|
- {
|
|
|
- return Ok(JsonView(false, "暂无数据!"));
|
|
|
- }
|
|
|
- LocalGuideData = LocalGuideData.OrderByDescending(s => s.CreateTime).ToList();
|
|
|
- return Ok(JsonView(true, "查询成功", LocalGuideData));
|
|
|
+ return Ok(JsonView(true, "查询成功", LocalGuide.Data));
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- return Ok(JsonView(false, "请传入PortType参数!1:Web,2:Android,3:IOS"));
|
|
|
+ return Ok(JsonView(false, LocalGuide.Msg));
|
|
|
}
|
|
|
|
|
|
}
|
|
@@ -250,6 +253,41 @@ namespace OASystem.API.Controllers
|
|
|
|
|
|
}
|
|
|
|
|
|
+ /// <summary>
|
|
|
+ /// 导游地接资料下拉框数据
|
|
|
+ /// </summary>
|
|
|
+ /// <returns></returns>
|
|
|
+ [HttpPost]
|
|
|
+ [ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]
|
|
|
+ public async Task<IActionResult> QueryLocalGuideSelect()
|
|
|
+ {
|
|
|
+ try
|
|
|
+ {
|
|
|
+ var LocalGuide = _carDataRep.QueryDto<Res_LocalGuideData, QueryLocalGuideSelectView>().ToList();
|
|
|
+ if (LocalGuide.Count == 0)
|
|
|
+ {
|
|
|
+ return Ok(JsonView(false, "暂无数据!"));
|
|
|
+ }
|
|
|
+ LocalGuide.Add(new QueryLocalGuideSelectView { Id = 0, UnitArea = "全部" });
|
|
|
+ LocalGuide = LocalGuide.Where((x, i) => LocalGuide.FindIndex(z => z.UnitArea == x.UnitArea && z.UnitArea != "") == i).ToList();
|
|
|
+ LocalGuide = LocalGuide.OrderBy(x => x.Id).ToList();
|
|
|
+ List<QueryLocalGuideSelectView> data = new List<QueryLocalGuideSelectView>();
|
|
|
+ foreach (QueryLocalGuideSelectView Local in LocalGuide)
|
|
|
+ {
|
|
|
+ if (!string.IsNullOrWhiteSpace(Local.UnitArea))
|
|
|
+ {
|
|
|
+ data.Add(Local);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return Ok(JsonView(true, "查询成功", LocalGuide));
|
|
|
+ }
|
|
|
+ catch (Exception)
|
|
|
+ {
|
|
|
+ return Ok(JsonView(false, "程序错误!"));
|
|
|
+ throw;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
/// <summary>
|
|
|
/// 导游地接信息操作(Status:1.新增,2.修改)
|
|
|
/// </summary>
|
|
@@ -301,12 +339,12 @@ namespace OASystem.API.Controllers
|
|
|
{
|
|
|
try
|
|
|
{
|
|
|
- var res = await _localGuideDataRep.SoftDeleteByIdAsync<Res_LocalGuideData>(dto.Id.ToString(),dto.DeleteUserId);
|
|
|
+ var res = await _localGuideDataRep.SoftDeleteByIdAsync<Res_LocalGuideData>(dto.Id.ToString(), dto.DeleteUserId);
|
|
|
if (!res)
|
|
|
{
|
|
|
return Ok(JsonView(false, "删除失败"));
|
|
|
}
|
|
|
- return Ok(JsonView(true,"删除成功!"));
|
|
|
+ return Ok(JsonView(true, "删除成功!"));
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
@@ -341,7 +379,7 @@ namespace OASystem.API.Controllers
|
|
|
else if (dto.PortType == 2)
|
|
|
{
|
|
|
//分页写法
|
|
|
- if (dto.PageIndex==0 || dto.PageSize==0)
|
|
|
+ if (dto.PageIndex == 0 || dto.PageSize == 0)
|
|
|
{
|
|
|
return Ok(JsonView(false, "请传入PageIndex和PageSize参数"));
|
|
|
}
|
|
@@ -548,5 +586,249 @@ namespace OASystem.API.Controllers
|
|
|
}
|
|
|
}
|
|
|
#endregion
|
|
|
+
|
|
|
+ #region 物料信息、供应商维护
|
|
|
+ #region 供应商
|
|
|
+ /// <summary>
|
|
|
+ /// 物料供应商查询
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="paras">Json序列化</param>
|
|
|
+ /// <returns></returns>
|
|
|
+ [HttpPost]
|
|
|
+ [ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]
|
|
|
+ public async Task<IActionResult> PostSearchItemVendor(string paras)
|
|
|
+ {
|
|
|
+ if (string.IsNullOrEmpty(paras))
|
|
|
+ {
|
|
|
+ return Ok(JsonView(false, "参数为空"));
|
|
|
+ }
|
|
|
+
|
|
|
+ Search_ResItemVendorDto _ItemVendorDto = System.Text.Json.JsonSerializer.Deserialize<Search_ResItemVendorDto>(paras);
|
|
|
+ if (_ItemVendorDto != null)
|
|
|
+ {
|
|
|
+ if (_ItemVendorDto.SearchType == 2) //获取列表
|
|
|
+ {
|
|
|
+ Res_ItemVendorListView rstList = _resItemInfoRep.GetVendorList(_ItemVendorDto);
|
|
|
+ return Ok(rstList);
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ Res_ItemVendorView rstInfo = _resItemInfoRep.getVendorInfo(_ItemVendorDto);
|
|
|
+ return Ok(rstInfo);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ return Ok(JsonView(false, "参数反序列化失败"));
|
|
|
+ }
|
|
|
+
|
|
|
+ return Ok(JsonView(false));
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 创建/编辑/删除供应商信息
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="_dto"></param>
|
|
|
+ /// <returns></returns>
|
|
|
+ [HttpPost]
|
|
|
+ [ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]
|
|
|
+ public async Task<IActionResult> PostEditItemVendor(Edit_ResItemVendorDto _dto)
|
|
|
+ {
|
|
|
+ bool rst = false;
|
|
|
+
|
|
|
+ if (_dto.EditType >= 0)
|
|
|
+ {
|
|
|
+
|
|
|
+ if (string.IsNullOrEmpty(_dto.VendorFullName))
|
|
|
+ {
|
|
|
+ return Ok(JsonView(false, "全称未填写"));
|
|
|
+ }
|
|
|
+
|
|
|
+ if (string.IsNullOrEmpty(_dto.VendorLinker))
|
|
|
+ {
|
|
|
+ return Ok(JsonView(false, "联系人未填写"));
|
|
|
+ }
|
|
|
+
|
|
|
+ if (string.IsNullOrEmpty(_dto.VendorMobile))
|
|
|
+ {
|
|
|
+ return Ok(JsonView(false, "联系人手机号未填写"));
|
|
|
+ }
|
|
|
+ if (_dto.EditType == 0)
|
|
|
+ {
|
|
|
+ var checkEmpty = _resItemInfoRep.Query<Res_ItemVendor>(s => s.FullName == _dto.VendorFullName).First();
|
|
|
+ if (checkEmpty != null)
|
|
|
+ {
|
|
|
+ return Ok(JsonView(false, "已存在同名供应商"));
|
|
|
+ }
|
|
|
+
|
|
|
+ rst = await _resItemInfoRep.addVendorInfo(_dto);
|
|
|
+ }
|
|
|
+ else if (_dto.EditType == 1)
|
|
|
+ {
|
|
|
+ if (_dto.VendorId > 0)
|
|
|
+ {
|
|
|
+ Res_ItemVendor _entity = _mapper.Map<Res_ItemVendor>(_dto);
|
|
|
+
|
|
|
+ rst = await _resItemInfoRep.updVendorInfo(_entity);
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ return Ok(JsonView(false, "供应商不存在"));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ if (_dto.VendorId < 1 || _dto.SysUserId < 1)
|
|
|
+ {
|
|
|
+ return Ok(JsonView(false, "用户Id或供应商Id不存在"));
|
|
|
+ }
|
|
|
+ Res_ItemVendor _entity = _mapper.Map<Res_ItemVendor>(_dto);
|
|
|
+
|
|
|
+ rst = await _resItemInfoRep.delVendorInfo(_entity);
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ return Ok(JsonView(rst));
|
|
|
+ }
|
|
|
+
|
|
|
+ #endregion
|
|
|
+ #region 物料信息
|
|
|
+ /// <summary>
|
|
|
+ /// 物料信息查询
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="paras">Json序列化</param>
|
|
|
+ /// <returns></returns>
|
|
|
+ [HttpPost]
|
|
|
+ [ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]
|
|
|
+ public async Task<IActionResult> PostSearchItemInfo(string paras)
|
|
|
+ {
|
|
|
+ if (string.IsNullOrEmpty(paras))
|
|
|
+ {
|
|
|
+ return Ok(JsonView(false, "参数为空"));
|
|
|
+ }
|
|
|
+
|
|
|
+ Search_ItemInfoDto _ItemInfoDto = System.Text.Json.JsonSerializer.Deserialize<Search_ItemInfoDto>(paras);
|
|
|
+ if (_ItemInfoDto != null)
|
|
|
+ {
|
|
|
+ if (_ItemInfoDto.SearchType == 2) //获取列表
|
|
|
+ {
|
|
|
+ Res_ItemInfoListView rstList = _resItemInfoRep.GetItemList(_ItemInfoDto);
|
|
|
+ return Ok(rstList);
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ Res_ItemInfoView rstInfo = _resItemInfoRep.getItemInfo(_ItemInfoDto);
|
|
|
+ return Ok(rstInfo);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ return Ok(JsonView(false, "参数反序列化失败"));
|
|
|
+ }
|
|
|
+
|
|
|
+ return Ok(JsonView(false));
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 创建/编辑/删除物料信息
|
|
|
+ /// </summary>
|
|
|
+ ///
|
|
|
+ /// <returns></returns>
|
|
|
+ [HttpPost]
|
|
|
+ [ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]
|
|
|
+ public async Task<IActionResult> PostEditItemInfo(Edit_ResItemInfoDto _dto)
|
|
|
+ {
|
|
|
+ bool rst = false;
|
|
|
+
|
|
|
+ if (_dto.EditType >= 0)
|
|
|
+ {
|
|
|
+ if (_dto.VendorId < 1)
|
|
|
+ {
|
|
|
+ return Ok(JsonView(false, "未选择供应商"));
|
|
|
+ }
|
|
|
+ if (string.IsNullOrEmpty(_dto.ItemName))
|
|
|
+ {
|
|
|
+ return Ok(JsonView(false, "物料名称为空"));
|
|
|
+ }
|
|
|
+ if (_dto.SetDataId < 1)
|
|
|
+ {
|
|
|
+ return Ok(JsonView(false, "未选择物料类型"));
|
|
|
+ }
|
|
|
+ if (_dto.SysUserId < 1)
|
|
|
+ {
|
|
|
+ return Ok(JsonView(false, "当前操作用户Id为空"));
|
|
|
+ }
|
|
|
+ if (_dto.CurrRate <= 0)
|
|
|
+ {
|
|
|
+ return Ok(JsonView(false, "物料录入价格不能小于等于0"));
|
|
|
+ }
|
|
|
+
|
|
|
+ if (_dto.EditType == 0)
|
|
|
+ {
|
|
|
+ //判断物料名称、类型、供应商全部重复
|
|
|
+ var checkEmpty = _resItemInfoRep.Query<Res_ItemDetailInfo>(s => s.ItemName == _dto.ItemName && s.SetDataId == _dto.SetDataId && s.VendorId == _dto.VendorId).First();
|
|
|
+ if (checkEmpty != null)
|
|
|
+ {
|
|
|
+ return Ok(JsonView(false, "已存在重复物料信息"));
|
|
|
+ }
|
|
|
+ Res_ItemDetailInfo _entity = _mapper.Map<Res_ItemDetailInfo>(_dto);
|
|
|
+ DateTime dtNow = DateTime.Now;
|
|
|
+ _entity.CreateUserId = _dto.SysUserId;
|
|
|
+ _entity.IsDel = 0;
|
|
|
+ _entity.MaxRate = _dto.CurrRate;
|
|
|
+ _entity.MaxDt = dtNow;
|
|
|
+ _entity.CurrRate = _dto.CurrRate;
|
|
|
+ _entity.CurrDt = dtNow;
|
|
|
+ _entity.MinRate = _dto.CurrRate;
|
|
|
+ _entity.MinDt = dtNow;
|
|
|
+
|
|
|
+ rst = await _resItemInfoRep.AddAsync<Res_ItemDetailInfo>(_entity) > 0;
|
|
|
+ }
|
|
|
+ else if (_dto.EditType == 1)
|
|
|
+ {
|
|
|
+ if (_dto.ItemId > 0)
|
|
|
+ {
|
|
|
+ Res_ItemDetailInfo _entity = _mapper.Map<Res_ItemDetailInfo>(_dto);
|
|
|
+ _entity.Id = _dto.ItemId;
|
|
|
+
|
|
|
+ rst = await _resItemInfoRep.updItemInfo(_entity);
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ return Ok(JsonView(false, "供应商不存在"));
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ if (_dto.ItemId < 1 || _dto.SysUserId < 1)
|
|
|
+ {
|
|
|
+ return Ok(JsonView(false, "用户Id或物料信息Id不存在"));
|
|
|
+ }
|
|
|
+ Res_ItemDetailInfo _entity = _mapper.Map<Res_ItemDetailInfo>(_dto);
|
|
|
+
|
|
|
+ rst = await _resItemInfoRep.delItemInfo(_entity);
|
|
|
+ }
|
|
|
+
|
|
|
+ return Ok(JsonView(rst));
|
|
|
+ }
|
|
|
+ #endregion
|
|
|
+ #region 物料类型获取
|
|
|
+ /// <summary>
|
|
|
+ /// 物料类型列表获取
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="paras">Json序列化</param>
|
|
|
+ /// <returns></returns>
|
|
|
+ [HttpGet]
|
|
|
+ [ProducesResponseType(typeof(JsonView), StatusCodes.Status200OK)]
|
|
|
+ public async Task<IActionResult> GetItemTypeListBySetData()
|
|
|
+ {
|
|
|
+ List<SetDataView> list = _resItemInfoRep.GetItemTypeListBySetData();
|
|
|
+
|
|
|
+ return Ok(JsonView(list));
|
|
|
+ }
|
|
|
+ #endregion
|
|
|
+ #endregion
|
|
|
}
|
|
|
}
|