package com.zd.system.api.chemical;

import com.zd.common.core.constant.ServiceNameConstants;
import com.zd.common.core.domain.R;
import com.zd.system.api.factory.RemoteExamFallbackFactory;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * 化学品管理Feign调用接口
 */
@FeignClient(contextId = "remoteChemicalService", value = ServiceNameConstants.CHEMICAL_SERVICE, fallbackFactory = RemoteExamFallbackFactory.class)
public interface RemoteChemicalService {

    /**
     * 修改 化学品设备管理状态
     */
    @ApiOperation(value = "修改 化学品设备管理状态")
    @PutMapping("/hxpSmartTerminal/update/status")
    R<Boolean> updateStatus(@RequestParam("ipAddress") String ipAddress,@RequestParam("terminalStatus")Integer terminalStatus);

    @ApiOperation(value = "查询实验室化学品临界量风险指标")
    @GetMapping("/hxpChemical/queryCriticaliBySubId")
    R<List<Map<String, Object>>> queryCriticaliBySubId(@RequestParam("subIds") List<Long> subIds);
}
