|
|
@@ -171,14 +171,19 @@ public class AppBankController extends BaseController {
|
|
|
return ResponseDTO.success(detailDto);
|
|
|
}
|
|
|
@RequestMapping("/order/search")
|
|
|
- public ResponseDTO<?> orderSearch( @RequestBody OrderVo order ) {
|
|
|
+ public ResponseDTO<?> orderSearch(@RequestBody String json) {
|
|
|
|
|
|
- if (order == null) {
|
|
|
- return ResponseDTO.error(ResultCode.PARAM_IS_BLANK);
|
|
|
- }
|
|
|
- List<OrderDto> orders = this.orderService.getOrderByContion(order);
|
|
|
-
|
|
|
- return ResponseDTO.success(orders);
|
|
|
+ JSONObject jsonObj = JSONObject.parseObject(json);
|
|
|
+ String phone = jsonObj.getString("phone");
|
|
|
+ String status = jsonObj.getString("status");
|
|
|
+ String contractNo = jsonObj.getString("contractNo");
|
|
|
+ Integer startIndex = 1;
|
|
|
+
|
|
|
+ Integer size = Integer.MAX_VALUE;
|
|
|
+
|
|
|
+ List<OrderEntity> list = borrowerService.getOrderList(contractNo,phone, status, startIndex, size);
|
|
|
+
|
|
|
+ return ResponseDTO.success(list);
|
|
|
}
|
|
|
/**
|
|
|
* 提交订单
|
|
|
@@ -286,11 +291,12 @@ public class AppBankController extends BaseController {
|
|
|
JSONObject jsonObj = JSONObject.parseObject(json);
|
|
|
String phone = jsonObj.getString("phone");
|
|
|
String status = jsonObj.getString("status");
|
|
|
+ String contractNo = jsonObj.getString("contractNo");
|
|
|
Integer startIndex = 1;
|
|
|
|
|
|
Integer size = Integer.MAX_VALUE;
|
|
|
|
|
|
- List<OrderEntity> list = borrowerService.getOrderList(phone, status, startIndex, size);
|
|
|
+ List<OrderEntity> list = borrowerService.getOrderList(contractNo,phone, status, startIndex, size);
|
|
|
|
|
|
return ResponseDTO.success(list);
|
|
|
}
|