Browse Source

财税情况bug

zhengbingbing 6 years ago
parent
commit
ec0fc88bd2

+ 7 - 0
codegit/CallCenterApi/CallCenterApi.BLL/T_Cus_CustomerFinance.cs

@@ -55,6 +55,13 @@ namespace CallCenterApi.BLL
55 55
         {
56 56
             return dal.DeleteList(F_CusFinIdlist);
57 57
         }
58
+        /// <summary>
59
+        /// 根据客户id删除联系人信息
60
+        /// </summary>
61
+        public bool DeleteListByCusid(string cusid)
62
+        {
63
+            return dal.DeleteListByCusid(cusid);
64
+        }
58 65
 
59 66
         /// <summary>
60 67
         /// 得到一个对象实体

+ 18 - 1
codegit/CallCenterApi/CallCenterApi.DAL/T_Cus_CustomerFinance.cs

@@ -274,7 +274,24 @@ namespace CallCenterApi.DAL
274 274
                 return false;
275 275
             }
276 276
         }
277
-
277
+        /// <summary>
278
+        /// 根据客户id删除联系人信息
279
+        /// </summary>
280
+        public bool DeleteListByCusid(string cusid)
281
+        {
282
+            StringBuilder strSql = new StringBuilder();
283
+            strSql.Append("update T_Cus_CustomerFinance set F_DeleteFlag=1 ");
284
+            strSql.Append(" where F_CustomerId in (" + cusid + ")  ");
285
+            int rows = DbHelperSQL.ExecuteSql(strSql.ToString());
286
+            if (rows > 0)
287
+            {
288
+                return true;
289
+            }
290
+            else
291
+            {
292
+                return false;
293
+            }
294
+        }
278 295
 
279 296
         /// <summary>
280 297
         /// 得到一个对象实体

+ 2 - 1
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/customer/CustomerNewController.cs

@@ -475,6 +475,7 @@ namespace CallCenterApi.Interface.Controllers.customer
475 475
                     if (cusbll.DeleteList(idd.TrimEnd(',')))
476 476
                     {
477 477
                         conbll.DeleteListByCusid(idd.TrimEnd(','));
478
+                        finbll.DeleteListByCusid(idd.TrimEnd(','));
478 479
                         return Success("设置成功");
479 480
                     }
480 481
                     else
@@ -676,7 +677,7 @@ namespace CallCenterApi.Interface.Controllers.customer
676 677
         {
677 678
             if (cusid != 0)
678 679
             {
679
-                var model = finbll.GetModelList(" F_CustomerId=" + cusid).FirstOrDefault();
680
+                var model = finbll.GetModelList(" F_DeleteFlag=0 and F_CustomerId=" + cusid).FirstOrDefault();
680 681
                 if (model != null)
681 682
                     return Success("获取财税情况成功", model);
682 683
             }

+ 3 - 1
db/log.txt

@@ -1,3 +1,5 @@
1 1
 ةْ²ْ»·¾³±¸·ف
2 2
 20190424
3
-20190531
3
+20190531
4
+20190606
5
+20190801