RemoteCycleCountDetailChildService.java
1.13 KB
package com.huaheng.cycle.api;
import com.huaheng.common.core.constant.ServiceNameConstants;
import com.huaheng.cycle.api.domain.CycleCountDetailChild;
import com.huaheng.cycle.api.factory.RemoteCycleCountDetailChildFallFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;
import java.util.List;
@FeignClient(contextId = "remoteCycleCountDetailChildService", value = ServiceNameConstants.CYCLE_SERVICE, fallbackFactory = RemoteCycleCountDetailChildFallFactory.class)
public interface RemoteCycleCountDetailChildService {
@PostMapping(value = "/cycleCountRegister/getByHeaderCodeAndDetailId")
List<CycleCountDetailChild> getByHeaderCodeAndDetailId(@RequestParam(value = "headerCode") String headerCode, @RequestParam(value = "detailId") Integer detailId);
@PostMapping(value = "/cycleCountRegister/updateStatus")
boolean updateStatus(@RequestParam(value = "id") Integer id, @RequestParam(value = "status") Integer status);
@PostMapping(value = "/cycleCountRegister/updateBatchById")
boolean updateBatchById(@RequestBody List<CycleCountDetailChild> childList);
}