|
|
@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSONObject;
|
|
|
|
import jnpf.base.ActionResult;
|
|
|
|
import jnpf.base.ActionResult;
|
|
|
|
import jnpf.entity.*;
|
|
|
|
import jnpf.entity.*;
|
|
|
|
import jnpf.mapper.CwsettlementMapper;
|
|
|
|
import jnpf.mapper.CwsettlementMapper;
|
|
|
|
|
|
|
|
import jnpf.mapper.DeliveryProductRelationMapper;
|
|
|
|
import jnpf.mapper.WarehousingOutboundProductMapper;
|
|
|
|
import jnpf.mapper.WarehousingOutboundProductMapper;
|
|
|
|
import jnpf.model.yunguan.YunguanPurchaseSettlementModel;
|
|
|
|
import jnpf.model.yunguan.YunguanPurchaseSettlementModel;
|
|
|
|
import jnpf.model.yunguan.YunguanPurchaseSettlementProductModel;
|
|
|
|
import jnpf.model.yunguan.YunguanPurchaseSettlementProductModel;
|
|
|
@ -100,6 +101,14 @@ public class CwsettlementServiceImpl extends ServiceImpl<CwsettlementMapper, Cws
|
|
|
|
private SettlementRelationPurchaseService settlementRelationPurchaseService;
|
|
|
|
private SettlementRelationPurchaseService settlementRelationPurchaseService;
|
|
|
|
@Resource
|
|
|
|
@Resource
|
|
|
|
private SettlementRelationSaleService settlementRelationSaleService;
|
|
|
|
private SettlementRelationSaleService settlementRelationSaleService;
|
|
|
|
|
|
|
|
@Resource
|
|
|
|
|
|
|
|
private DeliveryProductRelationMapper deliveryProductRelationMapper;
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
|
|
|
private BusinessOrderService businessOrderService;
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
|
|
|
private BusinessOrderProductRelationalService businessOrderProductRelationalService;
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
|
|
|
private BusinessLineService businessLineService;
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public List<CwsettlementEntity> getList(CwsettlementPagination cwsettlementPagination){
|
|
|
|
public List<CwsettlementEntity> getList(CwsettlementPagination cwsettlementPagination){
|
|
|
@ -1049,52 +1058,77 @@ public class CwsettlementServiceImpl extends ServiceImpl<CwsettlementMapper, Cws
|
|
|
|
}
|
|
|
|
}
|
|
|
|
cwsettlementsummaryService.saveOrUpdate(tableField207.get(i));
|
|
|
|
cwsettlementsummaryService.saveOrUpdate(tableField207.get(i));
|
|
|
|
|
|
|
|
|
|
|
|
if (entity.getType().equals("1") && entity.getBusinessLine().equals("550709408384942213")){
|
|
|
|
if (entity.getType().equals("1") && entity.getBusinessLine().equals("550709408384942213")) {
|
|
|
|
|
|
|
|
|
|
|
|
if(!isSave){
|
|
|
|
if (!isSave) {
|
|
|
|
QueryWrapper<SettlementRelationPurchaseEntity> settlementRelationPurchaseEntityQueryWrapper = new QueryWrapper<>();
|
|
|
|
QueryWrapper<SettlementRelationPurchaseEntity> settlementRelationPurchaseEntityQueryWrapper = new QueryWrapper<>();
|
|
|
|
settlementRelationPurchaseEntityQueryWrapper.lambda().eq(SettlementRelationPurchaseEntity::getPurchaseSettlementCode, entity.getCode());
|
|
|
|
settlementRelationPurchaseEntityQueryWrapper.lambda().eq(SettlementRelationPurchaseEntity::getPurchaseSettlementCode, entity.getCode());
|
|
|
|
settlementRelationPurchaseService.remove(settlementRelationPurchaseEntityQueryWrapper);
|
|
|
|
settlementRelationPurchaseService.remove(settlementRelationPurchaseEntityQueryWrapper);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
SettlementRelationPurchaseEntity settlementRelationPurchaseEntity=new SettlementRelationPurchaseEntity();
|
|
|
|
SettlementRelationPurchaseEntity settlementRelationPurchaseEntity = new SettlementRelationPurchaseEntity();
|
|
|
|
|
|
|
|
for (CwsettlementaccountModel model : cwsettlementForm.getCwsettlementaccountList()) {
|
|
|
|
|
|
|
|
|
|
|
|
//采购结算
|
|
|
|
//采购结算
|
|
|
|
QueryWrapper<CwaccountstorageEntity> cwaccountstorageQueryWrapper=new QueryWrapper<>();
|
|
|
|
QueryWrapper<CwaccountstorageEntity> cwaccountstorageQueryWrapper = new QueryWrapper<>();
|
|
|
|
cwaccountstorageQueryWrapper.lambda().eq(CwaccountstorageEntity::getAccountId,cwsettlementForm.getCwsettlementaccountList().get(0).getAccountId());
|
|
|
|
cwaccountstorageQueryWrapper.lambda().eq(CwaccountstorageEntity::getAccountId, model.getAccountId());
|
|
|
|
List<CwaccountstorageEntity> cwaccountstorageEntityList=cwaccountstorageService.list(cwaccountstorageQueryWrapper);
|
|
|
|
cwaccountstorageQueryWrapper.lambda().isNull(CwaccountstorageEntity::getDeleteMark);
|
|
|
|
if (cwaccountstorageEntityList!=null && cwaccountstorageEntityList.size()>0){
|
|
|
|
List<CwaccountstorageEntity> cwaccountstorageEntityList = cwaccountstorageService.list(cwaccountstorageQueryWrapper);
|
|
|
|
|
|
|
|
for (CwaccountstorageEntity cwaccountstorage : cwaccountstorageEntityList) {
|
|
|
|
//入库单的采购订单
|
|
|
|
//入库单的采购订单
|
|
|
|
QueryWrapper<WarehousingStorageEntity> warehousingStorageQueryWrapper=new QueryWrapper<>();
|
|
|
|
QueryWrapper<WarehousingStorageEntity> warehousingStorageQueryWrapper = new QueryWrapper<>();
|
|
|
|
warehousingStorageQueryWrapper.lambda().eq(WarehousingStorageEntity::getDocumentNo,cwaccountstorageEntityList.get(0).getDocumentNo());
|
|
|
|
warehousingStorageQueryWrapper.lambda().eq(WarehousingStorageEntity::getDocumentNo, cwaccountstorage.getDocumentNo());
|
|
|
|
List<WarehousingStorageEntity> warehousingStorageEntityList=warehousingStorageService.list(warehousingStorageQueryWrapper);
|
|
|
|
warehousingStorageQueryWrapper.lambda().isNull(WarehousingStorageEntity::getDeleteMark);
|
|
|
|
if (warehousingStorageEntityList!=null && warehousingStorageEntityList.size()>0){
|
|
|
|
List<WarehousingStorageEntity> warehousingStorageEntityList = warehousingStorageService.list(warehousingStorageQueryWrapper);
|
|
|
|
|
|
|
|
if (warehousingStorageEntityList != null && warehousingStorageEntityList.size() > 0) {
|
|
|
|
//收货单
|
|
|
|
//收货单
|
|
|
|
QueryWrapper<ReceiptOrderEntity> receiptOrderEntityQueryWrapper=new QueryWrapper<>();
|
|
|
|
QueryWrapper<ReceiptOrderEntity> receiptOrderEntityQueryWrapper = new QueryWrapper<>();
|
|
|
|
receiptOrderEntityQueryWrapper.lambda().eq(ReceiptOrderEntity::getId,warehousingStorageEntityList.get(0).getWarehousingId());
|
|
|
|
receiptOrderEntityQueryWrapper.lambda().eq(ReceiptOrderEntity::getId, warehousingStorageEntityList.get(0).getWarehousingId());
|
|
|
|
List<ReceiptOrderEntity> receiptOrderEntities=receiptOrderService.list(receiptOrderEntityQueryWrapper);
|
|
|
|
receiptOrderEntityQueryWrapper.lambda().isNull(ReceiptOrderEntity::getDeleteMark);
|
|
|
|
if (receiptOrderEntities!=null && receiptOrderEntities.size()>0){
|
|
|
|
List<ReceiptOrderEntity> receiptOrderEntities = receiptOrderService.list(receiptOrderEntityQueryWrapper);
|
|
|
|
|
|
|
|
if (receiptOrderEntities != null && receiptOrderEntities.size() > 0) {
|
|
|
|
|
|
|
|
//采购订单
|
|
|
|
|
|
|
|
BusinessOrderEntity businessOrderEntity = businessOrderService.getInfo(receiptOrderEntities.get(0).getBusinessId());
|
|
|
|
|
|
|
|
if (ObjectUtil.isNotEmpty(businessOrderEntity)) {
|
|
|
|
|
|
|
|
//采购订单子表
|
|
|
|
|
|
|
|
QueryWrapper<BusinessOrderProductRelationalEntity> businessOrderSonQueryWrapper = new QueryWrapper<>();
|
|
|
|
|
|
|
|
businessOrderSonQueryWrapper.lambda().eq(BusinessOrderProductRelationalEntity::getBusinessOrderId, businessOrderEntity.getId());
|
|
|
|
|
|
|
|
businessOrderSonQueryWrapper.lambda().isNull(BusinessOrderProductRelationalEntity::getDeleteMark);
|
|
|
|
|
|
|
|
List<BusinessOrderProductRelationalEntity> businessOrderProductRelationalEntityList = businessOrderProductRelationalService.list(businessOrderSonQueryWrapper);
|
|
|
|
|
|
|
|
for (BusinessOrderProductRelationalEntity businessSon : businessOrderProductRelationalEntityList) {
|
|
|
|
settlementRelationPurchaseEntity.setPurchaseSettlementCode(entity.getCode()); //采购结算单
|
|
|
|
settlementRelationPurchaseEntity.setPurchaseSettlementCode(entity.getCode()); //采购结算单
|
|
|
|
settlementRelationPurchaseEntity.setReceiptCode(receiptOrderEntities.get(0).getReceiptCode()); //收货单
|
|
|
|
settlementRelationPurchaseEntity.setReceiptCode(receiptOrderEntities.get(0).getReceiptCode()); //收货单
|
|
|
|
settlementRelationPurchaseEntity.setContract(cwsettlementForm.getCwsettlementaccountList().get(0).getContractCode());
|
|
|
|
//采购合同编号
|
|
|
|
settlementRelationPurchaseEntity.setPurchaseCode(warehousingStorageEntityList.get(0).getBusinessOrderNo());
|
|
|
|
ContractLEntity contractLEntity = contractLService.getInfo(businessOrderEntity.getContractId());
|
|
|
|
settlementRelationPurchaseEntity.setOrdLn( tableField207.get(i).getOrdLn()); //订单行
|
|
|
|
if (ObjectUtil.isNotEmpty(contractLEntity)) {
|
|
|
|
settlementRelationPurchaseEntity.setSettlementSum( tableField207.get(i).getSettlementSum()); //结算量
|
|
|
|
settlementRelationPurchaseEntity.setContract(contractLEntity.getContractNumber());
|
|
|
|
settlementRelationPurchaseEntity.setSettlementPrice( tableField207.get(i).getSettlementPrice()); //单价量
|
|
|
|
}
|
|
|
|
settlementRelationPurchaseEntity.setSettlementCount( tableField207.get(i).getSettlementSubtotal()); //单价量
|
|
|
|
settlementRelationPurchaseEntity.setPurchaseCode(businessOrderEntity.getCode());
|
|
|
|
SubjectbasicEntity subjectbasicEntity =subjectbasicService.getInfo(cwsettlementForm.getCwsettlementsubjectList().get(0).getSubjectId());
|
|
|
|
settlementRelationPurchaseEntity.setOrdLn(businessSon.getOrdLn()); //订单行
|
|
|
|
|
|
|
|
settlementRelationPurchaseEntity.setSettlementSum(tableField207.get(i).getSettlementSum()); //结算量
|
|
|
|
|
|
|
|
settlementRelationPurchaseEntity.setSettlementPrice(tableField207.get(i).getSettlementPrice()); //单价量
|
|
|
|
|
|
|
|
settlementRelationPurchaseEntity.setSettlementCount(tableField207.get(i).getSettlementSubtotal()); //单价量
|
|
|
|
|
|
|
|
SubjectbasicEntity subjectbasicEntity = subjectbasicService.getInfo(businessOrderEntity.getFirstSubjectBasicId());
|
|
|
|
|
|
|
|
if (ObjectUtil.isNotEmpty(subjectbasicEntity)) {
|
|
|
|
settlementRelationPurchaseEntity.setSupplier(subjectbasicEntity.getName());
|
|
|
|
settlementRelationPurchaseEntity.setSupplier(subjectbasicEntity.getName());
|
|
|
|
settlementRelationPurchaseEntity.setPurchaseBusinessLine(entity.getBusinessLine());
|
|
|
|
}
|
|
|
|
|
|
|
|
BusinessLineEntity businessLineEntity = businessLineService.getInfo(businessOrderEntity.getBusinessLineId());
|
|
|
|
|
|
|
|
if (ObjectUtil.isNotEmpty(businessLineEntity)) {
|
|
|
|
|
|
|
|
settlementRelationPurchaseEntity.setPurchaseBusinessLine(businessLineEntity.getName());
|
|
|
|
|
|
|
|
}
|
|
|
|
settlementRelationPurchaseEntity.setPaymentAmount(cwsettlementForm.getPaymentAmount()); //已付款金额
|
|
|
|
settlementRelationPurchaseEntity.setPaymentAmount(cwsettlementForm.getPaymentAmount()); //已付款金额
|
|
|
|
// settlementRelationPurchaseEntity.setPurchaseBusinessLine(cwsettlementForm.getBusinessLine());
|
|
|
|
// settlementRelationPurchaseEntity.setPurchaseBusinessLine(cwsettlementForm.getBusinessLine());
|
|
|
|
|
|
|
|
|
|
|
|
settlementRelationPurchaseService.saveOrUpdate(settlementRelationPurchaseEntity);
|
|
|
|
settlementRelationPurchaseService.saveOrUpdate(settlementRelationPurchaseEntity);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}else if(entity.getType().equals("2") && entity.getBusinessLine().equals("550709408384942213")){
|
|
|
|
}else if(entity.getType().equals("2") && entity.getBusinessLine().equals("550709408384942213")){
|
|
|
|
|
|
|
|
|
|
|
|
if(!isSave){
|
|
|
|
if(!isSave){
|
|
|
@ -1105,51 +1139,59 @@ public class CwsettlementServiceImpl extends ServiceImpl<CwsettlementMapper, Cws
|
|
|
|
|
|
|
|
|
|
|
|
SettlementRelationSaleEntity settlementRelationSaleEntity=new SettlementRelationSaleEntity();
|
|
|
|
SettlementRelationSaleEntity settlementRelationSaleEntity=new SettlementRelationSaleEntity();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for (CwsettlementaccountModel model : cwsettlementForm.getCwsettlementaccountList()) {
|
|
|
|
//销售结算
|
|
|
|
//销售结算
|
|
|
|
//入库单的采购订单
|
|
|
|
QueryWrapper<CwaccountstorageEntity> cwaccountstorageQueryWrapper = new QueryWrapper<>();
|
|
|
|
List<WarehousingOutboundProductEntity> warehousingOutboundProductList =warehousingOutboundProductService.queryOutboundProductPurchase(cwsettlementForm.getCwsettlementaccountList().get(0).getAccountId(), tableField207.get(i).getOrdLn());
|
|
|
|
cwaccountstorageQueryWrapper.lambda().eq(CwaccountstorageEntity::getAccountId, model.getAccountId());
|
|
|
|
if (warehousingOutboundProductList!=null && warehousingOutboundProductList.size()>0){
|
|
|
|
List<CwaccountstorageEntity> cwaccountstorageEntityList = cwaccountstorageService.list(cwaccountstorageQueryWrapper);
|
|
|
|
settlementRelationSaleEntity.setPurchaseCode(warehousingOutboundProductList.get(0).getCode()); //采购订单
|
|
|
|
for (CwaccountstorageEntity cwaccountstorageEntity : cwaccountstorageEntityList) {
|
|
|
|
settlementRelationSaleEntity.setContract(warehousingOutboundProductList.get(0).getContractName()); //采购合同
|
|
|
|
|
|
|
|
settlementRelationSaleEntity.setSupplier(warehousingOutboundProductList.get(0).getName()); //供应商
|
|
|
|
|
|
|
|
settlementRelationSaleEntity.setOrdLn(warehousingOutboundProductList.get(0).getOrdLn()); //供应商
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
QueryWrapper<CwaccountstorageEntity> cwaccountstorageQueryWrapper=new QueryWrapper<>();
|
|
|
|
|
|
|
|
cwaccountstorageQueryWrapper.lambda().eq(CwaccountstorageEntity::getAccountId,cwsettlementForm.getCwsettlementaccountList().get(0).getAccountId());
|
|
|
|
|
|
|
|
List<CwaccountstorageEntity> cwaccountstorageEntityList=cwaccountstorageService.list(cwaccountstorageQueryWrapper);
|
|
|
|
|
|
|
|
if (cwaccountstorageEntityList!=null && cwaccountstorageEntityList.size()>0){
|
|
|
|
|
|
|
|
//销售结算
|
|
|
|
//销售结算
|
|
|
|
QueryWrapper<WarehousingOutboundEntity> warehousingOutboundQueryWrapper=new QueryWrapper<>();
|
|
|
|
QueryWrapper<WarehousingOutboundEntity> warehousingOutboundQueryWrapper = new QueryWrapper<>();
|
|
|
|
warehousingOutboundQueryWrapper.lambda().eq(WarehousingOutboundEntity::getDocumentNo,cwaccountstorageEntityList.get(0).getDocumentNo());
|
|
|
|
warehousingOutboundQueryWrapper.lambda().eq(WarehousingOutboundEntity::getDocumentNo, cwaccountstorageEntity.getDocumentNo());
|
|
|
|
List<WarehousingOutboundEntity> warehousingOutboundEntityList=warehousingOutboundService.list(warehousingOutboundQueryWrapper);
|
|
|
|
List<WarehousingOutboundEntity> warehousingOutboundEntityList = warehousingOutboundService.list(warehousingOutboundQueryWrapper);
|
|
|
|
if (warehousingOutboundEntityList!=null && warehousingOutboundEntityList.size()>0){
|
|
|
|
if (warehousingOutboundEntityList != null && warehousingOutboundEntityList.size() > 0) {
|
|
|
|
//收货单
|
|
|
|
//发货单
|
|
|
|
QueryWrapper<DeliveryOrderEntity> deliveryOrderQueryWrapper=new QueryWrapper<>();
|
|
|
|
DeliveryOrderEntity deliveryOrderEntity = deliveryOrderService.getInfo(warehousingOutboundEntityList.get(0).getWarehousingId());
|
|
|
|
deliveryOrderQueryWrapper.lambda().eq(DeliveryOrderEntity::getId,warehousingOutboundEntityList.get(0).getWarehousingId());
|
|
|
|
if (ObjectUtil.isNotEmpty(deliveryOrderEntity)) {
|
|
|
|
List<DeliveryOrderEntity> deliveryOrderEntityList=deliveryOrderService.list(deliveryOrderQueryWrapper);
|
|
|
|
BusinessOrderEntity businessOrderEntity = businessOrderService.getInfo(deliveryOrderEntity.getBusinessId());
|
|
|
|
if (deliveryOrderEntityList!=null && deliveryOrderEntityList.size()>0){
|
|
|
|
List<WarehousingOutboundProductEntity> warehousingOutboundProductList = warehousingOutboundProductService.queryOutboundProductPurchase(model.getAccountId());
|
|
|
|
|
|
|
|
for (WarehousingOutboundProductEntity warehousingOutboundProductEntity : warehousingOutboundProductList) {
|
|
|
|
|
|
|
|
settlementRelationSaleEntity.setPurchaseCode(warehousingOutboundProductEntity.getCode()); //采购订单
|
|
|
|
|
|
|
|
settlementRelationSaleEntity.setContract(warehousingOutboundProductEntity.getContractName()); //采购合同编号
|
|
|
|
|
|
|
|
settlementRelationSaleEntity.setSupplier(warehousingOutboundProductEntity.getName()); //供应商
|
|
|
|
|
|
|
|
settlementRelationSaleEntity.setOrdLn(warehousingOutboundProductEntity.getOrdLn()); //供应商
|
|
|
|
|
|
|
|
|
|
|
|
settlementRelationSaleEntity.setSettlementCode(entity.getCode()); //销售结算单
|
|
|
|
settlementRelationSaleEntity.setSettlementCode(entity.getCode()); //销售结算单
|
|
|
|
settlementRelationSaleEntity.setDeliveryCode(deliveryOrderEntityList.get(0).getDeliveryCode()); //发货单
|
|
|
|
settlementRelationSaleEntity.setDeliveryCode(deliveryOrderEntity.getDeliveryCode()); //发货单
|
|
|
|
settlementRelationSaleEntity.setSaleContract(cwsettlementForm.getCwsettlementaccountList().get(0).getContractCode());
|
|
|
|
if (ObjectUtil.isNotEmpty(businessOrderEntity)){
|
|
|
|
settlementRelationSaleEntity.setSaleCode(warehousingOutboundEntityList.get(0).getBusinessOrderNo());
|
|
|
|
settlementRelationSaleEntity.setSaleCode(businessOrderEntity.getCode());
|
|
|
|
settlementRelationSaleEntity.setSaleOrdLn( tableField207.get(i).getOrdLn()); //订单行
|
|
|
|
ContractLEntity contractLEntity = contractLService.getInfo(businessOrderEntity.getContractId());
|
|
|
|
settlementRelationSaleEntity.setSaleSettlementSum( tableField207.get(i).getSettlementSum()); //结算量
|
|
|
|
SubjectbasicEntity subjectbasicEntity = subjectbasicService.getInfo(businessOrderEntity.getFirstSubjectBasicId());
|
|
|
|
settlementRelationSaleEntity.setSettlementPrice( tableField207.get(i).getSettlementPrice()); //单价量
|
|
|
|
BusinessLineEntity businessLineEntity = businessLineService.getInfo(businessOrderEntity.getBusinessLineId());
|
|
|
|
settlementRelationSaleEntity.setSettlementCount( tableField207.get(i).getSettlementSubtotal()); //单价量
|
|
|
|
if (ObjectUtil.isNotEmpty(contractLEntity)){
|
|
|
|
SubjectbasicEntity subjectbasicEntity =subjectbasicService.getInfo(cwsettlementForm.getCwsettlementsubjectList().get(0).getSubjectId());
|
|
|
|
settlementRelationSaleEntity.setSaleContract(contractLEntity.getContractNumber());//合同号
|
|
|
|
settlementRelationSaleEntity.setCustomer(subjectbasicEntity.getName());
|
|
|
|
}
|
|
|
|
settlementRelationSaleEntity.setPurchaseBusinessLine(entity.getBusinessLine());
|
|
|
|
if(ObjectUtil.isNotEmpty(subjectbasicEntity)) {
|
|
|
|
|
|
|
|
settlementRelationSaleEntity.setCustomer(subjectbasicEntity.getName());//客户
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (ObjectUtil.isNotEmpty(businessLineEntity)){
|
|
|
|
|
|
|
|
settlementRelationSaleEntity.setPurchaseBusinessLine(businessLineEntity.getName());//业务线
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
settlementRelationSaleEntity.setSaleOrdLn(tableField207.get(i).getOrdLn()); //订单行
|
|
|
|
|
|
|
|
settlementRelationSaleEntity.setSaleSettlementSum(tableField207.get(i).getSettlementSum()); //结算量
|
|
|
|
|
|
|
|
settlementRelationSaleEntity.setSettlementPrice(tableField207.get(i).getSettlementPrice()); //单价量
|
|
|
|
|
|
|
|
settlementRelationSaleEntity.setSettlementCount(tableField207.get(i).getSettlementSubtotal()); //单价量
|
|
|
|
settlementRelationSaleEntity.setPaymentAmount(cwsettlementForm.getPaymentAmount()); //已收款金额
|
|
|
|
settlementRelationSaleEntity.setPaymentAmount(cwsettlementForm.getPaymentAmount()); //已收款金额
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
settlementRelationSaleService.saveOrUpdate(settlementRelationSaleEntity);
|
|
|
|
settlementRelationSaleService.saveOrUpdate(settlementRelationSaleEntity);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|