RemoteCycleCountDetailChildService.java
1.24 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.GetMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestParam;
import java.util.List;
@FeignClient(contextId = "remoteCycleCountDetailChildService", value = ServiceNameConstants.CYCLE_SERVICE, fallbackFactory = RemoteCycleCountDetailChildFallFactory.class)
public interface RemoteCycleCountDetailChildService {
@GetMapping(value = "/cycle/cycleCountDetailChild/getByCodeAndHeaderId")
List<CycleCountDetailChild> getByCodeAndHeaderId(@RequestParam(value = "code") String code, @RequestParam(value = "headerId") Integer headerId);
@PutMapping(value = "/cycle/cycleCountDetailChild/updateStatus")
void updateStatus(@RequestParam(value = "id") Integer id, @RequestParam(value = "status") Integer status);
@PutMapping(value = "/cycle/cycleCountDetailChild/updateBatchById")
boolean updateBatchById(List<CycleCountDetailChild> childList);
}