mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2026-03-23 12:07:21 +08:00
【新增】普通订单列表新增【打小票单】主动打印功能,方便多次打印云打印机小票。
This commit is contained in:
@@ -818,6 +818,36 @@ namespace CoreCms.Net.Web.Admin.Controllers
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 重打小票============================================================
|
||||
// POST: Api/CoreCmsOrder/GetPrintTpl/10
|
||||
/// <summary>
|
||||
/// 重打小票
|
||||
/// </summary>
|
||||
/// <param name="entity"></param>
|
||||
/// <returns></returns>
|
||||
[HttpPost]
|
||||
[Description("重打小票")]
|
||||
public async Task<AdminUiCallBack> GetPrintCloud([FromBody] FMStringId entity)
|
||||
{
|
||||
var jm = new AdminUiCallBack();
|
||||
|
||||
var order = await _coreCmsOrderServices.QueryByClauseAsync(p => p.orderId == entity.id);
|
||||
if (order == null)
|
||||
{
|
||||
jm.msg = "不存在此信息";
|
||||
return jm;
|
||||
}
|
||||
|
||||
//易联云打印机打印
|
||||
await _redisOperationRepository.ListLeftPushAsync(RedisMessageQueueKey.OrderPrint, JsonConvert.SerializeObject(order));
|
||||
|
||||
jm.code = 0;
|
||||
jm.msg = "提交打印队列成功";
|
||||
|
||||
return jm;
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 订单打印============================================================
|
||||
// POST: Api/CoreCmsOrder/GetPrintTpl/10
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user