| | |
| | | ResultEntity resultEntity = new ResultEntity(); |
| | | resultEntity.Result = false; |
| | | |
| | | List <LiaotianDTO> liaotianDTOs =_liaotianService.SearchForPrint(new LiaotianDTOSearch()).Where(x=>x.Clientid =="A").ToList(); |
| | | |
| | | List <LiaotianDTO> liaotianDTOs =_liaotianService.SearchForPrint(new LiaotianDTOSearch()).ToList();//.Where(x=>x.Clientid =="A") |
| | | |
| | | |
| | | try |
| | | { |
| | | int i = 0; |
| | | foreach (var liaotianDTO in liaotianDTOs) |
| | | { |
| | | i = i + 1; |
| | | string api_domain = _configuration.GetSection("Elasticsearchurl").Value; |
| | | string url = $"{api_domain}/liaotian/_doc/" + liaotianDTO.Id; |
| | | |
| | |
| | | } |
| | | data.Modifier = curentuser.Id; |
| | | data.Modifytime = DateTime.Now; |
| | | |
| | | |
| | | |
| | | resultEntity = _liaotianService.saveLiaotian(data); |
| | | |
| | | if (!string.IsNullOrEmpty(data.Id)) |
| | | { |
| | | |
| | |
| | | |
| | | } |
| | | } |
| | | |
| | | |
| | | resultEntity = _liaotianService.saveLiaotian(data); |
| | | |
| | | |
| | | |
| | | |
| | | //string api_domain = _configuration.GetSection("Elasticsearchurl").Value; |
| | |
| | | // } |
| | | |
| | | // Newtonsoft.Json.Linq.JObject jobject = (Newtonsoft.Json.Linq.JObject)JsonConvert.DeserializeObject(result); |
| | | |
| | | |
| | | // if (jobject["error"]==null&& jobject["_shards"]["successful"].ToString() == "1") |
| | | // { |
| | | // resultEntity.Result = true; |
| | |
| | | // resultEntity.Result = false; |
| | | // throw e; |
| | | |
| | | |
| | | |
| | | //} |
| | | |
| | | |