|
@@ -21,6 +21,7 @@ import org.apache.shiro.authz.annotation.RequiresPermissions;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
import org.springframework.ui.ModelMap;
|
|
|
+import org.springframework.validation.annotation.Validated;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import java.util.ArrayList;
|
|
@@ -155,7 +156,7 @@ public class BtpSchoolPvController extends BaseController {
|
|
|
/**
|
|
|
* 查询委(村)列表
|
|
|
*/
|
|
|
- @PostMapping("/getVillagesBySTypeAndPId")
|
|
|
+ @GetMapping("/getVillagesBySTypeAndPId")
|
|
|
@ResponseBody
|
|
|
public List<BtpSchoolPv> getVillagesBySTypeAndPId(BtpSchoolPv btpSchoolPv) {
|
|
|
if (StringUtils.isNull(btpSchoolPv.getpId()) || StringUtils.isBlank(btpSchoolPv.getSchoolType())) {
|
|
@@ -170,7 +171,7 @@ public class BtpSchoolPvController extends BaseController {
|
|
|
@Log(title = "学区查询", businessType = BusinessType.SELECT)
|
|
|
@PostMapping("/getSchoolName")
|
|
|
@ResponseBody
|
|
|
- public AjaxResult getSchoolName(BtpSchoolPv btpSchoolPv) {
|
|
|
+ public AjaxResult getSchoolName(@Validated BtpSchoolPv btpSchoolPv) {
|
|
|
// 验证码校验
|
|
|
if (ShiroConstants.CAPTCHA_ERROR.equals(ServletUtils.getRequest().getAttribute(ShiroConstants.CURRENT_CAPTCHA))) {
|
|
|
return AjaxResult.error(MessageUtils.message("user.jcaptcha.error"));
|