|
|
|
@ -119,14 +119,9 @@ public class OemStatementServiceImpl extends BaseServiceImpl<OemStatementMapper, |
|
|
|
return page.setRecords(baseMapper.selectOemStatementPage(page, mesOemStatement)); |
|
|
|
return page.setRecords(baseMapper.selectOemStatementPage(page, mesOemStatement)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public List<OemStatementExcel> exportOemStatement(Wrapper<OemStatementEntity> queryWrapper) { |
|
|
|
public List<OemStatementExcel> exportOemStatement(StatementQuery mesOemStatement) { |
|
|
|
List<OemStatementExcel> mesOemStatementList = baseMapper.exportOemStatement(queryWrapper); |
|
|
|
return baseMapper.exportOemStatement(mesOemStatement); |
|
|
|
//mesOemStatementList.forEach(mesOemStatement -> {
|
|
|
|
|
|
|
|
// mesOemStatement.setTypeName(DictCache.getValue(DictEnum.YES_NO, OemStatement.getType()));
|
|
|
|
|
|
|
|
//});
|
|
|
|
|
|
|
|
return mesOemStatementList; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
@ -730,7 +725,7 @@ public class OemStatementServiceImpl extends BaseServiceImpl<OemStatementMapper, |
|
|
|
BigDecimal qty = statementVO.getMakeQty(); |
|
|
|
BigDecimal qty = statementVO.getMakeQty(); |
|
|
|
statementVO.setRosStatus(StatementVO.IN_SETTLEMENT); |
|
|
|
statementVO.setRosStatus(StatementVO.IN_SETTLEMENT); |
|
|
|
statementVO.setUnitPrice(unitPrice); |
|
|
|
statementVO.setUnitPrice(unitPrice); |
|
|
|
statementVO.setUnit(priceSheet.getPrtum()); |
|
|
|
statementVO.setUnit(priceSheet.getStairunit()); |
|
|
|
statementVO.setTotalPrice(unitPrice.multiply(qty)); |
|
|
|
statementVO.setTotalPrice(unitPrice.multiply(qty)); |
|
|
|
statementVO.setMemo("结算中"); |
|
|
|
statementVO.setMemo("结算中"); |
|
|
|
statementVO.setQuotation(priceSheet.getSeqid()); |
|
|
|
statementVO.setQuotation(priceSheet.getSeqid()); |
|
|
|
@ -1058,7 +1053,7 @@ public class OemStatementServiceImpl extends BaseServiceImpl<OemStatementMapper, |
|
|
|
statementVO.setRosStatus(StatementVO.IN_SETTLEMENT); |
|
|
|
statementVO.setRosStatus(StatementVO.IN_SETTLEMENT); |
|
|
|
statementVO.setMemo("结算中"); |
|
|
|
statementVO.setMemo("结算中"); |
|
|
|
statementVO.setUnitPrice(unitPrice); |
|
|
|
statementVO.setUnitPrice(unitPrice); |
|
|
|
statementVO.setUnit(priceSheet.getPrtum()); |
|
|
|
statementVO.setUnit(priceSheet.getStairunit()); |
|
|
|
statementVO.setTotalPrice(unitPrice.multiply(qty)); |
|
|
|
statementVO.setTotalPrice(unitPrice.multiply(qty)); |
|
|
|
statementVO.setQuotation(priceSheet.getSeqid()); |
|
|
|
statementVO.setQuotation(priceSheet.getSeqid()); |
|
|
|
//使用此报价
|
|
|
|
//使用此报价
|
|
|
|
@ -1098,7 +1093,7 @@ public class OemStatementServiceImpl extends BaseServiceImpl<OemStatementMapper, |
|
|
|
statementVO.setRosStatus(StatementVO.IN_SETTLEMENT); |
|
|
|
statementVO.setRosStatus(StatementVO.IN_SETTLEMENT); |
|
|
|
statementVO.setMemo("结算中"); |
|
|
|
statementVO.setMemo("结算中"); |
|
|
|
statementVO.setUnitPrice(unitPrice); |
|
|
|
statementVO.setUnitPrice(unitPrice); |
|
|
|
statementVO.setUnit(priceSheet.getPrtum()); |
|
|
|
statementVO.setUnit(priceSheet.getStairunit()); |
|
|
|
statementVO.setTotalPrice(unitPrice.multiply(qty)); |
|
|
|
statementVO.setTotalPrice(unitPrice.multiply(qty)); |
|
|
|
statementVO.setQuotation(priceSheet.getSeqid()); |
|
|
|
statementVO.setQuotation(priceSheet.getSeqid()); |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
@ -1126,7 +1121,7 @@ public class OemStatementServiceImpl extends BaseServiceImpl<OemStatementMapper, |
|
|
|
statementVO.setRosStatus(StatementVO.IN_SETTLEMENT); |
|
|
|
statementVO.setRosStatus(StatementVO.IN_SETTLEMENT); |
|
|
|
statementVO.setMemo("结算中"); |
|
|
|
statementVO.setMemo("结算中"); |
|
|
|
statementVO.setUnitPrice(unitPrice); |
|
|
|
statementVO.setUnitPrice(unitPrice); |
|
|
|
statementVO.setUnit(priceSheet.getPrtum()); |
|
|
|
statementVO.setUnit(priceSheet.getStairunit()); |
|
|
|
statementVO.setTotalPrice(unitPrice.multiply(qty)); |
|
|
|
statementVO.setTotalPrice(unitPrice.multiply(qty)); |
|
|
|
statementVO.setQuotation(priceSheet.getSeqid()); |
|
|
|
statementVO.setQuotation(priceSheet.getSeqid()); |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
@ -1160,7 +1155,7 @@ public class OemStatementServiceImpl extends BaseServiceImpl<OemStatementMapper, |
|
|
|
statementVO.setRosStatus(StatementVO.IN_SETTLEMENT); |
|
|
|
statementVO.setRosStatus(StatementVO.IN_SETTLEMENT); |
|
|
|
statementVO.setMemo("结算中"); |
|
|
|
statementVO.setMemo("结算中"); |
|
|
|
statementVO.setUnitPrice(unitPrice); |
|
|
|
statementVO.setUnitPrice(unitPrice); |
|
|
|
statementVO.setUnit(priceSheet.getPrtum()); |
|
|
|
statementVO.setUnit(priceSheet.getStairunit()); |
|
|
|
statementVO.setTotalPrice(unitPrice.multiply(qty)); |
|
|
|
statementVO.setTotalPrice(unitPrice.multiply(qty)); |
|
|
|
statementVO.setQuotation(priceSheet.getSeqid()); |
|
|
|
statementVO.setQuotation(priceSheet.getSeqid()); |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
@ -1904,7 +1899,7 @@ public class OemStatementServiceImpl extends BaseServiceImpl<OemStatementMapper, |
|
|
|
statementVO.setMemo("结算中"); |
|
|
|
statementVO.setMemo("结算中"); |
|
|
|
statementVO.setSettleTime(new Date()); |
|
|
|
statementVO.setSettleTime(new Date()); |
|
|
|
statementVO.setUnitPrice(unitPrice); |
|
|
|
statementVO.setUnitPrice(unitPrice); |
|
|
|
statementVO.setUnit(sheet.getPrtum()); |
|
|
|
statementVO.setUnit(sheet.getStairunit()); |
|
|
|
statementVO.setTotalPrice(totalPrice); |
|
|
|
statementVO.setTotalPrice(totalPrice); |
|
|
|
statementVO.setQuotation(sheet.getSeqid()); |
|
|
|
statementVO.setQuotation(sheet.getSeqid()); |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
@ -1949,14 +1944,14 @@ public class OemStatementServiceImpl extends BaseServiceImpl<OemStatementMapper, |
|
|
|
} |
|
|
|
} |
|
|
|
//报价单号
|
|
|
|
//报价单号
|
|
|
|
StringBuilder quotationSb = new StringBuilder(); |
|
|
|
StringBuilder quotationSb = new StringBuilder(); |
|
|
|
String prtum = ""; |
|
|
|
String stairunit = ""; |
|
|
|
if (tsbNum > 0) { |
|
|
|
if (tsbNum > 0) { |
|
|
|
List<PriceSheetVO> tsbPriceSheetList = coatingDescPriceSheetMap.get("涂色标"); |
|
|
|
List<PriceSheetVO> tsbPriceSheetList = coatingDescPriceSheetMap.get("涂色标"); |
|
|
|
BigDecimal unitPrice = new BigDecimal(tsbPriceSheetList.get(0).getPrice()); |
|
|
|
BigDecimal unitPrice = new BigDecimal(tsbPriceSheetList.get(0).getPrice()); |
|
|
|
BigDecimal itemTotalPrice = unitPrice.multiply(BigDecimal.valueOf(tsbNum)); |
|
|
|
BigDecimal itemTotalPrice = unitPrice.multiply(BigDecimal.valueOf(tsbNum)); |
|
|
|
totalPrice = totalPrice.add(itemTotalPrice); |
|
|
|
totalPrice = totalPrice.add(itemTotalPrice); |
|
|
|
quotationSb.append(tsbPriceSheetList.get(0).getSeqid()).append("、"); |
|
|
|
quotationSb.append(tsbPriceSheetList.get(0).getSeqid()).append("、"); |
|
|
|
prtum = tsbPriceSheetList.get(0).getPrtum(); |
|
|
|
stairunit = tsbPriceSheetList.get(0).getStairunit(); |
|
|
|
} |
|
|
|
} |
|
|
|
if (tsdNum > 0) { |
|
|
|
if (tsdNum > 0) { |
|
|
|
List<PriceSheetVO> tsdPriceSheetList = coatingDescPriceSheetMap.get("涂色带"); |
|
|
|
List<PriceSheetVO> tsdPriceSheetList = coatingDescPriceSheetMap.get("涂色带"); |
|
|
|
@ -1964,7 +1959,7 @@ public class OemStatementServiceImpl extends BaseServiceImpl<OemStatementMapper, |
|
|
|
BigDecimal itemTotalPrice = unitPrice.multiply(BigDecimal.valueOf(tsdNum)); |
|
|
|
BigDecimal itemTotalPrice = unitPrice.multiply(BigDecimal.valueOf(tsdNum)); |
|
|
|
totalPrice = totalPrice.add(itemTotalPrice); |
|
|
|
totalPrice = totalPrice.add(itemTotalPrice); |
|
|
|
quotationSb.append(tsdPriceSheetList.get(0).getSeqid()).append("、"); |
|
|
|
quotationSb.append(tsdPriceSheetList.get(0).getSeqid()).append("、"); |
|
|
|
prtum = tsdPriceSheetList.get(0).getPrtum(); |
|
|
|
stairunit = tsdPriceSheetList.get(0).getStairunit(); |
|
|
|
} |
|
|
|
} |
|
|
|
if (tjtNum > 0) { |
|
|
|
if (tjtNum > 0) { |
|
|
|
List<PriceSheetVO> tjtPriceSheetList = coatingDescPriceSheetMap.get("涂箭头"); |
|
|
|
List<PriceSheetVO> tjtPriceSheetList = coatingDescPriceSheetMap.get("涂箭头"); |
|
|
|
@ -1972,14 +1967,14 @@ public class OemStatementServiceImpl extends BaseServiceImpl<OemStatementMapper, |
|
|
|
BigDecimal itemTotalPrice = unitPrice.multiply(BigDecimal.valueOf(tjtNum)); |
|
|
|
BigDecimal itemTotalPrice = unitPrice.multiply(BigDecimal.valueOf(tjtNum)); |
|
|
|
totalPrice = totalPrice.add(itemTotalPrice); |
|
|
|
totalPrice = totalPrice.add(itemTotalPrice); |
|
|
|
quotationSb.append(tjtPriceSheetList.get(0).getSeqid()).append("、"); |
|
|
|
quotationSb.append(tjtPriceSheetList.get(0).getSeqid()).append("、"); |
|
|
|
prtum = tjtPriceSheetList.get(0).getPrtum(); |
|
|
|
stairunit = tjtPriceSheetList.get(0).getStairunit(); |
|
|
|
} |
|
|
|
} |
|
|
|
String quotation = quotationSb.length() > 0 ? quotationSb.substring(0, quotationSb.length() - 1) : ""; |
|
|
|
String quotation = quotationSb.length() > 0 ? quotationSb.substring(0, quotationSb.length() - 1) : ""; |
|
|
|
statementVO.setRosStatus(StatementVO.IN_SETTLEMENT); |
|
|
|
statementVO.setRosStatus(StatementVO.IN_SETTLEMENT); |
|
|
|
statementVO.setMemo("结算中"); |
|
|
|
statementVO.setMemo("结算中"); |
|
|
|
statementVO.setSettleTime(new Date()); |
|
|
|
statementVO.setSettleTime(new Date()); |
|
|
|
statementVO.setUnitPrice(totalPrice); |
|
|
|
statementVO.setUnitPrice(totalPrice); |
|
|
|
statementVO.setUnit(prtum); |
|
|
|
statementVO.setUnit(stairunit); |
|
|
|
statementVO.setTotalPrice(totalPrice); |
|
|
|
statementVO.setTotalPrice(totalPrice); |
|
|
|
statementVO.setQuotation(quotation); |
|
|
|
statementVO.setQuotation(quotation); |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
|