Commit eff22bf1 by 刘鑫

test(BEAN 接口联调): 增加接口测试逻辑

1 parent 8d4244f9
...@@ -100,23 +100,29 @@ public class BeanRemoteServiceImpl { ...@@ -100,23 +100,29 @@ public class BeanRemoteServiceImpl {
Rescheduled rescheduled = new Rescheduled(); Rescheduled rescheduled = new Rescheduled();
rescheduled.setRisId("1000000302"); rescheduled.setRisId("1000002220");
rescheduled.setRescheduledDate(System.currentTimeMillis()); rescheduled.setRescheduledDate(System.currentTimeMillis());
rescheduled.setReasonForRescheduling("reason"); Reason reason = new Reason();
reason.setOneLevel("reason1");
reason.setTwoLevel("reason2");
reason.setThreeLevel("reason3");
rescheduled.setReasonForRescheduling(reason);
rescheduled.setRemarksForRescheduling("remark"); rescheduled.setRemarksForRescheduling("remark");
rescheduled.setReassignment(Boolean.TRUE); rescheduled.setReassignment(Boolean.FALSE);
rescheduled.setRequireApprove(Boolean.FALSE); rescheduled.setRequireApprove(Boolean.FALSE);
rescheduled.setInitiatorOfRescheduling("11111"); rescheduled.setInitiatorOfRescheduling("11111");
log.info("-----请求参数:{}", JsonUtil.toJson(rescheduled));
BeanR<?> beanRq = beanRemoteService.orderRescheduled(accessToken, rescheduled); BeanR<?> beanRq = beanRemoteService.orderRescheduled(accessToken, rescheduled);
log.info("[服务工单改约]【/api/openapi/task/rescheduled 】返回值-------------------->{}", JsonUtil.toJson(beanRq)); log.info("[服务工单改约]【/api/openapi/task/rescheduled 】返回值-------------------->{}", JsonUtil.toJson(beanRq));
OrderCancel orderCancel = new OrderCancel(); OrderCancel orderCancel = new OrderCancel();
orderCancel.setRisId("S20230615000001"); orderCancel.setRisId("1000002248");
orderCancel.setCancellationReason("example_reason"); orderCancel.setCancellationReason(reason);
orderCancel.setCancelNote("example_note"); orderCancel.setCancelNote("example_note");
orderCancel.setCancelStartTime(1678594800000L); orderCancel.setCancelStartTime(System.currentTimeMillis());
orderCancel.setCancelInitiator("example_initiator"); orderCancel.setCancelInitiator("example_initiator");
log.info("-----请求参数:{}", JsonUtil.toJson(orderCancel));
BeanR<?> beanR1 = beanRemoteService.orderTaskCancel(accessToken, orderCancel); BeanR<?> beanR1 = beanRemoteService.orderTaskCancel(accessToken, orderCancel);
log.info("[服务工单取消]【/api/openapi/task/cancel】返回值-------------------->{}", JsonUtil.toJson(beanR1)); log.info("[服务工单取消]【/api/openapi/task/cancel】返回值-------------------->{}", JsonUtil.toJson(beanR1));
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!