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/CooperVisitController.cs |   28 +++++++++++++++++++++++++---
 1 files changed, 25 insertions(+), 3 deletions(-)

diff --git a/zhengcaioa/zhengcaioa/Controllers/Customer/CooperVisitController.cs b/zhengcaioa/zhengcaioa/Controllers/Customer/CooperVisitController.cs
index f223d0c..e7fd1b8 100644
--- a/zhengcaioa/zhengcaioa/Controllers/Customer/CooperVisitController.cs
+++ b/zhengcaioa/zhengcaioa/Controllers/Customer/CooperVisitController.cs
@@ -30,9 +30,11 @@
         private readonly ICooperatecustomCustomerService _cooperatecustomCustomerService;
         private readonly IUserService _userService;
         private readonly ICooperVisitService _cooperVisitService;
+        private readonly ICusFangwenjiluService _cusFangwenjiluService; 
 
 
-        public CooperVisitController(ILogger<CooperVisitController> logger, IProjectService projectService, ILiaotianService liaotianService, ICooperatecustomCustomerService cooperatecustomCustomerService, IUserService userService, ICooperVisitService cooperVisitService)
+        public CooperVisitController(ILogger<CooperVisitController> logger, IProjectService projectService, ILiaotianService liaotianService, ICooperatecustomCustomerService cooperatecustomCustomerService, IUserService userService, ICooperVisitService cooperVisitService
+            , ICusFangwenjiluService cusFangwenjiluService)
         {
             _logger = logger;
             _projectService = projectService;
@@ -40,6 +42,7 @@
             _cooperatecustomCustomerService = cooperatecustomCustomerService;
             _userService = userService;
             _cooperVisitService = cooperVisitService;
+            _cusFangwenjiluService = cusFangwenjiluService;
         }
 
         public IActionResult Index()
@@ -213,8 +216,18 @@
             {
                 resultEntity.Result = false;
                 resultEntity.Message = "鐭俊鍙戦�佸け璐�";
-
+                return new JsonResult(resultEntity);
             }
+            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);
         }
@@ -284,7 +297,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