合同拆分金额

This commit is contained in:
潘荣晟
2026-01-22 11:32:40 +08:00
parent 515b79d115
commit 71ba93c7db
8 changed files with 25 additions and 7 deletions

View File

@@ -15,7 +15,7 @@ public class AmountSplitRespDTO {
private String materialName; private String materialName;
@Schema(description = "物料编码") @Schema(description = "物料编码")
private String materialCode; private String materialNumber;
@Schema(description = "元素缩写") @Schema(description = "元素缩写")
private String elementAbbreviation; private String elementAbbreviation;

View File

@@ -17,7 +17,7 @@ public class AmountDismantlePageReqVO extends PageParam {
private String materialName; private String materialName;
@Schema(description = "物料编码") @Schema(description = "物料编码")
private String materialCode; private String materialNumber;
@Schema(description = "元素缩写") @Schema(description = "元素缩写")
private String elementAbbreviation; private String elementAbbreviation;

View File

@@ -22,7 +22,7 @@ public class AmountDismantleRespVO {
@Schema(description = "物料编码") @Schema(description = "物料编码")
@ExcelProperty("物料编码") @ExcelProperty("物料编码")
private String materialCode; private String materialNumber;
@Schema(description = "元素缩写") @Schema(description = "元素缩写")
@ExcelProperty("元素缩写") @ExcelProperty("元素缩写")

View File

@@ -16,7 +16,7 @@ public class AmountDismantleSaveReqVO {
private String materialName; private String materialName;
@Schema(description = "物料编码") @Schema(description = "物料编码")
private String materialCode; private String materialNumber;
@Schema(description = "元素缩写") @Schema(description = "元素缩写")
private String elementAbbreviation; private String elementAbbreviation;

View File

@@ -3,6 +3,8 @@ package com.zt.plat.module.contractorder.api.vo.contract;
import com.zt.plat.module.base.controller.admin.templtp.vo.TmplInscDatBsnRespVO; import com.zt.plat.module.base.controller.admin.templtp.vo.TmplInscDatBsnRespVO;
import com.zt.plat.module.base.controller.admin.templtp.vo.TmplInscItmBsnRespVO; import com.zt.plat.module.base.controller.admin.templtp.vo.TmplInscItmBsnRespVO;
import com.zt.plat.module.contractorder.api.dto.contract.AmountSplitRespDTO;
import com.zt.plat.module.contractorder.api.dto.contract.ContractReceiveSendRespDTO;
import io.swagger.v3.oas.annotations.media.Schema; import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data; import lombok.Data;
@@ -275,6 +277,12 @@ public class ContractRespVO {
@Schema(description = "是否信用", example = "1") @Schema(description = "是否信用", example = "1")
private String hasCredit; private String hasCredit;
@Schema(description = "收发货规则")
private List<ContractReceiveSendRespVO> contractReceiveSends;
@Schema(description = "金额拆分")
private List<AmountDismantleRespVO> amountSplit;
// 物料信息 // 物料信息
private List<DetailRespVO> detail; private List<DetailRespVO> detail;

View File

@@ -40,8 +40,8 @@ public class AmountDismantleDO extends BusinessBaseDO {
/** /**
* 物料编码 * 物料编码
*/ */
@TableField("MTRL_CD") @TableField("MTRL_NUM")
private String materialCode; private String materialNumber;
/** /**
* 元素缩写 * 元素缩写
*/ */

View File

@@ -20,7 +20,7 @@ public interface AmountDismantleMapper extends BaseMapperX<AmountDismantleDO> {
default PageResult<AmountDismantleDO> selectPage(AmountDismantlePageReqVO reqVO) { default PageResult<AmountDismantleDO> selectPage(AmountDismantlePageReqVO reqVO) {
return selectPage(reqVO, new LambdaQueryWrapperX<AmountDismantleDO>() return selectPage(reqVO, new LambdaQueryWrapperX<AmountDismantleDO>()
.likeIfPresent(AmountDismantleDO::getMaterialName, reqVO.getMaterialName()) .likeIfPresent(AmountDismantleDO::getMaterialName, reqVO.getMaterialName())
.eqIfPresent(AmountDismantleDO::getMaterialCode, reqVO.getMaterialCode()) .eqIfPresent(AmountDismantleDO::getMaterialNumber, reqVO.getMaterialNumber())
.eqIfPresent(AmountDismantleDO::getElementAbbreviation, reqVO.getElementAbbreviation()) .eqIfPresent(AmountDismantleDO::getElementAbbreviation, reqVO.getElementAbbreviation())
.likeIfPresent(AmountDismantleDO::getElementName, reqVO.getElementName()) .likeIfPresent(AmountDismantleDO::getElementName, reqVO.getElementName())
.eqIfPresent(AmountDismantleDO::getElementCode, reqVO.getElementCode()) .eqIfPresent(AmountDismantleDO::getElementCode, reqVO.getElementCode())

View File

@@ -420,6 +420,16 @@ public class ContractServiceImpl implements ContractService {
respVO.setDynamicsItems(tmplInscBsnRel.getTmplInscItmBsnRespVOS()); respVO.setDynamicsItems(tmplInscBsnRel.getTmplInscItmBsnRespVOS());
} }
} }
//收发货
List<ContractReceiveSendRespVO> contractReceiveSendListByContractId = contractReceiveSendService.getContractReceiveSendListByContractId(contractMainDO.getId());
if (contractReceiveSendListByContractId != null && !contractReceiveSendListByContractId.isEmpty()) {
respVO.setContractReceiveSends(contractReceiveSendListByContractId);
}
//金额拆分
List<AmountDismantleDO> amountDismantleListByContractId = amountDismantleService.getAmountDismantleListByContractId(contractMainDO.getId());
if (amountDismantleListByContractId != null && !amountDismantleListByContractId.isEmpty()) {
respVO.setAmountSplit(BeanUtils.toBean(amountDismantleListByContractId, AmountDismantleRespVO.class));
}
return respVO; return respVO;
} }