From 95584843043327d4fa12481f0cf3e6c0785fcc26 Mon Sep 17 00:00:00 2001 From: cdk <2441919651@qq.com> Date: 星期一, 15 九月 2025 09:54:27 +0800 Subject: [PATCH] 其他出库增加库存 --- Controllers/LoginController.cs | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 57 insertions(+), 0 deletions(-) diff --git a/Controllers/LoginController.cs b/Controllers/LoginController.cs index edb595b..4e76314 100644 --- a/Controllers/LoginController.cs +++ b/Controllers/LoginController.cs @@ -105,4 +105,61 @@ return ResponseResult.ResponseError(ex); } } + + + /// <summary> + /// 鑾峰彇璐﹀彿淇℃伅 + /// </summary> + /// <param name="model"></param> + /// <returns></returns> + [HttpPost("getUserInfo")] + public ResponseResult getUserInfo([FromBody] dynamic model) + { + //鐧诲綍 + try + { + dynamic resultInfos = new ExpandoObject(); + var tbBillList = + new LoginService().getUserInfo(model.Guid); + resultInfos.tbBillList = tbBillList; + return new ResponseResult + { + status = 0, + message = "OK", + data = resultInfos + }; + } + catch (Exception ex) + { + return ResponseResult.ResponseError(ex); + } + } + + + /// <summary> + /// 鍒囨崲缁勭粐 + /// </summary> + /// <param name="model"></param> + /// <returns></returns> + [HttpPost("changeOrg")] + public ResponseResult changeOrg([FromBody] dynamic model) + { + //鐧诲綍 + try + { + dynamic resultInfos = new ExpandoObject(); + var tbBillList = new LoginService().changeOrg(model); + resultInfos.tbBillList = tbBillList; + return new ResponseResult + { + status = 0, + message = "OK", + data = resultInfos + }; + } + catch (Exception ex) + { + return ResponseResult.ResponseError(ex); + } + } } \ No newline at end of file -- Gitblit v1.9.3