| | |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/system/order") |
| | | //@DataSource(DataSourceType.SQLSERVER) |
| | | public class ServiceOrderController extends BaseController { |
| | | @Autowired |
| | | private IServiceOrderService serviceOrderService; |
| | |
| | | |
| | | |
| | | //支付信息 |
| | | // List<PayInfo> payInfoList = payInfoService.selectPayInfoByServiceOrdIDDt(orderDetail.getServiceOrdID()); //1016302788 |
| | | List<PayInfo> payInfoList = payInfoService.selectPayInfoByServiceOrdIDDt("1016302788"); |
| | | // List<PayInfo> payInfoList = payInfoService.selectPayInfoByServiceOrdIDDt(orderDetail.getServiceOrdID()); //正式使用 |
| | | List<PayInfo> payInfoList = payInfoService.selectPayInfoByServiceOrdIDDt("1016302788");//测试使用 |
| | | |
| | | //其他信息 |
| | | Map<String, Object> otherInfo = new HashMap<>(); |
| | | //评价 |
| | | otherInfo.put("serviceOrdVisit", Objects.toString(mingServiceOrder.getServiceOrdVisit(), "-")); |
| | | |
| | | //知情同意书 |
| | | // List<String> imageUrls = dispatchOrdService.selectImageUrlsByDOrdIDDt(orderDetail.getServiceOrdID()); //正式使用 |
| | | List<String> imageUrls = new ArrayList<>();//测试使用 |
| | | imageUrls.add("https://sys.966120.com.cn/upload/202505/3016127678_3VhEv_VVql2K6eM9tS9uXgKv8fm7vaKtrSFCiP0SraTgz2qe1isgvIuUrqSNv-XgEvdC5kFUxeyrn_wz8Mfc2Sg.jpg"); |
| | | imageUrls.add("https://sys.966120.com.cn/upload/202505/3016127678_3cDOPpqc_fzEJ-dHz8lq5aIx3tsnmEtossC6F5VCi2vj6sBwkuzOx4g1RcsWnQ3XNua7COADksYI1rHnbizccOw.jpg"); |
| | | otherInfo.put("imageUrls", imageUrls); |
| | | |
| | | //发票获取 |
| | | Map<String, Object> invoiceInfo = payInfoService.selectLatestInvoiceInfo("1016302788"); |
| | | String invoiceStatus = ""; |
| | | if (invoiceInfo != null && invoiceInfo.get("AuditStatus") != null) { |
| | | switch (String.valueOf(invoiceInfo.get("AuditStatus"))) { |
| | | case "0": |
| | | invoiceStatus = "未处理"; |
| | | break; |
| | | case "1": |
| | | invoiceStatus = "延后处理"; |
| | | break; |
| | | case "3": |
| | | invoiceStatus = "已开票"; |
| | | break; |
| | | case "4": |
| | | invoiceStatus = "取消申请"; |
| | | break; |
| | | } |
| | | otherInfo.put("invoiceStatus",invoiceInfo.get("InvoiceMakeout")+"-"+invoiceStatus); |
| | | } |
| | | |
| | | |
| | | |
| | | data.put("orderInfo", orderInfo); |
| | | data.put("patientInfo", patientInfo); |
| | |
| | | data.put("medicalInfo", medicalInfo); // 暂时为空 |
| | | data.put("dispatchInfo", dispatchInfo); // 更新为包含人员信息的dispatchInfo |
| | | data.put("paymentInfo", payInfoList); // 暂时为空 |
| | | data.put("operationInfo", new ArrayList<>()); // 暂时为空 |
| | | data.put("otherInfo", otherInfo); |
| | | |
| | | |
| | | return AjaxResult.success(data); |
| | | } |