|
|
|
@ -155,5 +155,30 @@ public class MerchantBalanceController {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ResponseBody |
|
|
|
|
@PostMapping("/findBalanceDetail") |
|
|
|
|
@ApiOperationSupport(order = 1) |
|
|
|
|
@ApiOperation(value = "查询异常列表", notes = "传入merchantStatisticsDTO") |
|
|
|
|
public R findBalanceDetail(@RequestBody MerchantStatisticsDTO merchantStatisticsDTO) { |
|
|
|
|
String method = "############findBalanceDetail: "; |
|
|
|
|
log.info(method+"请求参数{}",merchantStatisticsDTO); |
|
|
|
|
try{ |
|
|
|
|
|
|
|
|
|
Long balanceOrderId = merchantStatisticsDTO.getBalanceOrderId(); |
|
|
|
|
if(Objects.isNull(balanceOrderId)){ |
|
|
|
|
log.warn(method+"请选择正确的结算单 balanceOrderId={}",balanceOrderId); |
|
|
|
|
return R.fail(405,"请选择正确的结算单"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return balanceOrderInfoService.findBalanceDetail(balanceOrderId); |
|
|
|
|
}catch (CustomerException e){ |
|
|
|
|
log.error(e.message,e); |
|
|
|
|
return R.fail(e.code,e.message); |
|
|
|
|
}catch (Exception e){ |
|
|
|
|
log.error(method+"系统异常",e); |
|
|
|
|
return R.fail(500,"系统异常"); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|