Просмотр исходного кода

处理报价提示错误问题

dongbw 7 лет назад
Родитель
Сommit
5fab2f291a

+ 2 - 17
src/main/java/com/uas/ps/inquiry/controller/InquiryForBuyerController.java

@@ -39,7 +39,6 @@ public class InquiryForBuyerController {
      * @param enuu 企业UU
      * @return
      */
-    @HttpLog
     @RequestMapping(value = "/detail", method = RequestMethod.GET)
     public InquiryDetailInfo findById(Long id, Long enuu) {
         long start = System.currentTimeMillis();
@@ -55,7 +54,6 @@ public class InquiryForBuyerController {
      * @param searchFilter 过滤条件
      * @return
      */
-    @HttpLog
     @RequestMapping(value = "/inquiryList", method = RequestMethod.GET)
     public Page<PurcInquiry> getInquiry(PageInfo pageInfo, SearchFilter searchFilter) {
         long start = System.currentTimeMillis();
@@ -74,7 +72,6 @@ public class InquiryForBuyerController {
      * @param overdue 是否过期 1、过期;0、 未过期
      * @return
      */
-    @HttpLog
     @RequestMapping(value = "/list", method = RequestMethod.GET)
     public Page<PurcInquiryItemInfo> getInquiryList(PageInfo pageInfo, SearchFilter searchFilter, String state, Integer overdue) {
         long start = System.currentTimeMillis();
@@ -90,7 +87,6 @@ public class InquiryForBuyerController {
      * @param enuu 当前企业UU
      * @return
      */
-    @HttpLog
     @RequestMapping(value = "/product/detail", method = RequestMethod.GET)
     public InquiryProductInfo findInquiryDetailById(Long id, Long enuu) {
         /*logger.log("公共询价", "针对客户查询单个物料明细的报价情况", null, Constant.UU, enuu, InquirySource.PLAIN.name());*/
@@ -109,7 +105,6 @@ public class InquiryForBuyerController {
      * @param userUU 用户UU
      * @return
      */
-    @HttpLog
     @RequestMapping(value = "/quotations", method = RequestMethod.GET)
     public Page<PurcInquiryItemInfo> findQuotationsByPage(PageInfo pageInfo, SearchFilter searchFilter, Long enUU, Long userUU, Short overdue) {
         /* logger.log("公共询价", "客户查询供应商报价信息", null, userUU, enUU, InquirySource.MALL.name());*/
@@ -125,7 +120,6 @@ public class InquiryForBuyerController {
      * @param id 询价明细id
      * @return
      */
-    @HttpLog
     @RequestMapping(value = "/quotation", method = RequestMethod.GET)
     public PurcInquiryItemInfo findQuotationById(Long id) {
         long start = System.currentTimeMillis();
@@ -140,18 +134,12 @@ public class InquiryForBuyerController {
      * @param inquiry 询价信息
      * @return
      */
-    @HttpLog
     @RequestMapping(value = "/save", method = RequestMethod.POST)
     public PurcInquiry saveInquiry(@RequestBody PurcInquiry inquiry) throws Exception {
         long start = System.currentTimeMillis();
         inquiry = inquiryService.saveInquiry(inquiry);
-        if (null != inquiry.getId()) {
-            log.info("/inquiry/buyer/save post, 新增公共询价信息, 单号: {}, 生成id: {}, RecorderUU: {}, EnUU: {}, 报价的应用来源: {}, 耗时: {}",  inquiry.getCode(), inquiry.getId(), inquiry.getRecorderUU(), inquiry.getEnUU(), InquirySource.PLAIN.name(), (System.currentTimeMillis() - start));
-            return inquiry;
-        } else {
-            log.info("/inquiry/buyer/save post, 新增公共询价信息失败, 单号: {}, RecorderUU: {}, EnUU: {}, 报价的应用来源: {}, 耗时: {}",  inquiry.getCode(), inquiry.getRecorderUU(), inquiry.getEnUU(), InquirySource.PLAIN.name(), (System.currentTimeMillis() - start));
-            throw new Exception("保存失败");
-        }
+        log.info("/inquiry/buyer/save post, 耗时: {}", (System.currentTimeMillis() - start));
+        return inquiry;
     }
 
     /**
@@ -162,7 +150,6 @@ public class InquiryForBuyerController {
      * @return
      * @throws Exception
      */
-    @HttpLog
     @RequestMapping(value = "/decide", method = RequestMethod.POST)
     public void decideQuote(Long id, Short status, Long enuu, Long useruu) throws Exception {
         long start = System.currentTimeMillis();
@@ -178,7 +165,6 @@ public class InquiryForBuyerController {
      * @return
      * @throws Exception
      */
-    @HttpLog
     @RequestMapping(value = "/adopt", method = RequestMethod.POST)
     public void adoptQuote(Long id, Short status, Long enuu, Long useruu) throws Exception {
         long start = System.currentTimeMillis();
@@ -195,7 +181,6 @@ public class InquiryForBuyerController {
      * @return
      * @throws Exception
      */
-    @HttpLog
     @RequestMapping(value = "/refuse", method = RequestMethod.POST)
     public void refuseQuote(Long id, Short status, Long enuu, Long useruu,String refusereason) throws Exception {
         long start = System.currentTimeMillis();