|
|
|
@ -137,12 +137,15 @@ public class IoOrderController extends BaseController {
|
|
|
|
|
List<IoOrderResponse> list = orderService.getfilterList(filterOrderRequest);
|
|
|
|
|
|
|
|
|
|
for (IoOrderResponse ioOrderResponse : list) {
|
|
|
|
|
if(ioOrderResponse.getCheckStatus() == null){
|
|
|
|
|
ioOrderResponse.setCheckStatus(0+"");
|
|
|
|
|
}
|
|
|
|
|
FilterOrderDetailCodeRequest filterOrderDetailCodeRequest = new FilterOrderDetailCodeRequest();
|
|
|
|
|
filterOrderDetailCodeRequest.setOrderIdFk(ioOrderResponse.getBillNo());
|
|
|
|
|
List<IoOrderDetailCodeResponse> ioOrderDetailCodeResponses = orderDetailBizService.getfilterList(filterOrderDetailCodeRequest);
|
|
|
|
|
BigDecimal amount=new BigDecimal(0.00);
|
|
|
|
|
for (IoOrderDetailCodeResponse ioOrderDetailCodeRespons : ioOrderDetailCodeResponses) {
|
|
|
|
|
if(ioOrderDetailCodeRespons.getCount() != 0) {
|
|
|
|
|
if(ioOrderDetailCodeRespons.getCount() != 0 && ioOrderDetailCodeRespons.getPrice()!=null) {
|
|
|
|
|
amount = amount.add(new BigDecimal(ioOrderDetailCodeRespons.getCount()).multiply(ioOrderDetailCodeRespons.getPrice()));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|