git-svn-id: svn+ssh://10.10.101.21/source/platform/platform-b2b@1355 f3bf4e98-0cf0-11e4-a00c-a99a8b9d557d
@@ -217,6 +217,19 @@ public class SaleNoticeController {
return purchaseNoticeService.findSendsByPageInfo(info, keyword, fromDate, endDate);
}
+ /**
+ * 作为卖家,查看单个发货单
+ *
+ * @param params
+ * @return
+ */
+ @RequestMapping(value = "/sends/{id}", method = RequestMethod.GET)
+ @ResponseBody
+ public SaleSendAll getSaleSendsById(PageParams params, @PathVariable("id") Long id) {
+ logger.log("发货单", "查看单个送货单", "根据Id查找", "", id);
+ return purchaseNoticeService.findSaleSendById(id);
+ }
+
/**
* 作为卖家,查看送货单-已收料
*
@@ -397,4 +397,12 @@ public class PurchaseNoticeServiceImpl implements PurchaseNoticeService {
saleSendItemDao.save(sendItem);
+ @Override
+ public SaleSendAll findSaleSendById(Long id) {
+ SaleSendAll send = saleSendAllDao.findOne(id);
+ if(send == null)
+ throw new IllegalOperatorException("您查找的发货单不存在!");
+ return send;