|
@@ -4,10 +4,8 @@ import com.onemap.apply.domain.tdgy.vo.UpdateTdgyVo;
|
|
import com.onemap.apply.service.tdgy.TdgyService;
|
|
import com.onemap.apply.service.tdgy.TdgyService;
|
|
import com.onemap.common.core.web.domain.RequestResult;
|
|
import com.onemap.common.core.web.domain.RequestResult;
|
|
import com.onemap.common.security.utils.SecurityUtils;
|
|
import com.onemap.common.security.utils.SecurityUtils;
|
|
-import org.springframework.web.bind.annotation.PutMapping;
|
|
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
+import org.apache.ibatis.annotations.Param;
|
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
import javax.annotation.Resource;
|
|
import javax.validation.Valid;
|
|
import javax.validation.Valid;
|
|
@@ -18,12 +16,30 @@ public class TdgyController {
|
|
@Resource
|
|
@Resource
|
|
private TdgyService tdgyService;
|
|
private TdgyService tdgyService;
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 修改土地供应
|
|
|
|
+ *
|
|
|
|
+ * @param updateTdgyVo
|
|
|
|
+ * @return
|
|
|
|
+ */
|
|
@PutMapping("")
|
|
@PutMapping("")
|
|
- public RequestResult GetXzqCode(@Valid @RequestBody UpdateTdgyVo updateTdgyVo) {
|
|
|
|
- // if (SecurityUtils.getLoginUser() == null || SecurityUtils.getLoginUser().getSysUser() == null) {
|
|
|
|
- // return RequestResult.error("请先登录");
|
|
|
|
- // }
|
|
|
|
|
|
+ public RequestResult updateTdgy(@Valid @RequestBody UpdateTdgyVo updateTdgyVo) {
|
|
RequestResult requestResult = tdgyService.updateTdgy(updateTdgyVo);
|
|
RequestResult requestResult = tdgyService.updateTdgy(updateTdgyVo);
|
|
return requestResult;
|
|
return requestResult;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 获取疑似闲置土地
|
|
|
|
+ *
|
|
|
|
+ * @return
|
|
|
|
+ */
|
|
|
|
+ @GetMapping("/suspectedIdleLand")
|
|
|
|
+ public RequestResult getSuspectedIdleLand(String xmmc, String xzqh, Integer pageSize, Integer pageNum) {
|
|
|
|
+ Integer limit = 20;
|
|
|
|
+ if (pageSize != null) limit = pageSize;
|
|
|
|
+ Integer offset = 0;
|
|
|
|
+ if (pageNum != null) offset = (pageNum - 1) * limit;
|
|
|
|
+ RequestResult requestResult = tdgyService.getSuspectedIdleLand(xmmc, xzqh, limit, offset);
|
|
|
|
+ return requestResult;
|
|
|
|
+ }
|
|
}
|
|
}
|