| | |
| | | |
| | | @Autowired |
| | | private MobileService mobileService; |
| | | |
| | | |
| | | /** |
| | | * PDA用户登录 |
| | | * @param param |
| | |
| | | |
| | | /** |
| | | * 标准扫码收货信息 |
| | | * @param barcode |
| | | * @param trackCode |
| | | * @return |
| | | */ |
| | | @PreAuthorize("hasAuthority('manager:asnOrder:list')") |
| | | @GetMapping("/orders/{barcode}") |
| | | @GetMapping("/orders/{trackCode}") |
| | | @ApiOperation("标准扫码收货") |
| | | public R getOrderBybarcode(@PathVariable String barcode) { |
| | | if (StringUtils.isEmpty(barcode)) { |
| | | public R getOrderBybarcode(@PathVariable String trackCode) { |
| | | if (StringUtils.isEmpty(trackCode)) { |
| | | throw new CoolException("条码不能为空!!"); |
| | | } |
| | | return mobileService.getOrderByCode(barcode); |
| | | return mobileService.getOrderByCode(trackCode); |
| | | } |
| | | |
| | | /** |
| | |
| | | if (Objects.isNull(params)) { |
| | | throw new CoolException("参数不能为空!!"); |
| | | } |
| | | |
| | | return mobileService.otherReceipt(params); |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | |
| | | @PreAuthorize("hasAuthority('manager:asnOrder:list')") |
| | | @GetMapping("/dynamic/fields") |
| | | @ApiOperation("获取动态字段") |
| | | public R getDynamicFields() { |
| | | return R.ok(mobileService.getDynamicFields()); |
| | | } |
| | | |
| | | |
| | | } |