|
@@ -26,14 +26,13 @@ import com.onemap.apply.service.qytdzz.IAfterTdzzService;
|
|
|
|
|
|
/**
|
|
|
* 土地整治项目信息Controller
|
|
|
- *
|
|
|
+ *
|
|
|
* @author ruoyi
|
|
|
* @date 2024-11-18
|
|
|
*/
|
|
|
@RestController
|
|
|
@RequestMapping("/qytdzz/tdzzxm")
|
|
|
-public class AfterTdzzController extends BaseController
|
|
|
-{
|
|
|
+public class AfterTdzzController extends BaseController {
|
|
|
@Autowired
|
|
|
private IAfterTdzzService afterTdzzService;
|
|
|
@Autowired
|
|
@@ -45,8 +44,7 @@ public class AfterTdzzController extends BaseController
|
|
|
* 查询土地整治项目信息列表
|
|
|
*/
|
|
|
@GetMapping("/list")
|
|
|
- public TableDataInfo list(AfterTdzz afterTdzz)
|
|
|
- {
|
|
|
+ public TableDataInfo list(AfterTdzz afterTdzz) {
|
|
|
startPage();
|
|
|
List<AfterTdzz> list = afterTdzzService.selectAfterTdzzList(afterTdzz);
|
|
|
for (AfterTdzz t : list) {
|
|
@@ -63,8 +61,7 @@ public class AfterTdzzController extends BaseController
|
|
|
*/
|
|
|
@Log(title = "土地整治项目信息", businessType = BusinessType.EXPORT)
|
|
|
@PostMapping("/export")
|
|
|
- public void export(HttpServletResponse response, AfterTdzz afterTdzz)
|
|
|
- {
|
|
|
+ public void export(HttpServletResponse response, AfterTdzz afterTdzz) {
|
|
|
List<AfterTdzz> list = afterTdzzService.selectAfterTdzzList(afterTdzz);
|
|
|
ExcelUtil<AfterTdzz> util = new ExcelUtil<AfterTdzz>(AfterTdzz.class);
|
|
|
util.exportExcel(response, list, "土地整治项目信息数据");
|
|
@@ -74,9 +71,15 @@ public class AfterTdzzController extends BaseController
|
|
|
* 获取土地整治项目信息详细信息
|
|
|
*/
|
|
|
@GetMapping(value = "/{id}")
|
|
|
- public AjaxResult getInfo(@PathVariable("id") Long id)
|
|
|
- {
|
|
|
- return success(afterTdzzService.selectAfterTdzzById(id));
|
|
|
+ public AjaxResult getInfo(@PathVariable("id") Long id) {
|
|
|
+ AfterTdzz t = afterTdzzService.selectAfterTdzzById(id);
|
|
|
+ if (t != null) {
|
|
|
+ TQytdzzZzxm tQytdzzZzxm = new TQytdzzZzxm();
|
|
|
+ tQytdzzZzxm.setPid(t.getId());
|
|
|
+ t.settQytdzzZzxm(tQytdzzZzxmService.selectTQytdzzZzxmList(tQytdzzZzxm));
|
|
|
+ t.setXzgd(tQytdzzXzgdService.statAreaByZzxm(t.getId()));
|
|
|
+ }
|
|
|
+ return success(t);
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -84,8 +87,7 @@ public class AfterTdzzController extends BaseController
|
|
|
*/
|
|
|
@Log(title = "土地整治项目信息", businessType = BusinessType.INSERT)
|
|
|
@PostMapping
|
|
|
- public AjaxResult add(@RequestBody AfterTdzz afterTdzz)
|
|
|
- {
|
|
|
+ public AjaxResult add(@RequestBody AfterTdzz afterTdzz) {
|
|
|
return toAjax(afterTdzzService.insertAfterTdzz(afterTdzz));
|
|
|
}
|
|
|
|
|
@@ -94,8 +96,7 @@ public class AfterTdzzController extends BaseController
|
|
|
*/
|
|
|
@Log(title = "土地整治项目信息", businessType = BusinessType.UPDATE)
|
|
|
@PutMapping
|
|
|
- public AjaxResult edit(@RequestBody AfterTdzz afterTdzz)
|
|
|
- {
|
|
|
+ public AjaxResult edit(@RequestBody AfterTdzz afterTdzz) {
|
|
|
return toAjax(afterTdzzService.updateAfterTdzz(afterTdzz));
|
|
|
}
|
|
|
|
|
@@ -103,9 +104,8 @@ public class AfterTdzzController extends BaseController
|
|
|
* 删除土地整治项目信息
|
|
|
*/
|
|
|
@Log(title = "土地整治项目信息", businessType = BusinessType.DELETE)
|
|
|
- @DeleteMapping("/{ids}")
|
|
|
- public AjaxResult remove(@PathVariable Long[] ids)
|
|
|
- {
|
|
|
+ @DeleteMapping("/{ids}")
|
|
|
+ public AjaxResult remove(@PathVariable Long[] ids) {
|
|
|
return toAjax(afterTdzzService.deleteAfterTdzzByIds(ids));
|
|
|
}
|
|
|
}
|