Commit d621b90e authored by 黄奎's avatar 黄奎

页面修改

parent 88c3fb14
...@@ -28,8 +28,8 @@ namespace Edu.Repository.Customer ...@@ -28,8 +28,8 @@ namespace Edu.Repository.Customer
builder.AppendFormat(@" builder.AppendFormat(@"
SELECT A.*,B.TaskKudo,B.TaskKudoImg,B.KudoDescription,C.CustomerName,D.TaskName SELECT A.*,B.TaskKudo,B.TaskKudoImg,B.KudoDescription,C.CustomerName,D.TaskName
FROM RB_Customer_Finishtask AS A INNER JOIN rb_taskdetails AS B ON A.TaskId=B.TaskId AND A.DetailsId=B.DetailId FROM RB_Customer_Finishtask AS A INNER JOIN rb_taskdetails AS B ON A.TaskId=B.TaskId AND A.DetailsId=B.DetailId
LEFT JOIN rb_customer AS C ON A.CustomerId=C.CustomerId INNER JOIN rb_customer AS C ON A.CustomerId=C.CustomerId
LEFT JOIN rb_task AS D ON A.TaskId=D.Id INNER JOIN rb_task AS D ON A.TaskId=D.Id
WHERE 1=1 WHERE 1=1
"); ");
builder.Append(" AND A.ExchangeStatus>0 "); builder.Append(" AND A.ExchangeStatus>0 ");
...@@ -61,9 +61,15 @@ WHERE 1=1 ...@@ -61,9 +61,15 @@ WHERE 1=1
parameters.Add("CustomerName", "%" + query.CustomerName.Trim() + "%"); parameters.Add("CustomerName", "%" + query.CustomerName.Trim() + "%");
} }
if (query.ExchangeStatus > 0) if (query.ExchangeStatus > 0)
{
if (query.ExchangeStatus <= 2)
{ {
builder.AppendFormat(" AND A.{0}={1} ", nameof(RB_Customer_Finishtask_Extend.ExchangeStatus), query.ExchangeStatus); builder.AppendFormat(" AND A.{0}={1} ", nameof(RB_Customer_Finishtask_Extend.ExchangeStatus), query.ExchangeStatus);
} }
else {
builder.AppendFormat(" AND D.ExchangeEndTime>'{0}' ", Common.ConvertHelper.FormatDate(DateTime.Now));
}
}
if (!string.IsNullOrEmpty(query.TaskName)) if (!string.IsNullOrEmpty(query.TaskName))
{ {
builder.AppendFormat(" AND D .{0} LIKE @TaskName ", nameof(RB_Customer_Finishtask_Extend.TaskName)); builder.AppendFormat(" AND D .{0} LIKE @TaskName ", nameof(RB_Customer_Finishtask_Extend.TaskName));
......
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