|
@@ -5,14 +5,14 @@ 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 com.sooka.sponest.comprehensive.api.comprehensiveActualPeople.service.RemoteOverseasPersonInfoService;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
import java.util.List;
|
|
|
|
|
|
/**
|
|
|
- * 出租房App
|
|
|
+ * 境外人员App
|
|
|
*
|
|
|
* @author hanfucheng
|
|
|
* @date 2023/9/6 14:57
|
|
@@ -22,49 +22,49 @@ import java.util.List;
|
|
|
public class AppOverseasPersonInfoController extends BaseController {
|
|
|
|
|
|
@Resource
|
|
|
- RemoteRentalHousingService remoteRentalHousingService;
|
|
|
+ RemoteOverseasPersonInfoService remoteOverseasPersonInfoService;
|
|
|
|
|
|
/**
|
|
|
- * 查询出租房列表
|
|
|
+ * 查询境外人员列表
|
|
|
*/
|
|
|
- @GetMapping("/housing/list")
|
|
|
+ @GetMapping("/info/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());
|
|
|
+ return AjaxResult.success(remoteOverseasPersonInfoService.selectComprehensiveRhfOverseasPersonInfoList(pageNum, pageSize, comprehensiveRhfRentalHousing.getName(), comprehensiveRhfRentalHousing.getHouseNumber(), comprehensiveRhfRentalHousing.getPhone()).getRows());
|
|
|
}
|
|
|
|
|
|
|
|
|
/**
|
|
|
- * 获取出租房详细信息
|
|
|
+ * 获取境外人员详细信息
|
|
|
*/
|
|
|
- @GetMapping("/housing/edit")
|
|
|
+ @GetMapping("/info/edit")
|
|
|
public AjaxResult getInfo(String id) {
|
|
|
- return remoteRentalHousingService.selectComprehensiveRhfRentalHousingById(id);
|
|
|
+ return remoteOverseasPersonInfoService.selectComprehensiveRhfOverseasPersonInfoById(id);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 新增出租房
|
|
|
+ * 新增境外人员
|
|
|
*/
|
|
|
- @PostMapping("/housing")
|
|
|
+ @PostMapping("/info")
|
|
|
public AjaxResult add(@RequestBody String json) {
|
|
|
- return remoteRentalHousingService.insertComprehensiveRhfRentalHousing(json);
|
|
|
+ return remoteOverseasPersonInfoService.insertComprehensiveRhfOverseasPersonInfo(json);
|
|
|
}
|
|
|
/**
|
|
|
- * 修改出租房
|
|
|
+ * 修改境外人员
|
|
|
*/
|
|
|
- @PostMapping("/housing/put")
|
|
|
+ @PostMapping("/info/put")
|
|
|
public AjaxResult edit(@RequestBody String json) {
|
|
|
- return remoteRentalHousingService.updateComprehensiveRhfRentalHousing(json);
|
|
|
+ return remoteOverseasPersonInfoService.updateComprehensiveRhfOverseasPersonInfo(json);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 删除出租房
|
|
|
+ * 删除境外人员
|
|
|
*/
|
|
|
- @GetMapping("/housing/del")
|
|
|
+ @GetMapping("/info/del")
|
|
|
public AjaxResult remove(@RequestParam("id") List<String> id) {
|
|
|
- return remoteRentalHousingService.deleteComprehensiveRhfRentalHousingByIds(id.toArray(new String[0]));
|
|
|
+ return remoteOverseasPersonInfoService.deleteComprehensiveRhfOverseasPersonInfoByIds(id.toArray(new String[0]));
|
|
|
}
|
|
|
|
|
|
|