IDatabusAdapt.java 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. /**
  2. * Copyright 2017-2020 吴学文 and java110 team.
  3. * <p>
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. * <p>
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. * <p>
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. package com.java110.job.adapt;
  17. import com.alibaba.fastjson.JSONObject;
  18. import com.java110.dto.businessDatabus.CustomBusinessDatabusDto;
  19. import com.java110.dto.machine.CarInoutDto;
  20. import com.java110.dto.machine.MachineDto;
  21. import com.java110.dto.tempCarFeeConfig.TempCarPayOrderDto;
  22. import com.java110.entity.order.Business;
  23. import com.java110.po.machine.MachineRecordPo;
  24. import com.java110.vo.ResultVo;
  25. import java.util.List;
  26. /**
  27. * databus 适配器
  28. * <p>
  29. * add by wuxw 2020-12-07
  30. */
  31. public interface IDatabusAdapt {
  32. /**
  33. * 业务处理
  34. *
  35. * @param business 当前处理业务
  36. * @param businesses 所有业务信息
  37. */
  38. public void execute(Business business, List<Business> businesses) throws Exception;
  39. /**
  40. * 开门接口
  41. *
  42. * @param paramIn 业务信息
  43. */
  44. ResultVo openDoor(JSONObject paramIn);
  45. /**
  46. * 开门接口
  47. *
  48. * @param paramIn 业务信息
  49. */
  50. ResultVo closeDoor(JSONObject paramIn);
  51. ResultVo getQRcode(JSONObject reqJson);
  52. /**
  53. * 重启设备
  54. *
  55. * @param reqJson {
  56. * "machineCode":""
  57. * }
  58. */
  59. ResultVo restartMachine(JSONObject reqJson);
  60. ResultVo reSendToIot(JSONObject reqJson);
  61. ResultVo getTempCarFeeOrder(TempCarPayOrderDto tempCarPayOrderDto);
  62. ResultVo notifyTempCarFeeOrder(TempCarPayOrderDto tempCarPayOrderDto);
  63. /**
  64. * 手工 送数据
  65. * @param customBusinessDatabusDto
  66. */
  67. void customExchange(CustomBusinessDatabusDto customBusinessDatabusDto);
  68. ResultVo customCarInOut(JSONObject reqJson);
  69. ResultVo payVideo(MachineDto machineDto);
  70. ResultVo heartbeatVideo(JSONObject reqJson);
  71. ResultVo updateCarInoutCarNum(CarInoutDto carInoutDto);
  72. }