Commit b8b1f482 authored by 吴春's avatar 吴春

解决冲突

parents 090b3d92 72b561aa
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\Mall.Model\Mall.Model.csproj" />
<ProjectReference Include="..\Mall.Repository\Mall.Repository.csproj" /> <ProjectReference Include="..\Mall.Repository\Mall.Repository.csproj" />
</ItemGroup> </ItemGroup>
......
...@@ -38,10 +38,6 @@ LEFT JOIN rb_education_teacher as et on tc.TeacherId=et.ID ...@@ -38,10 +38,6 @@ LEFT JOIN rb_education_teacher as et on tc.TeacherId=et.ID
{ {
sb.AppendFormat(" and tc.MallBaseId={0}", where.MallBaseId); sb.AppendFormat(" and tc.MallBaseId={0}", where.MallBaseId);
} }
if (where.MallBaseId > 0)
{
sb.AppendFormat(" and tc.MallBaseId={0}", where.MallBaseId);
}
if (where.CourseClassId > 0) if (where.CourseClassId > 0)
{ {
sb.AppendFormat(" and tc.CourseClassId={0}", where.CourseClassId); sb.AppendFormat(" and tc.CourseClassId={0}", where.CourseClassId);
...@@ -91,10 +87,6 @@ LEFT JOIN rb_education_teacher as et on tc.TeacherId=et.ID ...@@ -91,10 +87,6 @@ LEFT JOIN rb_education_teacher as et on tc.TeacherId=et.ID
{ {
sb.AppendFormat(" and MallBaseId={0}", where.MallBaseId); sb.AppendFormat(" and MallBaseId={0}", where.MallBaseId);
} }
if (where.MallBaseId > 0)
{
sb.AppendFormat(" and MallBaseId={0}", where.MallBaseId);
}
if (where.CourseClassId > 0) if (where.CourseClassId > 0)
{ {
sb.AppendFormat(" and CourseClassId={0}", where.CourseClassId); sb.AppendFormat(" and CourseClassId={0}", where.CourseClassId);
...@@ -146,10 +138,6 @@ left join (SELECT CourseId,SUM(case when OrderStaus =2 then 1 else 0 end) AS Con ...@@ -146,10 +138,6 @@ left join (SELECT CourseId,SUM(case when OrderStaus =2 then 1 else 0 end) AS Con
{ {
sb.AppendFormat(" and tc.MallBaseId={0}", where.MallBaseId); sb.AppendFormat(" and tc.MallBaseId={0}", where.MallBaseId);
} }
if (where.MallBaseId > 0)
{
sb.AppendFormat(" and tc.MallBaseId={0}", where.MallBaseId);
}
if (where.CourseClassId > 0) if (where.CourseClassId > 0)
{ {
sb.AppendFormat(" and tc.CourseClassId={0}", where.CourseClassId); sb.AppendFormat(" and tc.CourseClassId={0}", where.CourseClassId);
...@@ -173,11 +161,11 @@ left join (SELECT CourseId,SUM(case when OrderStaus =2 then 1 else 0 end) AS Con ...@@ -173,11 +161,11 @@ left join (SELECT CourseId,SUM(case when OrderStaus =2 then 1 else 0 end) AS Con
if (where.CourseStudyState > 0) { if (where.CourseStudyState > 0) {
if (where.CourseStudyState == 1) if (where.CourseStudyState == 1)
{ {
sb.AppendFormat(" AND CONCAT(DATE_FORMAT(StudyDate,'%Y-%m-%d'),' ',StudyEndDate) >= '{1}' ", DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")); sb.AppendFormat(" AND CONCAT(DATE_FORMAT(StudyDate,'%Y-%m-%d'),' ',StudyEndDate) >= '{0}' ", DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
} }
else if (where.CourseStudyState == 2) else if (where.CourseStudyState == 2)
{ {
sb.AppendFormat(" AND CONCAT(DATE_FORMAT(StudyDate,'%Y-%m-%d'),' ',StudyEndDate) < '{1}' ", DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")); sb.AppendFormat(" AND CONCAT(DATE_FORMAT(StudyDate,'%Y-%m-%d'),' ',StudyEndDate) < '{0}' ", DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment