|
|
@@ -43,7 +43,6 @@ namespace Learun.Application.TwoDevelopment.Ask |
|
|
|
t.VStopTime, |
|
|
|
t.AcademicYearNo, |
|
|
|
t.Semester, |
|
|
|
t.DeptNos,t.DeptNosName, |
|
|
|
t.MajorNos,t.MajorNosName, |
|
|
|
t.LessonNos,t.LessonNosName, |
|
|
|
t.ClassNos,t.ClassNosName, |
|
|
@@ -104,12 +103,11 @@ namespace Learun.Application.TwoDevelopment.Ask |
|
|
|
t.VStopTime, |
|
|
|
t.AcademicYearNo, |
|
|
|
t.Semester, |
|
|
|
t.DeptNos,t.DeptNosName, |
|
|
|
t.MajorNos,t.MajorNosName, |
|
|
|
t.LessonNos,t.LessonNosName, |
|
|
|
t.ClassNos,t.ClassNosName, |
|
|
|
t.GradeNos,t.GradeNosName, |
|
|
|
t.VHide,t.SPVNum,t.SPNum,t.SClick,t.Status,b.IsAnswer,b.TotalScore,b.CreateDate,c.StuNo,c.StuName,c.genderno,c.deptno,c.majorno,c.classno,c.grade |
|
|
|
t.VHide,t.SPVNum,t.SPNum,t.SClick,t.Status,b.IsAnswer,b.TotalScore,b.CreateDate,c.StuNo,c.StuName,c.genderno,c.majorno,c.classno,c.grade |
|
|
|
"); |
|
|
|
strSql.Append(" FROM " + basedbname + ".dbo.Ask_Main t right join " + basedbname + ".dbo.Ask_StudentMain b on t.VID=b.VID left join " + misdbname + ".dbo.stuinfobasic c on b.StuNo=c.StuNo "); |
|
|
|
strSql.Append(" WHERE 1=1 "); |
|
|
@@ -300,15 +298,6 @@ namespace Learun.Application.TwoDevelopment.Ask |
|
|
|
entity.VCreateTime = DateTime.Now; |
|
|
|
//统计调查人数 |
|
|
|
StringBuilder sql = new StringBuilder("select distinct * from StuInfoBasic a where CheckMark=1 "); |
|
|
|
if (!string.IsNullOrEmpty(entity.DeptNos)) |
|
|
|
{ |
|
|
|
List<string> deptList = entity.DeptNos.Split(',').ToList(); |
|
|
|
for (var i = 0; i < deptList.Count; i++) |
|
|
|
{ |
|
|
|
deptList[i] = "'" + deptList[i] + "'"; |
|
|
|
} |
|
|
|
sql.Append(" and a.DeptNo in(" + string.Join(",", deptList.ToArray()) + ")"); |
|
|
|
} |
|
|
|
if (!string.IsNullOrEmpty(entity.MajorNos)) |
|
|
|
{ |
|
|
|
List<string> deptList = entity.MajorNos.Split(',').ToList(); |
|
|
|