Пример #1
0
        public IActionResult RoomId([FromQuery] string RealEstateNo)
        {
            MappingService mappingService = new MappingService();

            if (string.IsNullOrEmpty(RealEstateNo))
            {
                // return View(new ReturnModel() { Code = 404, Msg = "输入参数为空" });
                return(Ok(new ReturnModel()
                {
                    Code = 404, Msg = "输入参数为空"
                }));
            }
            var mapping = mappingService.GetHouseHold(RealEstateNo);

            if (mapping == null)
            {
                return(Ok(new ReturnModel()
                {
                    Code = 404, Msg = "未查找到房号"
                }));
            }
            else
            {
                return(Ok(mapping));
            }
        }
        public ActionResult GetRealEstateByHouseId([FromQuery] string RealEstateNo)
        {
            MappingService mapping     = new MappingService();
            var            mappingList = mapping.GetHouseHold(RealEstateNo);

            if (mappingList == null)
            {
                return(Ok(new BuildingResources()));
            }
            else
            {
                return(Ok(mappingList));
            }
        }
Пример #3
0
        public ActionResult GetStatus([FromQuery] string token, [FromBody] ParamsModel RealEstateNos)
        {
            List <RoomStatus> roomStatuses   = new List <RoomStatus>();
            MappingService    mappingService = new MappingService();

            foreach (var item in RealEstateNos.RealEstateNos)
            {
                RoomStatus roomStatus  = new RoomStatus();
                var        queryString = item.Substring(0, 19);                    //截取地籍号
                roomStatus.MortgageList = ConvertMorToString(token, queryString);  //查询抵押List
                roomStatus.SealList     = ConvertToSealString(token, queryString); //查询查封List
                //roomStatus.DeleteSameModel();
                var Mapping = _realEstateService.GetHouseHold(item);
                var mapping = mappingService.GetHouseHold(item);
                roomStatus.BuildingNo = mapping.BuildingNo;
                roomStatuses.Add(roomStatus);
            }
            return(Ok(roomStatuses));
        }
        public IActionResult Room([FromQuery] string RealEstateNo)
        {
            if (string.IsNullOrEmpty(RealEstateNo))
            {
                return(NotFound());
            }
            var mappingService = new MappingService();
            var mapping        = mappingService.GetHouseHold(RealEstateNo);

            if (mapping == null)
            {
                return(Ok(new ReturnModel()
                {
                    Code = 404, Msg = "未查到此房号"
                }));
            }
            else
            {
                return(View(mapping));
            }
        }