|
|
@@ -24,7 +24,6 @@ import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
|
|
|
import java.io.UnsupportedEncodingException;
|
|
|
import java.net.URLDecoder;
|
|
|
-import java.util.ArrayList;
|
|
|
import java.util.List;
|
|
|
|
|
|
/**
|
|
|
@@ -55,12 +54,13 @@ public class PurchaseNotifyController {
|
|
|
*/
|
|
|
@RequestMapping(method = RequestMethod.POST)
|
|
|
@ResponseBody
|
|
|
- public void saveNotifies(@RequestParam("data") String data) throws UnsupportedEncodingException {
|
|
|
+ public List<PurchaseNotify> saveNotifies(@RequestParam("data") String data) throws UnsupportedEncodingException {
|
|
|
String jsonStr = URLDecoder.decode(data, "UTF-8");
|
|
|
List<PurchaseNotify> notifies = FlexJsonUtils.fromJsonArray(jsonStr, PurchaseNotify.class);
|
|
|
- List<PurchaseNotice> lists = purchaseNotifyService.convertPurchaseNotify(notifies);
|
|
|
- purchaseNoticeService.save(lists);
|
|
|
+ List<PurchaseNotice> noticeList = purchaseNotifyService.convertPurchaseNotify(notifies);
|
|
|
+ noticeList = purchaseNoticeService.save(noticeList);
|
|
|
logger.log("送货提醒", "上传送货提醒", notifies.size());
|
|
|
+ return purchaseNotifyService.convertPurchaseNotice(noticeList);
|
|
|
}
|
|
|
|
|
|
/**
|