package cn.ezhizao.project.business.productionCompany.controller;

import cn.ezhizao.framework.lock.DistributionLock;
import cn.ezhizao.framework.lock.LockKey;
import cn.ezhizao.framework.web.controller.BaseController;
import cn.ezhizao.framework.web.page.TableDataInfo;
import cn.ezhizao.project.business.productionCompany.domain.BizProductionCompany;
import cn.ezhizao.project.business.productionCompany.service.IBizProductionCompanyService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;
import java.util.UUID;

/**
 * companyController
 *
 * @author ezhizao
 * @date 2023-10-16
 */
@RestController
@RequestMapping("/business/ProductionCompany")
public class BizProductionCompanyController extends BaseController {
    @Resource
    private IBizProductionCompanyService bizCompanyService;

    /**
     * 查询company列表
     */
    @GetMapping("/list")
    public TableDataInfo list(BizProductionCompany bizCompany) throws NoSuchFieldException, IllegalAccessException {
        setTenantId(bizCompany);
        startPage();
        startOrderBy();
        List<BizProductionCompany> list = bizCompanyService.getList(bizCompany);
        return getDataTable(list);
    }

}
