PushOrderRequest.java 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270
  1. package com.github.yxyl120.sdk.request;
  2. import com.github.yxyl120.sdk.annotation.ApiFieldProperty;
  3. import com.github.yxyl120.sdk.domain.DrugInfo;
  4. import com.github.yxyl120.sdk.domain.PatientInfo;
  5. import com.github.yxyl120.sdk.response.PushOrderResponse;
  6. import java.util.Date;
  7. import java.util.List;
  8. import java.util.Map;
  9. import java.util.TreeMap;
  10. public class PushOrderRequest implements YxRequest<PushOrderResponse>{
  11. /**
  12. * 合作方订单id
  13. */
  14. @ApiFieldProperty(value = "合作方订单id", required = true)
  15. private String orderIdThird;
  16. /**
  17. * 合作方问诊单号
  18. */
  19. @ApiFieldProperty(value = "合作方问诊单号", required = true)
  20. private String diagnosisSnThird;
  21. /**
  22. * 处方类型 1 图文 | 2 视频
  23. */
  24. @ApiFieldProperty(value = "处方类型 1 图文 | 2 视频", required = true)
  25. private Integer type;
  26. /**
  27. * 付费类型 0 自费 1 公费 2 医保 3 其他
  28. */
  29. @ApiFieldProperty(value = "付费类型 0 自费 1 公费 2 医保 3 其他,默认为:0-自费")
  30. private Integer paymentType;
  31. /**
  32. * 付费金额
  33. */
  34. @ApiFieldProperty("付费金额")
  35. private Float paymentAmount;
  36. /**
  37. * 处方药类型(01西药、02中药)
  38. */
  39. @ApiFieldProperty(value = "处方药类型(01西药、02中药)", required = true)
  40. private String rpType;
  41. /**
  42. * 患者详情
  43. */
  44. @ApiFieldProperty(value = "患者详情", required = true,validClass = true)
  45. private PatientInfo patientInfo;
  46. /**
  47. * 药品列表
  48. */
  49. @ApiFieldProperty(value = "药品列表", required = true,validClass = true)
  50. private List<DrugInfo> drugList;
  51. /**
  52. * 药店ID
  53. */
  54. @ApiFieldProperty("药店ID")
  55. private String storeId;
  56. /**
  57. * 药店名称
  58. */
  59. @ApiFieldProperty("药店名称")
  60. private String storeName;
  61. /**
  62. * 诊断
  63. */
  64. @ApiFieldProperty("诊断")
  65. private List<String> diagnosis;
  66. /**
  67. * 凭证图片 URL json格式 ["http://1.jpg", "http://2.jpg"]
  68. */
  69. @ApiFieldProperty("凭证图片 URL Array格式 [\"http://1.jpg\", \"http://2.jpg\"]")
  70. private List<String> voucherImg;
  71. /**
  72. * 是否CA签名 0 否 | 1 是
  73. */
  74. @ApiFieldProperty("是否需要CA电子签名pdf文件,此功能需要药店相关的药师先进行电子签章注册并授权")
  75. private Integer signPDF;
  76. @ApiFieldProperty("药师id使用模式:0-匹配模式,id不存在时将以一线平台药师代替,1-严格模式,id不可用时将提交失败")
  77. private int pharmacistModel;
  78. @ApiFieldProperty("在一线平台注册的审核药师id")
  79. private Integer pharmacistId;
  80. @ApiFieldProperty("在一线平台注册的配药药师id")
  81. private Integer deploymentPharmacistId;
  82. @ApiFieldProperty("在一线平台注册的发药药师id")
  83. private Integer dispensingPharmacistId;
  84. /**
  85. * 创建时间
  86. */
  87. @ApiFieldProperty(value = "合作方订单创建时间", required = true)
  88. private Date createTime;
  89. @Override
  90. public String getApi() {
  91. return "/api/open/receiveOrder";
  92. }
  93. @Override
  94. public Map<String, Object> getQueryParam() {
  95. TreeMap<String, Object> treeMap = new TreeMap<>();
  96. treeMap.put("encrypted","AES");
  97. return treeMap;
  98. }
  99. @Override
  100. public Class<PushOrderResponse> getResponseClass() {
  101. return PushOrderResponse.class;
  102. }
  103. public String getOrderIdThird() {
  104. return orderIdThird;
  105. }
  106. public void setOrderIdThird(String orderIdThird) {
  107. this.orderIdThird = orderIdThird;
  108. }
  109. public String getDiagnosisSnThird() {
  110. return diagnosisSnThird;
  111. }
  112. public void setDiagnosisSnThird(String diagnosisSnThird) {
  113. this.diagnosisSnThird = diagnosisSnThird;
  114. }
  115. public Integer getType() {
  116. return type;
  117. }
  118. public void setType(Integer type) {
  119. this.type = type;
  120. }
  121. public Integer getPaymentType() {
  122. return paymentType;
  123. }
  124. public void setPaymentType(Integer paymentType) {
  125. this.paymentType = paymentType;
  126. }
  127. public Float getPaymentAmount() {
  128. return paymentAmount;
  129. }
  130. public void setPaymentAmount(Float paymentAmount) {
  131. this.paymentAmount = paymentAmount;
  132. }
  133. public String getRpType() {
  134. return rpType;
  135. }
  136. public void setRpType(String rpType) {
  137. this.rpType = rpType;
  138. }
  139. public PatientInfo getPatientInfo() {
  140. return patientInfo;
  141. }
  142. public void setPatientInfo(PatientInfo patientInfo) {
  143. this.patientInfo = patientInfo;
  144. }
  145. public List<DrugInfo> getDrugList() {
  146. return drugList;
  147. }
  148. public void setDrugList(List<DrugInfo> drugList) {
  149. this.drugList = drugList;
  150. }
  151. public String getStoreId() {
  152. return storeId;
  153. }
  154. public void setStoreId(String storeId) {
  155. this.storeId = storeId;
  156. }
  157. public String getStoreName() {
  158. return storeName;
  159. }
  160. public void setStoreName(String storeName) {
  161. this.storeName = storeName;
  162. }
  163. public List<String> getDiagnosis() {
  164. return diagnosis;
  165. }
  166. public void setDiagnosis(List<String> diagnosis) {
  167. this.diagnosis = diagnosis;
  168. }
  169. public List<String> getVoucherImg() {
  170. return voucherImg;
  171. }
  172. public void setVoucherImg(List<String> voucherImg) {
  173. this.voucherImg = voucherImg;
  174. }
  175. public Integer getSignPDF() {
  176. return signPDF;
  177. }
  178. public void setSignPDF(Integer signPDF) {
  179. this.signPDF = signPDF;
  180. }
  181. public Integer getPharmacistModel() {
  182. return pharmacistModel;
  183. }
  184. public void setPharmacistModel(Integer pharmacistModel) {
  185. this.pharmacistModel = pharmacistModel;
  186. }
  187. public Integer getPharmacistId() {
  188. return pharmacistId;
  189. }
  190. public void setPharmacistId(Integer pharmacistId) {
  191. this.pharmacistId = pharmacistId;
  192. }
  193. public Integer getDeploymentPharmacistId() {
  194. return deploymentPharmacistId;
  195. }
  196. public void setDeploymentPharmacistId(Integer deploymentPharmacistId) {
  197. this.deploymentPharmacistId = deploymentPharmacistId;
  198. }
  199. public Integer getDispensingPharmacistId() {
  200. return dispensingPharmacistId;
  201. }
  202. public void setDispensingPharmacistId(Integer dispensingPharmacistId) {
  203. this.dispensingPharmacistId = dispensingPharmacistId;
  204. }
  205. public Date getCreateTime() {
  206. return createTime;
  207. }
  208. public void setCreateTime(Date createTime) {
  209. this.createTime = createTime;
  210. }
  211. }