Selaa lähdekoodia

提交

master
gwbvipvip 8 kuukautta sitten
vanhempi
commit
eb2c3b5b02
9 muutettua tiedostoa jossa 64 lisäystä ja 6 poistoa
  1. +7
    -5
      BPA.SAAS.KitChenManage.Application/BPA.SAAS.KitChenManage.Application.csproj
  2. +7
    -0
      BPA.SAAS.KitChenManage.Application/BPA.SAAS.KitChenManage.Application.xml
  3. +4
    -0
      BPA.SAAS.KitChenManage.Application/Device/DevicePushRecodeServices.cs
  4. +14
    -0
      BPA.SAAS.KitChenManage.Application/Device/Services/DevicePushRecodeService.cs
  5. +1
    -0
      BPA.SAAS.KitChenManage.Application/Device/Services/IDevicePushRecodeService.cs
  6. +1
    -0
      BPA.SAAS.KitChenManage.Application/Store/Services/IStoreService.cs
  7. +19
    -0
      BPA.SAAS.KitChenManage.Application/Store/Services/StoreService.cs
  8. +10
    -0
      BPA.SAAS.KitChenManage.Application/Store/StoreServices.cs
  9. +1
    -1
      BPA.SAAS.KitChenManage.Web.Entry/Properties/launchSettings.json

+ 7
- 5
BPA.SAAS.KitChenManage.Application/BPA.SAAS.KitChenManage.Application.csproj Näytä tiedosto

@@ -9,6 +9,13 @@
</PropertyGroup>


<ItemGroup>
<Compile Remove="AExternalPlatform\**" />
<EmbeddedResource Remove="AExternalPlatform\**" />
<None Remove="AExternalPlatform\**" />
</ItemGroup>



<ItemGroup>
<None Remove="BPA.SAAS.KitChenManage.Application.xml" />
@@ -26,9 +33,4 @@
<ProjectReference Include="..\BPA.SAAS.KitChenManage.Core\BPA.SAAS.KitChenManage.Core.csproj" />
</ItemGroup>

<ItemGroup>
<Folder Include="AExternalPlatform\Service\CheckService\Dtos\" />
<Folder Include="AExternalPlatform\Service\Platform\Material\Dtos\" />
</ItemGroup>

</Project>

+ 7
- 0
BPA.SAAS.KitChenManage.Application/BPA.SAAS.KitChenManage.Application.xml Näytä tiedosto

@@ -856,6 +856,13 @@
</summary>
<returns></returns>
</member>
<member name="M:BPA.SAAS.KitChenManage.Application.Store.StoreServices.GetByIdStoreList_alm(System.String)">
<summary>
根据店铺id查询店铺(外部调用)
</summary>
<param name="id"></param>
<returns></returns>
</member>
<member name="M:BPA.SAAS.KitChenManage.Application.Store.StoreServices.Add(BPA.SAAS.KitChenManage.Application.Store.Dtos.StoreDtoInput)">
<summary>
添加


+ 4
- 0
BPA.SAAS.KitChenManage.Application/Device/DevicePushRecodeServices.cs Näytä tiedosto

@@ -17,6 +17,10 @@ namespace BPA.SAAS.KitChenManage.Application.Device
{
_devicePushRecodeService= devicePushRecodeService;
}
public async Task<string> Test()
{
return await _devicePushRecodeService.Test();
}
/// <summary>
/// 分页
/// </summary>


+ 14
- 0
BPA.SAAS.KitChenManage.Application/Device/Services/DevicePushRecodeService.cs Näytä tiedosto

@@ -10,6 +10,7 @@ using BPA.SAAS.KitChenManage.Core.Model;
using Furion.LinqBuilder;
using Furion.RemoteRequest.Extensions;
using Longbow.Tasks;
using Microsoft.AspNetCore.DataProtection.KeyManagement;
using Microsoft.CodeAnalysis.Operations;
using Microsoft.Extensions.Hosting;
using MQTTnet;
@@ -40,6 +41,19 @@ namespace BPA.SAAS.KitChenManage.Application.Device.Services
_mqttClient=mqttClient;
mqttServer = new(mqttClient);
}
public async Task<string> Test()
{
var getGoodsAttributeurl = "http://localhost:5009/api/ExternalPlatform/Goods/GetGoodsPageList";//获取商品属性
var key = "47e5c071-6283-4d9d-8dcb-36ba95aa8db9";
var str = "current=1&pageSize=10&"+ key;
var sign = MD5Encryption.Encrypt(str.ToUpper());
var respon = await getGoodsAttributeurl.SetHeaders(new
{
sign= sign,
key = key
}).SetHttpMethod(HttpMethod.Get).SetBody("{\"current\":1,\"pageSize\":10}", "application/json").PostAsStringAsync();
return respon;
}
/// <summary>
/// 分页
/// </summary>


+ 1
- 0
BPA.SAAS.KitChenManage.Application/Device/Services/IDevicePushRecodeService.cs Näytä tiedosto

@@ -10,6 +10,7 @@ namespace BPA.SAAS.KitChenManage.Application.Device.Services
{
public interface IDevicePushRecodeService
{
Task<string> Test();
/// <summary>
/// 分页
/// </summary>


+ 1
- 0
BPA.SAAS.KitChenManage.Application/Store/Services/IStoreService.cs Näytä tiedosto

@@ -22,6 +22,7 @@ namespace BPA.SAAS.KitChenManage.Application.Store.Services
/// <returns></returns>
Task<List<StoreDtoOutput>> GetStoreList();
Task<List<StoreDtoOutput>> GetStoreList_alm();
Task<StoreDtoOutput> GetByIdStoreList_alm(string id);
/// <summary>
/// 添加
/// </summary>


+ 19
- 0
BPA.SAAS.KitChenManage.Application/Store/Services/StoreService.cs Näytä tiedosto

@@ -85,6 +85,25 @@ namespace BPA.SAAS.KitChenManage.Application.Store.Services

return res;
}
public async Task<StoreDtoOutput> GetByIdStoreList_alm(string id)
{
string groupId = App.HttpContext.Request.Headers["groupId"].ToString();
if (string.IsNullOrWhiteSpace(groupId)) throw Oops.Oh("加盟商id不能为空");
var res = await _db.Queryable<BPA_Store>().Where(x => x.GroupId == groupId && x.Id== id)
.Select(t => new StoreDtoOutput
{
CreateAt = t.CreateAt,
Id = t.Id,
Name = t.Name,
Phone = t.Phone,
Description = t.Description,
OrgName = t.OrgName,
OrgId = t.OrgId,
Sort = t.Sort,
}).OrderBy(t => t.Sort).OrderBy(x => x.CreateAt, OrderByType.Desc).FirstAsync();

return res;
}
/// <summary>
/// 添加
/// </summary>


+ 10
- 0
BPA.SAAS.KitChenManage.Application/Store/StoreServices.cs Näytä tiedosto

@@ -47,6 +47,16 @@ namespace BPA.SAAS.KitChenManage.Application.Store
return await _storeService.GetStoreList_alm();
}
/// <summary>
/// 根据店铺id查询店铺(外部调用)
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
[HttpGet("/api/store/getbyIdstorelist_alm")]
public async Task<StoreDtoOutput> GetByIdStoreList_alm(string id)
{
return await _storeService.GetByIdStoreList_alm(id);
}
/// <summary>
/// 添加
/// </summary>
/// <param name="input"></param>


+ 1
- 1
BPA.SAAS.KitChenManage.Web.Entry/Properties/launchSettings.json Näytä tiedosto

@@ -22,7 +22,7 @@
"dotnetRunMessages": true,
"launchBrowser": true,
"launchUrl": "",
"applicationUrl": "http://localhost:5008",
"applicationUrl": "http://localhost:5007",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}


Ladataan…
Peruuta
Tallenna