Browse Source

Merge remote-tracking branch 'origin/dev-mysql' into dev-mysql

hulh 8 years ago
parent
commit
d3bbfd08ef

+ 3 - 6
src/main/java/com/uas/platform/b2c/trade/seek/controller/SeekPurchaseBomController.java

@@ -30,7 +30,6 @@ import org.springframework.ui.ModelMap;
 import org.springframework.web.bind.annotation.RequestBody;
 import org.springframework.web.bind.annotation.RequestBody;
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RequestMethod;
 import org.springframework.web.bind.annotation.RequestMethod;
-import org.springframework.web.bind.annotation.ResponseBody;
 import org.springframework.web.bind.annotation.RestController;
 import org.springframework.web.bind.annotation.RestController;
 import org.springframework.web.servlet.ModelAndView;
 import org.springframework.web.servlet.ModelAndView;
 
 
@@ -108,12 +107,10 @@ public class SeekPurchaseBomController {
      * @return
      * @return
      */
      */
     @RequestMapping(value = "/confirmBom", method = RequestMethod.POST)
     @RequestMapping(value = "/confirmBom", method = RequestMethod.POST)
-    @ResponseBody
-    public ResultMap confirmBom(@RequestBody String json) {
-        JSONObject object = FastjsonUtils.parseObject(json);
-        logger.log("求购", "确认发布bom求购,bomId:" + object.get("bomId"));
+    public ResultMap confirmBom(Long bomId) {
+        logger.log("求购", "确认发布bom求购,bomId:" + bomId);
         User user = SystemSession.getUser();
         User user = SystemSession.getUser();
-        return seekPurchaseBomService.confirmBom(Long.valueOf(object.get("bomId").toString()), user, inquiryServiceUrl);
+        return seekPurchaseBomService.confirmBom(bomId, user, inquiryServiceUrl);
     }
     }
 
 
     /**
     /**