package com.openhis.web.adjustprice.controller;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

import org.springframework.web.bind.annotation.*;

import com.core.common.core.domain.R;
import com.openhis.web.adjustprice.appservice.ISupplyService;
import com.openhis.web.datadictionary.dto.MedicationSearchParam;

/**
 * @ClassName ChargePriceController
 * @Description 调价修改药品、耗材、诊疗、挂号接口类
 * @Author raymond
 * @Date 2025/10/14 16:56
 * @Version 1.0
 **/
@RestController
@RequestMapping("/change/price")
public class ChangePriceController {
    @Resource
    private ISupplyService supplyService;

    /**
     * Desc: 查询所有供应商集合
     * 
     * @param
     * @Author raymond
     * @Date 16:55 2025/10/15
     * @return com.core.common.core.domain.R<?>
     **/
    @GetMapping(value = "searchAllSupply")
    public R<?> searchAllSupply() {
        return R.ok(this.supplyService.searchAllSupplyList());
    }

    /**
     * Desc: 根据供应商和药品名称加载要修改的药品数据
     * 
     * @Author raymond
     * @Date 08:47 2025/10/15
     * @return com.core.common.core.domain.R<?>
     **/
    @PostMapping(value = "searchMedicineListToPage")
    public R<?> searchMedicineListToPage() {
        return R.ok();
    }

    /**
     * Desc:
     * 
     * @param medicationSearchParam
     * @param searchKey
     * @param pageNo
     * @param pageSize
     * @param request
     * @Author raymond
     * @Date 13:41 2025/10/15
     * @return com.core.common.core.domain.R<?>
     **/
    @PostMapping(value = "searchConsumablesListToPage")
    public R<?> searchConsumablesListToPage(MedicationSearchParam medicationSearchParam,
        @RequestParam(value = "searchKey", defaultValue = "") String searchKey,
        @RequestParam(value = "pageNo", defaultValue = "1") Integer pageNo,
        @RequestParam(value = "pageSize", defaultValue = "10") Integer pageSize, HttpServletRequest request) {

        return null;
    }

    /**
     * Desc:
     * 
     * @param medicationSearchParam
     * @param searchKey
     * @param pageNo
     * @param pageSize
     * @param request
     * @Author raymond
     * @Date 13:41 2025/10/15
     * @return com.core.common.core.domain.R<?>
     **/
    @PostMapping(value = "searchDiagnosisListToPage")
    public R<?> searchDiagnosisListToPage(MedicationSearchParam medicationSearchParam,
        @RequestParam(value = "searchKey", defaultValue = "") String searchKey,
        @RequestParam(value = "pageNo", defaultValue = "1") Integer pageNo,
        @RequestParam(value = "pageSize", defaultValue = "10") Integer pageSize, HttpServletRequest request) {

        return null;
    }

    /**
     * Desc:
     * 
     * @param medicationSearchParam
     * @param searchKey
     * @param pageNo
     * @param pageSize
     * @param request
     * @Author raymond
     * @Date 13:41 2025/10/15
     * @return com.core.common.core.domain.R<?>
     **/
    @PostMapping(value = "searchHealthCareListToPage")
    public R<?> searchRegisterListToPage(MedicationSearchParam medicationSearchParam,
        @RequestParam(value = "searchKey", defaultValue = "") String searchKey,
        @RequestParam(value = "pageNo", defaultValue = "1") Integer pageNo,
        @RequestParam(value = "pageSize", defaultValue = "10") Integer pageSize, HttpServletRequest request) {

        return null;
    }
}
