From f33ece65bdfd7b8354bd5046d4b9d2d600643b0f Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期六, 09 十月 2021 13:24:51 +0800
Subject: [PATCH] tijiao

---
 zhengcaioa/zhengcaioa/Controllers/admin/AdmAskController.cs |   18 +++++++++++++++++-
 1 files changed, 17 insertions(+), 1 deletions(-)

diff --git a/zhengcaioa/zhengcaioa/Controllers/admin/AdmAskController.cs b/zhengcaioa/zhengcaioa/Controllers/admin/AdmAskController.cs
index cb75041..91cc7d4 100644
--- a/zhengcaioa/zhengcaioa/Controllers/admin/AdmAskController.cs
+++ b/zhengcaioa/zhengcaioa/Controllers/admin/AdmAskController.cs
@@ -30,6 +30,7 @@
         private readonly ICooperatecustomCustomerService _cooperatecustomCustomerService;
         private readonly IIntentionCustomerService _intentionCustomerService;
         private readonly IHrPositionService _hrPositionService;
+        private readonly IAdmGoodsRecordService _admGoodsRecordService;
 
         public AdmAskController(ILogger<AdmAskController> logger, IAskService askService, IHrDeptService hrDeptService, IWfRunProcessService wfRunProcessService
             , IWfHistoryService wfHistoryService, IWfNeeddeelService wfNeeddeelService
@@ -39,7 +40,8 @@
             , IAdmBreakPrecedentService aAdmBreakPrecedentService
             , ICooperatecustomCustomerService cooperatecustomCustomerService
             , IIntentionCustomerService intentionCustomerService
-            , IHrPositionService hrPositionService)
+            , IHrPositionService hrPositionService
+            , IAdmGoodsRecordService admGoodsRecordService)
         {
             _logger = logger;
             _hrDeptService = hrDeptService;
@@ -54,6 +56,7 @@
             _cooperatecustomCustomerService = cooperatecustomCustomerService;
             _intentionCustomerService = intentionCustomerService;
             _hrPositionService = hrPositionService;
+            _admGoodsRecordService = admGoodsRecordService;
         }
 
         public IActionResult Askcost(string id = "")
@@ -277,6 +280,19 @@
                         resultEntity.Message = "鐗╁搧鍓╀綑鏁伴噺涓嶈冻";
                         return new JsonResult(resultEntity);
                     }
+
+                    AdmGoodsRecordDTO dto = new AdmGoodsRecordDTO();
+                    dto.GoodsId = admGoodsManageDTO.Id;
+                    dto.GoodsNum = admAskGoodDTO.Shuliang.Value;
+                    dto.GoodsLeft = admGoodsManageDTO.GoodsLeft;
+                    dto.RecordTypeId = "02";
+                    dto.RecStatus = "A";
+                    dto.Creater = curentuser.Id;
+                    dto.Createtime = DateTime.Now;
+                    dto.Modifier = curentuser.Id;
+                    dto.Modifytime = DateTime.Now;
+                    dto.OperationalMatters = admAskGoodDTO.Tittle;
+                    resultEntity = _admGoodsRecordService.save(dto);
                 }
 
 

--
Gitblit v1.9.1