Parcourir la source

提交

master
gwbvipvip il y a 1 an
Parent
révision
9faa93d26c
74 fichiers modifiés avec 577 ajouts et 18 suppressions
  1. BIN
     
  2. BIN
     
  3. BIN
     
  4. BIN
     
  5. BIN
     
  6. BIN
     
  7. BIN
     
  8. BIN
     
  9. BIN
     
  10. BIN
     
  11. BIN
     
  12. BIN
     
  13. BIN
     
  14. BIN
     
  15. BIN
     
  16. BIN
     
  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
     
  25. BIN
     
  26. +97
    -0
      BPA.KitChen.GroupMeal.Application/bin/Debug/net6.0/BPA.KitChen.GroupMeal.Application.xml
  27. BIN
     
  28. BIN
     
  29. BIN
     
  30. BIN
     
  31. BIN
     
  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
     
  35. BIN
     
  36. +97
    -0
      BPA.KitChen.GroupMeal.Application/obj/Debug/net6.0/BPA.KitChen.GroupMeal.Application.xml
  37. BIN
     
  38. BIN
     
  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
     
  46. BIN
     
  47. +1
    -1
      BPA.KitChen.GroupMeal.Core/obj/Debug/net6.0/BPA.KitChen.GroupMeal.Core.csproj.CoreCompileInputs.cache
  48. BIN
     
  49. BIN
     
  50. BIN
     
  51. BIN
     
  52. +2
    -2
      BPA.KitChen.GroupMeal.SqlSugar/SqlSugarDb.cs
  53. BIN
     
  54. BIN
     
  55. BIN
     
  56. BIN
     
  57. BIN
     
  58. BIN
     
  59. BIN
     
  60. +1
    -0
      BPA.KitChen.GroupMeal/Program.cs
  61. +1
    -1
      BPA.KitChen.GroupMeal/Properties/launchSettings.json
  62. BIN
     
  63. BIN
     
  64. +97
    -0
      BPA.KitChen.GroupMeal/bin/Debug/net6.0/BPA.KitChen.GroupMeal.Application.xml
  65. BIN
     
  66. BIN
     
  67. BIN
     
  68. BIN
     
  69. BIN
     
  70. BIN
     
  71. BIN
     
  72. +1
    -0
      BPA.KitChen.GroupMeal/obj/Debug/net6.0/BPA.KitChen.GroupMeal.csproj.FileListAbsolute.txt
  73. BIN
     
  74. BIN
     
















+ 2
- 1
BPA.KitChen.GroupMeal.Application/BPA.KitChen.GroupMeal.Application.csproj Voir le fichier

@@ -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 Voir le fichier

@@ -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 Voir le fichier

@@ -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 Voir le fichier

@@ -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 Voir le fichier

@@ -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 Voir le fichier

@@ -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 Voir le fichier

@@ -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>




+ 97
- 0
BPA.KitChen.GroupMeal.Application/bin/Debug/net6.0/BPA.KitChen.GroupMeal.Application.xml Voir le fichier

@@ -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>






+ 1
- 1
BPA.KitChen.GroupMeal.Application/obj/Debug/net6.0/BPA.KitChen.GroupMeal.Application.csproj.CoreCompileInputs.cache Voir le fichier

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

+ 2
- 0
BPA.KitChen.GroupMeal.Application/obj/Debug/net6.0/BPA.KitChen.GroupMeal.Application.csproj.FileListAbsolute.txt Voir le fichier

@@ -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



+ 97
- 0
BPA.KitChen.GroupMeal.Application/obj/Debug/net6.0/BPA.KitChen.GroupMeal.Application.xml Voir le fichier

@@ -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>



+ 1
- 0
BPA.KitChen.GroupMeal.Core/BPA.KitChen.GroupMeal.Core.csproj Voir le fichier

@@ -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 Voir le fichier

@@ -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 Voir le fichier

@@ -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 Voir le fichier

@@ -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 Voir le fichier

@@ -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 Voir le fichier

@@ -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,
}
}



+ 1
- 1
BPA.KitChen.GroupMeal.Core/obj/Debug/net6.0/BPA.KitChen.GroupMeal.Core.csproj.CoreCompileInputs.cache Voir le fichier

@@ -1 +1 @@
d6b6a09e95064c55b49fa7001cd93b22a819ca3d
7980b6cb946997d478013ac4e4b986e8b24699a9





+ 2
- 2
BPA.KitChen.GroupMeal.SqlSugar/SqlSugarDb.cs Voir le fichier

@@ -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()









+ 1
- 0
BPA.KitChen.GroupMeal/Program.cs Voir le fichier

@@ -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 Voir le fichier

@@ -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"
}




+ 97
- 0
BPA.KitChen.GroupMeal/bin/Debug/net6.0/BPA.KitChen.GroupMeal.Application.xml Voir le fichier

@@ -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>








+ 1
- 0
BPA.KitChen.GroupMeal/obj/Debug/net6.0/BPA.KitChen.GroupMeal.csproj.FileListAbsolute.txt Voir le fichier

@@ -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



Chargement…
Annuler
Enregistrer