如下:
/*******************************provider 模块************************************/
/**
* @author seowen
* @since 2019/6/10
*/
@RestController
@RequestMapping("/orderMain")
public class OrderMainController {
@Autowired
private IOrderMainService orderMainService;
//不能使用 GetMapping
@PostMapping("/selectAllByDel")
public List<OrderMain> selectAllByDel( OrderMainEnum.Del del){
logger.info("进入selectAllByValid 方法");
return null;
}
private Logger logger = LoggerFactory.getLogger(OrderMainController.class);
}
/*******************************FeignClient 模块************************************/
/**
* @author seowen
* @since 2019/6/11
*/
@FeignClient(name = "sxbs-mall3", path="/orderMain",fallback = OrderMainFallBack.class)
public interface OrderMainClient {
/**
* 查询所有 有效订单 即