|
@@ -2,15 +2,19 @@ package org.springblade.land.controller;
|
|
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
+import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
|
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
|
|
|
import io.swagger.annotations.*;
|
|
|
import lombok.AllArgsConstructor;
|
|
|
import org.springblade.core.boot.ctrl.BladeController;
|
|
|
+import org.springblade.core.mp.support.Query;
|
|
|
import org.springblade.core.tool.api.R;
|
|
|
|
|
|
import org.springblade.land.entity.AgreementLinkTable;
|
|
|
+import org.springblade.land.entity.CompensationInfo;
|
|
|
import org.springblade.land.service.ICompensationInfoService;
|
|
|
+import org.springblade.land.vo.TableCopyVO;
|
|
|
import org.springblade.manager.entity.WbsTreeContract;
|
|
|
import org.springblade.manager.entity.WbsTreePrivate;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
@@ -110,19 +114,34 @@ public class CompensationInfoController extends BladeController {
|
|
|
*/
|
|
|
@PostMapping("/save_buss_data")
|
|
|
@ApiOperationSupport(order = 6)
|
|
|
- @ApiOperation(value = "填报页面数据保存", notes = "填报页面数据保存")
|
|
|
+ @ApiOperation(value = "填报页面数据保存", notes = "填报页面数据保存,返回当前协议id")
|
|
|
@ApiImplicitParams(value = {
|
|
|
@ApiImplicitParam(name = "projectId", value = "项目id", required = true),
|
|
|
- @ApiImplicitParam(name = "agreementId", value = "协议的id,新增协议为null", required = true),
|
|
|
- @ApiImplicitParam(name = "linkId", value = "当前表单的id,新增协议为null", required = true),
|
|
|
+ @ApiImplicitParam(name = "agreementId", value = "协议的id,新增协议为null", required = false),
|
|
|
+ @ApiImplicitParam(name = "linkId", value = "当前表单的id,新增协议为null", required = false),
|
|
|
@ApiImplicitParam(name = "areaId", value = "当前树节点id", required = true),
|
|
|
@ApiImplicitParam(name = "tableId", value = "表单的tableId", required = true),
|
|
|
- @ApiImplicitParam(name = "nodeType", value = "新增有值,修改为null", required = true)
|
|
|
+ @ApiImplicitParam(name = "nodeType", value = "新增返回的nodeType,修改传null", required = false)
|
|
|
})
|
|
|
public R saveBussData(@Valid @RequestBody JSONObject dataInfo) throws Exception {
|
|
|
return compensationInfoService.saveBussData(dataInfo);
|
|
|
}
|
|
|
|
|
|
+ @GetMapping("/page")
|
|
|
+ @ApiOperationSupport(order = 7)
|
|
|
+ @ApiOperation(value = "单表pdf预览", notes = "单表pdf预览")
|
|
|
+ @ApiImplicitParams(value = {
|
|
|
+ @ApiImplicitParam(name = "projectId", value = "项目id", required = true),
|
|
|
+ @ApiImplicitParam(name = "areaId", value = "当前树节点id", required = true),
|
|
|
+ @ApiImplicitParam(name = "current", value = "当前页", required = true),
|
|
|
+ @ApiImplicitParam(name = "size", value = "每页的数量", required = true),
|
|
|
+ @ApiImplicitParam(name = "name", value = "搜索值", required = false),
|
|
|
+ })
|
|
|
+ public R<IPage<CompensationInfo>> page(Query query, CompensationInfo info) {
|
|
|
+ IPage<CompensationInfo> page = compensationInfoService.page(query, info);
|
|
|
+ return R.data(page);
|
|
|
+ }
|
|
|
+
|
|
|
@GetMapping("/get-buss-pdfInfo")
|
|
|
@ApiOperationSupport(order = 18)
|
|
|
@ApiOperation(value = "单表pdf预览", notes = "单表pdf预览")
|
|
@@ -134,6 +153,37 @@ public class CompensationInfoController extends BladeController {
|
|
|
return compensationInfoService.getBussPdfDataInfo(agreementId,tableId);
|
|
|
}
|
|
|
|
|
|
+ @GetMapping("/get-buss-pdfs")
|
|
|
+ @ApiOperationSupport(order = 21)
|
|
|
+ @ApiOperation(value = "多表预览", notes = "多表预览")
|
|
|
+ @ApiImplicitParams(value = {
|
|
|
+ @ApiImplicitParam(name = "agreementId", value = "协议的id,新增的传null", required = true),
|
|
|
+ })
|
|
|
+ public R getPdfS(Long agreementId) {
|
|
|
+ return compensationInfoService.getPdfS(agreementId);
|
|
|
+ }
|
|
|
|
|
|
+ @PostMapping("/add-cope-tab")
|
|
|
+ @ApiOperationSupport(order = 19)
|
|
|
+ @ApiOperation(value = "表单新增复制", notes = "表单新增复制,,返回协议id")
|
|
|
+ @ApiImplicitParams(value = {
|
|
|
+ @ApiImplicitParam(name = "projectId", value = "项目id", required = true),
|
|
|
+ @ApiImplicitParam(name = "areaId", value = "当前树节点id", required = true),
|
|
|
+ @ApiImplicitParam(name = "tableId", value = "表单的tableId", required = true),
|
|
|
+ @ApiImplicitParam(name = "nodeType", value = "新增返回的nodeType", required = true)
|
|
|
+ })
|
|
|
+ public R addCopeTab(@RequestBody TableCopyVO vo) {
|
|
|
+ return compensationInfoService.addCopeTab(vo);
|
|
|
+ }
|
|
|
+
|
|
|
+ @PostMapping("/update-cope-tab")
|
|
|
+ @ApiOperationSupport(order = 19)
|
|
|
+ @ApiOperation(value = "表单修改复制", notes = "表单修改复制,,返回协议id")
|
|
|
+ @ApiImplicitParams(value = {
|
|
|
+ @ApiImplicitParam(name = "linkId", value = "当前表单的id,新增协议为null", required = true)
|
|
|
+ })
|
|
|
+ public R updateCopeTab(@RequestBody TableCopyVO vo) {
|
|
|
+ return compensationInfoService.updateCopeTab(vo);
|
|
|
+ }
|
|
|
|
|
|
}
|