Browse Source

提交

master
gwbvipvip 8 months ago
parent
commit
6a1b964a4f
3 changed files with 76 additions and 21 deletions
  1. +3
    -4
      BPA.SAAS.KitChenManage.Application/AExternalPlatform/Service/Authorization/Services/AuthService.cs
  2. +2
    -9
      BPA.SAAS.KitChenManage.Application/AExternalPlatform/Service/CheckService/CheckServices.cs
  3. +71
    -8
      BPA.SAAS.KitChenManage.Application/BPA.SAAS.KitChenManage.Application.xml

+ 3
- 4
BPA.SAAS.KitChenManage.Application/AExternalPlatform/Service/Authorization/Services/AuthService.cs View File

@@ -29,11 +29,10 @@ namespace BPA.SAAS.KitChenManage.Application.AExternalPlatform.Service.Authoriza
/// <returns></returns>
public async Task<List<StoreAuthKeyDto>> GetListStoreAuthKey(BaseEPDto input)
{
DtoValidator.CheckTenant(input.TenantId);

var res = await _db.Queryable<BPA_StoreAuthorization, BPA_Store>((a, b) => new JoinQueryInfos(
JoinType.Left, a.StoreId == b.Id))
.Where((a, b) => a.GroupId == input.TenantId)
//.Where((a, b) => a.GroupId == input.TenantId)
.OrderBy((a, b) => a.CreateAt, OrderByType.Desc)
.Select((a, b) => new StoreAuthKeyDto
{
@@ -54,7 +53,7 @@ namespace BPA.SAAS.KitChenManage.Application.AExternalPlatform.Service.Authoriza
{
var res = await _db.Queryable<BPA_StoreAuthorization, BPA_Store>((a, b) => new JoinQueryInfos(
JoinType.Left, a.StoreId == b.Id))
.Where((a, b) => a.GroupId == input.TenantId && a.StoreId == input.StoreId)
// .Where((a, b) => a.GroupId == input.TenantId && a.StoreId == input.StoreId)
.OrderBy((a, b) => a.CreateAt, OrderByType.Desc)
.Select((a, b) => new StoreAuthKeyDto
{


+ 2
- 9
BPA.SAAS.KitChenManage.Application/AExternalPlatform/Service/CheckService/CheckServices.cs View File

@@ -1,17 +1,10 @@
using BPA.SAAS.Manage.Application.AExternalPlatform.Enum;
using BPA.SAAS.Manage.Application.AExternalPlatform.Service.Material.Dtos;
using BPA.SAAS.Manage.Comm.Enum;
using BPA.SAAS.Manage.Core.Base;
using BPA.SAAS.Manage.Core.DataBase;
using BPA.SAAS.Manage.Core;
using System;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using BPA.SAAS.KitChenManage.Application.AExternalPlatform.Service.CheckService.Services;
using Microsoft.AspNetCore.Components.Forms;
using BPA.SAAS.Manage.Application.AExternalPlatform.BaseDto;
using BPA.SAAS.Manage.Application.AExternalPlatform.Service.CheckService.Services;

namespace BPA.SAAS.Manage.Application.AExternalPlatform.Service.CheckService
{


+ 71
- 8
BPA.SAAS.KitChenManage.Application/BPA.SAAS.KitChenManage.Application.xml View File

@@ -4,21 +4,18 @@
<name>BPA.SAAS.KitChenManage.Application</name>
</assembly>
<members>
<member name="P:BPA.SAAS.KitChenManage.Application.AExternalPlatform.BaseDto.BaseEPDto.TenantId">
<summary>
租户Id
</summary>
</member>
<member name="T:BPA.SAAS.KitChenManage.Application.AExternalPlatform.BaseDto.DtoValidator">
<summary>
Dto参数验证
</summary>
</member>
<member name="M:BPA.SAAS.KitChenManage.Application.AExternalPlatform.BaseDto.DtoValidator.CheckTenant(System.String)">
<member name="M:BPA.SAAS.KitChenManage.Application.AExternalPlatform.BaseDto.DtoValidator.GetSign``1(``0,System.Int32)">
<summary>
检查租户
获取签名
</summary>
<param name="id"></param>
<typeparam name="T"></typeparam>
<param name="t"></param>
<param name="otype">0-不排序 1-按名称ASCII排序</param>
<returns></returns>
</member>
<member name="T:BPA.SAAS.KitChenManage.Application.AExternalPlatform.Enum.ErrorCodeEnum">
@@ -31,6 +28,36 @@
用户没有注册
</summary>
</member>
<member name="F:BPA.SAAS.KitChenManage.Application.AExternalPlatform.Enum.ErrorCodeEnum.Code1001">
<summary>
操作错误
</summary>
</member>
<member name="F:BPA.SAAS.KitChenManage.Application.AExternalPlatform.Enum.ErrorCodeEnum.Code1002">
<summary>
重复添加
</summary>
</member>
<member name="F:BPA.SAAS.KitChenManage.Application.AExternalPlatform.Enum.ErrorCodeEnum.Code1003">
<summary>
操作数据不存在
</summary>
</member>
<member name="F:BPA.SAAS.KitChenManage.Application.AExternalPlatform.Enum.ErrorCodeEnum.Code1004">
<summary>
key不正确
</summary>
</member>
<member name="F:BPA.SAAS.KitChenManage.Application.AExternalPlatform.Enum.ErrorCodeEnum.Code1005">
<summary>
签名错误
</summary>
</member>
<member name="F:BPA.SAAS.KitChenManage.Application.AExternalPlatform.Enum.ErrorCodeEnum.Code1006">
<summary>
签名错误
</summary>
</member>
<member name="M:BPA.SAAS.KitChenManage.Application.AExternalPlatform.Service.Authorization.AuthServices.GetListStoreAuthKey(BPA.SAAS.KitChenManage.Application.AExternalPlatform.BaseDto.BaseEPDto)">
<summary>
获取店铺授权码列表
@@ -112,6 +139,37 @@
<param name="id"></param>
<returns></returns>
</member>
<member name="M:BPA.SAAS.KitChenManage.Application.AExternalPlatform.Service.CheckService.Services.CheckServices.CheckSign``1(``0)">
<summary>
检查Sign
</summary>
</member>
<member name="M:BPA.SAAS.KitChenManage.Application.AExternalPlatform.Service.CheckService.Services.CheckServices.GetModelValue``1(``0,System.String)">
<summary>
获取模型值
</summary>
<typeparam name="T"></typeparam>
<param name="t"></param>
<returns></returns>
</member>
<member name="M:BPA.SAAS.KitChenManage.Application.AExternalPlatform.Service.CheckService.Services.CheckServices.CheckKey(System.String)">
<summary>
检查店铺key验证
</summary>
<param name="key"></param>
</member>
<member name="M:BPA.SAAS.KitChenManage.Application.AExternalPlatform.Service.CheckService.Services.CheckServices.CheckTenant(System.String)">
<summary>
检查租户
</summary>
<param name="id"></param>
<returns></returns>
</member>
<member name="M:BPA.SAAS.KitChenManage.Application.AExternalPlatform.Service.CheckService.Services.ICheckServices.CheckSign``1(``0)">
<summary>
检查Sign
</summary>
</member>
<member name="M:BPA.SAAS.KitChenManage.Application.Authorization.AuthorizationServices.PageStoreAuthorization(BPA.SAAS.KitChenManage.Core.Base.PageInputBase)">
<summary>
分页店铺授权码
@@ -819,5 +877,10 @@
<param name="input"></param>
<returns></returns>
</member>
<member name="M:BPA.SAAS.Manage.Application.AExternalPlatform.Service.CheckService.CheckServices.CheckSign``1(``0)">
<summary>
检查Sign
</summary>
</member>
</members>
</doc>

Loading…
Cancel
Save