| | |
| | | @PostMapping("/inspectionReport") |
| | | public Result<?> inspectionReport(@RequestBody Map<String, Object> param) { |
| | | List<Long> ids = (List<Long>) param.get("ids"); |
| | | String orderType = Objects.nonNull(param.get("ids"))?param.get("ids").toString():""; |
| | | String orderType = Objects.nonNull(param.get("orderType"))?param.get("orderType").toString():""; |
| | | if(!OrderType.validateValue(orderType)){ |
| | | throw new ErrorException("批量报检失败,非法的销售订单分类枚举"); |
| | | } |
| | |
| | | return Result.success(rawMaterialOrderService.confirmSplitOrder(orderSplitDTO)); |
| | | } |
| | | |
| | | /** |
| | | * 根据ifsId查询下单数量 |
| | | */ |
| | | @ApiOperation(value = "根据ifsId查询下单数量") |
| | | @GetMapping("/getOrderCountByIfsId/{ifsId}") |
| | | public Result getOrderCountByIfsId(@PathVariable("ifsId") Long ifsId){ |
| | | return Result.success(rawMaterialOrderService.getOrderCountByIfsId(ifsId)); |
| | | } |
| | | |
| | | } |