duhongyu лет назад: 5
Родитель
Сommit
5909ca8745

+ 7 - 2
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/MedicalFollowup/FollowUpController.cs

453
                     #region  保存日志
453
                     #region  保存日志
454
 
454
 
455
                     BLL.SF_Result busResult=   new BLL.SF_Result();
455
                     BLL.SF_Result busResult=   new BLL.SF_Result();
456
-
456
+                   
457
                     Model.SF_Result modelResult= busResult.GetModel(custelid.ToString());
457
                     Model.SF_Result modelResult= busResult.GetModel(custelid.ToString());
458
                     if (modelResult != null)
458
                     if (modelResult != null)
459
                     {
459
                     {
460
                         busResult.Delete(modelResult.F_Id);
460
                         busResult.Delete(modelResult.F_Id);
461
                         modelResult.F_SFNum += 1;
461
                         modelResult.F_SFNum += 1;
462
                         modelResult.F_Remark += "<br/>上次满意度:" + modelResult.F_MYD;
462
                         modelResult.F_Remark += "<br/>上次满意度:" + modelResult.F_MYD;
463
-                        modelResult.F_Remark+= "<br/>上次建议:" + modelResult.F_Advise;
463
+                        modelResult.F_Remark += "<br/>上次建议:" + modelResult.F_Advise;
464
                         modelResult.F_Remark += "<br/>上次回访结果" + modelResult.F_Result;
464
                         modelResult.F_Remark += "<br/>上次回访结果" + modelResult.F_Result;
465
                     }
465
                     }
466
+                    else
467
+                    {
468
+                        modelResult = new Model.SF_Result();
469
+                        modelResult.F_SFNum = 1;
470
+                    }
466
 
471
 
467
                    var hjconfig = new BLL.T_Sys_DictionaryValue().GetModel(hjjgid);
472
                    var hjconfig = new BLL.T_Sys_DictionaryValue().GetModel(hjjgid);
468
                     if (hjconfig != null)
473
                     if (hjconfig != null)