ソースを参照

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

zhaozhiqiang 5 年 前
コミット
c942f658b8

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

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)");
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
             strSql.Append(";select @@IDENTITY");
47
             strSql.Append(";select @@IDENTITY");
48
             SqlParameter[] parameters = {
48
             SqlParameter[] parameters = {
49
-                    new SqlParameter("@F_CustomerId", SqlDbType.Int,4),
49
+                    new SqlParameter("@F_CustomerId", SqlDbType.NVarChar,500),
50
                     new SqlParameter("@F_CustomerCode", SqlDbType.NVarChar,100),
50
                     new SqlParameter("@F_CustomerCode", SqlDbType.NVarChar,100),
51
                     new SqlParameter("@F_MonthState", SqlDbType.NVarChar,500),
51
                     new SqlParameter("@F_MonthState", SqlDbType.NVarChar,500),
52
                     new SqlParameter("@F_AnnualIncome", SqlDbType.NVarChar,200),
52
                     new SqlParameter("@F_AnnualIncome", SqlDbType.NVarChar,200),
334
                 }
334
                 }
335
                 if (row["F_CustomerId"] != null && row["F_CustomerId"].ToString() != "")
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
                 if (row["F_CustomerCode"] != null)
339
                 if (row["F_CustomerCode"] != null)
340
                 {
340
                 {

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

47
             strSql.Append(";select @@IDENTITY");
47
             strSql.Append(";select @@IDENTITY");
48
             SqlParameter[] parameters = {
48
             SqlParameter[] parameters = {
49
                     new SqlParameter("@F_CusFinId", SqlDbType.Int,4),
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
                     new SqlParameter("@F_CustomerCode", SqlDbType.NVarChar,100),
51
                     new SqlParameter("@F_CustomerCode", SqlDbType.NVarChar,100),
52
                     new SqlParameter("@F_MonthState", SqlDbType.NVarChar,500),
52
                     new SqlParameter("@F_MonthState", SqlDbType.NVarChar,500),
53
                     new SqlParameter("@F_AnnualIncome", SqlDbType.NVarChar,200),
53
                     new SqlParameter("@F_AnnualIncome", SqlDbType.NVarChar,200),
324
                 }
324
                 }
325
                 if (row["F_CustomerId"] != null && row["F_CustomerId"].ToString() != "")
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
                 if (row["F_CustomerCode"] != null)
329
                 if (row["F_CustomerCode"] != null)
330
                 {
330
                 {

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

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

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

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

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

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

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

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的类型