|
@@ -22,7 +22,7 @@ import java.util.Arrays;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
|
|
/**
|
|
/**
|
|
- * 关系中间Controller
|
|
|
|
|
|
+ * 学区查询Controller
|
|
*
|
|
*
|
|
* @author lyq
|
|
* @author lyq
|
|
* @date 2023-02-20
|
|
* @date 2023-02-20
|
|
@@ -49,9 +49,10 @@ public class BtpSchoolPvController extends BaseController {
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
- * 查询关系中间列表
|
|
|
|
|
|
+ * 查询学区列表
|
|
*/
|
|
*/
|
|
- @RequiresPermissions("schooldistrict:index:list")
|
|
|
|
|
|
+// @RequiresPermissions("schooldistrict:index:list")
|
|
|
|
+ @Log(title = "学区查询", businessType = BusinessType.SELECT)
|
|
@PostMapping("/list")
|
|
@PostMapping("/list")
|
|
@ResponseBody
|
|
@ResponseBody
|
|
public TableDataInfo list(BtpSchoolPv btpSchoolPv) {
|
|
public TableDataInfo list(BtpSchoolPv btpSchoolPv) {
|
|
@@ -61,20 +62,20 @@ public class BtpSchoolPvController extends BaseController {
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
- * 导出关系中间列表
|
|
|
|
|
|
+ * 导出学区列表
|
|
*/
|
|
*/
|
|
@RequiresPermissions("schooldistrict:index:export")
|
|
@RequiresPermissions("schooldistrict:index:export")
|
|
- @Log(title = "关系中间", businessType = BusinessType.EXPORT)
|
|
|
|
|
|
+ @Log(title = "学区查询", businessType = BusinessType.EXPORT)
|
|
@PostMapping("/export")
|
|
@PostMapping("/export")
|
|
@ResponseBody
|
|
@ResponseBody
|
|
public AjaxResult export(BtpSchoolPv btpSchoolPv) {
|
|
public AjaxResult export(BtpSchoolPv btpSchoolPv) {
|
|
List<BtpSchoolPv> list = btpSchoolPvService.selectBtpSchoolPvList(btpSchoolPv);
|
|
List<BtpSchoolPv> list = btpSchoolPvService.selectBtpSchoolPvList(btpSchoolPv);
|
|
ExcelUtil<BtpSchoolPv> util = new ExcelUtil<>(BtpSchoolPv.class);
|
|
ExcelUtil<BtpSchoolPv> util = new ExcelUtil<>(BtpSchoolPv.class);
|
|
- return util.exportExcel(list, "关系中间数据");
|
|
|
|
|
|
+ return util.exportExcel(list, "学区数据");
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
- * 新增关系中间
|
|
|
|
|
|
+ * 新增学区
|
|
*/
|
|
*/
|
|
@GetMapping("/add")
|
|
@GetMapping("/add")
|
|
public String add(ModelMap mmap) {
|
|
public String add(ModelMap mmap) {
|
|
@@ -85,10 +86,10 @@ public class BtpSchoolPvController extends BaseController {
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
- * 新增保存关系中间
|
|
|
|
|
|
+ * 新增保存学区
|
|
*/
|
|
*/
|
|
@RequiresPermissions("schooldistrict:index:add")
|
|
@RequiresPermissions("schooldistrict:index:add")
|
|
- @Log(title = "关系中间", businessType = BusinessType.INSERT)
|
|
|
|
|
|
+ @Log(title = "学区查询", businessType = BusinessType.INSERT)
|
|
@PostMapping("/add")
|
|
@PostMapping("/add")
|
|
@ResponseBody
|
|
@ResponseBody
|
|
public AjaxResult addSave(BtpSchoolPv btpSchoolPv) {
|
|
public AjaxResult addSave(BtpSchoolPv btpSchoolPv) {
|
|
@@ -96,7 +97,7 @@ public class BtpSchoolPvController extends BaseController {
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
- * 修改关系中间
|
|
|
|
|
|
+ * 修改学区
|
|
*/
|
|
*/
|
|
@RequiresPermissions("schooldistrict:index:edit")
|
|
@RequiresPermissions("schooldistrict:index:edit")
|
|
@GetMapping("/edit/{vIds}")
|
|
@GetMapping("/edit/{vIds}")
|
|
@@ -110,10 +111,10 @@ public class BtpSchoolPvController extends BaseController {
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
- * 修改保存关系中间
|
|
|
|
|
|
+ * 修改保存学区
|
|
*/
|
|
*/
|
|
@RequiresPermissions("schooldistrict:index:edit")
|
|
@RequiresPermissions("schooldistrict:index:edit")
|
|
- @Log(title = "关系中间", businessType = BusinessType.UPDATE)
|
|
|
|
|
|
+ @Log(title = "学区查询", businessType = BusinessType.UPDATE)
|
|
@PostMapping("/edit")
|
|
@PostMapping("/edit")
|
|
@ResponseBody
|
|
@ResponseBody
|
|
public AjaxResult editSave(BtpSchoolPv btpSchoolPv) {
|
|
public AjaxResult editSave(BtpSchoolPv btpSchoolPv) {
|
|
@@ -121,10 +122,10 @@ public class BtpSchoolPvController extends BaseController {
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
- * 删除关系中间
|
|
|
|
|
|
+ * 删除学区
|
|
*/
|
|
*/
|
|
@RequiresPermissions("schooldistrict:index:remove")
|
|
@RequiresPermissions("schooldistrict:index:remove")
|
|
- @Log(title = "关系中间", businessType = BusinessType.DELETE)
|
|
|
|
|
|
+ @Log(title = "学区查询", businessType = BusinessType.DELETE)
|
|
@PostMapping("/remove")
|
|
@PostMapping("/remove")
|
|
@ResponseBody
|
|
@ResponseBody
|
|
public AjaxResult remove(String ids) {
|
|
public AjaxResult remove(String ids) {
|