合同拆分金额

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

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

View File

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

View File

@@ -420,6 +420,16 @@ public class ContractServiceImpl implements ContractService {
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;
}