Commit 026de4ef by kangxiaoshan

处理合同编号为空导致收款列表报错

parent 08972830
...@@ -1992,7 +1992,8 @@ public class ContractServiceImpl implements ContractService { ...@@ -1992,7 +1992,8 @@ public class ContractServiceImpl implements ContractService {
if (authdata.get("needcheck") != null) { if (authdata.get("needcheck") != null) {
List<String> codesList = list.stream().map(p -> p.getContractCode()).collect(Collectors.toList()); List<String> codesList = list.stream()
.filter(p -> p.getContractCode() != null).map(p -> p.getContractCode()).collect(Collectors.toList());
// contract_code,my_body_code,sale,platform // contract_code,my_body_code,sale,platform
......
...@@ -32,12 +32,12 @@ public class GlobalExceptionAdvice { ...@@ -32,12 +32,12 @@ public class GlobalExceptionAdvice {
return new ResponseEntity<ResultModel>(new ResultModel(-999, ex.getMessage()), HttpStatus.OK); return new ResponseEntity<ResultModel>(new ResultModel(-999, ex.getMessage()), HttpStatus.OK);
} }
@ExceptionHandler(RuntimeException.class) /* @ExceptionHandler(RuntimeException.class)
public ResponseEntity<ResultModel> handleRuntimeException(RuntimeException ex) { public ResponseEntity<ResultModel> handleRuntimeException(RuntimeException ex) {
logger.error("handleRuntimeException......", ex); logger.error("handleRuntimeException......", ex);
ex.printStackTrace(); ex.printStackTrace();
return new ResponseEntity<ResultModel>(new ResultModel(-999, ex.getMessage()), HttpStatus.EXPECTATION_FAILED); return new ResponseEntity<ResultModel>(new ResultModel(-999, ex.getMessage()), HttpStatus.EXPECTATION_FAILED);
} }*/
@ExceptionHandler(Exception.class) @ExceptionHandler(Exception.class)
public ResponseEntity<ResultModel> handleAllException(Exception ex) { public ResponseEntity<ResultModel> handleAllException(Exception ex) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment