| | |
| | | public Result<?> inspectionReport(@RequestBody Map<String, Object> param) { |
| | | List<Long> ids = (List<Long>) param.get("ids"); |
| | | String orderType = Objects.nonNull(param.get("orderType"))?param.get("orderType").toString():""; |
| | | String materialProp = Objects.nonNull(param.get("materialProp"))?param.get("materialProp").toString():""; |
| | | if(!OrderType.validateValue(orderType)){ |
| | | throw new ErrorException("批量报检失败,非法的销售订单分类枚举"); |
| | | } |
| | | return Result.success(rawMaterialOrderService.inspectionReport(ids,orderType)); |
| | | return Result.success(rawMaterialOrderService.inspectionReport(ids,orderType,materialProp)); |
| | | } |
| | | |
| | | /** |