|
@@ -0,0 +1,71 @@
|
|
|
+package com.sooka.sponest.mobile.comprehensive.comprehensiveactualpeoplecontroller;
|
|
|
+
|
|
|
+import com.ruoyi.common.core.web.controller.BaseController;
|
|
|
+import com.ruoyi.common.core.web.domain.AjaxResult;
|
|
|
+import com.ruoyi.common.core.web.page.PageDomain;
|
|
|
+import com.ruoyi.common.core.web.page.TableSupport;
|
|
|
+import com.sooka.sponest.comprehensive.api.comprehensiveActualPeople.domain.ComprehensiveRhfRentalHousing;
|
|
|
+import com.sooka.sponest.comprehensive.api.comprehensiveActualPeople.service.RemoteRentalHousingService;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
+
|
|
|
+import javax.annotation.Resource;
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
+/**
|
|
|
+ * 出租房App
|
|
|
+ *
|
|
|
+ * @author hanfucheng
|
|
|
+ * @date 2023/9/6 14:57
|
|
|
+ */
|
|
|
+@RestController
|
|
|
+@RequestMapping("/AppOverseasPersonInfoController")
|
|
|
+public class AppOverseasPersonInfoController extends BaseController {
|
|
|
+
|
|
|
+ @Resource
|
|
|
+ RemoteRentalHousingService remoteRentalHousingService;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 查询出租房列表
|
|
|
+ */
|
|
|
+ @GetMapping("/housing/list")
|
|
|
+ public AjaxResult list(ComprehensiveRhfRentalHousing comprehensiveRhfRentalHousing) {
|
|
|
+ PageDomain pageDomain = TableSupport.buildPageRequest();
|
|
|
+ Integer pageNum = pageDomain.getPageNum();
|
|
|
+ Integer pageSize = pageDomain.getPageSize();
|
|
|
+ return AjaxResult.success(remoteRentalHousingService.selectComprehensiveRhfRentalHousingList(pageNum, pageSize, comprehensiveRhfRentalHousing.getName(), comprehensiveRhfRentalHousing.getHouseNumber(), comprehensiveRhfRentalHousing.getPhone()).getRows());
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 获取出租房详细信息
|
|
|
+ */
|
|
|
+ @GetMapping("/housing/edit")
|
|
|
+ public AjaxResult getInfo(String id) {
|
|
|
+ return remoteRentalHousingService.selectComprehensiveRhfRentalHousingById(id);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 新增出租房
|
|
|
+ */
|
|
|
+ @PostMapping("/housing")
|
|
|
+ public AjaxResult add(@RequestBody String json) {
|
|
|
+ return remoteRentalHousingService.insertComprehensiveRhfRentalHousing(json);
|
|
|
+ }
|
|
|
+ /**
|
|
|
+ * 修改出租房
|
|
|
+ */
|
|
|
+ @PostMapping("/housing/put")
|
|
|
+ public AjaxResult edit(@RequestBody String json) {
|
|
|
+ return remoteRentalHousingService.updateComprehensiveRhfRentalHousing(json);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 删除出租房
|
|
|
+ */
|
|
|
+ @GetMapping("/housing/del")
|
|
|
+ public AjaxResult remove(@RequestParam("id") List<String> id) {
|
|
|
+ return remoteRentalHousingService.deleteComprehensiveRhfRentalHousingByIds(id.toArray(new String[0]));
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+}
|