gwbvipvip pirms 1 gada
vecāks
revīzija
9faa93d26c
74 mainītis faili ar 577 papildinājumiem un 18 dzēšanām
  1. Binārs
     
  2. Binārs
     
  3. Binārs
     
  4. Binārs
     
  5. Binārs
     
  6. Binārs
     
  7. Binārs
     
  8. Binārs
     
  9. Binārs
     
  10. Binārs
     
  11. Binārs
     
  12. Binārs
     
  13. Binārs
     
  14. Binārs
     
  15. Binārs
     
  16. Binārs
     
  17. +2
    -1
      BPA.KitChen.GroupMeal.Application/BPA.KitChen.GroupMeal.Application.csproj
  18. +25
    -0
      BPA.KitChen.GroupMeal.Application/Service/Gate/Dtos/GateDto.cs
  19. +134
    -0
      BPA.KitChen.GroupMeal.Application/Service/Gate/GateService.cs
  20. +12
    -0
      BPA.KitChen.GroupMeal.Application/Service/Gate/IGateService.cs
  21. +9
    -1
      BPA.KitChen.GroupMeal.Application/Service/Shop/Dtos/ShopDto.cs
  22. +24
    -6
      BPA.KitChen.GroupMeal.Application/Service/Shop/ShopService.cs
  23. +2
    -0
      BPA.KitChen.GroupMeal.Application/Service/Test/TestService.cs
  24. Binārs
     
  25. Binārs
     
  26. +97
    -0
      BPA.KitChen.GroupMeal.Application/bin/Debug/net6.0/BPA.KitChen.GroupMeal.Application.xml
  27. Binārs
     
  28. Binārs
     
  29. Binārs
     
  30. Binārs
     
  31. Binārs
     
  32. +1
    -1
      BPA.KitChen.GroupMeal.Application/obj/Debug/net6.0/BPA.KitChen.GroupMeal.Application.csproj.CoreCompileInputs.cache
  33. +2
    -0
      BPA.KitChen.GroupMeal.Application/obj/Debug/net6.0/BPA.KitChen.GroupMeal.Application.csproj.FileListAbsolute.txt
  34. Binārs
     
  35. Binārs
     
  36. +97
    -0
      BPA.KitChen.GroupMeal.Application/obj/Debug/net6.0/BPA.KitChen.GroupMeal.Application.xml
  37. Binārs
     
  38. Binārs
     
  39. +1
    -0
      BPA.KitChen.GroupMeal.Core/BPA.KitChen.GroupMeal.Core.csproj
  40. +39
    -0
      BPA.KitChen.GroupMeal.Core/Entity/BPA_Gate.cs
  41. +2
    -2
      BPA.KitChen.GroupMeal.Core/Entity/Base/EntityBase.cs
  42. +1
    -2
      BPA.KitChen.GroupMeal.Core/Entity/Base/IEntityFilter.cs
  43. +2
    -1
      BPA.KitChen.GroupMeal.Core/Entity/ShopEntity.cs
  44. +24
    -0
      BPA.KitChen.GroupMeal.Core/Enum/StatusEntity.cs
  45. Binārs
     
  46. Binārs
     
  47. +1
    -1
      BPA.KitChen.GroupMeal.Core/obj/Debug/net6.0/BPA.KitChen.GroupMeal.Core.csproj.CoreCompileInputs.cache
  48. Binārs
     
  49. Binārs
     
  50. Binārs
     
  51. Binārs
     
  52. +2
    -2
      BPA.KitChen.GroupMeal.SqlSugar/SqlSugarDb.cs
  53. Binārs
     
  54. Binārs
     
  55. Binārs
     
  56. Binārs
     
  57. Binārs
     
  58. Binārs
     
  59. Binārs
     
  60. +1
    -0
      BPA.KitChen.GroupMeal/Program.cs
  61. +1
    -1
      BPA.KitChen.GroupMeal/Properties/launchSettings.json
  62. Binārs
     
  63. Binārs
     
  64. +97
    -0
      BPA.KitChen.GroupMeal/bin/Debug/net6.0/BPA.KitChen.GroupMeal.Application.xml
  65. Binārs
     
  66. Binārs
     
  67. Binārs
     
  68. Binārs
     
  69. Binārs
     
  70. Binārs
     
  71. Binārs
     
  72. +1
    -0
      BPA.KitChen.GroupMeal/obj/Debug/net6.0/BPA.KitChen.GroupMeal.csproj.FileListAbsolute.txt
  73. Binārs
     
  74. Binārs
     

Binārs
Parādīt failu


Binārs
Parādīt failu


Binārs
Parādīt failu


Binārs
Parādīt failu


Binārs
Parādīt failu


Binārs
Parādīt failu


Binārs
Parādīt failu


Binārs
Parādīt failu


Binārs
Parādīt failu


Binārs
Parādīt failu


Binārs
Parādīt failu


Binārs
Parādīt failu


Binārs
Parādīt failu


Binārs
Parādīt failu


Binārs
Parādīt failu


Binārs
Parādīt failu


+ 2
- 1
BPA.KitChen.GroupMeal.Application/BPA.KitChen.GroupMeal.Application.csproj Parādīt failu

@@ -1,9 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<GenerateDocumentationFile>True</GenerateDocumentationFile>
</PropertyGroup>

<ItemGroup>


+ 25
- 0
BPA.KitChen.GroupMeal.Application/Service/Gate/Dtos/GateDto.cs Parādīt failu

@@ -0,0 +1,25 @@
using BPA.KitChen.GroupMeal.Core.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BPA.KitChen.GroupMeal.Application.Service.Gate.Dtos
{
public class GateDto:BPA_Gate
{
}

public class GateCreateOrUpdateDto: BPA_Gate
{

}

public class GatePageDto: PageInputDto
{
public string ShopId { get; set; }
public string Name { get; set; }
public int? Mode { get; set; }
}
}

+ 134
- 0
BPA.KitChen.GroupMeal.Application/Service/Gate/GateService.cs Parādīt failu

@@ -0,0 +1,134 @@
using BPA.KitChen.GroupMeal.Application.Service.Gate.Dtos;
using BPA.KitChen.GroupMeal.Application.Service.Shop;
using BPA.KitChen.GroupMeal.Application.Service.Shop.Dtos;
using BPA.KitChen.GroupMeal.Core.Entity;
using BPA.KitChen.GroupMeal.SqlSugar;
using Furion.DependencyInjection;
using Furion.DynamicApiController;
using Furion.FriendlyException;
using Mapster;
using Microsoft.AspNetCore.Mvc;
using SqlSugar;
using StackExchange.Profiling.Internal;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BPA.KitChen.GroupMeal.Application.Service.Gate
{

[ApiDescriptionSettings("一卡通", Tag = "档口管理", SplitCamelCase = false)]
public class GateService: IDynamicApiController, ITransient, IGateService
{
/// <summary>
/// 新增
/// </summary>
/// <param name="inputDto"></param>
/// <returns></returns>
public async Task<bool> Add(GateCreateOrUpdateDto inputDto)
{
var res= await SqlSugarDb.Db.Insertable<BPA_Gate>(inputDto.Adapt<BPA_Gate>())
.ExecuteCommandAsync();
return res > 0;
}


/// <summary>
/// 修改
/// </summary>
/// <param name="inputDto"></param>
/// <returns></returns>
public async Task<bool> Update(GateCreateOrUpdateDto inputDto)
{
var data = await SqlSugarDb.Db.Queryable<BPA_Gate>().FirstAsync(x => x.Id == inputDto.Id);

data.Name = inputDto.Name;
data.Mode = inputDto.Mode;
data.Price = inputDto.Price;
data.ShopId = inputDto.ShopId;
data.Remaek = inputDto.Remaek;

var res = await SqlSugarDb.Db.Updateable<BPA_Gate>(data)
.ExecuteCommandAsync();
return res > 0;
}

/// <summary>
/// 分页
/// </summary>
/// <param name="inputDto"></param>
/// <returns></returns>
[HttpPost]
public async Task<PageOutDto> GetPage(GatePageDto inputDto)
{
var total = new RefAsync<int>();
var data = await SqlSugarDb.Db.Queryable<BPA_Gate>()
.WhereIF(!string.IsNullOrEmpty(inputDto.ShopId), x => x.ShopId == inputDto.ShopId)
.WhereIF(!string.IsNullOrEmpty(inputDto.Name), x => x.Name.Contains(inputDto.Name))
.WhereIF(inputDto.Mode.HasValue, x => x.Mode == inputDto.Mode)
.OrderBy(a => a.CreateAt, OrderByType.Desc)
.ToPageListAsync(inputDto.Current, inputDto.PageSize, total);

return new PageOutDto()
{
Data = data,
Total = total

};
}

/// <summary>
/// 删除
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
public async Task<bool> Del(string id)
{
var data = await SqlSugarDb.Db.Queryable<BPA_Gate>().FirstAsync(x => x.Id == id);

var res = await SqlSugarDb.Db.Updateable<BPA_Gate>()
.SetColumns(it => new BPA_Gate { IsDelete = true })//类只能在表达示里面不能提取
.Where(it => it.Id == id)
.ExecuteCommandAsync();

return res > 0;
}


/// <summary>
/// 状态
/// </summary>
/// <param name="inputDto"></param>
/// <returns></returns>
public async Task<bool> Enable(GateCreateOrUpdateDto inputDto)
{
var data = await SqlSugarDb.Db.Queryable<BPA_Gate>().Where(x => inputDto.Id == x.Id).ToListAsync();
foreach (var item in data)
{
item.Status = inputDto.Status;
}
var res = await SqlSugarDb.Db.Updateable<BPA_Gate>(data).ExecuteCommandAsync();
return res > 0;
}


/// <summary>
/// 获取全部
/// </summary>
/// <param name="shopId"></param>
/// <returns></returns>
public async Task<List<GateDto>> GetGateAllList(string shopId)
{
return await SqlSugarDb.Db.Queryable<BPA_Gate>()
.Select(x =>new GateDto()
{
Id=x.Id.SelectAll(),
} )
.ToListAsync();
}

}
}

+ 12
- 0
BPA.KitChen.GroupMeal.Application/Service/Gate/IGateService.cs Parādīt failu

@@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BPA.KitChen.GroupMeal.Application.Service.Gate
{
public interface IGateService
{
}
}

+ 9
- 1
BPA.KitChen.GroupMeal.Application/Service/Shop/Dtos/ShopDto.cs Parādīt failu

@@ -12,7 +12,7 @@ namespace BPA.KitChen.GroupMeal.Application.Service.Shop.Dtos
{
}

public class ShopCreateOrUpDateDto
public class ShopCreateOrUpdateDto
{
public string Id { get; set; }

@@ -23,4 +23,12 @@ namespace BPA.KitChen.GroupMeal.Application.Service.Shop.Dtos
public string Phone { get; set; }

}

public class ShopPageDto : PageInputDto
{
public string Name { get; set; }
public string Phone { get; set; }

public string OrgId { get; set; }
}
}

+ 24
- 6
BPA.KitChen.GroupMeal.Application/Service/Shop/ShopService.cs Parādīt failu

@@ -1,10 +1,13 @@
using BPA.KitChen.GroupMeal.Application.Service.Shop.Dtos;
using BPA.KitChen.GroupMeal.Core.Common.Const;
using BPA.KitChen.GroupMeal.Core.Entity;
using BPA.KitChen.GroupMeal.SqlSugar;
using Furion;
using Furion.DependencyInjection;
using Furion.DynamicApiController;
using Furion.FriendlyException;
using Mapster;
using Microsoft.AspNetCore.Components.Forms;
using Microsoft.AspNetCore.Mvc;
using SqlSugar;

@@ -19,10 +22,14 @@ namespace BPA.KitChen.GroupMeal.Application.Service.Shop
/// </summary>
/// <param name="inputDto"></param>
/// <returns></returns>
public async Task<PageOutDto> GetPage(PageInputDto inputDto)
[HttpPost]
public async Task<PageOutDto> GetPage(ShopPageDto inputDto)
{
var total = new RefAsync<int>();
var data =await SqlSugarDb.Db.Queryable<ShopEntity>()
.WhereIF(!string.IsNullOrEmpty(inputDto.Name),x=>x.Name.Contains(inputDto.Name))
.WhereIF(!string.IsNullOrEmpty(inputDto.Phone), x => x.Phone.Contains(inputDto.Phone))
.WhereIF(!string.IsNullOrEmpty(inputDto.OrgId), x => x.OrgId==inputDto.OrgId)
.OrderBy(a => a.CreateAt, OrderByType.Desc)
.ToPageListAsync(inputDto.Current, inputDto.PageSize, total);

@@ -34,12 +41,18 @@ namespace BPA.KitChen.GroupMeal.Application.Service.Shop
};
}

public async Task<List<ShopEntity>> GetAllList()
{
var data = await SqlSugarDb.Db.Queryable<ShopEntity>().ToListAsync();
return data;
}

/// <summary>
/// 新增
/// </summary>
/// <param name="inputDto"></param>
/// <returns></returns>
public async Task<bool> Add(ShopCreateOrUpDateDto inputDto)
public async Task<bool> Add(ShopCreateOrUpdateDto inputDto)
{
inputDto.Id=Guid.NewGuid().ToString();
var data=await SqlSugarDb.Db.Queryable< ShopEntity >().FirstAsync(x=>x.Name==inputDto.Name);
@@ -58,15 +71,15 @@ namespace BPA.KitChen.GroupMeal.Application.Service.Shop
/// </summary>
/// <param name="inputDto"></param>
/// <returns></returns>
public async Task<bool> Update(ShopCreateOrUpDateDto inputDto)
public async Task<bool> Update(ShopCreateOrUpdateDto inputDto)
{
var data = await SqlSugarDb.Db.Queryable<ShopEntity>().FirstAsync(x => x.Id == inputDto.Id);
if (data == null)
{
throw Oops.Oh($"数据不存在");
}
data= await SqlSugarDb.Db.Queryable<ShopEntity>().FirstAsync(x => x.Id != inputDto.Id&&x.Name==inputDto.Name);
if (data != null)
var data2= await SqlSugarDb.Db.Queryable<ShopEntity>().FirstAsync(x => x.Id != inputDto.Id&&x.Name==inputDto.Name);
if (data2 != null)
{
throw Oops.Oh($"名称存在");
}
@@ -80,7 +93,12 @@ namespace BPA.KitChen.GroupMeal.Application.Service.Shop

public async Task<bool> Del(string id)
{
var res =await SqlSugarDb.Db.Deleteable<ShopEntity>().Where(x => x.Id == id).ExecuteCommandAsync();
var data = await SqlSugarDb.Db.Queryable<ShopEntity>().FirstAsync(x => x.Id == id);

var res =await SqlSugarDb.Db.Updateable<ShopEntity>()
.SetColumns(it => new ShopEntity {IsDelete=true })//类只能在表达示里面不能提取
.Where(it => it.Id==id)
.ExecuteCommandAsync();

return res > 0;
}


+ 2
- 0
BPA.KitChen.GroupMeal.Application/Service/Test/TestService.cs Parādīt failu

@@ -1,6 +1,7 @@
using BPA.KitChen.GroupMeal.SqlSugar;
using Furion.DependencyInjection;
using Furion.DynamicApiController;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using SqlSugar;
using System;
@@ -13,6 +14,7 @@ using System.Threading.Tasks;
namespace BPA.KitChen.GroupMeal.Application.Service.TestService
{
[ApiDescriptionSettings("测试", Tag = "测试", SplitCamelCase = false)]
[AllowAnonymous]
public class TestService: IDynamicApiController, ITransient, ITestService
{
/// <summary>


Binārs
Parādīt failu


Binārs
Parādīt failu


+ 97
- 0
BPA.KitChen.GroupMeal.Application/bin/Debug/net6.0/BPA.KitChen.GroupMeal.Application.xml Parādīt failu

@@ -0,0 +1,97 @@
<?xml version="1.0"?>
<doc>
<assembly>
<name>BPA.KitChen.GroupMeal.Application</name>
</assembly>
<members>
<member name="F:BPA.KitChen.GroupMeal.Application.Service.PageInputDto.current">
<summary>
当前页码
</summary>
</member>
<member name="F:BPA.KitChen.GroupMeal.Application.Service.PageInputDto.pagesize">
<summary>
页码容量
</summary>
</member>
<member name="P:BPA.KitChen.GroupMeal.Application.Service.PageOutDto.Data">
<summary>
Data
</summary>
</member>
<member name="P:BPA.KitChen.GroupMeal.Application.Service.PageOutDto.Total">
<summary>
Total
</summary>
</member>
<member name="M:BPA.KitChen.GroupMeal.Application.Service.Gate.GateService.Add(BPA.KitChen.GroupMeal.Application.Service.Gate.Dtos.GateCreateOrUpdateDto)">
<summary>
新增
</summary>
<param name="inputDto"></param>
<returns></returns>
</member>
<member name="M:BPA.KitChen.GroupMeal.Application.Service.Gate.GateService.Update(BPA.KitChen.GroupMeal.Application.Service.Gate.Dtos.GateCreateOrUpdateDto)">
<summary>
修改
</summary>
<param name="inputDto"></param>
<returns></returns>
</member>
<member name="M:BPA.KitChen.GroupMeal.Application.Service.Gate.GateService.GetPage(BPA.KitChen.GroupMeal.Application.Service.Gate.Dtos.GatePageDto)">
<summary>
分页
</summary>
<param name="inputDto"></param>
<returns></returns>
</member>
<member name="M:BPA.KitChen.GroupMeal.Application.Service.Gate.GateService.Del(System.String)">
<summary>
删除
</summary>
<param name="id"></param>
<returns></returns>
</member>
<member name="M:BPA.KitChen.GroupMeal.Application.Service.Gate.GateService.Enable(BPA.KitChen.GroupMeal.Application.Service.Gate.Dtos.GateCreateOrUpdateDto)">
<summary>
状态
</summary>
<param name="inputDto"></param>
<returns></returns>
</member>
<member name="M:BPA.KitChen.GroupMeal.Application.Service.Gate.GateService.GetGateAllList(System.String)">
<summary>
获取全部
</summary>
<param name="shopId"></param>
<returns></returns>
</member>
<member name="M:BPA.KitChen.GroupMeal.Application.Service.Shop.ShopService.GetPage(BPA.KitChen.GroupMeal.Application.Service.Shop.Dtos.ShopPageDto)">
<summary>
分页查询
</summary>
<param name="inputDto"></param>
<returns></returns>
</member>
<member name="M:BPA.KitChen.GroupMeal.Application.Service.Shop.ShopService.Add(BPA.KitChen.GroupMeal.Application.Service.Shop.Dtos.ShopCreateOrUpdateDto)">
<summary>
新增
</summary>
<param name="inputDto"></param>
<returns></returns>
</member>
<member name="M:BPA.KitChen.GroupMeal.Application.Service.Shop.ShopService.Update(BPA.KitChen.GroupMeal.Application.Service.Shop.Dtos.ShopCreateOrUpdateDto)">
<summary>
修改
</summary>
<param name="inputDto"></param>
<returns></returns>
</member>
<member name="M:BPA.KitChen.GroupMeal.Application.Service.TestService.TestService.CodeFirst">
<summary>
CodeFirst
</summary>
<param name="tableNames"></param>
</member>
</members>
</doc>

Binārs
Parādīt failu


Binārs
Parādīt failu


Binārs
Parādīt failu


Binārs
Parādīt failu


Binārs
Parādīt failu


+ 1
- 1
BPA.KitChen.GroupMeal.Application/obj/Debug/net6.0/BPA.KitChen.GroupMeal.Application.csproj.CoreCompileInputs.cache Parādīt failu

@@ -1 +1 @@
1694477c1a5fdde4cfc4d454b481352ca1eab536
161c224aa1ea89a43e78fc4fd7d626ebcec9f6f5

+ 2
- 0
BPA.KitChen.GroupMeal.Application/obj/Debug/net6.0/BPA.KitChen.GroupMeal.Application.csproj.FileListAbsolute.txt Parādīt failu

@@ -15,3 +15,5 @@ D:\Work\BPA.KitChen.GroupMeal\BPA.KitChen.GroupMeal.Application\obj\Debug\net6.0
D:\Work\BPA.KitChen.GroupMeal\BPA.KitChen.GroupMeal.Application\obj\Debug\net6.0\refint\BPA.KitChen.GroupMeal.Application.dll
D:\Work\BPA.KitChen.GroupMeal\BPA.KitChen.GroupMeal.Application\obj\Debug\net6.0\BPA.KitChen.GroupMeal.Application.pdb
D:\Work\BPA.KitChen.GroupMeal\BPA.KitChen.GroupMeal.Application\obj\Debug\net6.0\ref\BPA.KitChen.GroupMeal.Application.dll
D:\Work\BPA.KitChen.GroupMeal\BPA.KitChen.GroupMeal.Application\bin\Debug\net6.0\BPA.KitChen.GroupMeal.Application.xml
D:\Work\BPA.KitChen.GroupMeal\BPA.KitChen.GroupMeal.Application\obj\Debug\net6.0\BPA.KitChen.GroupMeal.Application.xml

Binārs
Parādīt failu


Binārs
Parādīt failu


+ 97
- 0
BPA.KitChen.GroupMeal.Application/obj/Debug/net6.0/BPA.KitChen.GroupMeal.Application.xml Parādīt failu

@@ -0,0 +1,97 @@
<?xml version="1.0"?>
<doc>
<assembly>
<name>BPA.KitChen.GroupMeal.Application</name>
</assembly>
<members>
<member name="F:BPA.KitChen.GroupMeal.Application.Service.PageInputDto.current">
<summary>
当前页码
</summary>
</member>
<member name="F:BPA.KitChen.GroupMeal.Application.Service.PageInputDto.pagesize">
<summary>
页码容量
</summary>
</member>
<member name="P:BPA.KitChen.GroupMeal.Application.Service.PageOutDto.Data">
<summary>
Data
</summary>
</member>
<member name="P:BPA.KitChen.GroupMeal.Application.Service.PageOutDto.Total">
<summary>
Total
</summary>
</member>
<member name="M:BPA.KitChen.GroupMeal.Application.Service.Gate.GateService.Add(BPA.KitChen.GroupMeal.Application.Service.Gate.Dtos.GateCreateOrUpdateDto)">
<summary>
新增
</summary>
<param name="inputDto"></param>
<returns></returns>
</member>
<member name="M:BPA.KitChen.GroupMeal.Application.Service.Gate.GateService.Update(BPA.KitChen.GroupMeal.Application.Service.Gate.Dtos.GateCreateOrUpdateDto)">
<summary>
修改
</summary>
<param name="inputDto"></param>
<returns></returns>
</member>
<member name="M:BPA.KitChen.GroupMeal.Application.Service.Gate.GateService.GetPage(BPA.KitChen.GroupMeal.Application.Service.Gate.Dtos.GatePageDto)">
<summary>
分页
</summary>
<param name="inputDto"></param>
<returns></returns>
</member>
<member name="M:BPA.KitChen.GroupMeal.Application.Service.Gate.GateService.Del(System.String)">
<summary>
删除
</summary>
<param name="id"></param>
<returns></returns>
</member>
<member name="M:BPA.KitChen.GroupMeal.Application.Service.Gate.GateService.Enable(BPA.KitChen.GroupMeal.Application.Service.Gate.Dtos.GateCreateOrUpdateDto)">
<summary>
状态
</summary>
<param name="inputDto"></param>
<returns></returns>
</member>
<member name="M:BPA.KitChen.GroupMeal.Application.Service.Gate.GateService.GetGateAllList(System.String)">
<summary>
获取全部
</summary>
<param name="shopId"></param>
<returns></returns>
</member>
<member name="M:BPA.KitChen.GroupMeal.Application.Service.Shop.ShopService.GetPage(BPA.KitChen.GroupMeal.Application.Service.Shop.Dtos.ShopPageDto)">
<summary>
分页查询
</summary>
<param name="inputDto"></param>
<returns></returns>
</member>
<member name="M:BPA.KitChen.GroupMeal.Application.Service.Shop.ShopService.Add(BPA.KitChen.GroupMeal.Application.Service.Shop.Dtos.ShopCreateOrUpdateDto)">
<summary>
新增
</summary>
<param name="inputDto"></param>
<returns></returns>
</member>
<member name="M:BPA.KitChen.GroupMeal.Application.Service.Shop.ShopService.Update(BPA.KitChen.GroupMeal.Application.Service.Shop.Dtos.ShopCreateOrUpdateDto)">
<summary>
修改
</summary>
<param name="inputDto"></param>
<returns></returns>
</member>
<member name="M:BPA.KitChen.GroupMeal.Application.Service.TestService.TestService.CodeFirst">
<summary>
CodeFirst
</summary>
<param name="tableNames"></param>
</member>
</members>
</doc>

Binārs
Parādīt failu


Binārs
Parādīt failu


+ 1
- 0
BPA.KitChen.GroupMeal.Core/BPA.KitChen.GroupMeal.Core.csproj Parādīt failu

@@ -15,6 +15,7 @@

<ItemGroup>
<Folder Include="Common\Enum\" />
<Folder Include="Entity\Base\" />
</ItemGroup>

</Project>

+ 39
- 0
BPA.KitChen.GroupMeal.Core/Entity/BPA_Gate.cs Parādīt failu

@@ -0,0 +1,39 @@
using BPA.KitChen.GroupMeal.Core.Entity.Base;
using BPA.KitChen.GroupMeal.Core.Enum;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BPA.KitChen.GroupMeal.Core.Entity
{

[SugarTable("bpa_gate")]
public class BPA_Gate : EntityTenant
{
[SugarColumn(ColumnDataType = "varchar(20)", ColumnDescription = "档口名称", IsNullable = false)]
public string Name { get; set; }

[SugarColumn(ColumnDataType = "varchar(64)", ColumnDescription = "店铺", IsNullable = false)]
public string ShopId { get; set; }

/// <summary>
/// 收费方式(1,固定金额2,自由设定)
/// </summary>
[SugarColumn(ColumnDataType = "int", ColumnDescription = "收费方式", IsNullable = false)]
public int Mode { get; set; } = 0;

public decimal Price { get; set; }

[SugarColumn(ColumnDataType = "varchar(1000)", ColumnDescription = "备注", IsNullable = true)]
public string Remaek { get; set; }

/// <summary>
/// 状态
/// </summary>
[SugarColumn(ColumnDataType = "int", ColumnDescription = "状态", IsNullable = false)]
public StatusEntity Status { get; set; } = StatusEntity.ENABLE;
}
}

BPA.KitChen.GroupMeal.Core/Entity/EntityBase.cs → BPA.KitChen.GroupMeal.Core/Entity/Base/EntityBase.cs Parādīt failu

@@ -5,7 +5,7 @@ using SqlSugar;
using System.Xml.Linq;
using Microsoft.AspNetCore.Components.Forms;

namespace BPA.KitChen.GroupMeal.Core.Entity;
namespace BPA.KitChen.GroupMeal.Core.Entity.Base;


/// <summary>
@@ -61,7 +61,7 @@ public abstract class EntityBase : EntityBaseId, IDeletedFilter
public abstract class EntityTenant : EntityBase, ITenantIdFilter
{
[SugarColumn(ColumnDataType = "nvarchar(64)", ColumnDescription = "GroupId", IsNullable = true)]
public string GroupId { get; set; }
public string GroupId { get; set; }
}

/// <summary>

BPA.KitChen.GroupMeal.Core/Entity/IEntityFilter.cs → BPA.KitChen.GroupMeal.Core/Entity/Base/IEntityFilter.cs Parādīt failu

@@ -1,5 +1,4 @@

namespace BPA.KitChen.GroupMeal.Core.Entity;
namespace BPA.KitChen.GroupMeal.Core.Entity.Base;

/// <summary>
/// 假删除接口过滤器

+ 2
- 1
BPA.KitChen.GroupMeal.Core/Entity/ShopEntity.cs Parādīt failu

@@ -1,4 +1,5 @@
using SqlSugar;
using BPA.KitChen.GroupMeal.Core.Entity.Base;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;


+ 24
- 0
BPA.KitChen.GroupMeal.Core/Enum/StatusEntity.cs Parādīt failu

@@ -0,0 +1,24 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BPA.KitChen.GroupMeal.Core.Enum
{
public enum StatusEntity
{
/// <summary>
/// 正常
/// </summary>
[Description("正常")]
ENABLE = 0,

/// <summary>
/// 停用
/// </summary>
[Description("停用")]
DISABLE = 1,
}
}

Binārs
Parādīt failu


Binārs
Parādīt failu


+ 1
- 1
BPA.KitChen.GroupMeal.Core/obj/Debug/net6.0/BPA.KitChen.GroupMeal.Core.csproj.CoreCompileInputs.cache Parādīt failu

@@ -1 +1 @@
d6b6a09e95064c55b49fa7001cd93b22a819ca3d
7980b6cb946997d478013ac4e4b986e8b24699a9

Binārs
Parādīt failu


Binārs
Parādīt failu


Binārs
Parādīt failu


Binārs
Parādīt failu


+ 2
- 2
BPA.KitChen.GroupMeal.SqlSugar/SqlSugarDb.cs Parādīt failu

@@ -1,6 +1,6 @@
using BPA.KitChen.GroupMeal.Core.Common;
using BPA.KitChen.GroupMeal.Core.Common.Const;
using BPA.KitChen.GroupMeal.Core.Entity;
using BPA.KitChen.GroupMeal.Core.Entity.Base;
using Furion;
using Furion.DatabaseAccessor;
using SqlSugar;
@@ -59,7 +59,7 @@ namespace BPA.KitChen.GroupMeal.SqlSugar
// 配置租户过滤器
var tenantId = App.User?.FindFirst(ClaimConst.GroupId)?.Value;
db.QueryFilter.AddTableFilter<ITenantIdFilter>(u => u.GroupId == tenantId);
db.QueryFilter.AddTableFilter<IDeletedFilter>(u => u.IsDelete ==false);


//var types = Assembly.Load("BPA.KitChen.GroupMeal.Core").GetTypes()


Binārs
Parādīt failu


Binārs
Parādīt failu


Binārs
Parādīt failu


Binārs
Parādīt failu


Binārs
Parādīt failu


Binārs
Parādīt failu


Binārs
Parādīt failu


+ 1
- 0
BPA.KitChen.GroupMeal/Program.cs Parādīt failu

@@ -6,6 +6,7 @@ var builder = WebApplication.CreateBuilder(args).Inject();

//JWT¼øȨ
builder.Services.AddJwt<JwtHandler>(enableGlobalAuthorize: true);

//ÉèÖ÷µ»ØÑùʽ
builder.Services.AddUnifyResult();



+ 1
- 1
BPA.KitChen.GroupMeal/Properties/launchSettings.json Parādīt failu

@@ -14,7 +14,7 @@
"dotnetRunMessages": true,
"launchBrowser": true,
"launchUrl": "api/index.html",
"applicationUrl": "https://localhost:7037;http://localhost:5298",
"applicationUrl": "http://localhost:5298",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}


Binārs
Parādīt failu


Binārs
Parādīt failu


+ 97
- 0
BPA.KitChen.GroupMeal/bin/Debug/net6.0/BPA.KitChen.GroupMeal.Application.xml Parādīt failu

@@ -0,0 +1,97 @@
<?xml version="1.0"?>
<doc>
<assembly>
<name>BPA.KitChen.GroupMeal.Application</name>
</assembly>
<members>
<member name="F:BPA.KitChen.GroupMeal.Application.Service.PageInputDto.current">
<summary>
当前页码
</summary>
</member>
<member name="F:BPA.KitChen.GroupMeal.Application.Service.PageInputDto.pagesize">
<summary>
页码容量
</summary>
</member>
<member name="P:BPA.KitChen.GroupMeal.Application.Service.PageOutDto.Data">
<summary>
Data
</summary>
</member>
<member name="P:BPA.KitChen.GroupMeal.Application.Service.PageOutDto.Total">
<summary>
Total
</summary>
</member>
<member name="M:BPA.KitChen.GroupMeal.Application.Service.Gate.GateService.Add(BPA.KitChen.GroupMeal.Application.Service.Gate.Dtos.GateCreateOrUpdateDto)">
<summary>
新增
</summary>
<param name="inputDto"></param>
<returns></returns>
</member>
<member name="M:BPA.KitChen.GroupMeal.Application.Service.Gate.GateService.Update(BPA.KitChen.GroupMeal.Application.Service.Gate.Dtos.GateCreateOrUpdateDto)">
<summary>
修改
</summary>
<param name="inputDto"></param>
<returns></returns>
</member>
<member name="M:BPA.KitChen.GroupMeal.Application.Service.Gate.GateService.GetPage(BPA.KitChen.GroupMeal.Application.Service.Gate.Dtos.GatePageDto)">
<summary>
分页
</summary>
<param name="inputDto"></param>
<returns></returns>
</member>
<member name="M:BPA.KitChen.GroupMeal.Application.Service.Gate.GateService.Del(System.String)">
<summary>
删除
</summary>
<param name="id"></param>
<returns></returns>
</member>
<member name="M:BPA.KitChen.GroupMeal.Application.Service.Gate.GateService.Enable(BPA.KitChen.GroupMeal.Application.Service.Gate.Dtos.GateCreateOrUpdateDto)">
<summary>
状态
</summary>
<param name="inputDto"></param>
<returns></returns>
</member>
<member name="M:BPA.KitChen.GroupMeal.Application.Service.Gate.GateService.GetGateAllList(System.String)">
<summary>
获取全部
</summary>
<param name="shopId"></param>
<returns></returns>
</member>
<member name="M:BPA.KitChen.GroupMeal.Application.Service.Shop.ShopService.GetPage(BPA.KitChen.GroupMeal.Application.Service.Shop.Dtos.ShopPageDto)">
<summary>
分页查询
</summary>
<param name="inputDto"></param>
<returns></returns>
</member>
<member name="M:BPA.KitChen.GroupMeal.Application.Service.Shop.ShopService.Add(BPA.KitChen.GroupMeal.Application.Service.Shop.Dtos.ShopCreateOrUpdateDto)">
<summary>
新增
</summary>
<param name="inputDto"></param>
<returns></returns>
</member>
<member name="M:BPA.KitChen.GroupMeal.Application.Service.Shop.ShopService.Update(BPA.KitChen.GroupMeal.Application.Service.Shop.Dtos.ShopCreateOrUpdateDto)">
<summary>
修改
</summary>
<param name="inputDto"></param>
<returns></returns>
</member>
<member name="M:BPA.KitChen.GroupMeal.Application.Service.TestService.TestService.CodeFirst">
<summary>
CodeFirst
</summary>
<param name="tableNames"></param>
</member>
</members>
</doc>

Binārs
Parādīt failu


Binārs
Parādīt failu


Binārs
Parādīt failu


Binārs
Parādīt failu


Binārs
Parādīt failu


Binārs
Parādīt failu


Binārs
Parādīt failu


+ 1
- 0
BPA.KitChen.GroupMeal/obj/Debug/net6.0/BPA.KitChen.GroupMeal.csproj.FileListAbsolute.txt Parādīt failu

@@ -194,3 +194,4 @@ D:\Work\BPA.KitChen.GroupMeal\BPA.KitChen.GroupMeal\obj\Debug\net6.0\refint\BPA.
D:\Work\BPA.KitChen.GroupMeal\BPA.KitChen.GroupMeal\obj\Debug\net6.0\BPA.KitChen.GroupMeal.pdb
D:\Work\BPA.KitChen.GroupMeal\BPA.KitChen.GroupMeal\obj\Debug\net6.0\BPA.KitChen.GroupMeal.genruntimeconfig.cache
D:\Work\BPA.KitChen.GroupMeal\BPA.KitChen.GroupMeal\obj\Debug\net6.0\ref\BPA.KitChen.GroupMeal.dll
D:\Work\BPA.KitChen.GroupMeal\BPA.KitChen.GroupMeal\bin\Debug\net6.0\BPA.KitChen.GroupMeal.Application.xml

Binārs
Parādīt failu


Binārs
Parādīt failu


Notiek ielāde…
Atcelt
Saglabāt