|
|
@@ -1,11 +1,14 @@
|
|
|
package com.uas.platform.b2b.erp.controller;
|
|
|
|
|
|
+import java.io.UnsupportedEncodingException;
|
|
|
+import java.net.URLDecoder;
|
|
|
import java.util.List;
|
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
+import org.springframework.web.bind.annotation.RequestParam;
|
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
|
|
|
import com.uas.platform.b2b.erp.model.Inquiry;
|
|
|
@@ -40,4 +43,16 @@ public class InquiryDownController {
|
|
|
return inquiryService.convertSaleQuotation(saleQuotationService.findNotUploadQuotation());
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 平台的主动报价传到买家ERP之后,修改平台里面的主动报价的上传状态
|
|
|
+ *
|
|
|
+ * @return
|
|
|
+ * @throws UnsupportedEncodingException
|
|
|
+ */
|
|
|
+ @RequestMapping(value = "/back", method = RequestMethod.POST)
|
|
|
+ @ResponseBody
|
|
|
+ public void onReplySuccess(@RequestParam("data") String data) throws UnsupportedEncodingException {
|
|
|
+ saleQuotationService.onQuotationUploadSuccess(URLDecoder.decode(data, "UTF-8").split(","));
|
|
|
+ }
|
|
|
+
|
|
|
}
|