package com.ruoyi.web.modules.trading.controller;

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.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.web.modules.trading.service.IAppDistributorYakService;

/**
 * 承销商小程序牦牛信息。
 */
@RestController
@RequestMapping("/app/distributor/yak")
public class BizAppDistributorYakController extends BaseController
{
    @Autowired
    private IAppDistributorYakService appDistributorYakService;

    /**
     * 牦牛基本信息：入场隔离 + 隔离期正常巡查列表。
     */
    @GetMapping("/basic")
    public AjaxResult basic(
            @RequestParam("supplierId") Long supplierId,
            @RequestParam("earTag") String earTag)
    {
        return success(appDistributorYakService.selectYakBasic(supplierId, earTag));
    }
}
