|
@@ -94,19 +94,19 @@ namespace OASystem.Infrastructure.Repositories.Resource
|
|
string sqlWhere = string.Empty;
|
|
string sqlWhere = string.Empty;
|
|
if (!string.IsNullOrWhiteSpace(dto.UnitName))
|
|
if (!string.IsNullOrWhiteSpace(dto.UnitName))
|
|
{
|
|
{
|
|
- sqlWhere += string.Format(@" And UnitName='{0}'", dto.UnitName);
|
|
|
|
|
|
+ sqlWhere += string.Format(@" And UnitName like '%{0}%'", dto.UnitName);
|
|
}
|
|
}
|
|
if (!string.IsNullOrWhiteSpace(dto.UnitArea) && dto.UnitArea != "全部")
|
|
if (!string.IsNullOrWhiteSpace(dto.UnitArea) && dto.UnitArea != "全部")
|
|
{
|
|
{
|
|
- sqlWhere += string.Format(@" And UnitArea='{0}'", dto.UnitArea);
|
|
|
|
|
|
+ sqlWhere += string.Format(@" And UnitArea like '%{0}%''", dto.UnitArea);
|
|
}
|
|
}
|
|
if (!string.IsNullOrWhiteSpace(dto.Contact))
|
|
if (!string.IsNullOrWhiteSpace(dto.Contact))
|
|
{
|
|
{
|
|
- sqlWhere += string.Format(@" And Contact='{0}'", dto.Contact);
|
|
|
|
|
|
+ sqlWhere += string.Format(@" And Contact like '%{0}%'", dto.Contact);
|
|
}
|
|
}
|
|
if (!string.IsNullOrWhiteSpace(dto.ContactTel))
|
|
if (!string.IsNullOrWhiteSpace(dto.ContactTel))
|
|
{
|
|
{
|
|
- sqlWhere += string.Format(@" And ContactTel='{0}'", dto.ContactTel);
|
|
|
|
|
|
+ sqlWhere += string.Format(@" And ContactTel like '%{0}%'", dto.ContactTel);
|
|
}
|
|
}
|
|
if (!string.IsNullOrEmpty(sqlWhere.Trim()))
|
|
if (!string.IsNullOrEmpty(sqlWhere.Trim()))
|
|
{
|
|
{
|
|
@@ -156,7 +156,7 @@ namespace OASystem.Infrastructure.Repositories.Resource
|
|
{
|
|
{
|
|
Code = 0,
|
|
Code = 0,
|
|
Msg = "查询成功",
|
|
Msg = "查询成功",
|
|
- Data = new { pageCount = count, totalPage = ((int)totalPage).ToString(), pageIndex = dto.PageIndex, pageSize = dto.PageSize, pageSource = ListData },
|
|
|
|
|
|
+ Data = new { pageCount = count, totalPage = (int)totalPage, pageIndex = dto.PageIndex, pageSize = dto.PageSize, pageSource = ListData },
|
|
};
|
|
};
|
|
}
|
|
}
|
|
|
|
|
|
@@ -204,7 +204,7 @@ namespace OASystem.Infrastructure.Repositories.Resource
|
|
{
|
|
{
|
|
Code = 0,
|
|
Code = 0,
|
|
Msg = "查询成功",
|
|
Msg = "查询成功",
|
|
- Data = new { pageCount = count, totalPage = ((int)totalPage).ToString(), pageIndex = dto.PageIndex, pageSize = dto.PageSize, pageSource = ListData },
|
|
|
|
|
|
+ Data = new { pageCount = count, totalPage = (int)totalPage, pageIndex = dto.PageIndex, pageSize = dto.PageSize, pageSource = ListData },
|
|
};
|
|
};
|
|
}
|
|
}
|
|
}
|
|
}
|