|
@@ -12,6 +12,7 @@ import org.springframework.web.bind.annotation.RequestParam;
|
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
|
|
|
|
|
import com.uas.platform.b2b.erp.model.Inquiry;
|
|
import com.uas.platform.b2b.erp.model.Inquiry;
|
|
|
|
|
+import com.uas.platform.b2b.erp.model.InquiryDecide;
|
|
|
import com.uas.platform.b2b.erp.model.InquiryDetailDet;
|
|
import com.uas.platform.b2b.erp.model.InquiryDetailDet;
|
|
|
import com.uas.platform.b2b.erp.service.InquiryService;
|
|
import com.uas.platform.b2b.erp.service.InquiryService;
|
|
|
import com.uas.platform.b2b.service.PurchaseInquiryService;
|
|
import com.uas.platform.b2b.service.PurchaseInquiryService;
|
|
@@ -48,7 +49,7 @@ public class InquiryController {
|
|
|
List<Inquiry> inquiries = FlexJsonUtils.fromJsonArray(jsonStr, Inquiry.class);
|
|
List<Inquiry> inquiries = FlexJsonUtils.fromJsonArray(jsonStr, Inquiry.class);
|
|
|
purchaseInquiryService.save(inquiryService.convertInquiry(inquiries));
|
|
purchaseInquiryService.save(inquiryService.convertInquiry(inquiries));
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 买家ERP获取平台的报价信息
|
|
* 买家ERP获取平台的报价信息
|
|
|
*
|
|
*
|
|
@@ -59,7 +60,7 @@ public class InquiryController {
|
|
|
public List<InquiryDetailDet> getReply() {
|
|
public List<InquiryDetailDet> getReply() {
|
|
|
return inquiryService.convertPurchaseInquiryReply(purchaseInquiryService.findNotUploadReply());
|
|
return inquiryService.convertPurchaseInquiryReply(purchaseInquiryService.findNotUploadReply());
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 平台的报价信息传到买家ERP之后,修改平台里面的询价单明细的上传状态
|
|
* 平台的报价信息传到买家ERP之后,修改平台里面的询价单明细的上传状态
|
|
|
*
|
|
*
|
|
@@ -71,7 +72,7 @@ public class InquiryController {
|
|
|
public void onReplySuccess(@RequestParam("data") String data) throws UnsupportedEncodingException {
|
|
public void onReplySuccess(@RequestParam("data") String data) throws UnsupportedEncodingException {
|
|
|
purchaseInquiryService.onReplyUploadSuccess(URLDecoder.decode(data, "UTF-8").split(","));
|
|
purchaseInquiryService.onReplyUploadSuccess(URLDecoder.decode(data, "UTF-8").split(","));
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 买家ERP(不)采纳了价格之后,修改平台里面的报价信息的状态
|
|
* 买家ERP(不)采纳了价格之后,修改平台里面的报价信息的状态
|
|
|
*
|
|
*
|
|
@@ -81,7 +82,9 @@ public class InquiryController {
|
|
|
@RequestMapping(value = "/reply/decide", method = RequestMethod.POST)
|
|
@RequestMapping(value = "/reply/decide", method = RequestMethod.POST)
|
|
|
@ResponseBody
|
|
@ResponseBody
|
|
|
public void onReplyDecide(@RequestParam("data") String data) throws UnsupportedEncodingException {
|
|
public void onReplyDecide(@RequestParam("data") String data) throws UnsupportedEncodingException {
|
|
|
-
|
|
|
|
|
|
|
+ String jsonStr = URLDecoder.decode(data, "UTF-8");
|
|
|
|
|
+ List<InquiryDecide> decides = FlexJsonUtils.fromJsonArray(jsonStr, InquiryDecide.class);
|
|
|
|
|
+ purchaseInquiryService.onReplyDecide(inquiryService.convertInquiryDecide(decides));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
}
|
|
}
|