分页优化
This commit is contained in:
parent
3e7b84de0a
commit
27ae0e1755
@ -181,7 +181,7 @@
|
|||||||
<el-table-column
|
<el-table-column
|
||||||
label="操作"
|
label="操作"
|
||||||
align="center"
|
align="center"
|
||||||
width="100"
|
width="120"
|
||||||
class-name="small-padding fixed-width"
|
class-name="small-padding fixed-width"
|
||||||
>
|
>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
package com.ruoyi.project.benyi.controller;
|
package com.ruoyi.project.benyi.controller;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.springframework.security.access.prepost.PreAuthorize;
|
import org.springframework.security.access.prepost.PreAuthorize;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
@ -28,8 +29,7 @@ import com.ruoyi.framework.web.page.TableDataInfo;
|
|||||||
*/
|
*/
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/benyi/assessmentrecordchild")
|
@RequestMapping("/benyi/assessmentrecordchild")
|
||||||
public class ByAssessmentrecordchildController extends BaseController
|
public class ByAssessmentrecordchildController extends BaseController {
|
||||||
{
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private IByAssessmentrecordchildService byAssessmentrecordchildService;
|
private IByAssessmentrecordchildService byAssessmentrecordchildService;
|
||||||
|
|
||||||
@ -38,8 +38,7 @@ public class ByAssessmentrecordchildController extends BaseController
|
|||||||
*/
|
*/
|
||||||
@PreAuthorize("@ss.hasPermi('benyi:assessmentrecordchild:list')")
|
@PreAuthorize("@ss.hasPermi('benyi:assessmentrecordchild:list')")
|
||||||
@GetMapping("/list")
|
@GetMapping("/list")
|
||||||
public TableDataInfo list(ByAssessmentrecordchild byAssessmentrecordchild)
|
public TableDataInfo list(ByAssessmentrecordchild byAssessmentrecordchild) {
|
||||||
{
|
|
||||||
startPage();
|
startPage();
|
||||||
List<ByAssessmentrecordchild> list = byAssessmentrecordchildService.selectByAssessmentrecordchildList(byAssessmentrecordchild);
|
List<ByAssessmentrecordchild> list = byAssessmentrecordchildService.selectByAssessmentrecordchildList(byAssessmentrecordchild);
|
||||||
return getDataTable(list);
|
return getDataTable(list);
|
||||||
@ -51,8 +50,7 @@ public class ByAssessmentrecordchildController extends BaseController
|
|||||||
@PreAuthorize("@ss.hasPermi('benyi:assessmentrecordchild:export')")
|
@PreAuthorize("@ss.hasPermi('benyi:assessmentrecordchild:export')")
|
||||||
@Log(title = "幼儿评估记录", businessType = BusinessType.EXPORT)
|
@Log(title = "幼儿评估记录", businessType = BusinessType.EXPORT)
|
||||||
@GetMapping("/export")
|
@GetMapping("/export")
|
||||||
public AjaxResult export(ByAssessmentrecordchild byAssessmentrecordchild)
|
public AjaxResult export(ByAssessmentrecordchild byAssessmentrecordchild) {
|
||||||
{
|
|
||||||
List<ByAssessmentrecordchild> list = byAssessmentrecordchildService.selectByAssessmentrecordchildList(byAssessmentrecordchild);
|
List<ByAssessmentrecordchild> list = byAssessmentrecordchildService.selectByAssessmentrecordchildList(byAssessmentrecordchild);
|
||||||
ExcelUtil<ByAssessmentrecordchild> util = new ExcelUtil<ByAssessmentrecordchild>(ByAssessmentrecordchild.class);
|
ExcelUtil<ByAssessmentrecordchild> util = new ExcelUtil<ByAssessmentrecordchild>(ByAssessmentrecordchild.class);
|
||||||
return util.exportExcel(list, "assessmentrecordchild");
|
return util.exportExcel(list, "assessmentrecordchild");
|
||||||
@ -63,8 +61,7 @@ public class ByAssessmentrecordchildController extends BaseController
|
|||||||
*/
|
*/
|
||||||
@PreAuthorize("@ss.hasPermi('benyi:assessmentrecordchild:query')")
|
@PreAuthorize("@ss.hasPermi('benyi:assessmentrecordchild:query')")
|
||||||
@GetMapping(value = "/{id}")
|
@GetMapping(value = "/{id}")
|
||||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
public AjaxResult getInfo(@PathVariable("id") Long id) {
|
||||||
{
|
|
||||||
return AjaxResult.success(byAssessmentrecordchildService.selectByAssessmentrecordchildById(id));
|
return AjaxResult.success(byAssessmentrecordchildService.selectByAssessmentrecordchildById(id));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -74,8 +71,7 @@ public class ByAssessmentrecordchildController extends BaseController
|
|||||||
@PreAuthorize("@ss.hasPermi('benyi:assessmentrecordchild:add')")
|
@PreAuthorize("@ss.hasPermi('benyi:assessmentrecordchild:add')")
|
||||||
@Log(title = "幼儿评估记录", businessType = BusinessType.INSERT)
|
@Log(title = "幼儿评估记录", businessType = BusinessType.INSERT)
|
||||||
@PostMapping
|
@PostMapping
|
||||||
public AjaxResult add(@RequestBody ByAssessmentrecordchild byAssessmentrecordchild)
|
public AjaxResult add(@RequestBody ByAssessmentrecordchild byAssessmentrecordchild) {
|
||||||
{
|
|
||||||
return toAjax(byAssessmentrecordchildService.insertByAssessmentrecordchild(byAssessmentrecordchild));
|
return toAjax(byAssessmentrecordchildService.insertByAssessmentrecordchild(byAssessmentrecordchild));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -85,8 +81,7 @@ public class ByAssessmentrecordchildController extends BaseController
|
|||||||
@PreAuthorize("@ss.hasPermi('benyi:assessmentrecordchild:edit')")
|
@PreAuthorize("@ss.hasPermi('benyi:assessmentrecordchild:edit')")
|
||||||
@Log(title = "幼儿评估记录", businessType = BusinessType.UPDATE)
|
@Log(title = "幼儿评估记录", businessType = BusinessType.UPDATE)
|
||||||
@PutMapping
|
@PutMapping
|
||||||
public AjaxResult edit(@RequestBody ByAssessmentrecordchild byAssessmentrecordchild)
|
public AjaxResult edit(@RequestBody ByAssessmentrecordchild byAssessmentrecordchild) {
|
||||||
{
|
|
||||||
return toAjax(byAssessmentrecordchildService.updateByAssessmentrecordchild(byAssessmentrecordchild));
|
return toAjax(byAssessmentrecordchildService.updateByAssessmentrecordchild(byAssessmentrecordchild));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -96,8 +91,7 @@ public class ByAssessmentrecordchildController extends BaseController
|
|||||||
@PreAuthorize("@ss.hasPermi('benyi:assessmentrecordchild:remove')")
|
@PreAuthorize("@ss.hasPermi('benyi:assessmentrecordchild:remove')")
|
||||||
@Log(title = "幼儿评估记录", businessType = BusinessType.DELETE)
|
@Log(title = "幼儿评估记录", businessType = BusinessType.DELETE)
|
||||||
@DeleteMapping("/{ids}")
|
@DeleteMapping("/{ids}")
|
||||||
public AjaxResult remove(@PathVariable Long[] ids)
|
public AjaxResult remove(@PathVariable Long[] ids) {
|
||||||
{
|
|
||||||
return toAjax(byAssessmentrecordchildService.deleteByAssessmentrecordchildByIds(ids));
|
return toAjax(byAssessmentrecordchildService.deleteByAssessmentrecordchildByIds(ids));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -48,7 +48,6 @@ public class ByChildCheckinDetailController extends BaseController {
|
|||||||
@PreAuthorize("@ss.hasPermi('benyi:checkindetail:list')")
|
@PreAuthorize("@ss.hasPermi('benyi:checkindetail:list')")
|
||||||
@GetMapping("/list")
|
@GetMapping("/list")
|
||||||
public TableDataInfo list(ByChildCheckinDetail byChildCheckinDetail) {
|
public TableDataInfo list(ByChildCheckinDetail byChildCheckinDetail) {
|
||||||
startPage();
|
|
||||||
System.out.println("checkintime=" + byChildCheckinDetail.getCreateTime());
|
System.out.println("checkintime=" + byChildCheckinDetail.getCreateTime());
|
||||||
if (byChildCheckinDetail.getCreateTime() == null) {
|
if (byChildCheckinDetail.getCreateTime() == null) {
|
||||||
byChildCheckinDetail.setCreateTime(new Date());
|
byChildCheckinDetail.setCreateTime(new Date());
|
||||||
@ -60,7 +59,7 @@ public class ByChildCheckinDetailController extends BaseController {
|
|||||||
if (!schoolCommon.isStringEmpty(classId)) {
|
if (!schoolCommon.isStringEmpty(classId)) {
|
||||||
byChildCheckinDetail.setClassid(classId);
|
byChildCheckinDetail.setClassid(classId);
|
||||||
}
|
}
|
||||||
|
startPage();
|
||||||
List<ByChildCheckinDetail> list = byChildCheckinDetailService.selectByChildCheckinDetailList(byChildCheckinDetail);
|
List<ByChildCheckinDetail> list = byChildCheckinDetailService.selectByChildCheckinDetailList(byChildCheckinDetail);
|
||||||
return getDataTable(list);
|
return getDataTable(list);
|
||||||
}
|
}
|
||||||
|
@ -43,13 +43,13 @@ public class ByChildContactpeopleController extends BaseController {
|
|||||||
@PreAuthorize("@ss.hasPermi('benyi:contactpeople:list')")
|
@PreAuthorize("@ss.hasPermi('benyi:contactpeople:list')")
|
||||||
@GetMapping("/list")
|
@GetMapping("/list")
|
||||||
public TableDataInfo list(ByChildContactpeople byChildContactpeople) {
|
public TableDataInfo list(ByChildContactpeople byChildContactpeople) {
|
||||||
startPage();
|
|
||||||
byChildContactpeople.setSchoolid(SecurityUtils.getLoginUser().getUser().getDept().getDeptId());
|
byChildContactpeople.setSchoolid(SecurityUtils.getLoginUser().getUser().getDept().getDeptId());
|
||||||
//判断是否为班主任
|
//判断是否为班主任
|
||||||
String classId = schoolCommon.getClassId();
|
String classId = schoolCommon.getClassId();
|
||||||
if (!schoolCommon.isStringEmpty(classId)) {
|
if (!schoolCommon.isStringEmpty(classId)) {
|
||||||
byChildContactpeople.setClassid(classId);
|
byChildContactpeople.setClassid(classId);
|
||||||
}
|
}
|
||||||
|
startPage();
|
||||||
List<ByChildContactpeople> list = byChildContactpeopleService.selectByChildContactpeopleList(byChildContactpeople);
|
List<ByChildContactpeople> list = byChildContactpeopleService.selectByChildContactpeopleList(byChildContactpeople);
|
||||||
return getDataTable(list);
|
return getDataTable(list);
|
||||||
}
|
}
|
||||||
|
@ -63,13 +63,14 @@ public class ByChildController extends BaseController {
|
|||||||
@PreAuthorize("@ss.hasPermi('benyi:child:list')" + "||@ss.hasPermi('benyi:checkinstatisticsschool:list')")
|
@PreAuthorize("@ss.hasPermi('benyi:child:list')" + "||@ss.hasPermi('benyi:checkinstatisticsschool:list')")
|
||||||
@GetMapping("/list")
|
@GetMapping("/list")
|
||||||
public TableDataInfo list(ByChild byChild) {
|
public TableDataInfo list(ByChild byChild) {
|
||||||
startPage();
|
|
||||||
byChild.setSchoolid(SecurityUtils.getLoginUser().getUser().getDept().getDeptId());
|
byChild.setSchoolid(SecurityUtils.getLoginUser().getUser().getDept().getDeptId());
|
||||||
//判断是否为班主任
|
//判断是否为班主任
|
||||||
String classId = schoolCommon.getClassId();
|
String classId = schoolCommon.getClassId();
|
||||||
if (!schoolCommon.isStringEmpty(classId) && classId != "-1") {
|
if (!schoolCommon.isStringEmpty(classId)) {
|
||||||
byChild.setClassid(classId);
|
byChild.setClassid(classId);
|
||||||
}
|
}
|
||||||
|
startPage();
|
||||||
List<ByChild> list = byChildService.selectByChildList(byChild);
|
List<ByChild> list = byChildService.selectByChildList(byChild);
|
||||||
return getDataTable(list);
|
return getDataTable(list);
|
||||||
}
|
}
|
||||||
@ -84,7 +85,7 @@ public class ByChildController extends BaseController {
|
|||||||
//判断是否为班主任
|
//判断是否为班主任
|
||||||
//System.out.println(schoolCommon.getClassId());
|
//System.out.println(schoolCommon.getClassId());
|
||||||
String classId = schoolCommon.getClassId();
|
String classId = schoolCommon.getClassId();
|
||||||
if (!schoolCommon.isStringEmpty(classId) && classId != "-1") {
|
if (!schoolCommon.isStringEmpty(classId)) {
|
||||||
byChild.setClassid(classId);
|
byChild.setClassid(classId);
|
||||||
}
|
}
|
||||||
List<ByChild> list = byChildService.selectByCheckList(byChild);
|
List<ByChild> list = byChildService.selectByCheckList(byChild);
|
||||||
|
@ -2,6 +2,7 @@ package com.ruoyi.project.benyi.controller;
|
|||||||
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.springframework.security.access.prepost.PreAuthorize;
|
import org.springframework.security.access.prepost.PreAuthorize;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
@ -29,8 +30,7 @@ import com.ruoyi.framework.web.page.TableDataInfo;
|
|||||||
*/
|
*/
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/benyi/healthcheck")
|
@RequestMapping("/benyi/healthcheck")
|
||||||
public class ByChildHealthCheckController extends BaseController
|
public class ByChildHealthCheckController extends BaseController {
|
||||||
{
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private IByChildHealthCheckService byChildHealthCheckService;
|
private IByChildHealthCheckService byChildHealthCheckService;
|
||||||
|
|
||||||
@ -39,8 +39,7 @@ public class ByChildHealthCheckController extends BaseController
|
|||||||
*/
|
*/
|
||||||
@PreAuthorize("@ss.hasPermi('benyi:healthcheck:list')")
|
@PreAuthorize("@ss.hasPermi('benyi:healthcheck:list')")
|
||||||
@GetMapping("/list")
|
@GetMapping("/list")
|
||||||
public TableDataInfo list(ByChildHealthCheck byChildHealthCheck)
|
public TableDataInfo list(ByChildHealthCheck byChildHealthCheck) {
|
||||||
{
|
|
||||||
startPage();
|
startPage();
|
||||||
List<ByChildHealthCheck> list = byChildHealthCheckService.selectByChildHealthCheckList(byChildHealthCheck);
|
List<ByChildHealthCheck> list = byChildHealthCheckService.selectByChildHealthCheckList(byChildHealthCheck);
|
||||||
return getDataTable(list);
|
return getDataTable(list);
|
||||||
@ -52,8 +51,7 @@ public class ByChildHealthCheckController extends BaseController
|
|||||||
@PreAuthorize("@ss.hasPermi('benyi:healthcheck:export')")
|
@PreAuthorize("@ss.hasPermi('benyi:healthcheck:export')")
|
||||||
@Log(title = "儿童常规体检记录", businessType = BusinessType.EXPORT)
|
@Log(title = "儿童常规体检记录", businessType = BusinessType.EXPORT)
|
||||||
@GetMapping("/export")
|
@GetMapping("/export")
|
||||||
public AjaxResult export(ByChildHealthCheck byChildHealthCheck)
|
public AjaxResult export(ByChildHealthCheck byChildHealthCheck) {
|
||||||
{
|
|
||||||
List<ByChildHealthCheck> list = byChildHealthCheckService.selectByChildHealthCheckList(byChildHealthCheck);
|
List<ByChildHealthCheck> list = byChildHealthCheckService.selectByChildHealthCheckList(byChildHealthCheck);
|
||||||
ExcelUtil<ByChildHealthCheck> util = new ExcelUtil<ByChildHealthCheck>(ByChildHealthCheck.class);
|
ExcelUtil<ByChildHealthCheck> util = new ExcelUtil<ByChildHealthCheck>(ByChildHealthCheck.class);
|
||||||
return util.exportExcel(list, "healthcheck");
|
return util.exportExcel(list, "healthcheck");
|
||||||
@ -64,8 +62,7 @@ public class ByChildHealthCheckController extends BaseController
|
|||||||
*/
|
*/
|
||||||
@PreAuthorize("@ss.hasPermi('benyi:healthcheck:query')")
|
@PreAuthorize("@ss.hasPermi('benyi:healthcheck:query')")
|
||||||
@GetMapping(value = "/{id}")
|
@GetMapping(value = "/{id}")
|
||||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
public AjaxResult getInfo(@PathVariable("id") Long id) {
|
||||||
{
|
|
||||||
return AjaxResult.success(byChildHealthCheckService.selectByChildHealthCheckById(id));
|
return AjaxResult.success(byChildHealthCheckService.selectByChildHealthCheckById(id));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -75,8 +72,7 @@ public class ByChildHealthCheckController extends BaseController
|
|||||||
@PreAuthorize("@ss.hasPermi('benyi:healthcheck:add')")
|
@PreAuthorize("@ss.hasPermi('benyi:healthcheck:add')")
|
||||||
@Log(title = "儿童常规体检记录", businessType = BusinessType.INSERT)
|
@Log(title = "儿童常规体检记录", businessType = BusinessType.INSERT)
|
||||||
@PostMapping
|
@PostMapping
|
||||||
public AjaxResult add(@RequestBody ByChildHealthCheck byChildHealthCheck)
|
public AjaxResult add(@RequestBody ByChildHealthCheck byChildHealthCheck) {
|
||||||
{
|
|
||||||
byChildHealthCheck.setCreatetime(new Date());
|
byChildHealthCheck.setCreatetime(new Date());
|
||||||
return toAjax(byChildHealthCheckService.insertByChildHealthCheck(byChildHealthCheck));
|
return toAjax(byChildHealthCheckService.insertByChildHealthCheck(byChildHealthCheck));
|
||||||
}
|
}
|
||||||
@ -87,8 +83,7 @@ public class ByChildHealthCheckController extends BaseController
|
|||||||
@PreAuthorize("@ss.hasPermi('benyi:healthcheck:edit')")
|
@PreAuthorize("@ss.hasPermi('benyi:healthcheck:edit')")
|
||||||
@Log(title = "儿童常规体检记录", businessType = BusinessType.UPDATE)
|
@Log(title = "儿童常规体检记录", businessType = BusinessType.UPDATE)
|
||||||
@PutMapping
|
@PutMapping
|
||||||
public AjaxResult edit(@RequestBody ByChildHealthCheck byChildHealthCheck)
|
public AjaxResult edit(@RequestBody ByChildHealthCheck byChildHealthCheck) {
|
||||||
{
|
|
||||||
|
|
||||||
return toAjax(byChildHealthCheckService.updateByChildHealthCheck(byChildHealthCheck));
|
return toAjax(byChildHealthCheckService.updateByChildHealthCheck(byChildHealthCheck));
|
||||||
}
|
}
|
||||||
@ -99,8 +94,7 @@ public class ByChildHealthCheckController extends BaseController
|
|||||||
@PreAuthorize("@ss.hasPermi('benyi:healthcheck:remove')")
|
@PreAuthorize("@ss.hasPermi('benyi:healthcheck:remove')")
|
||||||
@Log(title = "儿童常规体检记录", businessType = BusinessType.DELETE)
|
@Log(title = "儿童常规体检记录", businessType = BusinessType.DELETE)
|
||||||
@DeleteMapping("/{ids}")
|
@DeleteMapping("/{ids}")
|
||||||
public AjaxResult remove(@PathVariable Long[] ids)
|
public AjaxResult remove(@PathVariable Long[] ids) {
|
||||||
{
|
|
||||||
return toAjax(byChildHealthCheckService.deleteByChildHealthCheckByIds(ids));
|
return toAjax(byChildHealthCheckService.deleteByChildHealthCheckByIds(ids));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -43,12 +43,12 @@ public class ByChildLearndevelopmentFamilyController extends BaseController {
|
|||||||
@PreAuthorize("@ss.hasPermi('benyi:learndevelopmentfamily:list')")
|
@PreAuthorize("@ss.hasPermi('benyi:learndevelopmentfamily:list')")
|
||||||
@GetMapping("/list")
|
@GetMapping("/list")
|
||||||
public TableDataInfo list(ByChildLearndevelopmentFamily byChildLearndevelopmentFamily) {
|
public TableDataInfo list(ByChildLearndevelopmentFamily byChildLearndevelopmentFamily) {
|
||||||
startPage();
|
|
||||||
byChildLearndevelopmentFamily.setSchoolid(SecurityUtils.getLoginUser().getUser().getDept().getDeptId());
|
byChildLearndevelopmentFamily.setSchoolid(SecurityUtils.getLoginUser().getUser().getDept().getDeptId());
|
||||||
//判断是否为班主任
|
//判断是否为班主任
|
||||||
if (!schoolCommon.isStringEmpty(schoolCommon.getClassId())) {
|
if (!schoolCommon.isStringEmpty(schoolCommon.getClassId())) {
|
||||||
byChildLearndevelopmentFamily.setClassid(schoolCommon.getClassId());
|
byChildLearndevelopmentFamily.setClassid(schoolCommon.getClassId());
|
||||||
}
|
}
|
||||||
|
startPage();
|
||||||
List<ByChildLearndevelopmentFamily> list = byChildLearndevelopmentFamilyService.selectByChildLearndevelopmentFamilyList(byChildLearndevelopmentFamily);
|
List<ByChildLearndevelopmentFamily> list = byChildLearndevelopmentFamilyService.selectByChildLearndevelopmentFamilyList(byChildLearndevelopmentFamily);
|
||||||
return getDataTable(list);
|
return getDataTable(list);
|
||||||
}
|
}
|
||||||
|
@ -43,12 +43,12 @@ public class ByChildLearndevelopmentTeacherController extends BaseController {
|
|||||||
@PreAuthorize("@ss.hasPermi('benyi:learndevelopmentteacher:list')")
|
@PreAuthorize("@ss.hasPermi('benyi:learndevelopmentteacher:list')")
|
||||||
@GetMapping("/list")
|
@GetMapping("/list")
|
||||||
public TableDataInfo list(ByChildLearndevelopmentTeacher byChildLearndevelopmentTeacher) {
|
public TableDataInfo list(ByChildLearndevelopmentTeacher byChildLearndevelopmentTeacher) {
|
||||||
startPage();
|
|
||||||
byChildLearndevelopmentTeacher.setSchoolid(SecurityUtils.getLoginUser().getUser().getDept().getDeptId());
|
byChildLearndevelopmentTeacher.setSchoolid(SecurityUtils.getLoginUser().getUser().getDept().getDeptId());
|
||||||
//判断是否为班主任
|
//判断是否为班主任
|
||||||
if (!schoolCommon.isStringEmpty(schoolCommon.getClassId())) {
|
if (!schoolCommon.isStringEmpty(schoolCommon.getClassId())) {
|
||||||
byChildLearndevelopmentTeacher.setClassid(schoolCommon.getClassId());
|
byChildLearndevelopmentTeacher.setClassid(schoolCommon.getClassId());
|
||||||
}
|
}
|
||||||
|
startPage();
|
||||||
List<ByChildLearndevelopmentTeacher> list = byChildLearndevelopmentTeacherService.selectByChildLearndevelopmentTeacherList(byChildLearndevelopmentTeacher);
|
List<ByChildLearndevelopmentTeacher> list = byChildLearndevelopmentTeacherService.selectByChildLearndevelopmentTeacherList(byChildLearndevelopmentTeacher);
|
||||||
return getDataTable(list);
|
return getDataTable(list);
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
package com.ruoyi.project.benyi.controller;
|
package com.ruoyi.project.benyi.controller;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.springframework.security.access.prepost.PreAuthorize;
|
import org.springframework.security.access.prepost.PreAuthorize;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
@ -28,8 +29,7 @@ import com.ruoyi.framework.web.page.TableDataInfo;
|
|||||||
*/
|
*/
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/benyi/unscramble")
|
@RequestMapping("/benyi/unscramble")
|
||||||
public class ByDayFlowUnscrambleController extends BaseController
|
public class ByDayFlowUnscrambleController extends BaseController {
|
||||||
{
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private IByDayFlowUnscrambleService byDayFlowUnscrambleService;
|
private IByDayFlowUnscrambleService byDayFlowUnscrambleService;
|
||||||
|
|
||||||
@ -38,8 +38,7 @@ public class ByDayFlowUnscrambleController extends BaseController
|
|||||||
*/
|
*/
|
||||||
@PreAuthorize("@ss.hasPermi('benyi:unscramble:list')" + "||@ss.hasPermi('benyi:dayflowmanger:list')")
|
@PreAuthorize("@ss.hasPermi('benyi:unscramble:list')" + "||@ss.hasPermi('benyi:dayflowmanger:list')")
|
||||||
@GetMapping("/list")
|
@GetMapping("/list")
|
||||||
public TableDataInfo list(ByDayFlowUnscramble byDayFlowUnscramble)
|
public TableDataInfo list(ByDayFlowUnscramble byDayFlowUnscramble) {
|
||||||
{
|
|
||||||
startPage();
|
startPage();
|
||||||
List<ByDayFlowUnscramble> list = byDayFlowUnscrambleService.selectByDayFlowUnscrambleList(byDayFlowUnscramble);
|
List<ByDayFlowUnscramble> list = byDayFlowUnscrambleService.selectByDayFlowUnscrambleList(byDayFlowUnscramble);
|
||||||
return getDataTable(list);
|
return getDataTable(list);
|
||||||
@ -51,8 +50,7 @@ public class ByDayFlowUnscrambleController extends BaseController
|
|||||||
@PreAuthorize("@ss.hasPermi('benyi:unscramble:export')")
|
@PreAuthorize("@ss.hasPermi('benyi:unscramble:export')")
|
||||||
@Log(title = "一日流程解读", businessType = BusinessType.EXPORT)
|
@Log(title = "一日流程解读", businessType = BusinessType.EXPORT)
|
||||||
@GetMapping("/export")
|
@GetMapping("/export")
|
||||||
public AjaxResult export(ByDayFlowUnscramble byDayFlowUnscramble)
|
public AjaxResult export(ByDayFlowUnscramble byDayFlowUnscramble) {
|
||||||
{
|
|
||||||
List<ByDayFlowUnscramble> list = byDayFlowUnscrambleService.selectByDayFlowUnscrambleList(byDayFlowUnscramble);
|
List<ByDayFlowUnscramble> list = byDayFlowUnscrambleService.selectByDayFlowUnscrambleList(byDayFlowUnscramble);
|
||||||
ExcelUtil<ByDayFlowUnscramble> util = new ExcelUtil<ByDayFlowUnscramble>(ByDayFlowUnscramble.class);
|
ExcelUtil<ByDayFlowUnscramble> util = new ExcelUtil<ByDayFlowUnscramble>(ByDayFlowUnscramble.class);
|
||||||
return util.exportExcel(list, "unscramble");
|
return util.exportExcel(list, "unscramble");
|
||||||
@ -63,8 +61,7 @@ public class ByDayFlowUnscrambleController extends BaseController
|
|||||||
*/
|
*/
|
||||||
@PreAuthorize("@ss.hasPermi('benyi:unscramble:query')")
|
@PreAuthorize("@ss.hasPermi('benyi:unscramble:query')")
|
||||||
@GetMapping(value = "/{id}")
|
@GetMapping(value = "/{id}")
|
||||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
public AjaxResult getInfo(@PathVariable("id") Long id) {
|
||||||
{
|
|
||||||
return AjaxResult.success(byDayFlowUnscrambleService.selectByDayFlowUnscrambleById(id));
|
return AjaxResult.success(byDayFlowUnscrambleService.selectByDayFlowUnscrambleById(id));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -74,8 +71,7 @@ public class ByDayFlowUnscrambleController extends BaseController
|
|||||||
@PreAuthorize("@ss.hasPermi('benyi:unscramble:add')")
|
@PreAuthorize("@ss.hasPermi('benyi:unscramble:add')")
|
||||||
@Log(title = "一日流程解读", businessType = BusinessType.INSERT)
|
@Log(title = "一日流程解读", businessType = BusinessType.INSERT)
|
||||||
@PostMapping
|
@PostMapping
|
||||||
public AjaxResult add(@RequestBody ByDayFlowUnscramble byDayFlowUnscramble)
|
public AjaxResult add(@RequestBody ByDayFlowUnscramble byDayFlowUnscramble) {
|
||||||
{
|
|
||||||
return toAjax(byDayFlowUnscrambleService.insertByDayFlowUnscramble(byDayFlowUnscramble));
|
return toAjax(byDayFlowUnscrambleService.insertByDayFlowUnscramble(byDayFlowUnscramble));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -85,8 +81,7 @@ public class ByDayFlowUnscrambleController extends BaseController
|
|||||||
@PreAuthorize("@ss.hasPermi('benyi:unscramble:edit')")
|
@PreAuthorize("@ss.hasPermi('benyi:unscramble:edit')")
|
||||||
@Log(title = "一日流程解读", businessType = BusinessType.UPDATE)
|
@Log(title = "一日流程解读", businessType = BusinessType.UPDATE)
|
||||||
@PutMapping
|
@PutMapping
|
||||||
public AjaxResult edit(@RequestBody ByDayFlowUnscramble byDayFlowUnscramble)
|
public AjaxResult edit(@RequestBody ByDayFlowUnscramble byDayFlowUnscramble) {
|
||||||
{
|
|
||||||
return toAjax(byDayFlowUnscrambleService.updateByDayFlowUnscramble(byDayFlowUnscramble));
|
return toAjax(byDayFlowUnscrambleService.updateByDayFlowUnscramble(byDayFlowUnscramble));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -96,8 +91,7 @@ public class ByDayFlowUnscrambleController extends BaseController
|
|||||||
@PreAuthorize("@ss.hasPermi('benyi:unscramble:remove')")
|
@PreAuthorize("@ss.hasPermi('benyi:unscramble:remove')")
|
||||||
@Log(title = "一日流程解读", businessType = BusinessType.DELETE)
|
@Log(title = "一日流程解读", businessType = BusinessType.DELETE)
|
||||||
@DeleteMapping("/{ids}")
|
@DeleteMapping("/{ids}")
|
||||||
public AjaxResult remove(@PathVariable Long[] ids)
|
public AjaxResult remove(@PathVariable Long[] ids) {
|
||||||
{
|
|
||||||
return toAjax(byDayFlowUnscrambleService.deleteByDayFlowUnscrambleByIds(ids));
|
return toAjax(byDayFlowUnscrambleService.deleteByDayFlowUnscrambleByIds(ids));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -43,8 +43,8 @@ public class ByExperienceController extends BaseController {
|
|||||||
@PreAuthorize("@ss.hasPermi('benyi:experience:list')")
|
@PreAuthorize("@ss.hasPermi('benyi:experience:list')")
|
||||||
@GetMapping("/list")
|
@GetMapping("/list")
|
||||||
public TableDataInfo list(ByExperience byExperience) {
|
public TableDataInfo list(ByExperience byExperience) {
|
||||||
startPage();
|
|
||||||
byExperience.setSchoolid(SecurityUtils.getLoginUser().getUser().getDept().getDeptId());
|
byExperience.setSchoolid(SecurityUtils.getLoginUser().getUser().getDept().getDeptId());
|
||||||
|
startPage();
|
||||||
List<ByExperience> list = byExperienceService.selectByExperienceList(byExperience);
|
List<ByExperience> list = byExperienceService.selectByExperienceList(byExperience);
|
||||||
return getDataTable(list);
|
return getDataTable(list);
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
package com.ruoyi.project.benyi.controller;
|
package com.ruoyi.project.benyi.controller;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.springframework.security.access.prepost.PreAuthorize;
|
import org.springframework.security.access.prepost.PreAuthorize;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
@ -28,8 +29,7 @@ import com.ruoyi.framework.web.page.TableDataInfo;
|
|||||||
*/
|
*/
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/benyi/math")
|
@RequestMapping("/benyi/math")
|
||||||
public class ByMathController extends BaseController
|
public class ByMathController extends BaseController {
|
||||||
{
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private IByMathService byMathService;
|
private IByMathService byMathService;
|
||||||
|
|
||||||
@ -38,8 +38,7 @@ public class ByMathController extends BaseController
|
|||||||
*/
|
*/
|
||||||
@PreAuthorize("@ss.hasPermi('benyi:math:list')")
|
@PreAuthorize("@ss.hasPermi('benyi:math:list')")
|
||||||
@GetMapping("/list")
|
@GetMapping("/list")
|
||||||
public TableDataInfo list(ByMath byMath)
|
public TableDataInfo list(ByMath byMath) {
|
||||||
{
|
|
||||||
startPage();
|
startPage();
|
||||||
List<ByMath> list = byMathService.selectByMathList(byMath);
|
List<ByMath> list = byMathService.selectByMathList(byMath);
|
||||||
return getDataTable(list);
|
return getDataTable(list);
|
||||||
@ -51,8 +50,7 @@ public class ByMathController extends BaseController
|
|||||||
@PreAuthorize("@ss.hasPermi('benyi:math:export')")
|
@PreAuthorize("@ss.hasPermi('benyi:math:export')")
|
||||||
@Log(title = "游戏数学", businessType = BusinessType.EXPORT)
|
@Log(title = "游戏数学", businessType = BusinessType.EXPORT)
|
||||||
@GetMapping("/export")
|
@GetMapping("/export")
|
||||||
public AjaxResult export(ByMath byMath)
|
public AjaxResult export(ByMath byMath) {
|
||||||
{
|
|
||||||
List<ByMath> list = byMathService.selectByMathList(byMath);
|
List<ByMath> list = byMathService.selectByMathList(byMath);
|
||||||
ExcelUtil<ByMath> util = new ExcelUtil<ByMath>(ByMath.class);
|
ExcelUtil<ByMath> util = new ExcelUtil<ByMath>(ByMath.class);
|
||||||
return util.exportExcel(list, "math");
|
return util.exportExcel(list, "math");
|
||||||
@ -63,8 +61,7 @@ public class ByMathController extends BaseController
|
|||||||
*/
|
*/
|
||||||
@PreAuthorize("@ss.hasPermi('benyi:math:query')" + "||@ss.hasPermi('benyi:math:list')")
|
@PreAuthorize("@ss.hasPermi('benyi:math:query')" + "||@ss.hasPermi('benyi:math:list')")
|
||||||
@GetMapping(value = "/{id}")
|
@GetMapping(value = "/{id}")
|
||||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
public AjaxResult getInfo(@PathVariable("id") Long id) {
|
||||||
{
|
|
||||||
return AjaxResult.success(byMathService.selectByMathById(id));
|
return AjaxResult.success(byMathService.selectByMathById(id));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -86,8 +83,7 @@ public class ByMathController extends BaseController
|
|||||||
@PreAuthorize("@ss.hasPermi('benyi:math:add')")
|
@PreAuthorize("@ss.hasPermi('benyi:math:add')")
|
||||||
@Log(title = "游戏数学", businessType = BusinessType.INSERT)
|
@Log(title = "游戏数学", businessType = BusinessType.INSERT)
|
||||||
@PostMapping
|
@PostMapping
|
||||||
public AjaxResult add(@RequestBody ByMath byMath)
|
public AjaxResult add(@RequestBody ByMath byMath) {
|
||||||
{
|
|
||||||
return toAjax(byMathService.insertByMath(byMath));
|
return toAjax(byMathService.insertByMath(byMath));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -97,8 +93,7 @@ public class ByMathController extends BaseController
|
|||||||
@PreAuthorize("@ss.hasPermi('benyi:math:edit')")
|
@PreAuthorize("@ss.hasPermi('benyi:math:edit')")
|
||||||
@Log(title = "游戏数学", businessType = BusinessType.UPDATE)
|
@Log(title = "游戏数学", businessType = BusinessType.UPDATE)
|
||||||
@PutMapping
|
@PutMapping
|
||||||
public AjaxResult edit(@RequestBody ByMath byMath)
|
public AjaxResult edit(@RequestBody ByMath byMath) {
|
||||||
{
|
|
||||||
return toAjax(byMathService.updateByMath(byMath));
|
return toAjax(byMathService.updateByMath(byMath));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -108,8 +103,7 @@ public class ByMathController extends BaseController
|
|||||||
@PreAuthorize("@ss.hasPermi('benyi:math:remove')")
|
@PreAuthorize("@ss.hasPermi('benyi:math:remove')")
|
||||||
@Log(title = "游戏数学", businessType = BusinessType.DELETE)
|
@Log(title = "游戏数学", businessType = BusinessType.DELETE)
|
||||||
@DeleteMapping("/{ids}")
|
@DeleteMapping("/{ids}")
|
||||||
public AjaxResult remove(@PathVariable Long[] ids)
|
public AjaxResult remove(@PathVariable Long[] ids) {
|
||||||
{
|
|
||||||
return toAjax(byMathService.deleteByMathByIds(ids));
|
return toAjax(byMathService.deleteByMathByIds(ids));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -36,8 +36,7 @@ import com.ruoyi.framework.web.page.TableDataInfo;
|
|||||||
*/
|
*/
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/benyi/mathtermplan")
|
@RequestMapping("/benyi/mathtermplan")
|
||||||
public class ByMathTermplanController extends BaseController
|
public class ByMathTermplanController extends BaseController {
|
||||||
{
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private IByMathTermplanService byMathTermplanService;
|
private IByMathTermplanService byMathTermplanService;
|
||||||
@Autowired
|
@Autowired
|
||||||
@ -54,9 +53,7 @@ public class ByMathTermplanController extends BaseController
|
|||||||
*/
|
*/
|
||||||
@PreAuthorize("@ss.hasPermi('benyi:mathtermplan:list')")
|
@PreAuthorize("@ss.hasPermi('benyi:mathtermplan:list')")
|
||||||
@GetMapping("/list")
|
@GetMapping("/list")
|
||||||
public TableDataInfo list(ByMathTermplan byMathTermplan)
|
public TableDataInfo list(ByMathTermplan byMathTermplan) {
|
||||||
{
|
|
||||||
startPage();
|
|
||||||
byMathTermplan.setSchoolid(SecurityUtils.getLoginUser().getUser().getDept().getDeptId());
|
byMathTermplan.setSchoolid(SecurityUtils.getLoginUser().getUser().getDept().getDeptId());
|
||||||
String classId = schoolCommon.getClassId();
|
String classId = schoolCommon.getClassId();
|
||||||
List<ByMathTermplan> list = null;
|
List<ByMathTermplan> list = null;
|
||||||
@ -64,6 +61,7 @@ public class ByMathTermplanController extends BaseController
|
|||||||
if (schoolCommon.isSchool() && !schoolCommon.isStringEmpty(classId)) {
|
if (schoolCommon.isSchool() && !schoolCommon.isStringEmpty(classId)) {
|
||||||
byMathTermplan.setClassid(classId);
|
byMathTermplan.setClassid(classId);
|
||||||
}
|
}
|
||||||
|
startPage();
|
||||||
list = byMathTermplanService.selectByMathTermplanList(byMathTermplan);
|
list = byMathTermplanService.selectByMathTermplanList(byMathTermplan);
|
||||||
return getDataTable(list);
|
return getDataTable(list);
|
||||||
}
|
}
|
||||||
@ -74,8 +72,7 @@ public class ByMathTermplanController extends BaseController
|
|||||||
@PreAuthorize("@ss.hasPermi('benyi:mathtermplan:export')")
|
@PreAuthorize("@ss.hasPermi('benyi:mathtermplan:export')")
|
||||||
@Log(title = "游戏数学学期计划", businessType = BusinessType.EXPORT)
|
@Log(title = "游戏数学学期计划", businessType = BusinessType.EXPORT)
|
||||||
@GetMapping("/export")
|
@GetMapping("/export")
|
||||||
public AjaxResult export(ByMathTermplan byMathTermplan)
|
public AjaxResult export(ByMathTermplan byMathTermplan) {
|
||||||
{
|
|
||||||
List<ByMathTermplan> list = byMathTermplanService.selectByMathTermplanList(byMathTermplan);
|
List<ByMathTermplan> list = byMathTermplanService.selectByMathTermplanList(byMathTermplan);
|
||||||
ExcelUtil<ByMathTermplan> util = new ExcelUtil<ByMathTermplan>(ByMathTermplan.class);
|
ExcelUtil<ByMathTermplan> util = new ExcelUtil<ByMathTermplan>(ByMathTermplan.class);
|
||||||
return util.exportExcel(list, "mathtermplan");
|
return util.exportExcel(list, "mathtermplan");
|
||||||
@ -86,8 +83,7 @@ public class ByMathTermplanController extends BaseController
|
|||||||
*/
|
*/
|
||||||
@PreAuthorize("@ss.hasPermi('benyi:mathtermplan:query')")
|
@PreAuthorize("@ss.hasPermi('benyi:mathtermplan:query')")
|
||||||
@GetMapping(value = "/{id}")
|
@GetMapping(value = "/{id}")
|
||||||
public AjaxResult getInfo(@PathVariable("id") String id)
|
public AjaxResult getInfo(@PathVariable("id") String id) {
|
||||||
{
|
|
||||||
AjaxResult ajax = AjaxResult.success();
|
AjaxResult ajax = AjaxResult.success();
|
||||||
ByMathTermplan byMathTermplan = byMathTermplanService.selectByMathTermplanById(id);
|
ByMathTermplan byMathTermplan = byMathTermplanService.selectByMathTermplanById(id);
|
||||||
ajax.put(AjaxResult.DATA_TAG, byMathTermplan);
|
ajax.put(AjaxResult.DATA_TAG, byMathTermplan);
|
||||||
@ -102,8 +98,7 @@ public class ByMathTermplanController extends BaseController
|
|||||||
@PreAuthorize("@ss.hasPermi('benyi:mathtermplan:add')")
|
@PreAuthorize("@ss.hasPermi('benyi:mathtermplan:add')")
|
||||||
@Log(title = "游戏数学学期计划", businessType = BusinessType.INSERT)
|
@Log(title = "游戏数学学期计划", businessType = BusinessType.INSERT)
|
||||||
@PostMapping
|
@PostMapping
|
||||||
public AjaxResult add(@RequestBody ByMathTermplan byMathTermplan)
|
public AjaxResult add(@RequestBody ByMathTermplan byMathTermplan) {
|
||||||
{
|
|
||||||
String classId = schoolCommon.getClassId();
|
String classId = schoolCommon.getClassId();
|
||||||
|
|
||||||
if (schoolCommon.isSchool() && !schoolCommon.isStringEmpty(classId)) {
|
if (schoolCommon.isSchool() && !schoolCommon.isStringEmpty(classId)) {
|
||||||
@ -140,8 +135,7 @@ public class ByMathTermplanController extends BaseController
|
|||||||
@PreAuthorize("@ss.hasPermi('benyi:mathtermplan:edit')")
|
@PreAuthorize("@ss.hasPermi('benyi:mathtermplan:edit')")
|
||||||
@Log(title = "游戏数学学期计划", businessType = BusinessType.UPDATE)
|
@Log(title = "游戏数学学期计划", businessType = BusinessType.UPDATE)
|
||||||
@PutMapping
|
@PutMapping
|
||||||
public AjaxResult edit(@RequestBody ByMathTermplan byMathTermplan)
|
public AjaxResult edit(@RequestBody ByMathTermplan byMathTermplan) {
|
||||||
{
|
|
||||||
return toAjax(byMathTermplanService.updateByMathTermplan(byMathTermplan));
|
return toAjax(byMathTermplanService.updateByMathTermplan(byMathTermplan));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -151,8 +145,7 @@ public class ByMathTermplanController extends BaseController
|
|||||||
@PreAuthorize("@ss.hasPermi('benyi:mathtermplan:remove')")
|
@PreAuthorize("@ss.hasPermi('benyi:mathtermplan:remove')")
|
||||||
@Log(title = "游戏数学学期计划", businessType = BusinessType.DELETE)
|
@Log(title = "游戏数学学期计划", businessType = BusinessType.DELETE)
|
||||||
@DeleteMapping("/{ids}")
|
@DeleteMapping("/{ids}")
|
||||||
public AjaxResult remove(@PathVariable String[] ids)
|
public AjaxResult remove(@PathVariable String[] ids) {
|
||||||
{
|
|
||||||
//首先判断当前id下是否存在子目录
|
//首先判断当前id下是否存在子目录
|
||||||
for (int i = 0; i < ids.length; i++) {
|
for (int i = 0; i < ids.length; i++) {
|
||||||
ByMathTermplanitem byMathTermplanitem = new ByMathTermplanitem();
|
ByMathTermplanitem byMathTermplanitem = new ByMathTermplanitem();
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
package com.ruoyi.project.benyi.controller;
|
package com.ruoyi.project.benyi.controller;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.springframework.security.access.prepost.PreAuthorize;
|
import org.springframework.security.access.prepost.PreAuthorize;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
@ -28,8 +29,7 @@ import com.ruoyi.framework.web.page.TableDataInfo;
|
|||||||
*/
|
*/
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/benyi/mathtermplanitem")
|
@RequestMapping("/benyi/mathtermplanitem")
|
||||||
public class ByMathTermplanitemController extends BaseController
|
public class ByMathTermplanitemController extends BaseController {
|
||||||
{
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private IByMathTermplanitemService byMathTermplanitemService;
|
private IByMathTermplanitemService byMathTermplanitemService;
|
||||||
|
|
||||||
@ -38,8 +38,7 @@ public class ByMathTermplanitemController extends BaseController
|
|||||||
*/
|
*/
|
||||||
@PreAuthorize("@ss.hasPermi('benyi:mathtermplan:list')")
|
@PreAuthorize("@ss.hasPermi('benyi:mathtermplan:list')")
|
||||||
@GetMapping("/list")
|
@GetMapping("/list")
|
||||||
public TableDataInfo list(ByMathTermplanitem byMathTermplanitem)
|
public TableDataInfo list(ByMathTermplanitem byMathTermplanitem) {
|
||||||
{
|
|
||||||
startPage();
|
startPage();
|
||||||
List<ByMathTermplanitem> list = byMathTermplanitemService.selectByMathTermplanitemList(byMathTermplanitem);
|
List<ByMathTermplanitem> list = byMathTermplanitemService.selectByMathTermplanitemList(byMathTermplanitem);
|
||||||
return getDataTable(list);
|
return getDataTable(list);
|
||||||
@ -51,8 +50,7 @@ public class ByMathTermplanitemController extends BaseController
|
|||||||
@PreAuthorize("@ss.hasPermi('benyi:mathtermplan:export')")
|
@PreAuthorize("@ss.hasPermi('benyi:mathtermplan:export')")
|
||||||
@Log(title = "游戏数学学期计划明细", businessType = BusinessType.EXPORT)
|
@Log(title = "游戏数学学期计划明细", businessType = BusinessType.EXPORT)
|
||||||
@GetMapping("/export")
|
@GetMapping("/export")
|
||||||
public AjaxResult export(ByMathTermplanitem byMathTermplanitem)
|
public AjaxResult export(ByMathTermplanitem byMathTermplanitem) {
|
||||||
{
|
|
||||||
List<ByMathTermplanitem> list = byMathTermplanitemService.selectByMathTermplanitemList(byMathTermplanitem);
|
List<ByMathTermplanitem> list = byMathTermplanitemService.selectByMathTermplanitemList(byMathTermplanitem);
|
||||||
ExcelUtil<ByMathTermplanitem> util = new ExcelUtil<ByMathTermplanitem>(ByMathTermplanitem.class);
|
ExcelUtil<ByMathTermplanitem> util = new ExcelUtil<ByMathTermplanitem>(ByMathTermplanitem.class);
|
||||||
return util.exportExcel(list, "mathtermplanitem");
|
return util.exportExcel(list, "mathtermplanitem");
|
||||||
@ -63,8 +61,7 @@ public class ByMathTermplanitemController extends BaseController
|
|||||||
*/
|
*/
|
||||||
@PreAuthorize("@ss.hasPermi('benyi:mathtermplan:query')")
|
@PreAuthorize("@ss.hasPermi('benyi:mathtermplan:query')")
|
||||||
@GetMapping(value = "/{id}")
|
@GetMapping(value = "/{id}")
|
||||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
public AjaxResult getInfo(@PathVariable("id") Long id) {
|
||||||
{
|
|
||||||
return AjaxResult.success(byMathTermplanitemService.selectByMathTermplanitemById(id));
|
return AjaxResult.success(byMathTermplanitemService.selectByMathTermplanitemById(id));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -74,8 +71,7 @@ public class ByMathTermplanitemController extends BaseController
|
|||||||
@PreAuthorize("@ss.hasPermi('benyi:mathtermplan:add')")
|
@PreAuthorize("@ss.hasPermi('benyi:mathtermplan:add')")
|
||||||
@Log(title = "游戏数学学期计划明细", businessType = BusinessType.INSERT)
|
@Log(title = "游戏数学学期计划明细", businessType = BusinessType.INSERT)
|
||||||
@PostMapping
|
@PostMapping
|
||||||
public AjaxResult add(@RequestBody ByMathTermplanitem byMathTermplanitem)
|
public AjaxResult add(@RequestBody ByMathTermplanitem byMathTermplanitem) {
|
||||||
{
|
|
||||||
return toAjax(byMathTermplanitemService.insertByMathTermplanitem(byMathTermplanitem));
|
return toAjax(byMathTermplanitemService.insertByMathTermplanitem(byMathTermplanitem));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -85,8 +81,7 @@ public class ByMathTermplanitemController extends BaseController
|
|||||||
@PreAuthorize("@ss.hasPermi('benyi:mathtermplan:edit')")
|
@PreAuthorize("@ss.hasPermi('benyi:mathtermplan:edit')")
|
||||||
@Log(title = "游戏数学学期计划明细", businessType = BusinessType.UPDATE)
|
@Log(title = "游戏数学学期计划明细", businessType = BusinessType.UPDATE)
|
||||||
@PutMapping
|
@PutMapping
|
||||||
public AjaxResult edit(@RequestBody ByMathTermplanitem byMathTermplanitem)
|
public AjaxResult edit(@RequestBody ByMathTermplanitem byMathTermplanitem) {
|
||||||
{
|
|
||||||
return toAjax(byMathTermplanitemService.updateByMathTermplanitem(byMathTermplanitem));
|
return toAjax(byMathTermplanitemService.updateByMathTermplanitem(byMathTermplanitem));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -96,8 +91,7 @@ public class ByMathTermplanitemController extends BaseController
|
|||||||
@PreAuthorize("@ss.hasPermi('benyi:mathtermplan:remove')")
|
@PreAuthorize("@ss.hasPermi('benyi:mathtermplan:remove')")
|
||||||
@Log(title = "游戏数学学期计划明细", businessType = BusinessType.DELETE)
|
@Log(title = "游戏数学学期计划明细", businessType = BusinessType.DELETE)
|
||||||
@DeleteMapping("/{ids}")
|
@DeleteMapping("/{ids}")
|
||||||
public AjaxResult remove(@PathVariable Long[] ids)
|
public AjaxResult remove(@PathVariable Long[] ids) {
|
||||||
{
|
|
||||||
return toAjax(byMathTermplanitemService.deleteByMathTermplanitemByIds(ids));
|
return toAjax(byMathTermplanitemService.deleteByMathTermplanitemByIds(ids));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -57,13 +57,13 @@ public class ByPlanweekController extends BaseController {
|
|||||||
@PreAuthorize("@ss.hasPermi('benyi:planweek:list')")
|
@PreAuthorize("@ss.hasPermi('benyi:planweek:list')")
|
||||||
@GetMapping("/list")
|
@GetMapping("/list")
|
||||||
public TableDataInfo list(ByPlanweek byPlanweek) {
|
public TableDataInfo list(ByPlanweek byPlanweek) {
|
||||||
startPage();
|
|
||||||
byPlanweek.setSchoolid(SecurityUtils.getLoginUser().getUser().getDept().getDeptId());
|
byPlanweek.setSchoolid(SecurityUtils.getLoginUser().getUser().getDept().getDeptId());
|
||||||
String classId = schoolCommon.getClassId();
|
String classId = schoolCommon.getClassId();
|
||||||
List<ByPlanweek> list =null;
|
List<ByPlanweek> list =null;
|
||||||
//首先判断当前账户是否为幼儿园账号
|
//首先判断当前账户是否为幼儿园账号
|
||||||
if (schoolCommon.isSchool() && !schoolCommon.isStringEmpty(classId)) {
|
if (schoolCommon.isSchool() && !schoolCommon.isStringEmpty(classId)) {
|
||||||
byPlanweek.setClassid(classId);
|
byPlanweek.setClassid(classId);
|
||||||
|
startPage();
|
||||||
list = byPlanweekService.selectByPlanweekList(byPlanweek);
|
list = byPlanweekService.selectByPlanweekList(byPlanweek);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -31,8 +31,7 @@ import com.ruoyi.framework.web.page.TableDataInfo;
|
|||||||
*/
|
*/
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/benyi/planweekitem")
|
@RequestMapping("/benyi/planweekitem")
|
||||||
public class ByPlanweekitemController extends BaseController
|
public class ByPlanweekitemController extends BaseController {
|
||||||
{
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private IByPlanweekitemService byPlanweekitemService;
|
private IByPlanweekitemService byPlanweekitemService;
|
||||||
@Autowired
|
@Autowired
|
||||||
@ -43,8 +42,7 @@ public class ByPlanweekitemController extends BaseController
|
|||||||
*/
|
*/
|
||||||
@PreAuthorize("@ss.hasPermi('benyi:planweek:list')")
|
@PreAuthorize("@ss.hasPermi('benyi:planweek:list')")
|
||||||
@GetMapping("/list")
|
@GetMapping("/list")
|
||||||
public TableDataInfo list(ByPlanweekitem byPlanweekitem)
|
public TableDataInfo list(ByPlanweekitem byPlanweekitem) {
|
||||||
{
|
|
||||||
startPage();
|
startPage();
|
||||||
List<ByPlanweekitem> list = byPlanweekitemService.selectByPlanweekitemList(byPlanweekitem);
|
List<ByPlanweekitem> list = byPlanweekitemService.selectByPlanweekitemList(byPlanweekitem);
|
||||||
return getDataTable(list);
|
return getDataTable(list);
|
||||||
@ -56,8 +54,7 @@ public class ByPlanweekitemController extends BaseController
|
|||||||
@PreAuthorize("@ss.hasPermi('benyi:planweek:export')")
|
@PreAuthorize("@ss.hasPermi('benyi:planweek:export')")
|
||||||
@Log(title = "周计划(家长和教育部门细化)", businessType = BusinessType.EXPORT)
|
@Log(title = "周计划(家长和教育部门细化)", businessType = BusinessType.EXPORT)
|
||||||
@GetMapping("/export")
|
@GetMapping("/export")
|
||||||
public AjaxResult export(ByPlanweekitem byPlanweekitem)
|
public AjaxResult export(ByPlanweekitem byPlanweekitem) {
|
||||||
{
|
|
||||||
List<ByPlanweekitem> list = byPlanweekitemService.selectByPlanweekitemList(byPlanweekitem);
|
List<ByPlanweekitem> list = byPlanweekitemService.selectByPlanweekitemList(byPlanweekitem);
|
||||||
ExcelUtil<ByPlanweekitem> util = new ExcelUtil<ByPlanweekitem>(ByPlanweekitem.class);
|
ExcelUtil<ByPlanweekitem> util = new ExcelUtil<ByPlanweekitem>(ByPlanweekitem.class);
|
||||||
return util.exportExcel(list, "planweekitem");
|
return util.exportExcel(list, "planweekitem");
|
||||||
@ -68,8 +65,7 @@ public class ByPlanweekitemController extends BaseController
|
|||||||
*/
|
*/
|
||||||
@PreAuthorize("@ss.hasPermi('benyi:planweek:query')")
|
@PreAuthorize("@ss.hasPermi('benyi:planweek:query')")
|
||||||
@GetMapping(value = "/{id}")
|
@GetMapping(value = "/{id}")
|
||||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
public AjaxResult getInfo(@PathVariable("id") Long id) {
|
||||||
{
|
|
||||||
return AjaxResult.success(byPlanweekitemService.selectByPlanweekitemById(id));
|
return AjaxResult.success(byPlanweekitemService.selectByPlanweekitemById(id));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -79,8 +75,7 @@ public class ByPlanweekitemController extends BaseController
|
|||||||
@PreAuthorize("@ss.hasPermi('benyi:planweek:add')")
|
@PreAuthorize("@ss.hasPermi('benyi:planweek:add')")
|
||||||
@Log(title = "周计划(家长和教育部门细化)", businessType = BusinessType.INSERT)
|
@Log(title = "周计划(家长和教育部门细化)", businessType = BusinessType.INSERT)
|
||||||
@PostMapping
|
@PostMapping
|
||||||
public AjaxResult add(@RequestBody ByPlanweekitem byPlanweekitem)
|
public AjaxResult add(@RequestBody ByPlanweekitem byPlanweekitem) {
|
||||||
{
|
|
||||||
byPlanweekitem.setCreateuserid(SecurityUtils.getLoginUser().getUser().getUserId());
|
byPlanweekitem.setCreateuserid(SecurityUtils.getLoginUser().getUser().getUserId());
|
||||||
String dayTurn = String.valueOf(schoolCommon.dateToWeek(byPlanweekitem.getActivitytime()));
|
String dayTurn = String.valueOf(schoolCommon.dateToWeek(byPlanweekitem.getActivitytime()));
|
||||||
if (dayTurn.equals("1")) {
|
if (dayTurn.equals("1")) {
|
||||||
@ -108,8 +103,7 @@ public class ByPlanweekitemController extends BaseController
|
|||||||
@PreAuthorize("@ss.hasPermi('benyi:planweek:edit')")
|
@PreAuthorize("@ss.hasPermi('benyi:planweek:edit')")
|
||||||
@Log(title = "周计划(家长和教育部门细化)", businessType = BusinessType.UPDATE)
|
@Log(title = "周计划(家长和教育部门细化)", businessType = BusinessType.UPDATE)
|
||||||
@PutMapping
|
@PutMapping
|
||||||
public AjaxResult edit(@RequestBody ByPlanweekitem byPlanweekitem)
|
public AjaxResult edit(@RequestBody ByPlanweekitem byPlanweekitem) {
|
||||||
{
|
|
||||||
byPlanweekitem.setUpdateuserid(SecurityUtils.getLoginUser().getUser().getUserId());
|
byPlanweekitem.setUpdateuserid(SecurityUtils.getLoginUser().getUser().getUserId());
|
||||||
String dayTurn = String.valueOf(schoolCommon.dateToWeek(byPlanweekitem.getActivitytime()));
|
String dayTurn = String.valueOf(schoolCommon.dateToWeek(byPlanweekitem.getActivitytime()));
|
||||||
if (dayTurn.equals("1")) {
|
if (dayTurn.equals("1")) {
|
||||||
@ -137,8 +131,7 @@ public class ByPlanweekitemController extends BaseController
|
|||||||
@PreAuthorize("@ss.hasPermi('benyi:planweek:remove')")
|
@PreAuthorize("@ss.hasPermi('benyi:planweek:remove')")
|
||||||
@Log(title = "周计划(家长和教育部门细化)", businessType = BusinessType.DELETE)
|
@Log(title = "周计划(家长和教育部门细化)", businessType = BusinessType.DELETE)
|
||||||
@DeleteMapping("/{ids}")
|
@DeleteMapping("/{ids}")
|
||||||
public AjaxResult remove(@PathVariable Long[] ids)
|
public AjaxResult remove(@PathVariable Long[] ids) {
|
||||||
{
|
|
||||||
return toAjax(byPlanweekitemService.deleteByPlanweekitemByIds(ids));
|
return toAjax(byPlanweekitemService.deleteByPlanweekitemByIds(ids));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -49,8 +49,8 @@ public class BySchoolcalendarClassController extends BaseController {
|
|||||||
public TableDataInfo list(BySchoolcalendarClass bySchoolcalendarClass) {
|
public TableDataInfo list(BySchoolcalendarClass bySchoolcalendarClass) {
|
||||||
String strClassId = schoolCommon.getClassId();
|
String strClassId = schoolCommon.getClassId();
|
||||||
if (!schoolCommon.isStringEmpty(strClassId)) {
|
if (!schoolCommon.isStringEmpty(strClassId)) {
|
||||||
startPage();
|
|
||||||
bySchoolcalendarClass.setClassid(strClassId);
|
bySchoolcalendarClass.setClassid(strClassId);
|
||||||
|
startPage();
|
||||||
List<BySchoolcalendarClass> list = bySchoolcalendarClassService.selectBySchoolcalendarClassList(bySchoolcalendarClass);
|
List<BySchoolcalendarClass> list = bySchoolcalendarClassService.selectBySchoolcalendarClassList(bySchoolcalendarClass);
|
||||||
//System.out.println("---------------------分页"+list);
|
//System.out.println("---------------------分页"+list);
|
||||||
return getDataTable(list);
|
return getDataTable(list);
|
||||||
|
@ -62,7 +62,6 @@ public class ByThemeMonthplanController extends BaseController {
|
|||||||
@PreAuthorize("@ss.hasPermi('benyi:thememonthplan:list')")
|
@PreAuthorize("@ss.hasPermi('benyi:thememonthplan:list')")
|
||||||
@GetMapping("/list")
|
@GetMapping("/list")
|
||||||
public TableDataInfo list(ByThemeMonthplan byThemeMonthplan) {
|
public TableDataInfo list(ByThemeMonthplan byThemeMonthplan) {
|
||||||
startPage();
|
|
||||||
byThemeMonthplan.setSchoolid(SecurityUtils.getLoginUser().getUser().getDept().getDeptId());
|
byThemeMonthplan.setSchoolid(SecurityUtils.getLoginUser().getUser().getDept().getDeptId());
|
||||||
String classId = schoolCommon.getClassId();
|
String classId = schoolCommon.getClassId();
|
||||||
List<ByThemeMonthplan> list = null;
|
List<ByThemeMonthplan> list = null;
|
||||||
@ -70,6 +69,7 @@ public class ByThemeMonthplanController extends BaseController {
|
|||||||
if (schoolCommon.isSchool() && !schoolCommon.isStringEmpty(classId)) {
|
if (schoolCommon.isSchool() && !schoolCommon.isStringEmpty(classId)) {
|
||||||
byThemeMonthplan.setClassid(classId);
|
byThemeMonthplan.setClassid(classId);
|
||||||
}
|
}
|
||||||
|
startPage();
|
||||||
list = byThemeMonthplanService.selectByThemeMonthplanList(byThemeMonthplan);
|
list = byThemeMonthplanService.selectByThemeMonthplanList(byThemeMonthplan);
|
||||||
return getDataTable(list);
|
return getDataTable(list);
|
||||||
}
|
}
|
||||||
|
@ -31,8 +31,7 @@ import com.ruoyi.framework.web.page.TableDataInfo;
|
|||||||
*/
|
*/
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/benyi/thememonthplanitem")
|
@RequestMapping("/benyi/thememonthplanitem")
|
||||||
public class ByThemeMonthplanitemController extends BaseController
|
public class ByThemeMonthplanitemController extends BaseController {
|
||||||
{
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private IByThemeMonthplanitemService byThemeWeekplanService;
|
private IByThemeMonthplanitemService byThemeWeekplanService;
|
||||||
@Autowired
|
@Autowired
|
||||||
@ -43,8 +42,7 @@ public class ByThemeMonthplanitemController extends BaseController
|
|||||||
*/
|
*/
|
||||||
@PreAuthorize("@ss.hasPermi('benyi:thememonthplan:list')")
|
@PreAuthorize("@ss.hasPermi('benyi:thememonthplan:list')")
|
||||||
@GetMapping("/list")
|
@GetMapping("/list")
|
||||||
public TableDataInfo list(ByThemeMonthplanitem byThemeMonthplanitem)
|
public TableDataInfo list(ByThemeMonthplanitem byThemeMonthplanitem) {
|
||||||
{
|
|
||||||
startPage();
|
startPage();
|
||||||
List<ByThemeMonthplanitem> list = byThemeWeekplanService.selectByThemeMonthplanitemList(byThemeMonthplanitem);
|
List<ByThemeMonthplanitem> list = byThemeWeekplanService.selectByThemeMonthplanitemList(byThemeMonthplanitem);
|
||||||
return getDataTable(list);
|
return getDataTable(list);
|
||||||
@ -56,8 +54,7 @@ public class ByThemeMonthplanitemController extends BaseController
|
|||||||
@PreAuthorize("@ss.hasPermi('benyi:thememonthplan:export')")
|
@PreAuthorize("@ss.hasPermi('benyi:thememonthplan:export')")
|
||||||
@Log(title = "主题整合周计划", businessType = BusinessType.EXPORT)
|
@Log(title = "主题整合周计划", businessType = BusinessType.EXPORT)
|
||||||
@GetMapping("/export")
|
@GetMapping("/export")
|
||||||
public AjaxResult export(ByThemeMonthplanitem byThemeMonthplanitem)
|
public AjaxResult export(ByThemeMonthplanitem byThemeMonthplanitem) {
|
||||||
{
|
|
||||||
List<ByThemeMonthplanitem> list = byThemeWeekplanService.selectByThemeMonthplanitemList(byThemeMonthplanitem);
|
List<ByThemeMonthplanitem> list = byThemeWeekplanService.selectByThemeMonthplanitemList(byThemeMonthplanitem);
|
||||||
ExcelUtil<ByThemeMonthplanitem> util = new ExcelUtil<ByThemeMonthplanitem>(ByThemeMonthplanitem.class);
|
ExcelUtil<ByThemeMonthplanitem> util = new ExcelUtil<ByThemeMonthplanitem>(ByThemeMonthplanitem.class);
|
||||||
return util.exportExcel(list, "weekplan");
|
return util.exportExcel(list, "weekplan");
|
||||||
@ -68,8 +65,7 @@ public class ByThemeMonthplanitemController extends BaseController
|
|||||||
*/
|
*/
|
||||||
@PreAuthorize("@ss.hasPermi('benyi:thememonthplan:query')")
|
@PreAuthorize("@ss.hasPermi('benyi:thememonthplan:query')")
|
||||||
@GetMapping(value = "/{id}")
|
@GetMapping(value = "/{id}")
|
||||||
public AjaxResult getInfo(@PathVariable("id") String id)
|
public AjaxResult getInfo(@PathVariable("id") String id) {
|
||||||
{
|
|
||||||
return AjaxResult.success(byThemeWeekplanService.selectByThemeMonthplanitemById(id));
|
return AjaxResult.success(byThemeWeekplanService.selectByThemeMonthplanitemById(id));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -79,8 +75,7 @@ public class ByThemeMonthplanitemController extends BaseController
|
|||||||
@PreAuthorize("@ss.hasPermi('benyi:thememonthplan:add')")
|
@PreAuthorize("@ss.hasPermi('benyi:thememonthplan:add')")
|
||||||
@Log(title = "主题整合周计划", businessType = BusinessType.INSERT)
|
@Log(title = "主题整合周计划", businessType = BusinessType.INSERT)
|
||||||
@PostMapping
|
@PostMapping
|
||||||
public AjaxResult add(@RequestBody ByThemeMonthplanitem byThemeMonthplanitem)
|
public AjaxResult add(@RequestBody ByThemeMonthplanitem byThemeMonthplanitem) {
|
||||||
{
|
|
||||||
String uuid = schoolCommon.getUuid();
|
String uuid = schoolCommon.getUuid();
|
||||||
byThemeMonthplanitem.setId(uuid);
|
byThemeMonthplanitem.setId(uuid);
|
||||||
byThemeMonthplanitem.setCreateuserid(SecurityUtils.getLoginUser().getUser().getUserId());
|
byThemeMonthplanitem.setCreateuserid(SecurityUtils.getLoginUser().getUser().getUserId());
|
||||||
@ -93,8 +88,7 @@ public class ByThemeMonthplanitemController extends BaseController
|
|||||||
@PreAuthorize("@ss.hasPermi('benyi:thememonthplan:edit')")
|
@PreAuthorize("@ss.hasPermi('benyi:thememonthplan:edit')")
|
||||||
@Log(title = "主题整合周计划", businessType = BusinessType.UPDATE)
|
@Log(title = "主题整合周计划", businessType = BusinessType.UPDATE)
|
||||||
@PutMapping
|
@PutMapping
|
||||||
public AjaxResult edit(@RequestBody ByThemeMonthplanitem byThemeMonthplanitem)
|
public AjaxResult edit(@RequestBody ByThemeMonthplanitem byThemeMonthplanitem) {
|
||||||
{
|
|
||||||
return toAjax(byThemeWeekplanService.updateByThemeMonthplanitem(byThemeMonthplanitem));
|
return toAjax(byThemeWeekplanService.updateByThemeMonthplanitem(byThemeMonthplanitem));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -104,8 +98,7 @@ public class ByThemeMonthplanitemController extends BaseController
|
|||||||
@PreAuthorize("@ss.hasPermi('benyi:thememonthplan:remove')")
|
@PreAuthorize("@ss.hasPermi('benyi:thememonthplan:remove')")
|
||||||
@Log(title = "主题整合周计划", businessType = BusinessType.DELETE)
|
@Log(title = "主题整合周计划", businessType = BusinessType.DELETE)
|
||||||
@DeleteMapping("/{ids}")
|
@DeleteMapping("/{ids}")
|
||||||
public AjaxResult remove(@PathVariable String[] ids)
|
public AjaxResult remove(@PathVariable String[] ids) {
|
||||||
{
|
|
||||||
return toAjax(byThemeWeekplanService.deleteByThemeMonthplanitemByIds(ids));
|
return toAjax(byThemeWeekplanService.deleteByThemeMonthplanitemByIds(ids));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -57,7 +57,6 @@ public class ByThemeTermplanController extends BaseController {
|
|||||||
@PreAuthorize("@ss.hasPermi('benyi:themetermplan:list')")
|
@PreAuthorize("@ss.hasPermi('benyi:themetermplan:list')")
|
||||||
@GetMapping("/list")
|
@GetMapping("/list")
|
||||||
public TableDataInfo list(ByThemeTermplan byThemeTermplan) {
|
public TableDataInfo list(ByThemeTermplan byThemeTermplan) {
|
||||||
startPage();
|
|
||||||
byThemeTermplan.setSchoolid(SecurityUtils.getLoginUser().getUser().getDept().getDeptId());
|
byThemeTermplan.setSchoolid(SecurityUtils.getLoginUser().getUser().getDept().getDeptId());
|
||||||
String classId = schoolCommon.getClassId();
|
String classId = schoolCommon.getClassId();
|
||||||
List<ByThemeTermplan> list = null;
|
List<ByThemeTermplan> list = null;
|
||||||
@ -65,6 +64,7 @@ public class ByThemeTermplanController extends BaseController {
|
|||||||
if (schoolCommon.isSchool() && !schoolCommon.isStringEmpty(classId)) {
|
if (schoolCommon.isSchool() && !schoolCommon.isStringEmpty(classId)) {
|
||||||
byThemeTermplan.setClassid(classId);
|
byThemeTermplan.setClassid(classId);
|
||||||
}
|
}
|
||||||
|
startPage();
|
||||||
list = byThemeTermplanService.selectByThemeTermplanList(byThemeTermplan);
|
list = byThemeTermplanService.selectByThemeTermplanList(byThemeTermplan);
|
||||||
return getDataTable(list);
|
return getDataTable(list);
|
||||||
}
|
}
|
||||||
|
@ -65,7 +65,6 @@ public class ByThemeWeekplanController extends BaseController {
|
|||||||
@PreAuthorize("@ss.hasPermi('benyi:themeweekplan:list')")
|
@PreAuthorize("@ss.hasPermi('benyi:themeweekplan:list')")
|
||||||
@GetMapping("/list")
|
@GetMapping("/list")
|
||||||
public TableDataInfo list(ByThemeWeekplan byThemeWeekplan) {
|
public TableDataInfo list(ByThemeWeekplan byThemeWeekplan) {
|
||||||
startPage();
|
|
||||||
|
|
||||||
byThemeWeekplan.setSchoolid(SecurityUtils.getLoginUser().getUser().getDept().getDeptId());
|
byThemeWeekplan.setSchoolid(SecurityUtils.getLoginUser().getUser().getDept().getDeptId());
|
||||||
String classId = schoolCommon.getClassId();
|
String classId = schoolCommon.getClassId();
|
||||||
@ -74,6 +73,7 @@ public class ByThemeWeekplanController extends BaseController {
|
|||||||
if (schoolCommon.isSchool() && !schoolCommon.isStringEmpty(classId)) {
|
if (schoolCommon.isSchool() && !schoolCommon.isStringEmpty(classId)) {
|
||||||
byThemeWeekplan.setClassid(classId);
|
byThemeWeekplan.setClassid(classId);
|
||||||
}
|
}
|
||||||
|
startPage();
|
||||||
list = byThemeWeekplanService.selectByThemeWeekplanList(byThemeWeekplan);
|
list = byThemeWeekplanService.selectByThemeWeekplanList(byThemeWeekplan);
|
||||||
|
|
||||||
return getDataTable(list);
|
return getDataTable(list);
|
||||||
|
@ -52,11 +52,12 @@ public class ByTrainVideoController extends BaseController {
|
|||||||
@PreAuthorize("@ss.hasPermi('benyi:video:list')")
|
@PreAuthorize("@ss.hasPermi('benyi:video:list')")
|
||||||
@GetMapping("/list")
|
@GetMapping("/list")
|
||||||
public TableDataInfo list(ByTrainVideo byTrainVideo) {
|
public TableDataInfo list(ByTrainVideo byTrainVideo) {
|
||||||
startPage();
|
|
||||||
//判断type是否为空
|
//判断type是否为空
|
||||||
if (!schoolCommon.isStringEmpty(byTrainVideo.getType())) {
|
if (!schoolCommon.isStringEmpty(byTrainVideo.getType())) {
|
||||||
byTrainVideo.setType(byTrainVideo.getType() + ",");
|
byTrainVideo.setType(byTrainVideo.getType() + ",");
|
||||||
}
|
}
|
||||||
|
startPage();
|
||||||
List<ByTrainVideo> list = byTrainVideoService.selectByTrainVideoList(byTrainVideo);
|
List<ByTrainVideo> list = byTrainVideoService.selectByTrainVideoList(byTrainVideo);
|
||||||
|
|
||||||
if (list != null && list.size() > 0) {
|
if (list != null && list.size() > 0) {
|
||||||
|
@ -50,17 +50,15 @@ public class ByClassController extends BaseController {
|
|||||||
//@PreAuthorize("@ss.hasPermi('system:class:list')"+ "||@ss.hasPermi('system:school:list')")
|
//@PreAuthorize("@ss.hasPermi('system:class:list')"+ "||@ss.hasPermi('system:school:list')")
|
||||||
@GetMapping("/list")
|
@GetMapping("/list")
|
||||||
public TableDataInfo list(ByClass byClass) {
|
public TableDataInfo list(ByClass byClass) {
|
||||||
startPage();
|
|
||||||
List<ByClass> list = null;
|
List<ByClass> list = null;
|
||||||
String classId = schoolCommon.getClassId();
|
String classId = schoolCommon.getClassId();
|
||||||
//如果是幼儿园教师 只显示当前班级
|
//如果是幼儿园教师 只显示当前班级
|
||||||
if (schoolCommon.isSchool() && !schoolCommon.isStringEmpty(classId)) {
|
if (schoolCommon.isSchool() && !schoolCommon.isStringEmpty(classId)) {
|
||||||
byClass.setBjbh(classId);
|
byClass.setBjbh(classId);
|
||||||
list = byClassService.selectByClassList(byClass);
|
|
||||||
} else {
|
} else {
|
||||||
list = byClassService.selectByClassList(byClass);
|
|
||||||
}
|
}
|
||||||
|
startPage();
|
||||||
|
list = byClassService.selectByClassList(byClass);
|
||||||
return getDataTable(list);
|
return getDataTable(list);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user