package com.yh.saas.platform.controller;

import com.winsea.svc.base.base.entity.CommonParameterCompany;
import com.yh.saas.platform.service.CommonParameterCompanyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 公司变量 前端控制器
 * </p>
 *
 * @author Wangxiangshun
 * @since 2021-02-19
 */
@RestController
@RequestMapping("/compParameter")
public class CommonParameterCompanyController {

    @Autowired
    private CommonParameterCompanyService commonParameterCompanyService;

    /**
     * 查询公司常量
     * @return
     */
    @GetMapping("/query/selectList")
    public List<CommonParameterCompany> getListCommon(String constCode,String businessCode) {
        return commonParameterCompanyService.selectListParam(constCode,businessCode);
    }

}
