合同拆分金额
This commit is contained in:
@@ -40,8 +40,8 @@ public class AmountDismantleDO extends BusinessBaseDO {
|
||||
/**
|
||||
* 物料编码
|
||||
*/
|
||||
@TableField("MTRL_CD")
|
||||
private String materialCode;
|
||||
@TableField("MTRL_NUM")
|
||||
private String materialNumber;
|
||||
/**
|
||||
* 元素缩写
|
||||
*/
|
||||
|
||||
@@ -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())
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user