|
|
@@ -149,14 +149,14 @@ public class InquiryForBuyerController {
|
|
|
*/
|
|
|
@HttpLog
|
|
|
@RequestMapping(value = "/save", method = RequestMethod.POST)
|
|
|
- public String saveInquiry(@RequestBody PurcInquiry inquiry) throws Exception {
|
|
|
+ public PurcInquiry saveInquiry(@RequestBody PurcInquiry inquiry) throws Exception {
|
|
|
long start = System.currentTimeMillis();
|
|
|
inquiry = inquiryService.saveInquiry(inquiry);
|
|
|
log.info("/inquiry/buyer/save post 耗时:" + (System.currentTimeMillis() - start));
|
|
|
if (null != inquiry.getId()) {
|
|
|
log.info("公共询价, 新增公共询价信息, 单号: {}, 生成id: {}, RecorderUU: {}, EnUU: {}, 报价的应用来源: {}", inquiry.getCode(), inquiry.getId(), inquiry.getRecorderUU(), inquiry.getEnUU(), InquirySource.PLAIN.name());
|
|
|
/*logger.log("公共询价", "新增公共询价信息", "单号: " + inquiry.getCode() + "生成id: " + inquiry.getId(), inquiry.getRecorderUU(), inquiry.getEnUU(), InquirySource.PLAIN.name());*/
|
|
|
- return JSONObject.toJSONString(inquiry);
|
|
|
+ return inquiry;
|
|
|
} else {
|
|
|
log.info("公共询价, 新增公共询价信息失败, 单号: {}, RecorderUU: {}, EnUU: {}, 报价的应用来源: {}", inquiry.getCode(), inquiry.getRecorderUU(), inquiry.getEnUU(), InquirySource.PLAIN.name());
|
|
|
/*logger.log("公共询价", "新增公共询价信息失败", "单号: " + inquiry.getCode(), inquiry.getRecorderUU(), inquiry.getEnUU(), InquirySource.PLAIN.name());*/
|