Browse Source

Merge branch 'groupmealmanage' of http://10.2.1.24:10244/zhaoy/BPA.NewKitChen.Manage into groupmealmanage

groupmealmanage
zhaoy 7 months ago
parent
commit
fd0225082b
9 changed files with 12 additions and 11 deletions
  1. +1
    -0
      BPA.SAAS.Manage.Application/AExternalPlatform/BaseDto/DtoValidator.cs
  2. +1
    -1
      BPA.SAAS.Manage.Application/AExternalPlatform/Service/Device/Services/DeviceService.cs
  3. +2
    -2
      BPA.SAAS.Manage.Application/AExternalPlatform/Service/Goods/Services/GoodsService.cs
  4. +1
    -1
      BPA.SAAS.Manage.Application/Auth/AuthService.cs
  5. +2
    -2
      BPA.SAAS.Manage.Application/DataBase/Services/GoodsTypeService.cs
  6. +1
    -1
      BPA.SAAS.Manage.Application/StoreServers.cs
  7. +1
    -1
      BPA.SAAS.Manage.Comm/Util/ITreeNode.cs
  8. +2
    -2
      BPA.SAAS.Manage.Web.Core/Handlers/RequestAuditFiltercs.cs
  9. +1
    -1
      BPA.SAAS.Manage.Web.Entry/appsettings.json

+ 1
- 0
BPA.SAAS.Manage.Application/AExternalPlatform/BaseDto/DtoValidator.cs View File

@@ -83,6 +83,7 @@ namespace BPA.SAAS.Manage.Application.AExternalPlatform.BaseDto
string retstr = "";
//定义PropertyInfo的List
List<PropertyInfo> proplist = new List<PropertyInfo>();

//遍历泛型类的每个属性加入到List里面
Array.ForEach<PropertyInfo>(t.GetType().GetProperties(),
p => proplist.Add(p));


+ 1
- 1
BPA.SAAS.Manage.Application/AExternalPlatform/Service/Device/Services/DeviceService.cs View File

@@ -147,7 +147,7 @@ namespace BPA.SAAS.Manage.Application.AExternalPlatform.Service.Device.Services
private async Task CheckInsertParm(DeviceInsertDto dto)
{
if (string.IsNullOrWhiteSpace(dto.StopId)) throw Oops.Oh(ErrorCodeEnum.Code1009);
var getStopurl = BaseServerUrl + "api/store/getbyIdstorelist_alm?id=" + dto.StopId;
var getStopurl = BaseServerUrl + "api/shop/getbyIdstorelist_alm?id=" + dto.StopId;
var responseStop = await getStopurl.SetHeaders(new
{
groupId = CurrentUser.GroupId


+ 2
- 2
BPA.SAAS.Manage.Application/AExternalPlatform/Service/Goods/Services/GoodsService.cs View File

@@ -445,7 +445,7 @@ namespace BPA.SAAS.Manage.Application.AExternalPlatform.Service.Goods.Services
var resEntity = new BPA_GoodsType();
resEntity.Id = Guid.NewGuid().ToString();
resEntity.Name = dto[i].Name;
resEntity.Pid = dto[i].Pid;
resEntity.Pid =string.IsNullOrEmpty(dto[i].Pid)?"0": dto[i].Pid;
resEntity.Sort = dto[i].Sort;
GoodsTypelist.Add(resEntity);
}
@@ -466,7 +466,7 @@ namespace BPA.SAAS.Manage.Application.AExternalPlatform.Service.Goods.Services
if(model==null) throw Oops.Oh("商品分类不存在");
if (dto.Pid == null) dto.Pid = "0";
model.Name = dto.Name;
model.Pid = dto.Pid;
model.Pid =string.IsNullOrEmpty(dto.Pid)?"0": dto.Pid;
model.Sort = dto.Sort;
var res = await SqlSugarDb.Db.Updateable(model).ExecuteCommandAsync();
return res > 0;


+ 1
- 1
BPA.SAAS.Manage.Application/Auth/AuthService.cs View File

@@ -235,7 +235,7 @@ namespace BPA.SAAS.Manage.Application.Auth
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
[HttpGet("/api/authorization/GetCompanyById")]
[HttpGet("/api/authorization/GetCompanyByIdNew")]
[AllowAnonymous]
public async Task<BPA_Company> GetCompanyById(string id)
{


+ 2
- 2
BPA.SAAS.Manage.Application/DataBase/Services/GoodsTypeService.cs View File

@@ -72,7 +72,7 @@ namespace BPA.SAAS.Manage.Application.DataBase.Services
{
var newType = new BPA_GoodsType
{
Pid = dto.Pid,
Pid = string.IsNullOrEmpty(dto.Pid)?"0": dto.Pid,
Name = dto.Name,
Remark = dto.Remark,
Sort = dto.Sort,
@@ -100,7 +100,7 @@ namespace BPA.SAAS.Manage.Application.DataBase.Services
}

resEntity.Name = dto.Name;
resEntity.Pid = dto.Pid;
resEntity.Pid =string.IsNullOrEmpty(dto.Pid)?"0": dto.Pid;
resEntity.Sort = dto.Sort;
resEntity.Remark = dto.Remark;


+ 1
- 1
BPA.SAAS.Manage.Application/StoreServers.cs View File

@@ -22,7 +22,7 @@ namespace BPA.SAAS.Manage.Application
[HttpGet("/api/stop/getstop")]
public async Task<List<StoreDto>> GetStop()
{
var getStoreurl = BaseServerUrl + "api/store/getstorelist_alm";//获取商品属性
var getStoreurl = BaseServerUrl + "api/shop/alllist";
var responseGoodsAttribute = await getStoreurl.SetHeaders(new
{
groupId = App.User?.FindFirst(ClaimConst.GroupId)?.Value


+ 1
- 1
BPA.SAAS.Manage.Comm/Util/ITreeNode.cs View File

@@ -70,7 +70,7 @@ namespace BPA.SAAS.Manage.Comm.Util
var nodeSubList = new List<T>();
totalNodes.ForEach(u =>
{
if (u.GetPid().Equals(node.GetId()))
if (u.GetPid()== node.GetId())
nodeSubList.Add(u);
});
nodeSubList.ForEach(u => BuildChildNodes(totalNodes, u, new List<T>()));


+ 2
- 2
BPA.SAAS.Manage.Web.Core/Handlers/RequestAuditFiltercs.cs View File

@@ -91,9 +91,9 @@ namespace BPA.SAAS.Manage.Web.Core
{
foreach (var parameter in parameters)
{
var stingA = DtoValidator.GetSign(parameter.Value);
// var stingA = DtoValidator.GetSign(parameter.Value);
//var sign = DtoValidator.GetAttributePrice(parameter.Value, "sign");
await _checkServices.CheckSign(key, stingA, sign);
await _checkServices.CheckSign(key, "stingA", sign);
}
}


+ 1
- 1
BPA.SAAS.Manage.Web.Entry/appsettings.json View File

@@ -36,7 +36,7 @@
"UserName": "emqx_u_block",
"Password": "emqx_p_admin8765490789"
},
"baseurl": "http://localhost:5002/",
"baseurl": "http://192.168.1.16:5002/",
"order_url": "http://order",
"wechat_url": "http://wechat"
}

Loading…
Cancel
Save