zhengbingbing %!s(int64=7) %!d(string=hace) años
padre
commit
1b3ea2c683

+ 1 - 1
codegit/CallCenterApi/CallCenterApi.BLL/T_Wo_WorkOrder.cs

@@ -159,7 +159,7 @@ namespace CallCenterApi.BLL
159 159
         /// 处理工单
160 160
         /// </summary>
161 161
         public int DealWorkOrder1(string strorderid, int isend
162
-           , string customer, string custel, DateTime? inqtime, string inquser, string country, string address
162
+           , string customer, string custel, string inqtime, string inquser, string country, string address
163 163
            , string detail, string strcont, string answer, string remark
164 164
            , int jsbm, string jsgh, string clgh, string infotype, int infotypeid, int unitid, string unit
165 165
            )

+ 1 - 1
codegit/CallCenterApi/CallCenterApi.DAL/T_Wo_WorkOrder.cs

@@ -792,7 +792,7 @@ namespace CallCenterApi.DAL
792 792
         /// 处理工单
793 793
         /// </summary>
794 794
         public int DealWorkOrder1(string strorderid, int isend
795
-           , string customer, string custel, DateTime? inqtime, string inquser, string country, string address
795
+           , string customer, string custel, string inqtime, string inquser, string country, string address
796 796
            , string detail, string strcont, string answer, string remark
797 797
            , int jsbm, string jsgh, string clgh, string infotype, int infotypeid, int unitid, string unit
798 798
            )

+ 11 - 5
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/workorder/WorkOrderController.cs

@@ -1057,12 +1057,15 @@ namespace CallCenterApi.Interface.Controllers.workorder
1057 1057
                                 }
1058 1058
                             }
1059 1059
                             #endregion
1060
-
1060
+                            string inqtimes = "";
1061 1061
                             #region 息县工单
1062 1062
                             if (!string.IsNullOrWhiteSpace(customer))
1063 1063
                                 model.Customer = customer;
1064
-                            if(!string.IsNullOrWhiteSpace(inqtime))
1064
+                            if (!string.IsNullOrWhiteSpace(inqtime))
1065
+                            {
1065 1066
                                 model.Inqtime = DateTime.Parse(inqtime);
1067
+                                inqtimes = model.Inqtime.Value.ToString("yyyy-MM-dd HH:mm:ss");
1068
+                            }
1066 1069
                             if (!string.IsNullOrWhiteSpace(inquser))
1067 1070
                                 model.Inquser = inquser;
1068 1071
                             if (!string.IsNullOrWhiteSpace(country))
@@ -1081,7 +1084,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
1081 1084
                             #endregion
1082 1085
 
1083 1086
                             int n = new BLL.T_Wo_WorkOrder().DealWorkOrder1(orderid, isend
1084
-                                , model.Customer, model.CustomerTel, model.Inqtime, model.Inquser
1087
+                                , model.Customer, model.CustomerTel, inqtimes, model.Inquser
1085 1088
                                 , model.County, model.Address, model.Detail, model.Clcontent, model.Answer, model.Remark
1086 1089
                                 , clbm, clgh, ua.F_UserCode, model.InfoType, model.InfoTypeID.Value, model.UnitID.Value, model.Unit);
1087 1090
                             if (n > 0)
@@ -1149,7 +1152,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
1149 1152
                     Model.T_Sys_UserAccount ua = new BLL.T_Sys_UserAccount().GetModelList(" F_WxOpenId='" + openid + "'").FirstOrDefault();
1150 1153
                     if (ua != null)
1151 1154
                     {
1152
-
1155
+                        string inqtimes = "";
1153 1156
                         #region 信息分类/交办单位
1154 1157
 
1155 1158
                         model.InfoTypeID = infotypeid;//信息分类
@@ -1176,7 +1179,10 @@ namespace CallCenterApi.Interface.Controllers.workorder
1176 1179
                         if (!string.IsNullOrWhiteSpace(customer))
1177 1180
                             model.Customer = customer;
1178 1181
                         if (!string.IsNullOrWhiteSpace(inqtime))
1182
+                        {
1179 1183
                             model.Inqtime = DateTime.Parse(inqtime);
1184
+                            inqtimes = model.Inqtime.Value.ToString("yyyy-MM-dd HH:mm:ss");
1185
+                        }
1180 1186
                         if (!string.IsNullOrWhiteSpace(inquser))
1181 1187
                             model.Inquser = inquser;
1182 1188
                         if (!string.IsNullOrWhiteSpace(country))
@@ -1194,7 +1200,7 @@ namespace CallCenterApi.Interface.Controllers.workorder
1194 1200
                         #endregion
1195 1201
 
1196 1202
                         int n = new BLL.T_Wo_WorkOrder().DealWorkOrder1(model.WorkOrderID, 1
1197
-                                , model.Customer, model.CustomerTel, model.Inqtime, model.Inquser
1203
+                                , model.Customer, model.CustomerTel, inqtimes, model.Inquser
1198 1204
                                 , model.County, model.Address, model.Detail, model.Clcontent, model.Answer, model.Remark
1199 1205
                                 , ua.F_DeptId, ua.F_UserCode, ua.F_UserCode, model.InfoType, model.InfoTypeID.Value, model.UnitID.Value, model.Unit);
1200 1206