前台填写问卷时将社区修改成输入关键字进行搜索后进行选择。
幢列表修改成输入关键字进行搜索后进行选择。
This commit is contained in:
@@ -109,6 +109,7 @@ namespace Vote.Services.ApiController
|
||||
wallproblemtoward = a.wallproblemtoward,
|
||||
WuYeUnit = a.WuYeUnit
|
||||
})
|
||||
.OrderByDescending(a => a.createtime)//.OrderBy((a, b) => b.communityName)
|
||||
.WithCache(60 * 60).ToListAsync();
|
||||
var ids = entity.Select(a => a.Id).ToArray();
|
||||
var photos = await repoutside_wall_building_photo.AsQueryable()
|
||||
@@ -141,7 +142,7 @@ namespace Vote.Services.ApiController
|
||||
var entity = await repoutside_wall.AsQueryable()
|
||||
.WhereIF(!string.IsNullOrWhiteSpace(args.communityId), a => a.communityId == args.communityId)
|
||||
.WhereIF(!string.IsNullOrWhiteSpace(args.submitCode), a => a.submitCode == args.submitCode)
|
||||
.OrderByDescending(a=>a.createtime).OrderBy(a=>a.communityName)
|
||||
.OrderByDescending(a => a.createtime).OrderBy(a => a.communityName)
|
||||
.WithCache(60 * 60).ToListAsync();
|
||||
var ids = entity.Select(a => a.Id).ToArray();
|
||||
var photos = await repoutside_wall_photo.AsQueryable()
|
||||
@@ -359,8 +360,8 @@ namespace Vote.Services.ApiController
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[AllowAnonymous]
|
||||
[HttpGet("community/{id}")]
|
||||
public async Task<dynamic> GetCommunityInfo(string id)
|
||||
[HttpGet("communitys/{id}")]
|
||||
public async Task<List<SanjuBuilding>> GetCommunityInfo(string id)
|
||||
{
|
||||
var cacheKey = "cache_building_" + id;
|
||||
List<SanjuBuilding> building = _memoryCache.Get<List<SanjuBuilding>>(cacheKey);
|
||||
@@ -378,6 +379,18 @@ namespace Vote.Services.ApiController
|
||||
return building;
|
||||
}
|
||||
/// <summary>
|
||||
/// 获取三居系统中的社区
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[AllowAnonymous]
|
||||
[HttpGet("community/{id}")]
|
||||
public async Task<dynamic> GetCommunityInfo(string id, string querystring)
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(querystring))
|
||||
return new List<SanjuBuilding>();
|
||||
return (await GetCommunityInfo(id)).Where(a => a.Address.Contains(querystring)).ToList();
|
||||
}
|
||||
/// <summary>
|
||||
/// 提交
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
@@ -400,7 +413,7 @@ namespace Vote.Services.ApiController
|
||||
wall.Id = Guid.NewGuid().ToString();
|
||||
wall.createtime = DateTime.Now;
|
||||
wall.isdeleted = 0;
|
||||
wall = await repoutside_wall.InsertReturnEntityAsync(wall);
|
||||
await repoutside_wall.InsertAsync(wall);
|
||||
if (args.fileList != null)
|
||||
{
|
||||
foreach (var item in args.fileList)
|
||||
|
||||
@@ -179,6 +179,12 @@
|
||||
</summary>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:Vote.Services.ApiController.OutsideWallService.GetCommunityInfo(System.String,System.String)">
|
||||
<summary>
|
||||
获取三居系统中的社区
|
||||
</summary>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:Vote.Services.ApiController.OutsideWallService.Submit(Vote.Services.Dto.OutsideWallInput,System.String)">
|
||||
<summary>
|
||||
提交
|
||||
|
||||
Reference in New Issue
Block a user