仓库-拼箱,拆箱基础代码上传
This commit is contained in:
@@ -0,0 +1,56 @@
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using ZR.Model.Dto;
|
||||
using ZR.Service.Business.IBusinessService;
|
||||
using ZR.Admin.WebApi.Extensions;
|
||||
using ZR.Admin.WebApi.Filters;
|
||||
using ZR.Model.MES.wms.Dto;
|
||||
using ZR.Service.mes.wms.IService;
|
||||
using ZR.Model.MES.wms;
|
||||
|
||||
//创建时间:2024-04-18
|
||||
namespace ZR.Admin.WebApi.Controllers
|
||||
{
|
||||
/// <summary>
|
||||
/// 仓库操作
|
||||
/// </summary>
|
||||
[Verify]
|
||||
[Route("/mes/wm/WmGoodsAction")]
|
||||
public class WmGoodsActionController : BaseController
|
||||
{
|
||||
/// <summary>
|
||||
/// 仓库操作
|
||||
/// </summary>
|
||||
private readonly IWmGoodsChangeLogService _WmGoodsChangeLogService;
|
||||
private readonly IWmGoodsActionService _WmGoodsActionService;
|
||||
|
||||
public WmGoodsActionController(IWmGoodsChangeLogService WmGoodsChangeLogService, IWmGoodsActionService wmGoodsActionService)
|
||||
{
|
||||
_WmGoodsChangeLogService = WmGoodsChangeLogService;
|
||||
_WmGoodsActionService = wmGoodsActionService;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 拼箱
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpPost("doConsolidationGoods")]
|
||||
[Log(Title = "拼箱", BusinessType = BusinessType.UPDATE)]
|
||||
public IActionResult doConsolidationGoods([FromBody] WmGoodsConsolidationDto parm)
|
||||
{
|
||||
WmGoodsChangeLog response = _WmGoodsActionService.doConsolidationGoods(parm);
|
||||
return SUCCESS(response);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 拆箱
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpPost("doUnpackingGoods")]
|
||||
[Log(Title = "拆箱", BusinessType = BusinessType.UPDATE)]
|
||||
public IActionResult doUnpackingGoods([FromBody] WmGoodsUnpackingDto parm)
|
||||
{
|
||||
WmGoodsChangeLog response = _WmGoodsActionService.doUnpackingGoods(parm);
|
||||
return SUCCESS(response);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -14,7 +14,7 @@ namespace ZR.Admin.WebApi.Controllers
|
||||
/// 仓库操作日志
|
||||
/// </summary>
|
||||
[Verify]
|
||||
[Route("business/WmGoodsChangeLog")]
|
||||
[Route("/mes/wm/WmGoodsChangeLog")]
|
||||
public class WmGoodsChangeLogController : BaseController
|
||||
{
|
||||
/// <summary>
|
||||
|
||||
22
ZR.Model/MES/wms/Dto/WmGoodsActionDto.cs
Normal file
22
ZR.Model/MES/wms/Dto/WmGoodsActionDto.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace ZR.Model.MES.wms.Dto
|
||||
{
|
||||
/// <summary>
|
||||
/// 拼箱操作
|
||||
/// </summary>
|
||||
public class WmGoodsConsolidationDto
|
||||
{
|
||||
public List<ResultionPackageCodeDto> List { get; set; }
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 拆箱操作
|
||||
/// </summary>
|
||||
public class WmGoodsUnpackingDto
|
||||
{
|
||||
public List<ResultionPackageCodeDto> List { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
20
ZR.Service/mes/wms/IService/IWmGoodsActionService.cs
Normal file
20
ZR.Service/mes/wms/IService/IWmGoodsActionService.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using System;
|
||||
using ZR.Model;
|
||||
using ZR.Model.Dto;
|
||||
using ZR.Model.MES.wms;
|
||||
using System.Collections.Generic;
|
||||
using ZR.Model.MES.wms.Dto;
|
||||
|
||||
namespace ZR.Service.mes.wms.IService
|
||||
{
|
||||
/// <summary>
|
||||
/// 仓库操作日志service接口
|
||||
/// </summary>
|
||||
public interface IWmGoodsActionService : IBaseService<WmGoodsChangeLog>
|
||||
{
|
||||
|
||||
WmGoodsChangeLog doConsolidationGoods(WmGoodsConsolidationDto parm);
|
||||
WmGoodsChangeLog doUnpackingGoods(WmGoodsUnpackingDto parm);
|
||||
|
||||
}
|
||||
}
|
||||
@@ -14,6 +14,7 @@ namespace ZR.Service.mes.wms.IService
|
||||
{
|
||||
PagedInfo<WmGoodsChangeLogDto> GetList(WmGoodsChangeLogQueryDto parm);
|
||||
|
||||
|
||||
WmGoodsChangeLog GetInfo(int Id);
|
||||
|
||||
WmGoodsChangeLog AddWmGoodsChangeLog(WmGoodsChangeLog parm);
|
||||
|
||||
32
ZR.Service/mes/wms/WmGoodsActionService.cs
Normal file
32
ZR.Service/mes/wms/WmGoodsActionService.cs
Normal file
@@ -0,0 +1,32 @@
|
||||
using System;
|
||||
using SqlSugar;
|
||||
using Infrastructure.Attribute;
|
||||
using Infrastructure.Extensions;
|
||||
using ZR.Model;
|
||||
using ZR.Model.Dto;
|
||||
using ZR.Model.MES.wms;
|
||||
using ZR.Repository;
|
||||
using ZR.Service.Business.IBusinessService;
|
||||
using System.Linq;
|
||||
using ZR.Service.mes.wms.IService;
|
||||
using ZR.Model.MES.wms.Dto;
|
||||
|
||||
namespace ZR.Service.Business
|
||||
{
|
||||
/// <summary>
|
||||
/// 仓库操作日志Service业务层处理
|
||||
/// </summary>
|
||||
[AppService(ServiceType = typeof(IWmGoodsActionService), ServiceLifetime = LifeTime.Transient)]
|
||||
public class WmGoodsActionService : BaseService<WmGoodsChangeLog>, IWmGoodsActionService
|
||||
{
|
||||
public WmGoodsChangeLog doConsolidationGoods(WmGoodsConsolidationDto parm)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public WmGoodsChangeLog doUnpackingGoods(WmGoodsUnpackingDto parm)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user