From 8de9a465342385e0ebee7dc430abadd69a2b67dd Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期一, 28 六月 2021 12:42:46 +0800
Subject: [PATCH] 工资修改

---
 zhengcaioa/zhengcaioa/Controllers/Customer/IntentionVisitController.cs |   26 ++++++++++++++++++++++++--
 1 files changed, 24 insertions(+), 2 deletions(-)

diff --git a/zhengcaioa/zhengcaioa/Controllers/Customer/IntentionVisitController.cs b/zhengcaioa/zhengcaioa/Controllers/Customer/IntentionVisitController.cs
index e54fb98..007b957 100644
--- a/zhengcaioa/zhengcaioa/Controllers/Customer/IntentionVisitController.cs
+++ b/zhengcaioa/zhengcaioa/Controllers/Customer/IntentionVisitController.cs
@@ -30,9 +30,11 @@
         private readonly IIntentionCustomerService _intentionCustomerService;
         private readonly IUserService _userService;
         private readonly IIntentionVisitService _intentionVisitService;
+        private readonly ICusFangwenjiluService _cusFangwenjiluService;
 
 
-        public IntentionVisitController(ILogger<IntentionVisitController> logger, IProjectService projectService, ILiaotianService liaotianService, IIntentionCustomerService intentionCustomerService, IUserService userService, IIntentionVisitService intentionVisitService)
+        public IntentionVisitController(ILogger<IntentionVisitController> logger, IProjectService projectService, ILiaotianService liaotianService, IIntentionCustomerService intentionCustomerService, IUserService userService, IIntentionVisitService intentionVisitService
+             , ICusFangwenjiluService cusFangwenjiluService)
         {
             _logger = logger;
             _projectService = projectService;
@@ -40,6 +42,7 @@
             _intentionCustomerService = intentionCustomerService;
             _userService = userService;
             _intentionVisitService = intentionVisitService;
+            _cusFangwenjiluService = cusFangwenjiluService;
         }
 
 
@@ -221,6 +224,16 @@
                 resultEntity.Message = "鐭俊鍙戦�佸け璐�";
 
             }
+            CusFangwenjiluDTO dto = new CusFangwenjiluDTO();
+            dto.Fasongfangshi = "01";
+            dto.Fasongneirong = neirong;
+            dto.Jieshouren = baifangid;
+            dto.RecStatus = "A";
+            dto.Creater = curentuser.Id;
+            dto.Modifytime = DateTime.Now;
+            dto.Modifier = curentuser.Id;
+            dto.Createtime = dto.Modifytime;
+            resultEntity = _cusFangwenjiluService.save(dto);
             _logger.LogInformation(curentuser.UserName + "鍙戦�佺煭淇$粰瀹㈡埛" + customename);
             return new JsonResult(resultEntity);
         }
@@ -290,7 +303,16 @@
             {
                 return new JsonResult(resultEntity);
             }
-
+            CusFangwenjiluDTO dto = new CusFangwenjiluDTO();
+            dto.Fasongfangshi = "02";
+            dto.Fasongneirong = neirong;
+            dto.Jieshouren = baifangid;
+            dto.RecStatus = "A";
+            dto.Creater = curentuser.Id;
+            dto.Modifytime = DateTime.Now;
+            dto.Modifier = curentuser.Id;
+            dto.Createtime = dto.Modifytime;
+            resultEntity = _cusFangwenjiluService.save(dto);
             _logger.LogInformation(curentuser.UserName +"鍙戦�侀偖浠剁粰瀹㈡埛"+ customename);
 
             return new JsonResult(resultEntity);

--
Gitblit v1.9.1