|
@@ -452,5 +452,22 @@ public class DealerOrderController extends BladeController {
|
|
|
}
|
|
}
|
|
|
return R.data(orderItemsService.lotNo(itemId,storageId,tradeType));
|
|
return R.data(orderItemsService.lotNo(itemId,storageId,tradeType));
|
|
|
}
|
|
}
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 经销商获取历史采购或者销售价格
|
|
|
|
|
+ * @param itemId 商品id
|
|
|
|
|
+ * @param typeId 是否获取最新价格 为空是 不为空为否
|
|
|
|
|
+ * @param billType 采购价格或者销售价格
|
|
|
|
|
+ * @param tradeType 贸易类型 国内 进口 出口 经销商
|
|
|
|
|
+ * @return
|
|
|
|
|
+ */
|
|
|
|
|
+ @GetMapping("/historyPrice")
|
|
|
|
|
+ @ApiOperationSupport(order = 14)
|
|
|
|
|
+ @ApiOperation(value = "经销商获取历史采购或者销售价格", notes = "传入order")
|
|
|
|
|
+ public R<List<Map<String,Object>>> historyPrice(@RequestParam(value = "itemId") Long itemId,
|
|
|
|
|
+ @RequestParam(value = "typeId", required = false) Long typeId,
|
|
|
|
|
+ @RequestParam(value = "billType") String billType,
|
|
|
|
|
+ @RequestParam(value = "tradeType") String tradeType) {
|
|
|
|
|
+ return R.data(orderItemsService.historyPrice(itemId,typeId,billType,tradeType));
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
}
|
|
}
|