package com.openhis.web.paymentmanage.controller;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.core.common.core.domain.R;
import com.core.common.enums.TenantOptionDict;
import com.core.common.utils.SecurityUtils;
import com.core.web.util.TenantOptionUtil;
import com.openhis.administration.domain.Practitioner;
import com.openhis.administration.service.IPractitionerService;
import com.openhis.administration.service.impl.PractitionerServiceImpl;
import com.openhis.financial.domain.PaymentRecDetail;
import com.openhis.financial.domain.PaymentReconciliation;
import com.openhis.financial.service.IPaymentRecDetailService;
import com.openhis.financial.service.IPaymentReconciliationService;
import com.openhis.web.paymentmanage.appservice.ThreePartPayService;
import com.openhis.yb.dto.PaymentDetailDto;
import com.openhis.yb.dto.PaymentDto;
import com.openhis.yb.dto.ThreePartPayDto;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.math.BigDecimal;
import java.security.Security;
import java.util.HashMap;
import java.util.Map;

/**
 * 第三方支付管理
 *
 * @author SunJQ
 * @date 2025-03-29
 */
@RestController
@RequestMapping("/three-part/pay")
@Slf4j
@AllArgsConstructor
public class ThreePartPayController {

    @Autowired
    private ThreePartPayService threePartPayService;

    /**
     * 扫码付款
     * @return
     */
    @PostMapping("/pay-for")
    public R<?> payFor(@RequestBody ThreePartPayDto threePartPayDto){
        return threePartPayService.payFor(threePartPayDto);
    }



}
