package thyyxxk.webserver.controller.medicaladvice.chaxunfenxi;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
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 thyyxxk.webserver.entity.ResultVo;
import thyyxxk.webserver.entity.medicaladvice.medicamanage.chaxunfenxi.ArrearagePatientVO;
import thyyxxk.webserver.service.medicaladvice.chaxunfenxi.ArrearagePatientListService;

import java.util.List;
import java.util.Map;

/**
 * @Description:欠费清单
 * @Author:lihong
 * @Date: 2023/6/16
 */
@RestController
@RequestMapping("/chaXunFenXi/arrearagePatient")
public class ArrearagePatientListController {
    @Autowired
    private ArrearagePatientListService service;
    /**
     * @description:查询病人身份
     * @author: lihong
     * @date: 2023/6/16 11:33
     * @param: param
     * @return: thyyxxk.webserver.entity.ResultVo<java.util.Map<java.lang.String,java.lang.Object>>
     **/
    @GetMapping("/queryResponceType")
    public ResultVo<List<Map<String,Object>>> queryResponceType() {
        return service.queryResponceType();
    }

    @PostMapping("/queryArrearagePatientVO")
    public ResultVo<List<ArrearagePatientVO>> queryArrearagePatientVO(@RequestBody ArrearagePatientVO param) {
        return service.queryArrearagePatientVO(param);
    }

}
