|
|
@@ -30,7 +30,6 @@ import org.springframework.ui.ModelMap;
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
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.servlet.ModelAndView;
|
|
|
|
|
|
@@ -108,12 +107,10 @@ public class SeekPurchaseBomController {
|
|
|
* @return
|
|
|
*/
|
|
|
@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();
|
|
|
- return seekPurchaseBomService.confirmBom(Long.valueOf(object.get("bomId").toString()), user, inquiryServiceUrl);
|
|
|
+ return seekPurchaseBomService.confirmBom(bomId, user, inquiryServiceUrl);
|
|
|
}
|
|
|
|
|
|
/**
|