|
|
@@ -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);
|
|
|
+ }
|
|
|
|
|
|
}
|