|
|
@@ -963,7 +963,10 @@ namespace CallCenterApi.Interface.Controllers.callout
|
|
963
|
963
|
paperid = tmodel.F_PagerID.Value;
|
|
964
|
964
|
#region 获取问卷试题信息以及答案
|
|
965
|
965
|
var pmodel = pagerInfoBLL.GetModel(paperid);
|
|
966
|
|
- var qlist = questionBLL.GetModelList(" F_DeleteFlag=0 and F_QuestionId in (select F_QuestionId from T_Ask_PagerItems where F_PagerId=" + paperid + ") order by F_QuestionId ");
|
|
|
966
|
+ DataTable dt = DbHelperSQL.Query($" SELECT a.F_Sort,a.F_ItemId,b.* FROM dbo.T_Ask_PagerItems a LEFT JOIN dbo.T_Ask_Question b ON b.F_QuestionId = a.F_QuestionId WHERE a.F_PagerId = " + paperid + " AND b.F_DeleteFlag = 0 ORDER BY a.F_ItemId ASC ").Tables[0];
|
|
|
967
|
+ var qlist = DataTableToListHelper.ToList<Ask_QuestionDto>(dt);
|
|
|
968
|
+ //处理排序
|
|
|
969
|
+ //var qlist = questionBLL.GetModelList(" F_DeleteFlag=0 and F_QuestionId in (select F_QuestionId from T_Ask_PagerItems where F_PagerId=" + paperid + ") order by F_QuestionId ");
|
|
967
|
970
|
var qilist = questionItemBLL.GetModelList(" F_QuestionId in (select F_QuestionId from T_Ask_PagerItems where F_PagerId=" + paperid + ") order by F_ItemId ");
|
|
968
|
971
|
var newmodel = new
|
|
969
|
972
|
{
|