Quellcode durchsuchen

提交资源检查入口

heteng vor 3 Jahren
Ursprung
Commit
d31745def6

+ 18 - 0
MicroServices/Business/Business.Application.Contracts/ResourceExamineManagement/Dto/PschedDto.cs

@@ -0,0 +1,18 @@
+using System;
+using System.Collections.Generic;
+using Volo.Abp.Application.Dtos;
+using System.ComponentModel.DataAnnotations;
+namespace Business.ResourceExamineManagement.Dto
+{
+    /// <summary>
+    /// 资源检查返回结果Dto
+    /// </summary>
+    public class PschedDto
+    {
+        /// <summary>
+        /// 建议交期
+        /// </summary>
+        private DateTime suggestdate;
+
+    }
+}

+ 32 - 0
MicroServices/Business/Business.Application.Contracts/ResourceExamineManagement/Dto/SeorderentryDto.cs

@@ -0,0 +1,32 @@
+using System;
+using System.Runtime.InteropServices;
+using Volo.Abp.Application.Dtos;
+
+namespace Business.ResourceExamineManagement.Dto
+{
+    /// <summary>
+    /// 訧埭潰脤⻌統Dto
+    /// </summary>
+    public class SeorderentryDto : PagedAndSortedResultRequestDto
+    {
+        /// <summary>
+        /// 隆等俴id
+        /// </summary>
+        private long soentryId;
+
+        /// <summary>
+        /// 隆等瘍
+        /// </summary>
+        private String fbillNo;
+
+        /// <summary>
+        /// 隆等俴瘍
+        /// </summary>
+        private int fentryId;
+
+        /// <summary>
+        /// き珛id
+        /// </summary>
+        private long tenantId;
+    }
+}

+ 22 - 0
MicroServices/Business/Business.Application.Contracts/ResourceExamineManagement/IResourceExamineAppService.cs

@@ -0,0 +1,22 @@
+using System;
+using System.Collections.Generic;
+using System.Threading.Tasks;
+using Volo.Abp.Application.Dtos;
+using Volo.Abp.Application.Services;
+using Business.ResourceExamineManagement.Dto;
+
+namespace Business.ResourceExamineManagement
+{
+    /// <summary>
+    /// ×ÊÔ´¼ì²é
+    /// </summary>
+    public interface IResourceExamineAppService : IApplicationService
+    {
+        /// <summary>
+        /// ×ÊÔ´¼ì²é
+        /// </summary>
+        /// <param name="input"></param>
+        /// <returns></returns>
+        Task<PschedDto> ReceiveResult(SeorderentryDto input);
+    }
+}

+ 32 - 0
MicroServices/Business/Business.Application/ResourceExamineManagement/ResourceExamineAppService.cs

@@ -0,0 +1,32 @@
+using Microsoft.EntityFrameworkCore;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Linq.Dynamic.Core;
+using System.Threading.Tasks;
+using Volo.Abp.Application.Dtos;
+using Volo.Abp.Domain.Repositories;
+using Business.Models;
+using Microsoft.AspNetCore.Authorization;
+using Business.Permissions;
+using XCZ;
+using Business.ResourceExamineManagement;
+using Business.ResourceExamineManagement.Dto;
+
+namespace Business.BookManagement
+{
+    [Authorize(BusinessPermissions.Book.Default)]
+    public class ResourceExamineAppService : IResourceExamineAppService
+    {
+        /// <summary>
+        /// 资源检查
+        /// </summary>
+        /// <param name="input"></param>
+        /// <returns></returns>
+        /// <exception cref="NotImplementedException"></exception>
+        public Task<PschedDto> ReceiveResult(SeorderentryDto input)
+        {
+            throw new NotImplementedException();
+        }
+    }
+}

+ 41 - 0
MicroServices/Business/Business.HttpApi/Controllers/ResourceExamineController.cs

@@ -0,0 +1,41 @@
+using Business.ResourceExamineManagement;
+using Business.ResourceExamineManagement.Dto;
+using Microsoft.AspNetCore.Mvc;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using Volo.Abp;
+using Volo.Abp.AspNetCore.Mvc;
+
+namespace Business.Controllers
+{
+    /// <summary>
+    /// 资源检查
+    /// </summary>
+    [RemoteService]
+    [Area("Business")]
+    [Route("api/business/resource-check")]
+    public class ResourceExamineController : AbpController
+    {
+        private readonly IResourceExamineAppService _ResourceExamineAppService;
+
+        public ResourceExamineController(IResourceExamineAppService ResourceExamineAppService)
+        {
+            _ResourceExamineAppService = ResourceExamineAppService;
+        }
+
+        /// <summary>
+        /// 资源检查
+        /// </summary>
+        /// <param name="input"></param>
+        /// <returns></returns>
+        [HttpPost]
+        [Route("data-post")]
+        public Task<PschedDto> ReceiveResult(SeorderentryDto input)
+        {
+            return _ResourceExamineAppService.ReceiveResult(input);
+        }
+    }
+}