package thyyxxk.webserver.controller.datamodify;


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.datamodify.ZyDetailCharge;
import thyyxxk.webserver.service.datamodify.ZyChargeFeeModifyService;

import java.util.Map;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author 肖蟾
 * @since 2021-03-13
 */
@RestController
@RequestMapping("/zyDetailCharge")
public class ZyChargeFeeModifyController {

    private final ZyChargeFeeModifyService zy;

    public ZyChargeFeeModifyController(ZyChargeFeeModifyService zy) {
        this.zy = zy;
    }

    @PostMapping("/queryHospitalizationExpenses")
    public ResultVo<Map<String, Object>> queryHospitalizationExpenses(@RequestBody ZyDetailCharge param) {
        return zy.queryHospitalizationExpenses(param);
    }

    @PostMapping("/totalModify")
    public ResultVo<Boolean> totalModify(@RequestBody ZyDetailCharge param) {
        return zy.totalModify(param);
    }
}

