From 6e2b929cf381e2320ba6e7dec56c0371124d2b51 Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期六, 27 八月 2022 15:03:00 +0800
Subject: [PATCH] 提交

---
 zhengcaioa/Services/CooperatecustomCustomerService.cs |   35 +++++++++++++++++++++++++++++++++++
 1 files changed, 35 insertions(+), 0 deletions(-)

diff --git a/zhengcaioa/Services/CooperatecustomCustomerService.cs b/zhengcaioa/Services/CooperatecustomCustomerService.cs
index da4db33..fe95ca7 100644
--- a/zhengcaioa/Services/CooperatecustomCustomerService.cs
+++ b/zhengcaioa/Services/CooperatecustomCustomerService.cs
@@ -99,7 +99,41 @@
                     updateproject.Weixintime = cooperatecustomCustomer.Weixintime;
                     updateproject.Weixiner = cooperatecustomCustomer.Weixiner;
                     updateproject.Shouxinedu = cooperatecustomCustomer.Shouxinedu;
+                    updateproject.Taocanjianshu = cooperatecustomCustomer.Taocanjianshu;
                 }
+
+                _context.SaveChanges();
+                resultEntity.ReturnID = cooperatecustomCustomer.Id;
+                resultEntity.Result = true;
+            }
+            catch (Exception ex)
+            {
+                resultEntity.Result = false;
+                resultEntity.Message = "淇濆瓨澶辫触锛岃鑱旂郴绠$悊鍛�";
+
+            }
+            return resultEntity;
+        }
+
+
+        public ResultEntity saveyufukuan(CooperatecustomCustomerDTO cooperatecustomCustomerDTO)
+        {
+            ResultEntity resultEntity = new ResultEntity();
+            try
+            {
+                
+
+                var cooperatecustomCustomer = _mapper.Map<CooperatecustomCustomer>(cooperatecustomCustomerDTO);
+
+
+                
+                    var updateproject = _context.CooperatecustomCustomers.Find(cooperatecustomCustomer.Id);
+
+                     
+                    updateproject.Yufukuan = cooperatecustomCustomer.Yufukuan;
+                    updateproject.Shenyushouxin = cooperatecustomCustomer.Shenyushouxin;
+                    updateproject.Shouxinedu = cooperatecustomCustomer.Shouxinedu;
+                 
 
                 _context.SaveChanges();
                 resultEntity.ReturnID = cooperatecustomCustomer.Id;
@@ -294,6 +328,7 @@
                              YufukuanName = a.Yufukuan.HasValue ? a.Yufukuan.Value.ToString("f2") : "",
                              ShouxineduName = a.Shouxinedu.HasValue ? a.Shouxinedu.Value.ToString("f2") : "",
                              ShenyushouxinName = a.Shenyushouxin.HasValue ? a.Shenyushouxin.Value.ToString("f2") : "",
+                             Taocanjianshu = a.Taocanjianshu ?? 0,
                          }
                         ).OrderByDescending(x => x.Modifytime).ToList();
 

--
Gitblit v1.9.1