|
|
@@ -92,15 +92,28 @@ namespace CallCenterApi.Interface.Controllers.quality
|
|
92
|
92
|
|
|
93
|
93
|
List<Model.T_Call_CallRecords_QC> Plist = new BLL.T_Call_CallRecords_QC().GetModelList(sql);//.GetListV1(sql);
|
|
94
|
94
|
List<Model.T_Call_CallRecordsLD> ldList = new BLL.T_Call_CallRecordsLD().GetModelList("");
|
|
|
95
|
+ var config = new BLL.T_Sys_SystemConfig().GetModelList(" F_ParamCode='PlayPath' ").FirstOrDefault();
|
|
95
|
96
|
Model.PageData<object> pageData = new Model.PageData<object>();
|
|
96
|
97
|
var list = Plist.Select(d =>
|
|
97
|
98
|
{
|
|
98
|
99
|
int lc = ldList.Where(l => l.F_CallRecordsID == d.CallRecordsId && l.F_OptID == int.Parse(optid) && l.F_IsListen == true).Count();
|
|
99
|
100
|
int dc = ldList.Where(l => l.F_CallRecordsID == d.CallRecordsId && l.F_OptID == int.Parse(optid) && l.F_IsDownload == true).Count();
|
|
|
101
|
+ string filepath = "";
|
|
|
102
|
+
|
|
|
103
|
+ string path = d.FilePath != null ? d.FilePath.ToString() : "";
|
|
|
104
|
+ if (path != "" && config != null && !string.IsNullOrEmpty(config.F_ParamValue))
|
|
|
105
|
+ {
|
|
|
106
|
+ var ym = config.F_ParamValue;
|
|
|
107
|
+ if (ym.Substring(ym.Length - 1) == "/")
|
|
|
108
|
+ {
|
|
|
109
|
+ ym = ym.Substring(0, ym.Length - 1);
|
|
|
110
|
+ }
|
|
|
111
|
+ filepath = ym + path.Substring(path.IndexOf(':') + 1).Replace('\\', '/');
|
|
|
112
|
+ }
|
|
100
|
113
|
return new
|
|
101
|
114
|
{
|
|
102
|
115
|
_callnumber = d.CallNumber,
|
|
103
|
|
- _filepath = d.FilePath,
|
|
|
116
|
+ _filepath = filepath,
|
|
104
|
117
|
_f_qcstate = d.F_QCState,
|
|
105
|
118
|
_f_qcscore = d.F_QCScore,
|
|
106
|
119
|
_f_qcquestion = d.F_QCQuestion,
|