package com.jwipc.sys.client.impl;

import com.alibaba.fastjson2.JSON;
import com.jwipc.page.PageView;
import com.jwipc.sys.client.ContractClient;
import com.jwipc.sys.model.param.ChoseSupplierListParam;
import com.jwipc.sys.service.ICompanyService;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 功能描述:
 *
 * @Author: zx
 * @Date: 2024/3/8 0008 14:26
 */
@Service
@RequiredArgsConstructor
public class ContractClientImpl implements ContractClient {

    @Autowired
    ICompanyService companyService;

    public PageView getSupplierList(String param) {
        ChoseSupplierListParam choseSupplierListParam = JSON.parseObject(param,ChoseSupplierListParam.class);
        return companyService.getSupplierList(choseSupplierListParam);
    }

}
