package com.steerinfo.feign;


import com.steerinfo.framework.controller.RESTfulResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;


@FeignClient(value = "preTrackScale",url = "${openfeign.dil.url}/icore.icp.winform/pass/dil/dil-ams-api/tmswaybillms")
public interface DilFeign {
    /**
     * 计量实绩生成计重实绩
     * @param map {"predictionNo": "202111220015" //预报号}
     * @return
     */
    @PostMapping("addExecuteFByWorkCarActual")
    public RESTfulResult GenerateExecuteFByMeterWorkCarActual(@RequestBody Map<String,Object> map);

    /**
     * 计量预报更改后更改运单(修改)
     * @param map {"predictionNo": "202111220015" //预报号}
     * @return
     */
    @PostMapping("/updateWaybillAndPlanByPreTrackScale")
    public RESTfulResult updateWaybillAndPlanByPreTrackScale(@RequestBody Map<String,Object>map);

    /**
     * 预报作废，作废运单
     * @param map {"predictionNo": "202111220015" //预报号}
     * @return
     */
    @PostMapping("/delWaybillAndPlanByPreTrackScale")
    public RESTfulResult delWaybillAndPlanByPreTrackScale(@RequestBody Map<String,Object> map);
}
