package com.zksy.web.controller.basicData;

import com.zksy.basicData.service.InformationService;
import com.zksy.common.annotation.Log;
import com.zksy.common.core.controller.BaseController;
import com.zksy.common.core.domain.AjaxResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
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;

/**
 * 经营异常名录信息Controller
 *
 * @author nahida
 * @date 2024-11-04
 */
@RestController
@RequestMapping("/basicData/information")
@Api(tags = "企业汇总", description = "企业汇总desc")
public class InformationController extends BaseController{

    @Autowired
    private InformationService service;
    @Log(title = "企业信用报告")
    @GetMapping("/report")
    @ApiOperation(value = "企业信用报告", notes = "企业信用报告")
    public AjaxResult report(String creditCode) {
//        creditCode = "91431227MA4LY5GC2Y";
        return service.queryByCreditCode(creditCode);
    }

}