Commit 5415292f by wangnb

包活干V2.0.0功能开发--think.wang

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@28244 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 3db97589
......@@ -13,10 +13,11 @@ import com.glsx.ordercenter.pojo.SysSubOrder;
import com.glsx.ordercenter.service.CarOrderService;
import com.glsx.plat.core.web.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
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;
import java.util.Map;
......@@ -28,7 +29,7 @@ import java.util.Map;
* @date 2020-08-28
*/
@AuthCheck
@Controller
@RestController
@RequestMapping("/carOrder")
public class CarOrderController extends BaseController {
......@@ -204,7 +205,7 @@ public class CarOrderController extends BaseController {
* @return
*/
@RequestMapping(value = "/subOrderHandle", method = {RequestMethod.POST, RequestMethod.GET})
R subOrderHandle(@Validated(value = {GroupC.class}) OrderDeviceReq orderDeviceReq) {
R subOrderHandle(@RequestBody @Validated(value = {GroupC.class}) OrderDeviceReq orderDeviceReq) {
logger.info("车务子单办理参数 ==== {}", orderDeviceReq.toString());
Map<String, String> errorMap = getErrors(orderDeviceReq);
if (!errorMap.isEmpty()) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!