Search in sources :

Example 1 with HouseRoom

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";
}
Also used : HouseVillage(com.ruoyi.system.domain.HouseVillage) HouseRoom(com.ruoyi.system.domain.HouseRoom) GetMapping(org.springframework.web.bind.annotation.GetMapping)

Example 2 with HouseRoom

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;
}
Also used : AjaxResult(com.ruoyi.common.core.domain.AjaxResult) HouseRoom(com.ruoyi.system.domain.HouseRoom)

Example 3 with HouseRoom

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;
}
Also used : AjaxResult(com.ruoyi.common.core.domain.AjaxResult) HouseRoom(com.ruoyi.system.domain.HouseRoom)

Aggregations

HouseRoom (com.ruoyi.system.domain.HouseRoom)3 AjaxResult (com.ruoyi.common.core.domain.AjaxResult)2 HouseVillage (com.ruoyi.system.domain.HouseVillage)1 GetMapping (org.springframework.web.bind.annotation.GetMapping)1