删除以前的业务代码
This commit is contained in:
@@ -1,88 +0,0 @@
|
||||
|
||||
namespace SimpleAdmin.Web.Core;
|
||||
|
||||
/// <summary>
|
||||
/// 药材管理
|
||||
/// </summary>
|
||||
[ApiDescriptionSettings("Application", Tag = "药材管理")]
|
||||
[Route("biz/weibingju/medicinal")]
|
||||
[RolePermission]
|
||||
public class MedicinalController : IDynamicApiController
|
||||
{
|
||||
private readonly IMedicinalService _medicinalService;
|
||||
|
||||
public MedicinalController(IMedicinalService medicinalService)
|
||||
{
|
||||
_medicinalService = medicinalService;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取药材列表
|
||||
/// </summary>
|
||||
[HttpGet("list")]
|
||||
[DisplayName("获取药材列表")]
|
||||
public async Task<dynamic> GetList([FromQuery] string medicinalName, [FromQuery] int pageNum = 1, [FromQuery] int pageSize = 10)
|
||||
{
|
||||
return await _medicinalService.GetMedicinalList(medicinalName, pageNum, pageSize);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取药材消耗记录
|
||||
/// </summary>
|
||||
[HttpGet("consumption-records")]
|
||||
[DisplayName("获取药材消耗记录")]
|
||||
public async Task<dynamic> GetConsumptionRecords([FromQuery] long id, [FromQuery] int pageNum = 1, [FromQuery] int pageSize = 10)
|
||||
{
|
||||
return await _medicinalService.GetConsumptionRecords(id, pageNum, pageSize);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取药材下拉
|
||||
/// </summary>
|
||||
[HttpGet("getmedicinaldictlist")]
|
||||
[DisplayName("获取药材下拉")]
|
||||
public async Task<dynamic> GetMedicinalDictList()
|
||||
{
|
||||
return await _medicinalService.GetMedicinalDictList();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取药材添加记录
|
||||
/// </summary>
|
||||
[HttpGet("addition-records")]
|
||||
[DisplayName("获取药材添加记录")]
|
||||
public async Task<dynamic> GetAdditionRecords(long id, [FromQuery] int pageNum = 1, [FromQuery] int pageSize = 10)
|
||||
{
|
||||
return await _medicinalService.GetAdditionRecords(id, pageNum, pageSize);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 添加药材
|
||||
/// </summary>
|
||||
[HttpPost("add")]
|
||||
[DisplayName("添加药材")]
|
||||
public async Task<dynamic> AddMedicinal([FromBody] AddMedicinalInput input)
|
||||
{
|
||||
return await _medicinalService.AddMedicinal(input);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 修改药材添加记录
|
||||
/// </summary>
|
||||
[HttpPost("addition-records")]
|
||||
[DisplayName("修改药材添加记录")]
|
||||
public async Task<dynamic> UpdateAdditionRecord([FromBody] UpdateMedicinalAddLogInput input)
|
||||
{
|
||||
return await _medicinalService.UpdateAdditionRecord(input);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 删除药材添加记录
|
||||
/// </summary>
|
||||
[HttpPost("addition-delete")]
|
||||
[DisplayName("删除药材添加记录")]
|
||||
public async Task<dynamic> DeleteAdditionRecord(DeleteMedicinalLog input)
|
||||
{
|
||||
return await _medicinalService.DeleteAdditionRecord(input.Id);
|
||||
}
|
||||
}
|
||||
@@ -1,87 +0,0 @@
|
||||
// Copyright (c) 2022-Now 少林寺驻北固山办事处大神父王喇嘛
|
||||
//
|
||||
// SimpleAdmin 基于 Apache License Version 2.0 协议发布,可用于商业项目,但必须遵守以下补充条款:
|
||||
// 1.请不要删除和修改根目录下的LICENSE文件。
|
||||
// 2.请不要删除和修改SimpleAdmin源码头部的版权声明。
|
||||
// 3.分发源码时候,请注明软件出处 https://gitee.com/dotnetmoyu/SimpleAdmin
|
||||
// 4.基于本软件的作品,只能使用 SimpleAdmin 作为后台服务,除外情况不可商用且不允许二次分发或开源。
|
||||
// 5.请不得将本软件应用于危害国家安全、荣誉和利益的行为,不能以任何形式用于非法为目的的行为。
|
||||
// 6.任何基于本软件而产生的一切法律纠纷和责任,均于我司无关。
|
||||
|
||||
namespace SimpleAdmin.Web.Core;
|
||||
|
||||
/// <summary>
|
||||
/// 药材管理
|
||||
/// </summary>
|
||||
[ApiDescriptionSettings("Application", Tag = "处方管理")]
|
||||
[Route("biz/weibingju/prescription")]
|
||||
[RolePermission]
|
||||
public class PrescriptionController : IDynamicApiController
|
||||
{
|
||||
private readonly IPrescriptionService _service;
|
||||
|
||||
public PrescriptionController(IPrescriptionService service)
|
||||
{
|
||||
_service = service;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取处方列表
|
||||
/// </summary>
|
||||
[HttpGet("list")]
|
||||
[DisplayName("获取处方列表")]
|
||||
public async Task<dynamic> GetList([FromQuery] PrescriptionQueryInput input)
|
||||
{
|
||||
return await _service.GetPrescriptionList(input);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取处方总列表使用成本
|
||||
/// </summary>
|
||||
[HttpGet("gettotalcost")]
|
||||
[DisplayName("获取处方总列表使用成本")]
|
||||
public async Task<dynamic> GetAllPrescriptionTotalCost()
|
||||
{
|
||||
return await _service.GetAllPrescriptionTotalCost();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取处方详情
|
||||
/// </summary>
|
||||
[HttpGet("getprescriptiondetile")]
|
||||
[DisplayName("获取处方详情")]
|
||||
public async Task<dynamic> GetDetail(long id)
|
||||
{
|
||||
return await _service.GetPrescriptionDetail(id);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 保存处方(新增或编辑)
|
||||
/// </summary>
|
||||
[HttpPost("add")]
|
||||
[DisplayName("保存处方(新增或编辑)")]
|
||||
public async Task<dynamic> SavePrescription([FromBody] SavePrescriptionInput input)
|
||||
{
|
||||
return await _service.SavePrescription(input);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取人员列表
|
||||
/// </summary>
|
||||
[HttpGet("persons")]
|
||||
[DisplayName("获取人员列表")]
|
||||
public async Task<dynamic> GetPersonList([FromQuery] PersonType? type, [FromQuery] long? employeeId)
|
||||
{
|
||||
return await _service.GetPersonList(type, employeeId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取关系类型
|
||||
/// </summary>
|
||||
[HttpGet("relation-types")]
|
||||
[DisplayName("获取关系类型")]
|
||||
public async Task<dynamic> GetRelationTypes()
|
||||
{
|
||||
return await _service.GetRelationTypes();
|
||||
}
|
||||
}
|
||||
@@ -1,63 +0,0 @@
|
||||
// Copyright (c) 2022-Now 少林寺驻北固山办事处大神父王喇嘛
|
||||
//
|
||||
// SimpleAdmin 基于 Apache License Version 2.0 协议发布,可用于商业项目,但必须遵守以下补充条款:
|
||||
// 1.请不要删除和修改根目录下的LICENSE文件。
|
||||
// 2.请不要删除和修改SimpleAdmin源码头部的版权声明。
|
||||
// 3.分发源码时候,请注明软件出处 https://gitee.com/dotnetmoyu/SimpleAdmin
|
||||
|
||||
using MoYu.FriendlyException;
|
||||
using SimpleAdmin.Application.Services.Statistics;
|
||||
|
||||
namespace SimpleAdmin.Web.Core;
|
||||
|
||||
/// <summary>
|
||||
/// 统计分析
|
||||
/// </summary>
|
||||
[ApiDescriptionSettings("Application", Tag = "统计分析")]
|
||||
[Route("biz/weibingju/statistics")]
|
||||
[RolePermission]
|
||||
public class StatisticsController : IDynamicApiController
|
||||
{
|
||||
private readonly IStatisticsService _service;
|
||||
|
||||
public StatisticsController(IStatisticsService service)
|
||||
{
|
||||
_service = service;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取全量总览数据(不区分年份,含剩余药材库存价值)
|
||||
/// </summary>
|
||||
[HttpGet("overview")]
|
||||
[DisplayName("获取全量总览数据")]
|
||||
public async Task<dynamic> GetTotalOverview()
|
||||
{
|
||||
return await _service.GetTotalOverview();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取年度统计数据(含同比趋势)
|
||||
/// </summary>
|
||||
[HttpGet("yearly")]
|
||||
[DisplayName("获取年度统计数据")]
|
||||
public async Task<dynamic> GetYearlyStatistics([FromQuery] string year)
|
||||
{
|
||||
if (!int.TryParse(year, out int yearInt) || yearInt < 2000 || yearInt > 2100)
|
||||
throw Oops.Bah("年份参数不合法");
|
||||
|
||||
return await _service.GetYearlyStatistics(yearInt);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取月度明细数据(返回 12 个月,无数据月份自动补零)
|
||||
/// </summary>
|
||||
[HttpGet("monthly")]
|
||||
[DisplayName("获取月度明细数据")]
|
||||
public async Task<dynamic> GetMonthlyDetails([FromQuery] string year)
|
||||
{
|
||||
if (!int.TryParse(year, out int yearInt) || yearInt < 2000 || yearInt > 2100)
|
||||
throw Oops.Bah("年份参数不合法");
|
||||
|
||||
return await _service.GetMonthlyDetails(yearInt);
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2022-Now 少林寺驻北固山办事处大神父王喇嘛
|
||||
// Copyright (c) 2022-Now 少林寺驻北固山办事处大神父王喇嘛
|
||||
//
|
||||
// SimpleAdmin 基于 Apache License Version 2.0 协议发布,可用于商业项目,但必须遵守以下补充条款:
|
||||
// 1.请不要删除和修改根目录下的LICENSE文件。
|
||||
@@ -40,7 +40,3 @@ global using Microsoft.AspNetCore.Hosting;
|
||||
global using IP2Region.Net.Abstractions;
|
||||
global using IP2Region.Net.XDB;
|
||||
global using NewLife;
|
||||
global using SimpleAdmin.Application.Services.Medicinal;
|
||||
global using SimpleAdmin.Application.Services.Medicinal.Dto;
|
||||
global using SimpleAdmin.Application.Services.Prescription;
|
||||
global using SimpleAdmin.Application.Services.Prescription.Dto;
|
||||
|
||||
@@ -345,101 +345,6 @@
|
||||
<param name="input"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="T:SimpleAdmin.Web.Core.MedicinalController">
|
||||
<summary>
|
||||
药材管理
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:SimpleAdmin.Web.Core.MedicinalController.GetList(System.String,System.Int32,System.Int32)">
|
||||
<summary>
|
||||
获取药材列表
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:SimpleAdmin.Web.Core.MedicinalController.GetConsumptionRecords(System.Int64,System.Int32,System.Int32)">
|
||||
<summary>
|
||||
获取药材消耗记录
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:SimpleAdmin.Web.Core.MedicinalController.GetMedicinalDictList">
|
||||
<summary>
|
||||
获取药材下拉
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:SimpleAdmin.Web.Core.MedicinalController.GetAdditionRecords(System.Int64,System.Int32,System.Int32)">
|
||||
<summary>
|
||||
获取药材添加记录
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:SimpleAdmin.Web.Core.MedicinalController.AddMedicinal(SimpleAdmin.Application.Services.Medicinal.Dto.AddMedicinalInput)">
|
||||
<summary>
|
||||
添加药材
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:SimpleAdmin.Web.Core.MedicinalController.UpdateAdditionRecord(SimpleAdmin.Application.Services.Medicinal.Dto.UpdateMedicinalAddLogInput)">
|
||||
<summary>
|
||||
修改药材添加记录
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:SimpleAdmin.Web.Core.MedicinalController.DeleteAdditionRecord(SimpleAdmin.Application.Services.Medicinal.Dto.DeleteMedicinalLog)">
|
||||
<summary>
|
||||
删除药材添加记录
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:SimpleAdmin.Web.Core.PrescriptionController">
|
||||
<summary>
|
||||
药材管理
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:SimpleAdmin.Web.Core.PrescriptionController.GetList(SimpleAdmin.Application.Services.Prescription.Dto.PrescriptionQueryInput)">
|
||||
<summary>
|
||||
获取处方列表
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:SimpleAdmin.Web.Core.PrescriptionController.GetAllPrescriptionTotalCost">
|
||||
<summary>
|
||||
获取处方总列表使用成本
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:SimpleAdmin.Web.Core.PrescriptionController.GetDetail(System.Int64)">
|
||||
<summary>
|
||||
获取处方详情
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:SimpleAdmin.Web.Core.PrescriptionController.SavePrescription(SimpleAdmin.Application.Services.Prescription.Dto.SavePrescriptionInput)">
|
||||
<summary>
|
||||
保存处方(新增或编辑)
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:SimpleAdmin.Web.Core.PrescriptionController.GetPersonList(System.Nullable{SimpleAdmin.Application.Services.Prescription.Dto.PersonType},System.Nullable{System.Int64})">
|
||||
<summary>
|
||||
获取人员列表
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:SimpleAdmin.Web.Core.PrescriptionController.GetRelationTypes">
|
||||
<summary>
|
||||
获取关系类型
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:SimpleAdmin.Web.Core.StatisticsController">
|
||||
<summary>
|
||||
统计分析
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:SimpleAdmin.Web.Core.StatisticsController.GetTotalOverview">
|
||||
<summary>
|
||||
获取全量总览数据(不区分年份,含剩余药材库存价值)
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:SimpleAdmin.Web.Core.StatisticsController.GetYearlyStatistics(System.String)">
|
||||
<summary>
|
||||
获取年度统计数据(含同比趋势)
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:SimpleAdmin.Web.Core.StatisticsController.GetMonthlyDetails(System.String)">
|
||||
<summary>
|
||||
获取月度明细数据(返回 12 个月,无数据月份自动补零)
|
||||
</summary>
|
||||
</member>
|
||||
<member name="T:SimpleAdmin.Web.Core.AuthBController">
|
||||
<summary>
|
||||
B端登录控制器
|
||||
|
||||
Reference in New Issue
Block a user