提交 ff097c74 authored 作者: aiqingguo's avatar aiqingguo

线路统计

上级 583a67ac
...@@ -6,7 +6,7 @@ import org.springframework.web.bind.annotation.RequestMapping; ...@@ -6,7 +6,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RequestParam;
import javax.validation.constraints.NotBlank; import javax.validation.constraints.NotNull;
@FeignClient(name = "clx-performance") @FeignClient(name = "clx-performance")
public interface OrderChildFeign { public interface OrderChildFeign {
...@@ -16,7 +16,7 @@ public interface OrderChildFeign { ...@@ -16,7 +16,7 @@ public interface OrderChildFeign {
* 线路运单统计 * 线路运单统计
*/ */
@RequestMapping(value = "clx-performance/feign/orderChild/lineStatistics", method = RequestMethod.GET) @RequestMapping(value = "clx-performance/feign/orderChild/lineStatistics", method = RequestMethod.GET)
OrderChildLineStatisticsVO lineStatistics(@RequestParam @NotBlank(message = "发货地址不可为空") Integer sendSystemAddressId, OrderChildLineStatisticsVO lineStatistics(@RequestParam @NotNull(message = "发货地址不可为空") Integer sendSystemAddressId,
@RequestParam @NotBlank(message = "收货货地址不可为空") Integer receiveSystemAddressId); @RequestParam @NotNull(message = "收货货地址不可为空") Integer receiveSystemAddressId);
} }
...@@ -12,7 +12,6 @@ import lombok.AllArgsConstructor; ...@@ -12,7 +12,6 @@ import lombok.AllArgsConstructor;
import org.springframework.validation.annotation.Validated; import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull; import javax.validation.constraints.NotNull;
import java.util.List; import java.util.List;
...@@ -52,8 +51,8 @@ public class OrderChildFeignController { ...@@ -52,8 +51,8 @@ public class OrderChildFeignController {
@ApiOperation(value = "线路运单统计", notes = "<br>By:艾庆国") @ApiOperation(value = "线路运单统计", notes = "<br>By:艾庆国")
@RequestMapping(value = "/lineStatistics", method = RequestMethod.GET) @RequestMapping(value = "/lineStatistics", method = RequestMethod.GET)
Result<OrderChildLineStatisticsVO> lineStatistics(@RequestParam @NotBlank(message = "发货地址不可为空") Integer sendSystemAddressId, Result<OrderChildLineStatisticsVO> lineStatistics(@RequestParam @NotNull(message = "发货地址不可为空") Integer sendSystemAddressId,
@RequestParam @NotBlank(message = "收货货地址不可为空") Integer receiveSystemAddressId){ @RequestParam @NotNull(message = "收货货地址不可为空") Integer receiveSystemAddressId){
return Result.ok(feignOrderChildService.getLineStatistics(sendSystemAddressId, receiveSystemAddressId)); return Result.ok(feignOrderChildService.getLineStatistics(sendSystemAddressId, receiveSystemAddressId));
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论