* 通过产品编号,查出产品名称、产品价格、PV值、BV值
*/
@RequestMapping(value = "/loadTProductOrder", method = RequestMethod.POST)
@ResponseBody
public TProductDetail loadTProductOrder(Long id){
TProductDetail order = tDetailService.findEntity(id);
TDistributor dist = tDistributorService.findByProperty("distributorCode", order.getDistributorCode()).get(0);
order.setDistributorName(dist.getDistributorName());
Long shopId = dist.getShopId();
dist = null;
TShopInfo shop = tShopInfoService.findEntity(shopId);
order.setShopCode(shop.getShopCode());
order.setShopName(shop.getShopName());
shop = null;
TProductInfo product = tProductInfoService.findByProperty("productCode", order.getProductCode()).get(0);
order.setProductName(product.getProductName());
return order;
}