|
|
@@ -14,7 +14,9 @@ import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
import com.uas.platform.b2b.erp.model.QuotationDown;
|
|
|
import com.uas.platform.b2b.erp.model.QuotationDownDecide;
|
|
|
import com.uas.platform.b2b.erp.service.QuotationDownService;
|
|
|
+import com.uas.platform.b2b.erp.support.ErpBufferedLogger;
|
|
|
import com.uas.platform.b2b.service.PurchaseInquiryService;
|
|
|
+import com.uas.platform.core.logging.BufferedLoggerManager;
|
|
|
import com.uas.platform.core.util.serializer.FlexJsonUtils;
|
|
|
|
|
|
/**
|
|
|
@@ -33,6 +35,8 @@ public class QuotationDownController {
|
|
|
|
|
|
@Autowired
|
|
|
private PurchaseInquiryService purchaseInquiryService;
|
|
|
+
|
|
|
+ private final static ErpBufferedLogger logger = BufferedLoggerManager.getLogger(ErpBufferedLogger.class);
|
|
|
|
|
|
/**
|
|
|
* 卖家ERP从平台获取未报价的询价明细
|
|
|
@@ -42,7 +46,9 @@ public class QuotationDownController {
|
|
|
@RequestMapping(method = RequestMethod.GET)
|
|
|
@ResponseBody
|
|
|
public List<QuotationDown> getQuotations() {
|
|
|
- return quotationDownService.convertPurchaseInquiry(purchaseInquiryService.findNotUploadInquiry());
|
|
|
+ List<QuotationDown> downs = quotationDownService.convertPurchaseInquiry(purchaseInquiryService.findNotUploadInquiry());
|
|
|
+ logger.log("下载客户采购询价单", downs.size());
|
|
|
+ return downs;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -70,6 +76,7 @@ public class QuotationDownController {
|
|
|
String jsonStr = URLDecoder.decode(data, "UTF-8");
|
|
|
List<QuotationDown> downs = FlexJsonUtils.fromJsonArray(jsonStr, QuotationDown.class);
|
|
|
purchaseInquiryService.reply(downs);
|
|
|
+ logger.log("上传客户询价单的报价信息", downs.size());
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -80,7 +87,9 @@ public class QuotationDownController {
|
|
|
@RequestMapping(value = "/reply", method = RequestMethod.GET)
|
|
|
@ResponseBody
|
|
|
public List<QuotationDown> getReply() {
|
|
|
- return quotationDownService.convertInquiryReply(purchaseInquiryService.findNotUploadInquiryReply());
|
|
|
+ List<QuotationDown> downs = quotationDownService.convertInquiryReply(purchaseInquiryService.findNotUploadInquiryReply());
|
|
|
+ logger.log("下载在平台报价的客户询价单报价信息", downs.size());
|
|
|
+ return downs;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -103,7 +112,9 @@ public class QuotationDownController {
|
|
|
@RequestMapping(value = "/reply/decide", method = RequestMethod.GET)
|
|
|
@ResponseBody
|
|
|
public List<QuotationDownDecide> getReplyDecide() {
|
|
|
- return quotationDownService.convertInquiryReplyDecide(purchaseInquiryService.findNotUploadInquiryReplyDecide());
|
|
|
+ List<QuotationDownDecide> decides = quotationDownService.convertInquiryReplyDecide(purchaseInquiryService.findNotUploadInquiryReplyDecide());
|
|
|
+ logger.log("下载客户对客户询价单报价信息的采纳结果", decides.size());
|
|
|
+ return decides;
|
|
|
}
|
|
|
|
|
|
/**
|