|
@@ -2,13 +2,11 @@ package org.springblade.land.controller;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
|
|
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
|
|
-import io.swagger.annotations.Api;
|
|
|
|
-import io.swagger.annotations.ApiImplicitParam;
|
|
|
|
-import io.swagger.annotations.ApiImplicitParams;
|
|
|
|
-import io.swagger.annotations.ApiOperation;
|
|
|
|
|
|
+import io.swagger.annotations.*;
|
|
import lombok.AllArgsConstructor;
|
|
import lombok.AllArgsConstructor;
|
|
import org.springblade.core.mp.support.Query;
|
|
import org.springblade.core.mp.support.Query;
|
|
import org.springblade.core.tool.api.R;
|
|
import org.springblade.core.tool.api.R;
|
|
|
|
+import org.springblade.core.tool.utils.Func;
|
|
import org.springblade.land.entity.AgreementLinkTable;
|
|
import org.springblade.land.entity.AgreementLinkTable;
|
|
import org.springblade.land.entity.ClearingAgreementInfo;
|
|
import org.springblade.land.entity.ClearingAgreementInfo;
|
|
import org.springblade.land.entity.CompensationInfo;
|
|
import org.springblade.land.entity.CompensationInfo;
|
|
@@ -38,7 +36,7 @@ public class ClearingAgreementInfoController {
|
|
*/
|
|
*/
|
|
@GetMapping("/addOrUpdate")
|
|
@GetMapping("/addOrUpdate")
|
|
@ApiOperationSupport(order = 1)
|
|
@ApiOperationSupport(order = 1)
|
|
- @ApiOperation(value = "新增结算协议", notes = "新增结算协议")
|
|
|
|
|
|
+ @ApiOperation(value = "新增或修改结算协议", notes = "新增或修改结算协议")
|
|
@ApiImplicitParams({
|
|
@ApiImplicitParams({
|
|
@ApiImplicitParam(name = "projectId", value = "项目id", required = true),
|
|
@ApiImplicitParam(name = "projectId", value = "项目id", required = true),
|
|
@ApiImplicitParam(name = "areaId", value = "当前树节点id", required = true),
|
|
@ApiImplicitParam(name = "areaId", value = "当前树节点id", required = true),
|
|
@@ -46,18 +44,18 @@ public class ClearingAgreementInfoController {
|
|
@ApiImplicitParam(name = "stageId", value = "结算期id", required = true),
|
|
@ApiImplicitParam(name = "stageId", value = "结算期id", required = true),
|
|
@ApiImplicitParam(name = "agreementIds", value = "补偿协议id数组,逗号分隔", required = true),
|
|
@ApiImplicitParam(name = "agreementIds", value = "补偿协议id数组,逗号分隔", required = true),
|
|
@ApiImplicitParam(name = "type", value = "协议类型1征地补偿2坟地补偿3专项设施", required = true),
|
|
@ApiImplicitParam(name = "type", value = "协议类型1征地补偿2坟地补偿3专项设施", required = true),
|
|
- @ApiImplicitParam(name = "id", value = "结算id", required = false)
|
|
|
|
|
|
+ @ApiImplicitParam(name = "id", value = "结算id,修改时传入代表修改", required = false)
|
|
})
|
|
})
|
|
- public R<Long> add(ClearingAgreementInfo info) {
|
|
|
|
|
|
+ public R<Long> add(ClearingAgreementInfo info) throws Exception {
|
|
infoService.add(info);
|
|
infoService.add(info);
|
|
- return R.success("新增成功");
|
|
|
|
|
|
+ return R.success("保存成功");
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
* 分页
|
|
* 分页
|
|
*/
|
|
*/
|
|
@GetMapping("/page")
|
|
@GetMapping("/page")
|
|
- @ApiOperationSupport(order = 7)
|
|
|
|
|
|
+ @ApiOperationSupport(order = 2)
|
|
@ApiOperation(value = "分页查询结算", notes = "分页查询结算")
|
|
@ApiOperation(value = "分页查询结算", notes = "分页查询结算")
|
|
@ApiImplicitParams(value = {
|
|
@ApiImplicitParams(value = {
|
|
@ApiImplicitParam(name = "projectId", value = "项目id", required = true),
|
|
@ApiImplicitParam(name = "projectId", value = "项目id", required = true),
|
|
@@ -72,11 +70,12 @@ public class ClearingAgreementInfoController {
|
|
return R.data(page);
|
|
return R.data(page);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 查看文件列表
|
|
* 查看文件列表
|
|
*/
|
|
*/
|
|
@GetMapping("/getFileList")
|
|
@GetMapping("/getFileList")
|
|
- @ApiOperationSupport(order = 7)
|
|
|
|
|
|
+ @ApiOperationSupport(order = 4)
|
|
@ApiOperation(value = "查看文件列表", notes = "查看文件列表")
|
|
@ApiOperation(value = "查看文件列表", notes = "查看文件列表")
|
|
@ApiImplicitParams(value = {
|
|
@ApiImplicitParams(value = {
|
|
@ApiImplicitParam(name = "id", value = "结算id", required = true),
|
|
@ApiImplicitParam(name = "id", value = "结算id", required = true),
|
|
@@ -86,6 +85,18 @@ public class ClearingAgreementInfoController {
|
|
return R.data(fileList);
|
|
return R.data(fileList);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 批量删除
|
|
|
|
+ */
|
|
|
|
+ @GetMapping("/remove")
|
|
|
|
+ @ApiOperationSupport(order = 6)
|
|
|
|
+ @ApiOperation(value = "批量逻辑删除", notes = "传入ids")
|
|
|
|
+ public R remove(@ApiParam(value = "主键集合", required = true)String ids) {
|
|
|
|
+ infoService.remove(ids);
|
|
|
|
+ return R.success("删除成功");
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 结算统计-面积进度
|
|
* 结算统计-面积进度
|
|
*/
|
|
*/
|