use of com.ruoyi.system.domain.HouseRoom in project Rental-Information-Platform by who1sBruce.
the class HouseRoomController method edit.
/**
* 修改房源详情
*/
@GetMapping("/edit/{id}")
public String edit(@PathVariable("id") Long id, ModelMap mmap) {
HouseRoom houseRoom = houseRoomService.selectHouseRoomById(id);
mmap.put("houseRoom", houseRoom);
List<HouseVillage> list = houseVillageService.selectHouseVillageList(new HouseVillage());
mmap.put("villageList", list);
return prefix + "/edit";
}
use of com.ruoyi.system.domain.HouseRoom in project Rental-Information-Platform by who1sBruce.
the class ApiHouseController method findHouseList.
/**
* @Description: 获取房源信息
* @date: 0714
* @Return: AjaxResult
*/
@GetMapping("/findHouseList")
@ResponseBody
public AjaxResult findHouseList(HouseRoom houseRoom) {
startPage();
String msg = "房源列表";
List<HouseRoom> list = houseRoomService.selectHouseRoomList(houseRoom);
AjaxResult ajaxResult = new AjaxResult(AjaxResult.Type.SUCCESS, msg, list);
return ajaxResult;
}
use of com.ruoyi.system.domain.HouseRoom in project Rental-Information-Platform by who1sBruce.
the class ApiHouseController method findHouseById.
/**
* @Description: 获取房源信息by id
* @date: 0714
* @Return: AjaxResult
*/
@GetMapping("/findHouseById")
@ResponseBody
public AjaxResult findHouseById(@RequestParam Long id) {
String msg = "房源查找成功";
HouseRoom houseRoom = houseRoomService.selectHouseRoomById(id);
houseRoom = houseRoomService.selectDetailHouseRoom(houseRoom);
AjaxResult ajaxResult = new AjaxResult(AjaxResult.Type.SUCCESS, msg, houseRoom);
return ajaxResult;
}
Aggregations