no message
This commit is contained in:
parent
60c02a28ed
commit
60952f6b47
|
|
@ -462,9 +462,13 @@ public class OrderDetailController extends BaseController {
|
||||||
param.setOrderDetailId(detail.getId());
|
param.setOrderDetailId(detail.getId());
|
||||||
List<OrderAttachmentRecord> orderAttachmentRecordList = orderAttachmentRecordService.selectOrderAttachmentRecordList(param);
|
List<OrderAttachmentRecord> orderAttachmentRecordList = orderAttachmentRecordService.selectOrderAttachmentRecordList(param);
|
||||||
BigDecimal addMoneyTotal= BigDecimal.ZERO;
|
BigDecimal addMoneyTotal= BigDecimal.ZERO;
|
||||||
|
String addMoneyRemark=null;
|
||||||
|
|
||||||
for (FinancialChangeRecord financialChangeRecord:financialChangeRecords){
|
for (FinancialChangeRecord financialChangeRecord:financialChangeRecords){
|
||||||
addMoneyTotal= addMoneyTotal.add(financialChangeRecord.getChangeMoney());
|
addMoneyTotal= addMoneyTotal.add(financialChangeRecord.getChangeMoney());
|
||||||
|
if (StringUtils.isNotEmpty(financialChangeRecord.getRemark())){
|
||||||
|
addMoneyRemark=financialChangeRecord.getRemark();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
for (OrderAttachmentRecord orderAttachmentRecord:orderAttachmentRecordList){
|
for (OrderAttachmentRecord orderAttachmentRecord:orderAttachmentRecordList){
|
||||||
addMoneyTotal= addMoneyTotal.add(orderAttachmentRecord.getAttachMoney());
|
addMoneyTotal= addMoneyTotal.add(orderAttachmentRecord.getAttachMoney());
|
||||||
|
|
@ -472,6 +476,7 @@ public class OrderDetailController extends BaseController {
|
||||||
logger.info("加价的金额总额为{}",addMoneyTotal);
|
logger.info("加价的金额总额为{}",addMoneyTotal);
|
||||||
|
|
||||||
// 编辑返回属性
|
// 编辑返回属性
|
||||||
|
orderListResponse.setAddMoneyRemark(addMoneyRemark);
|
||||||
orderListResponse.setAddMoney(addMoneyTotal);
|
orderListResponse.setAddMoney(addMoneyTotal);
|
||||||
orderListResponse.setOrderDetailId(detail.getId());
|
orderListResponse.setOrderDetailId(detail.getId());
|
||||||
orderListResponse.setOrderDetailCode(detail.getCode());
|
orderListResponse.setOrderDetailCode(detail.getCode());
|
||||||
|
|
|
||||||
|
|
@ -204,4 +204,6 @@ public class OrderListResponse {
|
||||||
private Boolean isMonitoredOrder;
|
private Boolean isMonitoredOrder;
|
||||||
|
|
||||||
private BigDecimal addMoney;
|
private BigDecimal addMoney;
|
||||||
|
|
||||||
|
private String addMoneyRemark;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue