Browse Source

批量发货

git-svn-id: svn+ssh://10.10.101.21/source/platform/platform-b2b@741 f3bf4e98-0cf0-11e4-a00c-a99a8b9d557d
suntg 11 years ago
parent
commit
ad5f5723be

+ 16 - 0
src/main/java/com/uas/platform/b2b/controller/SaleNoticeController.java

@@ -150,5 +150,21 @@ public class SaleNoticeController {
 		logger.log("客户送货提醒", "给单个客户送货提醒填写数量并确认发货", send.sendDescription(), null, noticeId);
 		return new ResponseEntity<String>(HttpStatus.OK);
 	}
+	
+	/**
+	 * 作为卖家,针对送货提醒批量发货
+	 * 
+	 * @param noticeId
+	 * @param json
+	 * @return
+	 */
+	@RequestMapping(value = "/sendByBatch", method = RequestMethod.POST)
+	public ResponseEntity<String> sendByBatch(@RequestBody String json) {
+		SaleSend send = FlexJsonUtils.fromJson(json, SaleSend.class);
+		send = purchaseNoticeService.send(send);
+		if(send != null)
+			logger.log("客户送货提醒", "给同一客户多个送货提醒填写数量并确认发货", send.sendDescription(), null, send.getId());
+		return new ResponseEntity<String>(HttpStatus.OK);
+	}
 
 }