Explorar el Código

客户财税情况记录到数据库 财税情况和财税日志表中的客户id类型修改

zhaozhiqiang %!s(int64=5) %!d(string=hace) años
padre
commit
c942f658b8

+ 2 - 2
codegit/CallCenterApi/CallCenterApi.DAL/T_Cus_CustomerFinance.cs

@@ -46,7 +46,7 @@ namespace CallCenterApi.DAL
46 46
             strSql.Append("@F_CustomerId,@F_CustomerCode,@F_MonthState,@F_AnnualIncome,@F_AnnualProfit,@F_AnnualCost,@F_AnnualPersonCount,@F_AnnualWages,@F_QuarterlyCost,@F_QuarterlyPersonCount,@F_QuarterlyWages,@F_QuarterlyIncome,@F_QPVAT,@F_QPSurtax,@F_QPTaxes,@F_QPConTax,@F_QPPerinTax,@F_QPStampTax,@F_QPOtherTax,@F_Extend1,@F_Extend2,@F_Extend3,@F_Extend4,@F_Extend5,@F_Remark1,@F_Remark2,@F_Remark3,@F_CreateBy,@F_CreatedOn,@F_DeleteFlag)");
47 47
             strSql.Append(";select @@IDENTITY");
48 48
             SqlParameter[] parameters = {
49
-                    new SqlParameter("@F_CustomerId", SqlDbType.Int,4),
49
+                    new SqlParameter("@F_CustomerId", SqlDbType.NVarChar,500),
50 50
                     new SqlParameter("@F_CustomerCode", SqlDbType.NVarChar,100),
51 51
                     new SqlParameter("@F_MonthState", SqlDbType.NVarChar,500),
52 52
                     new SqlParameter("@F_AnnualIncome", SqlDbType.NVarChar,200),
@@ -334,7 +334,7 @@ namespace CallCenterApi.DAL
334 334
                 }
335 335
                 if (row["F_CustomerId"] != null && row["F_CustomerId"].ToString() != "")
336 336
                 {
337
-                    model.F_CustomerId = int.Parse(row["F_CustomerId"].ToString());
337
+                    model.F_CustomerId = row["F_CustomerId"].ToString();
338 338
                 }
339 339
                 if (row["F_CustomerCode"] != null)
340 340
                 {

+ 2 - 2
codegit/CallCenterApi/CallCenterApi.DAL/T_Cus_CustomerFinanceLog.cs

@@ -47,7 +47,7 @@ namespace CallCenterApi.DAL
47 47
             strSql.Append(";select @@IDENTITY");
48 48
             SqlParameter[] parameters = {
49 49
                     new SqlParameter("@F_CusFinId", SqlDbType.Int,4),
50
-                    new SqlParameter("@F_CustomerId", SqlDbType.Int,4),
50
+                    new SqlParameter("@F_CustomerId", SqlDbType.NVarChar,500),
51 51
                     new SqlParameter("@F_CustomerCode", SqlDbType.NVarChar,100),
52 52
                     new SqlParameter("@F_MonthState", SqlDbType.NVarChar,500),
53 53
                     new SqlParameter("@F_AnnualIncome", SqlDbType.NVarChar,200),
@@ -324,7 +324,7 @@ namespace CallCenterApi.DAL
324 324
                 }
325 325
                 if (row["F_CustomerId"] != null && row["F_CustomerId"].ToString() != "")
326 326
                 {
327
-                    model.F_CustomerId = int.Parse(row["F_CustomerId"].ToString());
327
+                    model.F_CustomerId = row["F_CustomerId"].ToString();
328 328
                 }
329 329
                 if (row["F_CustomerCode"] != null)
330 330
                 {

+ 3 - 3
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/customer/CustomerNewController.cs

@@ -778,7 +778,7 @@ namespace CallCenterApi.Interface.Controllers.customer
778 778
             }
779 779
             else
780 780
             {
781
-                model.F_CustomerId = input.F_CustomerId;
781
+                model.F_CustomerId = input.F_CustomerId.ToString();
782 782
                 model.F_CustomerCode = input.F_CustomerCode;
783 783
                 model.F_CreateBy = input.F_CreateBy;
784 784
                 model.F_CreatedOn = DateTime.Now;
@@ -794,7 +794,7 @@ namespace CallCenterApi.Interface.Controllers.customer
794 794
         {
795 795
             var model = new Model.T_Cus_CustomerFinanceLog();
796 796
             #region 设置信息
797
-            model.F_CustomerId = input.F_CustomerId;
797
+            model.F_CustomerId = input.F_CustomerId.ToString();
798 798
             model.F_CustomerCode = input.F_CustomerCode;
799 799
             model.F_CreateBy = input.F_CreateBy;
800 800
             model.F_CreatedOn = DateTime.Now;
@@ -971,7 +971,7 @@ namespace CallCenterApi.Interface.Controllers.customer
971 971
                             #endregion
972 972
                             #region 添加财税情况
973 973
                             var finmodel = new Model.T_Cus_CustomerFinance();
974
-                            finmodel.F_CustomerId = n;
974
+                            finmodel.F_CustomerId = n.ToString();
975 975
                             finmodel.F_CustomerCode = cusmodel.F_CustomerCode;
976 976
                             finmodel.F_CreateBy = cusmodel.F_CreateBy;
977 977
                             finmodel.F_CreatedOn = DateTime.Now;

+ 2 - 2
codegit/CallCenterApi/CallCenterApi.Model/T_Cus_CustomerFinance.cs

@@ -16,7 +16,7 @@ namespace CallCenterApi.Model
16 16
         { }
17 17
         #region Model
18 18
         private int _f_cusfinid;
19
-        private int? _f_customerid;
19
+        private string _f_customerid;
20 20
         private string _f_customercode;
21 21
         private string _f_monthstate;
22 22
         private string _f_annualincome;
@@ -57,7 +57,7 @@ namespace CallCenterApi.Model
57 57
         /// <summary>
58 58
         /// 客户ID
59 59
         /// </summary>
60
-        public int? F_CustomerId
60
+        public string  F_CustomerId
61 61
         {
62 62
             set { _f_customerid = value; }
63 63
             get { return _f_customerid; }

+ 2 - 2
codegit/CallCenterApi/CallCenterApi.Model/T_Cus_CustomerFinanceLog.cs

@@ -17,7 +17,7 @@ namespace CallCenterApi.Model
17 17
         #region Model
18 18
         private int _f_cusfinlogid;
19 19
         private int? _f_cusfinid;
20
-        private int? _f_customerid;
20
+        private string _f_customerid;
21 21
         private string _f_customercode;
22 22
         private string _f_monthstate;
23 23
         private string _f_annualincome;
@@ -66,7 +66,7 @@ namespace CallCenterApi.Model
66 66
         /// <summary>
67 67
         /// 客户ID
68 68
         /// </summary>
69
-        public int? F_CustomerId
69
+        public string  F_CustomerId
70 70
         {
71 71
             set { _f_customerid = value; }
72 72
             get { return _f_customerid; }

+ 2 - 0
财务系统对接/修改财税表和财税日志表中的客户id类型为nvarchar类型.sql

@@ -0,0 +1,2 @@
1
+ALTER TABLE T_Cus_CustomerFinance ALTER COLUMN F_CustomerId nvarchar(500) --修改财税表客户id的类型
2
+ALTER TABLE T_Cus_CustomerFinanceLog ALTER COLUMN F_CustomerId nvarchar(500) --修改财税日志表客户id的类型