|
@@ -28,10 +28,10 @@ import java.util.List;
|
|
* @date 2023-02-20
|
|
* @date 2023-02-20
|
|
*/
|
|
*/
|
|
@Controller
|
|
@Controller
|
|
-@RequestMapping("/schooldistrict/index")
|
|
|
|
|
|
+@RequestMapping("/schooldistrict/config")
|
|
public class BtpSchoolPvController extends BaseController {
|
|
public class BtpSchoolPvController extends BaseController {
|
|
|
|
|
|
- private String prefix = "schooldistrict/index";
|
|
|
|
|
|
+ private String prefix = "schooldistrict/config";
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
private IBtpSchoolPvService btpSchoolPvService;
|
|
private IBtpSchoolPvService btpSchoolPvService;
|
|
@@ -42,16 +42,16 @@ public class BtpSchoolPvController extends BaseController {
|
|
@Autowired
|
|
@Autowired
|
|
private IBtpSchoolService btpSchoolService;
|
|
private IBtpSchoolService btpSchoolService;
|
|
|
|
|
|
- @RequiresPermissions("schooldistrict:index:view")
|
|
|
|
|
|
+ @RequiresPermissions("schooldistrict:config:view")
|
|
@GetMapping()
|
|
@GetMapping()
|
|
- public String index() {
|
|
|
|
- return prefix + "/index";
|
|
|
|
|
|
+ public String config() {
|
|
|
|
+ return prefix + "/config";
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
* 查询学区列表
|
|
* 查询学区列表
|
|
*/
|
|
*/
|
|
- @RequiresPermissions("schooldistrict:index:list")
|
|
|
|
|
|
+ @RequiresPermissions("schooldistrict:config:list")
|
|
@PostMapping("/list")
|
|
@PostMapping("/list")
|
|
@ResponseBody
|
|
@ResponseBody
|
|
public TableDataInfo list(BtpSchoolPv btpSchoolPv) {
|
|
public TableDataInfo list(BtpSchoolPv btpSchoolPv) {
|
|
@@ -63,7 +63,7 @@ public class BtpSchoolPvController extends BaseController {
|
|
/**
|
|
/**
|
|
* 导出学区列表
|
|
* 导出学区列表
|
|
*/
|
|
*/
|
|
- @RequiresPermissions("schooldistrict:index:export")
|
|
|
|
|
|
+ @RequiresPermissions("schooldistrict:config:export")
|
|
@Log(title = "学区配置", businessType = BusinessType.EXPORT)
|
|
@Log(title = "学区配置", businessType = BusinessType.EXPORT)
|
|
@PostMapping("/export")
|
|
@PostMapping("/export")
|
|
@ResponseBody
|
|
@ResponseBody
|
|
@@ -78,7 +78,7 @@ public class BtpSchoolPvController extends BaseController {
|
|
*/
|
|
*/
|
|
@GetMapping("/add")
|
|
@GetMapping("/add")
|
|
public String add(ModelMap mmap) {
|
|
public String add(ModelMap mmap) {
|
|
- mmap.put("policestations", btpPolicestationVillageService.getAllByParentId(0L));
|
|
|
|
|
|
+ mmap.put("policestations", btpPolicestationVillageService.getPolicestationVillagesByParentId(0L));
|
|
mmap.put("villages", Arrays.asList(new BtpPolicestationVillage()));
|
|
mmap.put("villages", Arrays.asList(new BtpPolicestationVillage()));
|
|
mmap.put("schools", btpSchoolService.selectBtpSchoolList(new BtpSchool()));
|
|
mmap.put("schools", btpSchoolService.selectBtpSchoolList(new BtpSchool()));
|
|
return prefix + "/add";
|
|
return prefix + "/add";
|
|
@@ -87,7 +87,7 @@ public class BtpSchoolPvController extends BaseController {
|
|
/**
|
|
/**
|
|
* 新增保存学区
|
|
* 新增保存学区
|
|
*/
|
|
*/
|
|
- @RequiresPermissions("schooldistrict:index:add")
|
|
|
|
|
|
+ @RequiresPermissions("schooldistrict:config:add")
|
|
@Log(title = "学区配置", businessType = BusinessType.INSERT)
|
|
@Log(title = "学区配置", businessType = BusinessType.INSERT)
|
|
@PostMapping("/add")
|
|
@PostMapping("/add")
|
|
@ResponseBody
|
|
@ResponseBody
|
|
@@ -98,13 +98,13 @@ public class BtpSchoolPvController extends BaseController {
|
|
/**
|
|
/**
|
|
* 修改学区
|
|
* 修改学区
|
|
*/
|
|
*/
|
|
- @RequiresPermissions("schooldistrict:index:edit")
|
|
|
|
|
|
+ @RequiresPermissions("schooldistrict:config:edit")
|
|
@GetMapping("/edit/{vIds}")
|
|
@GetMapping("/edit/{vIds}")
|
|
public String edit(@PathVariable("vIds") String vIds, ModelMap mmap) {
|
|
public String edit(@PathVariable("vIds") String vIds, ModelMap mmap) {
|
|
BtpSchoolPv btpSchoolPv = btpSchoolPvService.selectBtpSchoolPvInVIds(vIds);
|
|
BtpSchoolPv btpSchoolPv = btpSchoolPvService.selectBtpSchoolPvInVIds(vIds);
|
|
mmap.put("btpSchoolPv", btpSchoolPv);
|
|
mmap.put("btpSchoolPv", btpSchoolPv);
|
|
- mmap.put("policestations", btpPolicestationVillageService.getAllByParentId(0L));
|
|
|
|
- mmap.put("villages", btpPolicestationVillageService.getAllByParentId(btpSchoolPv.getpId()));
|
|
|
|
|
|
+ mmap.put("policestations", btpPolicestationVillageService.getPolicestationVillagesByParentId(0L));
|
|
|
|
+ mmap.put("villages", btpPolicestationVillageService.getPolicestationVillagesByParentId(btpSchoolPv.getpId()));
|
|
mmap.put("schools", btpSchoolService.selectBtpSchoolList(new BtpSchool()));
|
|
mmap.put("schools", btpSchoolService.selectBtpSchoolList(new BtpSchool()));
|
|
return prefix + "/edit";
|
|
return prefix + "/edit";
|
|
}
|
|
}
|
|
@@ -112,7 +112,7 @@ public class BtpSchoolPvController extends BaseController {
|
|
/**
|
|
/**
|
|
* 修改保存学区
|
|
* 修改保存学区
|
|
*/
|
|
*/
|
|
- @RequiresPermissions("schooldistrict:index:edit")
|
|
|
|
|
|
+ @RequiresPermissions("schooldistrict:config:edit")
|
|
@Log(title = "学区配置", businessType = BusinessType.UPDATE)
|
|
@Log(title = "学区配置", businessType = BusinessType.UPDATE)
|
|
@PostMapping("/edit")
|
|
@PostMapping("/edit")
|
|
@ResponseBody
|
|
@ResponseBody
|
|
@@ -123,7 +123,7 @@ public class BtpSchoolPvController extends BaseController {
|
|
/**
|
|
/**
|
|
* 删除学区
|
|
* 删除学区
|
|
*/
|
|
*/
|
|
- @RequiresPermissions("schooldistrict:index:remove")
|
|
|
|
|
|
+ @RequiresPermissions("schooldistrict:config:remove")
|
|
@Log(title = "学区配置", businessType = BusinessType.DELETE)
|
|
@Log(title = "学区配置", businessType = BusinessType.DELETE)
|
|
@PostMapping("/remove")
|
|
@PostMapping("/remove")
|
|
@ResponseBody
|
|
@ResponseBody
|