You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.0 KiB
38 lines
1.0 KiB
3 years ago
|
using learun.iapplication;
|
||
|
using Microsoft.AspNetCore.Mvc;
|
||
|
using System.Threading.Tasks;
|
||
|
|
||
|
namespace learun.webapi.Controllers
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// 版 本 Learun-ADMS-Core 力软管理后台
|
||
|
/// Copyright (c) 2019-present 力软信息技术(苏州)有限公司
|
||
|
/// 创建人:tobin
|
||
|
/// 日 期:2020.04.21
|
||
|
/// 描 述:编码规则接口
|
||
|
/// </summary>
|
||
|
public class CodeRuleController : MvcControllerBase
|
||
|
{
|
||
|
private readonly CodeRuleIBLL _codeRuleIBLL;
|
||
|
/// <summary>
|
||
|
/// 初始方法
|
||
|
/// </summary>
|
||
|
public CodeRuleController(CodeRuleIBLL codeRuleIBLL)
|
||
|
{
|
||
|
_codeRuleIBLL = codeRuleIBLL;
|
||
|
}
|
||
|
|
||
|
|
||
|
/// <summary>
|
||
|
/// 获取编码单号
|
||
|
/// </summary>
|
||
|
/// <param name="code">编码</param>
|
||
|
/// <returns></returns>
|
||
|
[HttpGet]
|
||
|
public async Task<IActionResult> Code(string code)
|
||
|
{
|
||
|
var data =await _codeRuleIBLL.GetBillCode(code);
|
||
|
return Success(data);
|
||
|
}
|
||
|
}
|
||
|
}
|