供应商
This commit is contained in:
parent
bf6e607c22
commit
9aa166304f
@ -1,7 +1,7 @@
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using DOAN.Model.Dto;
|
||||
using DOAN.Model.Business;
|
||||
using DOAN.Service.Business.IBusinessService;
|
||||
using DOAN.Model.MES.base_.Dto;
|
||||
using DOAN.Model.MES.base_;
|
||||
using DOAN.Service.MES.base_.IService;
|
||||
using DOAN.Admin.WebApi.Filters;
|
||||
|
||||
//创建时间:2024-07-08
|
||||
@ -11,7 +11,7 @@ namespace DOAN.Admin.WebApi.Controllers
|
||||
/// 供应商信息
|
||||
/// </summary>
|
||||
[Verify]
|
||||
[Route("business/BaseSupplier")]
|
||||
[Route("mes/baseManagement/BaseSupplier")]
|
||||
public class BaseSupplierController : BaseController
|
||||
{
|
||||
/// <summary>
|
||||
@ -30,7 +30,7 @@ namespace DOAN.Admin.WebApi.Controllers
|
||||
/// <param name="parm"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet("list")]
|
||||
[ActionPermissionFilter(Permission = "business:basesupplier:list")]
|
||||
[ActionPermissionFilter(Permission = "baseManagement:basesupplier:list")]
|
||||
public IActionResult QueryBaseSupplier([FromQuery] BaseSupplierQueryDto parm)
|
||||
{
|
||||
var response = _BaseSupplierService.GetList(parm);
|
||||
@ -44,7 +44,7 @@ namespace DOAN.Admin.WebApi.Controllers
|
||||
/// <param name="Id"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet("{Id}")]
|
||||
[ActionPermissionFilter(Permission = "business:basesupplier:query")]
|
||||
[ActionPermissionFilter(Permission = "baseManagement:basesupplier:query")]
|
||||
public IActionResult GetBaseSupplier(int Id)
|
||||
{
|
||||
var response = _BaseSupplierService.GetInfo(Id);
|
||||
@ -58,7 +58,7 @@ namespace DOAN.Admin.WebApi.Controllers
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
[ActionPermissionFilter(Permission = "business:basesupplier:add")]
|
||||
[ActionPermissionFilter(Permission = "baseManagement:basesupplier:add")]
|
||||
[Log(Title = "供应商信息", BusinessType = BusinessType.INSERT)]
|
||||
public IActionResult AddBaseSupplier([FromBody] BaseSupplierDto parm)
|
||||
{
|
||||
@ -74,7 +74,7 @@ namespace DOAN.Admin.WebApi.Controllers
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpPut]
|
||||
[ActionPermissionFilter(Permission = "business:basesupplier:edit")]
|
||||
[ActionPermissionFilter(Permission = "baseManagement:basesupplier:edit")]
|
||||
[Log(Title = "供应商信息", BusinessType = BusinessType.UPDATE)]
|
||||
public IActionResult UpdateBaseSupplier([FromBody] BaseSupplierDto parm)
|
||||
{
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
|
||||
namespace DOAN.Model.Business
|
||||
namespace DOAN.Model.MES.base_
|
||||
{
|
||||
/// <summary>
|
||||
/// 供应商信息
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace DOAN.Model.Dto
|
||||
namespace DOAN.Model.MES.base_.Dto
|
||||
{
|
||||
/// <summary>
|
||||
/// 供应商信息查询对象
|
||||
|
||||
@ -3,13 +3,13 @@ using SqlSugar;
|
||||
using Infrastructure.Attribute;
|
||||
using Infrastructure.Extensions;
|
||||
using DOAN.Model;
|
||||
using DOAN.Model.Dto;
|
||||
using DOAN.Model.Business;
|
||||
using DOAN.Model.MES.base_.Dto;
|
||||
using DOAN.Model.MES.base_;
|
||||
using DOAN.Repository;
|
||||
using DOAN.Service.Business.IBusinessService;
|
||||
using DOAN.Service.MES.base_.IService;
|
||||
using System.Linq;
|
||||
|
||||
namespace DOAN.Service.Business
|
||||
namespace DOAN.Service.MES.base_
|
||||
{
|
||||
/// <summary>
|
||||
/// 供应商信息Service业务层处理
|
||||
|
||||
@ -1,10 +1,10 @@
|
||||
using System;
|
||||
using DOAN.Model;
|
||||
using DOAN.Model.Dto;
|
||||
using DOAN.Model.Business;
|
||||
using DOAN.Model.MES.base_.Dto;
|
||||
using DOAN.Model.MES.base_;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace DOAN.Service.Business.IBusinessService
|
||||
namespace DOAN.Service.MES.base_.IService
|
||||
{
|
||||
/// <summary>
|
||||
/// 供应商信息service接口
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user