Commit f2a9b43c by fengzhi

1.售后单标准接口body接收json

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@30769 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent e608f512
......@@ -18,6 +18,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.StringUtils;
import org.springframework.validation.BindingResult;
import org.springframework.validation.annotation.Validated;
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.RestController;
......@@ -155,7 +156,7 @@ public class StandardOrderController extends BaseController {
* @Description: 标准接口拆除单或维修单接口
*/
@RequestMapping(value = "/createAfterSaleRepair", method = {RequestMethod.POST})
public ResultObject createAfterSaleRepair(@Validated(value = {Default.class}) StandardOrderReq req, BindingResult bindingResult) {
public ResultObject createAfterSaleRepair(@RequestBody @Validated(value = {Default.class}) StandardOrderReq req, BindingResult bindingResult) {
Integer orderType = req.getOrderType().intValue();
String orderTypeName = OrderTypeEnum.getTypeNameByTypeCode(orderType);
logger.info("标准接口"+orderTypeName+"接口参数===param:" + req.toString());
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!