|
@@ -0,0 +1,28 @@
|
|
|
+package com.onemap.apply.controller.fcfh;
|
|
|
+
|
|
|
+import com.onemap.apply.domain.fcfh.HouseDTO;
|
|
|
+import com.onemap.apply.service.fcfh.FcfhService;
|
|
|
+import com.onemap.common.core.web.domain.RequestResult;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.web.bind.annotation.GetMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
+
|
|
|
+import javax.validation.Valid;
|
|
|
+import javax.validation.constraints.NotNull;
|
|
|
+
|
|
|
+@RestController
|
|
|
+@RequestMapping("fcfh")
|
|
|
+public class FcfhController {
|
|
|
+ @Autowired
|
|
|
+ FcfhService fcfhService;
|
|
|
+
|
|
|
+ @GetMapping("/GetHouseInfo")
|
|
|
+ public RequestResult GetList(@Valid @NotNull String id) {
|
|
|
+ HouseDTO houseDTO = fcfhService.getById(id);
|
|
|
+ if (houseDTO == null) {
|
|
|
+ return RequestResult.error("查询失败");
|
|
|
+ }
|
|
|
+ return RequestResult.success("查询成功", houseDTO);
|
|
|
+ }
|
|
|
+}
|