Commit 11a8a5ae2daf5ddad17ec1b2d99f04592d16456e

Authored by zhangrui
1 parent e9db3ba744

bug fix

Showing 1 changed file with 2 additions and 5 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/MatDeliverController.java View file @ 11a8a5a
... ... @@ -8,10 +8,7 @@
8 8 import org.apache.commons.lang.StringUtils;
9 9 import org.springframework.beans.factory.annotation.Autowired;
10 10 import org.springframework.stereotype.Controller;
11   -import org.springframework.web.bind.annotation.RequestMapping;
12   -import org.springframework.web.bind.annotation.RequestMethod;
13   -import org.springframework.web.bind.annotation.RequestParam;
14   -import org.springframework.web.bind.annotation.ResponseBody;
  11 +import org.springframework.web.bind.annotation.*;
15 12  
16 13 import javax.validation.Valid;
17 14  
... ... @@ -49,7 +46,7 @@
49 46 */
50 47 @RequestMapping(value = "/matdel",method = RequestMethod.POST)
51 48 @ResponseBody
52   - public BaseResponse addOneMatDeliver(@Valid MatDeliverAddRequest deliverAddRequest){
  49 + public BaseResponse addOneMatDeliver(@Valid @RequestBody MatDeliverAddRequest deliverAddRequest){
53 50 return matDeliverFacade.addOrUpdateMatDeliver(deliverAddRequest);
54 51 }
55 52 /**