添加其他页面调用合同列表详情接口

This commit is contained in:
2025-11-17 14:36:40 +08:00
parent 4f2ac72edc
commit a668381101
13 changed files with 202 additions and 2 deletions

View File

@ -134,4 +134,17 @@ public class XzdCsContractChangeController extends BaseController {
return xzdBusinessSealService.queryPageList(bo, pageQuery);
}
/**
* 获取综合服务合同信息详细信息
*
* @param id 主键
*/
@SaCheckPermission(value = {"comprehensive:csContractChange:add","comprehensive:csContractChange:edit"},mode = SaMode.OR)
@GetMapping("/get/{id}")
public R<XzdCsContractInformationVo> getCsContractInformationInfo(@NotNull(message = "主键不能为空")
@PathVariable Long id) {
return R.ok(xzdCsContractInformationService.queryById(id));
}
}

View File

@ -2,10 +2,21 @@ package org.dromara.xzd.comprehensive.controller;
import java.util.List;
import cn.dev33.satoken.annotation.SaMode;
import lombok.RequiredArgsConstructor;
import jakarta.servlet.http.HttpServletResponse;
import jakarta.validation.constraints.*;
import cn.dev33.satoken.annotation.SaCheckPermission;
import org.dromara.xzd.comprehensive.domain.bo.XzdCsContractChangeBo;
import org.dromara.xzd.comprehensive.domain.bo.XzdCsContractSuspendBo;
import org.dromara.xzd.comprehensive.domain.vo.XzdCsContractChangeVo;
import org.dromara.xzd.comprehensive.domain.vo.XzdCsContractSuspendVo;
import org.dromara.xzd.comprehensive.service.IXzdCsContractChangeService;
import org.dromara.xzd.comprehensive.service.IXzdCsContractSuspendService;
import org.dromara.xzd.domain.bo.XzdBusinessSealBo;
import org.dromara.xzd.domain.vo.XzdBusinessSealVo;
import org.dromara.xzd.service.IXzdBusinessSealService;
import org.springframework.context.annotation.Lazy;
import org.springframework.web.bind.annotation.*;
import org.springframework.validation.annotation.Validated;
import org.dromara.common.idempotent.annotation.RepeatSubmit;
@ -36,6 +47,66 @@ public class XzdCsContractInformationController extends BaseController {
private final IXzdCsContractInformationService xzdCsContractInformationService;
private final IXzdBusinessSealService xzdBusinessSealService;
@Lazy
private final IXzdCsContractSuspendService xzdCsContractSuspendService;
@Lazy
private final IXzdCsContractChangeService xzdCsContractChangeService;
/**
* 查询综合服务合同变更列表
*/
@SaCheckPermission(value = {"comprehensive:csContractInformation:add","comprehensive:csContractInformation:edit","comprehensive:csContractInformation:list"},mode = SaMode.OR)
@GetMapping("/getChangList")
public TableDataInfo<XzdCsContractChangeVo> getChangList(XzdCsContractChangeBo bo, PageQuery pageQuery) {
return xzdCsContractChangeService.queryPageList(bo, pageQuery);
}
/**
* 获取综合服务合同变更详细信息
*
* @param id 主键
*/
@SaCheckPermission(value = {"comprehensive:csContractInformation:add","comprehensive:csContractInformation:edit","comprehensive:csContractInformation:list"},mode = SaMode.OR)
@GetMapping("/getChang/{id}")
public R<XzdCsContractChangeVo> getChangInfo(@NotNull(message = "主键不能为空")
@PathVariable Long id) {
return R.ok(xzdCsContractChangeService.queryById(id));
}
/**
* 查询综合服务合同终止列表
*/
@SaCheckPermission(value = {"comprehensive:csContractInformation:add","comprehensive:csContractInformation:edit","comprehensive:csContractInformation:list"},mode = SaMode.OR)
@GetMapping("/getSuspendList")
public TableDataInfo<XzdCsContractSuspendVo> getSuspendList(XzdCsContractSuspendBo bo, PageQuery pageQuery) {
return xzdCsContractSuspendService.queryPageList(bo, pageQuery);
}
/**
* 获取综合服务合同终止详细信息
*
* @param id 主键
*/
@SaCheckPermission(value = {"comprehensive:csContractInformation:add","comprehensive:csContractInformation:edit","comprehensive:csContractInformation:list"},mode = SaMode.OR)
@GetMapping("/getSuspend/{id}")
public R<XzdCsContractSuspendVo> getSuspendInfo(@NotNull(message = "主键不能为空")
@PathVariable Long id) {
return R.ok(xzdCsContractSuspendService.queryById(id));
}
/**
* 查询印章帮助列表
*/
@SaCheckPermission(value = {"comprehensive:csContractInformation:add","comprehensive:csContractInformation:edit","comprehensive:csContractInformation:list"},mode = SaMode.OR)
@GetMapping("/businessSealList")
public TableDataInfo<XzdBusinessSealVo> list(XzdBusinessSealBo bo, PageQuery pageQuery) {
return xzdBusinessSealService.queryPageList(bo, pageQuery);
}
/**
* 查询综合服务合同信息列表
*/

View File

@ -135,4 +135,18 @@ public class XzdCsContractSuspendController extends BaseController {
return xzdBusinessSealService.queryPageList(bo, pageQuery);
}
/**
* 获取综合服务合同信息详细信息
*
* @param id 主键
*/
@SaCheckPermission(value = {"comprehensive:csContractChange:add","comprehensive:csContractChange:edit"},mode = SaMode.OR)
@GetMapping("/get/{id}")
public R<XzdCsContractInformationVo> getCsContractInformationInfo(@NotNull(message = "主键不能为空")
@PathVariable Long id) {
return R.ok(xzdCsContractInformationService.queryById(id));
}
}

View File

@ -174,6 +174,7 @@ public class XzdPurchaseContractInformationServiceImpl extends ServiceImpl<XzdPu
LambdaQueryWrapper<XzdPurchaseContractInformation> lqw = Wrappers.lambdaQuery();
lqw.orderByDesc(XzdPurchaseContractInformation::getId);
lqw.eq(StringUtils.isNotBlank(bo.getContractCode()), XzdPurchaseContractInformation::getContractCode, bo.getContractCode());
lqw.eq(StringUtils.isNotBlank(bo.getAuditStatus()), XzdPurchaseContractInformation::getAuditStatus, bo.getAuditStatus());
lqw.eq(StringUtils.isNotBlank(bo.getSfzz()), XzdPurchaseContractInformation::getSfzz, bo.getSfzz());
lqw.eq(StringUtils.isNotBlank(bo.getAuditStatus()), XzdPurchaseContractInformation::getAuditStatus, bo.getAuditStatus());
lqw.like(StringUtils.isNotBlank(bo.getContractName()), XzdPurchaseContractInformation::getContractName, bo.getContractName());

View File

@ -58,6 +58,19 @@ public class XzdCbysJdcbfjController extends BaseController {
return xzdCbysZjhcbService.queryPageList(bo, pageQuery);
}
/**
* 获取立项及成本-成本预算-总体计划成本详细信息
*
* @param id 主键
*/
@SaCheckPermission(value = {"costBudget:cbysJdcbfj:add","costBudget:cbysJdcbfj:edit","costBudget:cbysJdcbfj:list"},mode = SaMode.OR)
@GetMapping("/get/{id}")
public R<XzdCbysZjhcbVo> getCbysZjhcbInfo(@NotNull(message = "主键不能为空")
@PathVariable Long id) {
return R.ok(xzdCbysZjhcbService.queryById(id));
}
/**
* 查询立项及成本-成本预算-阶段成本分解列表
*/

View File

@ -59,6 +59,18 @@ public class XzdCbysZjhcbAlterationController extends BaseController {
return xzdCbysZjhcbService.queryPageList(bo, pageQuery);
}
/**
* 获取立项及成本-成本预算-总体计划成本详细信息
*
* @param id 主键
*/
@SaCheckPermission(value = {"costBudget:cbysZjhcbAlteration:add","costBudget:cbysZjhcbAlteration:edit","costBudget:cbysZjhcbAlteration:list"},mode = SaMode.OR)
@GetMapping("/get/{id}")
public R<XzdCbysZjhcbVo> getCbysZjhcbInfo(@NotNull(message = "主键不能为空")
@PathVariable Long id) {
return R.ok(xzdCbysZjhcbService.queryById(id));
}
/**
* 查询立项及成本-成本预算-总体计划成本变更列表
*/

View File

@ -99,6 +99,18 @@ public class XzdSfkCaigouFkController extends BaseController {
return R.ok(xzdSfkCaigouFkService.queryById(id));
}
/**
* 获取采购合同信息详细信息
*
* @param id 主键
*/
@SaCheckPermission(value = {"paymentsReceipts:sfkCaigouFk:add","paymentsReceipts:sfkCaigouFk:edit"},mode = SaMode.OR)
@GetMapping("/get/{id}")
public R<XzdPurchaseContractInformationVo> getPurchaseContractInformationInfo(@NotNull(message = "主键不能为空")
@PathVariable Long id) {
return R.ok(xzdPurchaseContractInformationService.queryById(id));
}
/**
* 新增采购合同付款
*/

View File

@ -67,6 +67,18 @@ public class XzdSfkZonhefuwuFkController extends BaseController {
return xzdCsContractInformationService.queryPageList(bo, pageQuery);
}
/**
* 获取综合服务合同信息详细信息
*
* @param id 主键
*/
@SaCheckPermission(value = {"settlement:jsZhfwJindu:add","settlement:jsZhfwJindu:edit"},mode = SaMode.OR)
@GetMapping("/get/{id}")
public R<XzdCsContractInformationVo> getCsContractInformationInfo(@NotNull(message = "主键不能为空")
@PathVariable Long id) {
return R.ok(xzdCsContractInformationService.queryById(id));
}
/**
* 查询综合服务合同付款列表
*/

View File

@ -81,6 +81,7 @@ public class XzdBusinessSealServiceImpl extends ServiceImpl<XzdBusinessSealMappe
LambdaQueryWrapper<XzdBusinessSeal> lqw = Wrappers.lambdaQuery();
lqw.orderByDesc(XzdBusinessSeal::getId);
lqw.eq(StringUtils.isNotBlank(bo.getYzNum()), XzdBusinessSeal::getYzNum, bo.getYzNum());
lqw.eq(StringUtils.isNotBlank(bo.getShzt()), XzdBusinessSeal::getShzt, bo.getShzt());
lqw.like(StringUtils.isNotBlank(bo.getYzName()), XzdBusinessSeal::getYzName, bo.getYzName());
return lqw;
}

View File

@ -68,6 +68,19 @@ public class XzdJsCgJinduController extends BaseController {
return xzdPurchaseContractInformationService.queryPageList(bo, pageQuery);
}
/**
* 获取采购合同信息详细信息
*
* @param id 主键
*/
@SaCheckPermission(value = {"settlement:jsCgJindu:add","settlement:jsCgJindu:edit"},mode = SaMode.OR)
@GetMapping("/get/{id}")
public R<XzdPurchaseContractInformationVo> getPurchaseContractInformationInfo(@NotNull(message = "主键不能为空")
@PathVariable Long id) {
return R.ok(xzdPurchaseContractInformationService.queryById(id));
}
/**
* 查询采购合同进度结算列表
*/

View File

@ -70,6 +70,19 @@ public class XzdJsCgJungonController extends BaseController {
return xzdPurchaseContractInformationService.queryPageList(bo, pageQuery);
}
/**
* 获取采购合同信息详细信息
*
* @param id 主键
*/
@SaCheckPermission(value = {"settlement:jsCgJungon:add","settlement:jsCgJungon:edit"},mode = SaMode.OR)
@GetMapping("/get/{id}")
public R<XzdPurchaseContractInformationVo> getPurchaseContractInformationInfo(@NotNull(message = "主键不能为空")
@PathVariable Long id) {
return R.ok(xzdPurchaseContractInformationService.queryById(id));
}
/**
* 查询采购合同竣工结算列表
*/

View File

@ -63,7 +63,7 @@ public class XzdJsCgJungonEditController extends BaseController {
* 查询采购合同竣工结算列表
*/
@SaCheckPermission(value = {"settlement:jsCgJungonEdit:list","settlement:jsCgJungonEdit:add","settlement:jsCgJungonEdit:edit"},mode = SaMode.OR)
@GetMapping("/list")
@GetMapping("/getList")
public TableDataInfo<XzdJsCgJungonVo> list(XzdJsCgJungonBo bo, PageQuery pageQuery) {
return xzdJsCgJungonService.queryPageList(bo, pageQuery);
}
@ -72,7 +72,7 @@ public class XzdJsCgJungonEditController extends BaseController {
* 查询采购合同竣工结算调整列表
*/
@SaCheckPermission("settlement:jsCgJungonEdit:list")
@GetMapping("/jsCgJungonEditList")
@GetMapping("/list")
public TableDataInfo<XzdJsCgJungonEditVo> list(XzdJsCgJungonEditBo bo, PageQuery pageQuery) {
return xzdJsCgJungonEditService.queryPageList(bo, pageQuery);
}
@ -100,6 +100,18 @@ public class XzdJsCgJungonEditController extends BaseController {
return R.ok(xzdJsCgJungonEditService.queryById(id));
}
/**
* 获取采购合同竣工结算详细信息
*
* @param id 主键
*/
@SaCheckPermission(value = {"settlement:jsCgJungonEdit:add","settlement:jsCgJungonEdit:edit"},mode = SaMode.OR)
@GetMapping("/get/{id}")
public R<XzdJsCgJungonVo> getJsCgJungonInfo(@NotNull(message = "主键不能为空")
@PathVariable Long id) {
return R.ok(xzdJsCgJungonService.queryById(id));
}
/**
* 新增采购合同竣工结算调整
*/

View File

@ -60,6 +60,19 @@ public class XzdJsZhfwJinduController extends BaseController {
return xzdBusinessSealService.queryPageList(bo, pageQuery);
}
/**
* 获取综合服务合同信息详细信息
*
* @param id 主键
*/
@SaCheckPermission(value = {"settlement:jsZhfwJindu:add","settlement:jsZhfwJindu:edit" },mode = SaMode.OR)
@GetMapping("/get/{id}")
public R<XzdCsContractInformationVo> getCsContractInformationInfo(@NotNull(message = "主键不能为空")
@PathVariable Long id) {
return R.ok(xzdCsContractInformationService.queryById(id));
}
/**
* 查询综合服务合同进度结算列表
*/