浏览代码

提交

master
gwbvipvip 1年前
父节点
当前提交
9faa93d26c
共有 74 个文件被更改,包括 577 次插入18 次删除
  1. 二进制
     
  2. 二进制
     
  3. 二进制
     
  4. 二进制
     
  5. 二进制
     
  6. 二进制
     
  7. 二进制
     
  8. 二进制
     
  9. 二进制
     
  10. 二进制
     
  11. 二进制
     
  12. 二进制
     
  13. 二进制
     
  14. 二进制
     
  15. 二进制
     
  16. 二进制
     
  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. 二进制
     
  25. 二进制
     
  26. +97
    -0
      BPA.KitChen.GroupMeal.Application/bin/Debug/net6.0/BPA.KitChen.GroupMeal.Application.xml
  27. 二进制
     
  28. 二进制
     
  29. 二进制
     
  30. 二进制
     
  31. 二进制
     
  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. 二进制
     
  35. 二进制
     
  36. +97
    -0
      BPA.KitChen.GroupMeal.Application/obj/Debug/net6.0/BPA.KitChen.GroupMeal.Application.xml
  37. 二进制
     
  38. 二进制
     
  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. 二进制
     
  46. 二进制
     
  47. +1
    -1
      BPA.KitChen.GroupMeal.Core/obj/Debug/net6.0/BPA.KitChen.GroupMeal.Core.csproj.CoreCompileInputs.cache
  48. 二进制
     
  49. 二进制
     
  50. 二进制
     
  51. 二进制
     
  52. +2
    -2
      BPA.KitChen.GroupMeal.SqlSugar/SqlSugarDb.cs
  53. 二进制
     
  54. 二进制
     
  55. 二进制
     
  56. 二进制
     
  57. 二进制
     
  58. 二进制
     
  59. 二进制
     
  60. +1
    -0
      BPA.KitChen.GroupMeal/Program.cs
  61. +1
    -1
      BPA.KitChen.GroupMeal/Properties/launchSettings.json
  62. 二进制
     
  63. 二进制
     
  64. +97
    -0
      BPA.KitChen.GroupMeal/bin/Debug/net6.0/BPA.KitChen.GroupMeal.Application.xml
  65. 二进制
     
  66. 二进制
     
  67. 二进制
     
  68. 二进制
     
  69. 二进制
     
  70. 二进制
     
  71. 二进制
     
  72. +1
    -0
      BPA.KitChen.GroupMeal/obj/Debug/net6.0/BPA.KitChen.GroupMeal.csproj.FileListAbsolute.txt
  73. 二进制
     
  74. 二进制
     

二进制
查看文件


二进制
查看文件


二进制
查看文件


二进制
查看文件


二进制
查看文件


二进制
查看文件


二进制
查看文件


二进制
查看文件


二进制
查看文件


二进制
查看文件


二进制
查看文件


二进制
查看文件


二进制
查看文件


二进制
查看文件


二进制
查看文件


二进制
查看文件


+ 2
- 1
BPA.KitChen.GroupMeal.Application/BPA.KitChen.GroupMeal.Application.csproj 查看文件

@@ -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 查看文件

@@ -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 查看文件

@@ -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 查看文件

@@ -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 查看文件

@@ -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 查看文件

@@ -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 查看文件

@@ -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 查看文件

@@ -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 查看文件

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

+ 2
- 0
BPA.KitChen.GroupMeal.Application/obj/Debug/net6.0/BPA.KitChen.GroupMeal.Application.csproj.FileListAbsolute.txt 查看文件

@@ -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 查看文件

@@ -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 查看文件

@@ -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 查看文件

@@ -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 查看文件

@@ -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 查看文件

@@ -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 查看文件

@@ -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 查看文件

@@ -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 查看文件

@@ -1 +1 @@
d6b6a09e95064c55b49fa7001cd93b22a819ca3d
7980b6cb946997d478013ac4e4b986e8b24699a9

二进制
查看文件


二进制
查看文件


二进制
查看文件


二进制
查看文件


+ 2
- 2
BPA.KitChen.GroupMeal.SqlSugar/SqlSugarDb.cs 查看文件

@@ -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 查看文件

@@ -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 查看文件

@@ -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 查看文件

@@ -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 查看文件

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

二进制
查看文件


二进制
查看文件


正在加载...
取消
保存