From b8d2dcf8c6e5eefe9884769c8a3d553ce10b7a86 Mon Sep 17 00:00:00 2001 From: kira <164851225@qq.com> Date: Tue, 14 Aug 2018 14:14:02 +0800 Subject: [PATCH] update --- .../web/CityPartnerRegisterController.java | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/src/main/java/au/com/royalpay/payment/manage/citypartner/web/CityPartnerRegisterController.java b/src/main/java/au/com/royalpay/payment/manage/citypartner/web/CityPartnerRegisterController.java index 78f84edb4..6547049bd 100644 --- a/src/main/java/au/com/royalpay/payment/manage/citypartner/web/CityPartnerRegisterController.java +++ b/src/main/java/au/com/royalpay/payment/manage/citypartner/web/CityPartnerRegisterController.java @@ -1,15 +1,10 @@ package au.com.royalpay.payment.manage.citypartner.web; -import au.com.royalpay.payment.manage.citypartner.beans.CityPartnerBean; import au.com.royalpay.payment.manage.citypartner.core.CityPartnerRegisterService; -import au.com.royalpay.payment.tools.http.HttpUtils; -import org.springframework.validation.Errors; -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 javax.annotation.Resource; -import javax.validation.Valid; /** * Created by yixian on 2017-01-23. @@ -20,9 +15,9 @@ public class CityPartnerRegisterController { @Resource private CityPartnerRegisterService cityPartnerRegisterService; - @RequestMapping(method = RequestMethod.POST) - public void register(@RequestBody @Valid CityPartnerBean partner, Errors errors) { - HttpUtils.handleValidErrors(errors); - cityPartnerRegisterService.saveRegistry(partner); - } +// @RequestMapping(method = RequestMethod.POST) +// public void register(@RequestBody @Valid CityPartnerBean partner, Errors errors) { +// HttpUtils.handleValidErrors(errors); +// cityPartnerRegisterService.saveRegistry(partner); +// } }