基本表单生成
This commit is contained in:
parent
7c56719222
commit
c253d6074e
|
@ -0,0 +1,155 @@
|
||||||
|
package org.jeecg.modules.contoller;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import org.jeecg.common.api.vo.Result;
|
||||||
|
import org.jeecg.common.aspect.annotation.AutoLog;
|
||||||
|
import org.jeecg.common.system.base.controller.JeecgController;
|
||||||
|
import org.jeecg.common.system.query.QueryGenerator;
|
||||||
|
import org.jeecg.modules.entity.CeesDormitoryInfo;
|
||||||
|
import org.jeecg.modules.service.ICeesDormitoryInfoService;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
import org.springframework.web.servlet.ModelAndView;
|
||||||
|
|
||||||
|
import javax.servlet.http.HttpServletRequest;
|
||||||
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
import java.util.Arrays;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description: 宿舍信息表
|
||||||
|
* @Author: jeecg-boot
|
||||||
|
* @Date: 2025-03-03
|
||||||
|
* @Version: V1.0
|
||||||
|
*/
|
||||||
|
@Api(tags="宿舍信息表")
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/CEES/ceesDormitoryInfo")
|
||||||
|
@Slf4j
|
||||||
|
public class CeesDormitoryInfoController extends JeecgController<CeesDormitoryInfo, ICeesDormitoryInfoService> {
|
||||||
|
@Autowired
|
||||||
|
private ICeesDormitoryInfoService ceesDormitoryInfoService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 分页列表查询
|
||||||
|
*
|
||||||
|
* @param ceesDormitoryInfo
|
||||||
|
* @param pageNo
|
||||||
|
* @param pageSize
|
||||||
|
* @param req
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
//@AutoLog(value = "宿舍信息表-分页列表查询")
|
||||||
|
@ApiOperation(value="宿舍信息表-分页列表查询", notes="宿舍信息表-分页列表查询")
|
||||||
|
@GetMapping(value = "/list")
|
||||||
|
public Result<IPage<CeesDormitoryInfo>> queryPageList(CeesDormitoryInfo ceesDormitoryInfo,
|
||||||
|
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||||
|
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
||||||
|
HttpServletRequest req) {
|
||||||
|
QueryWrapper<CeesDormitoryInfo> queryWrapper = QueryGenerator.initQueryWrapper(ceesDormitoryInfo, req.getParameterMap());
|
||||||
|
Page<CeesDormitoryInfo> page = new Page<CeesDormitoryInfo>(pageNo, pageSize);
|
||||||
|
IPage<CeesDormitoryInfo> pageList = ceesDormitoryInfoService.page(page, queryWrapper);
|
||||||
|
return Result.OK(pageList);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 添加
|
||||||
|
*
|
||||||
|
* @param ceesDormitoryInfo
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@AutoLog(value = "宿舍信息表-添加")
|
||||||
|
@ApiOperation(value="宿舍信息表-添加", notes="宿舍信息表-添加")
|
||||||
|
@PostMapping(value = "/add")
|
||||||
|
public Result<String> add(@RequestBody CeesDormitoryInfo ceesDormitoryInfo) {
|
||||||
|
ceesDormitoryInfoService.save(ceesDormitoryInfo);
|
||||||
|
return Result.OK("添加成功!");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 编辑
|
||||||
|
*
|
||||||
|
* @param ceesDormitoryInfo
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@AutoLog(value = "宿舍信息表-编辑")
|
||||||
|
@ApiOperation(value="宿舍信息表-编辑", notes="宿舍信息表-编辑")
|
||||||
|
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
|
||||||
|
public Result<String> edit(@RequestBody CeesDormitoryInfo ceesDormitoryInfo) {
|
||||||
|
ceesDormitoryInfoService.updateById(ceesDormitoryInfo);
|
||||||
|
return Result.OK("编辑成功!");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 通过id删除
|
||||||
|
*
|
||||||
|
* @param id
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@AutoLog(value = "宿舍信息表-通过id删除")
|
||||||
|
@ApiOperation(value="宿舍信息表-通过id删除", notes="宿舍信息表-通过id删除")
|
||||||
|
@DeleteMapping(value = "/delete")
|
||||||
|
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
|
||||||
|
ceesDormitoryInfoService.removeById(id);
|
||||||
|
return Result.OK("删除成功!");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除
|
||||||
|
*
|
||||||
|
* @param ids
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@AutoLog(value = "宿舍信息表-批量删除")
|
||||||
|
@ApiOperation(value="宿舍信息表-批量删除", notes="宿舍信息表-批量删除")
|
||||||
|
@DeleteMapping(value = "/deleteBatch")
|
||||||
|
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
||||||
|
this.ceesDormitoryInfoService.removeByIds(Arrays.asList(ids.split(",")));
|
||||||
|
return Result.OK("批量删除成功!");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 通过id查询
|
||||||
|
*
|
||||||
|
* @param id
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
//@AutoLog(value = "宿舍信息表-通过id查询")
|
||||||
|
@ApiOperation(value="宿舍信息表-通过id查询", notes="宿舍信息表-通过id查询")
|
||||||
|
@GetMapping(value = "/queryById")
|
||||||
|
public Result<CeesDormitoryInfo> queryById(@RequestParam(name="id",required=true) String id) {
|
||||||
|
CeesDormitoryInfo ceesDormitoryInfo = ceesDormitoryInfoService.getById(id);
|
||||||
|
if(ceesDormitoryInfo==null) {
|
||||||
|
return Result.error("未找到对应数据");
|
||||||
|
}
|
||||||
|
return Result.OK(ceesDormitoryInfo);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出excel
|
||||||
|
*
|
||||||
|
* @param request
|
||||||
|
* @param ceesDormitoryInfo
|
||||||
|
*/
|
||||||
|
@RequestMapping(value = "/exportXls")
|
||||||
|
public ModelAndView exportXls(HttpServletRequest request, CeesDormitoryInfo ceesDormitoryInfo) {
|
||||||
|
return super.exportXls(request, ceesDormitoryInfo, CeesDormitoryInfo.class, "宿舍信息表");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 通过excel导入数据
|
||||||
|
*
|
||||||
|
* @param request
|
||||||
|
* @param response
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
||||||
|
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
||||||
|
return super.importExcel(request, response, CeesDormitoryInfo.class);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,155 @@
|
||||||
|
package org.jeecg.modules.contoller;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import org.jeecg.common.api.vo.Result;
|
||||||
|
import org.jeecg.common.aspect.annotation.AutoLog;
|
||||||
|
import org.jeecg.common.system.base.controller.JeecgController;
|
||||||
|
import org.jeecg.common.system.query.QueryGenerator;
|
||||||
|
import org.jeecg.modules.entity.CeesLocalTeacher;
|
||||||
|
import org.jeecg.modules.service.ICeesLocalTeacherService;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
import org.springframework.web.servlet.ModelAndView;
|
||||||
|
|
||||||
|
import javax.servlet.http.HttpServletRequest;
|
||||||
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
import java.util.Arrays;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description: 本校教师表
|
||||||
|
* @Author: jeecg-boot
|
||||||
|
* @Date: 2025-03-03
|
||||||
|
* @Version: V1.0
|
||||||
|
*/
|
||||||
|
@Api(tags="本校教师表")
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/CEES/ceesLocalTeacher")
|
||||||
|
@Slf4j
|
||||||
|
public class CeesLocalTeacherController extends JeecgController<CeesLocalTeacher, ICeesLocalTeacherService> {
|
||||||
|
@Autowired
|
||||||
|
private ICeesLocalTeacherService ceesLocalTeacherService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 分页列表查询
|
||||||
|
*
|
||||||
|
* @param ceesLocalTeacher
|
||||||
|
* @param pageNo
|
||||||
|
* @param pageSize
|
||||||
|
* @param req
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
//@AutoLog(value = "本校教师表-分页列表查询")
|
||||||
|
@ApiOperation(value="本校教师表-分页列表查询", notes="本校教师表-分页列表查询")
|
||||||
|
@GetMapping(value = "/list")
|
||||||
|
public Result<IPage<CeesLocalTeacher>> queryPageList(CeesLocalTeacher ceesLocalTeacher,
|
||||||
|
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||||
|
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
||||||
|
HttpServletRequest req) {
|
||||||
|
QueryWrapper<CeesLocalTeacher> queryWrapper = QueryGenerator.initQueryWrapper(ceesLocalTeacher, req.getParameterMap());
|
||||||
|
Page<CeesLocalTeacher> page = new Page<CeesLocalTeacher>(pageNo, pageSize);
|
||||||
|
IPage<CeesLocalTeacher> pageList = ceesLocalTeacherService.page(page, queryWrapper);
|
||||||
|
return Result.OK(pageList);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 添加
|
||||||
|
*
|
||||||
|
* @param ceesLocalTeacher
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@AutoLog(value = "本校教师表-添加")
|
||||||
|
@ApiOperation(value="本校教师表-添加", notes="本校教师表-添加")
|
||||||
|
@PostMapping(value = "/add")
|
||||||
|
public Result<String> add(@RequestBody CeesLocalTeacher ceesLocalTeacher) {
|
||||||
|
ceesLocalTeacherService.save(ceesLocalTeacher);
|
||||||
|
return Result.OK("添加成功!");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 编辑
|
||||||
|
*
|
||||||
|
* @param ceesLocalTeacher
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@AutoLog(value = "本校教师表-编辑")
|
||||||
|
@ApiOperation(value="本校教师表-编辑", notes="本校教师表-编辑")
|
||||||
|
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
|
||||||
|
public Result<String> edit(@RequestBody CeesLocalTeacher ceesLocalTeacher) {
|
||||||
|
ceesLocalTeacherService.updateById(ceesLocalTeacher);
|
||||||
|
return Result.OK("编辑成功!");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 通过id删除
|
||||||
|
*
|
||||||
|
* @param id
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@AutoLog(value = "本校教师表-通过id删除")
|
||||||
|
@ApiOperation(value="本校教师表-通过id删除", notes="本校教师表-通过id删除")
|
||||||
|
@DeleteMapping(value = "/delete")
|
||||||
|
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
|
||||||
|
ceesLocalTeacherService.removeById(id);
|
||||||
|
return Result.OK("删除成功!");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除
|
||||||
|
*
|
||||||
|
* @param ids
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@AutoLog(value = "本校教师表-批量删除")
|
||||||
|
@ApiOperation(value="本校教师表-批量删除", notes="本校教师表-批量删除")
|
||||||
|
@DeleteMapping(value = "/deleteBatch")
|
||||||
|
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
||||||
|
this.ceesLocalTeacherService.removeByIds(Arrays.asList(ids.split(",")));
|
||||||
|
return Result.OK("批量删除成功!");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 通过id查询
|
||||||
|
*
|
||||||
|
* @param id
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
//@AutoLog(value = "本校教师表-通过id查询")
|
||||||
|
@ApiOperation(value="本校教师表-通过id查询", notes="本校教师表-通过id查询")
|
||||||
|
@GetMapping(value = "/queryById")
|
||||||
|
public Result<CeesLocalTeacher> queryById(@RequestParam(name="id",required=true) String id) {
|
||||||
|
CeesLocalTeacher ceesLocalTeacher = ceesLocalTeacherService.getById(id);
|
||||||
|
if(ceesLocalTeacher==null) {
|
||||||
|
return Result.error("未找到对应数据");
|
||||||
|
}
|
||||||
|
return Result.OK(ceesLocalTeacher);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出excel
|
||||||
|
*
|
||||||
|
* @param request
|
||||||
|
* @param ceesLocalTeacher
|
||||||
|
*/
|
||||||
|
@RequestMapping(value = "/exportXls")
|
||||||
|
public ModelAndView exportXls(HttpServletRequest request, CeesLocalTeacher ceesLocalTeacher) {
|
||||||
|
return super.exportXls(request, ceesLocalTeacher, CeesLocalTeacher.class, "本校教师表");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 通过excel导入数据
|
||||||
|
*
|
||||||
|
* @param request
|
||||||
|
* @param response
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
||||||
|
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
||||||
|
return super.importExcel(request, response, CeesLocalTeacher.class);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,156 @@
|
||||||
|
package org.jeecg.modules.contoller;
|
||||||
|
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import org.jeecg.common.api.vo.Result;
|
||||||
|
import org.jeecg.common.aspect.annotation.AutoLog;
|
||||||
|
import org.jeecg.common.system.base.controller.JeecgController;
|
||||||
|
import org.jeecg.common.system.query.QueryGenerator;
|
||||||
|
import org.jeecg.modules.entity.CeesWaiTeacher;
|
||||||
|
import org.jeecg.modules.service.ICeesWaiTeacherService;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
import org.springframework.web.servlet.ModelAndView;
|
||||||
|
|
||||||
|
import javax.servlet.http.HttpServletRequest;
|
||||||
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
import java.util.Arrays;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description: 外校老师管理
|
||||||
|
* @Author: jeecg-boot
|
||||||
|
* @Date: 2025-03-03
|
||||||
|
* @Version: V1.0
|
||||||
|
*/
|
||||||
|
@Api(tags="外校老师管理")
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/cees/ceesWaiTeacher")
|
||||||
|
@Slf4j
|
||||||
|
public class CeesWaiTeacherController extends JeecgController<CeesWaiTeacher, ICeesWaiTeacherService> {
|
||||||
|
@Autowired
|
||||||
|
private ICeesWaiTeacherService ceesWaiTeacherService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 分页列表查询
|
||||||
|
*
|
||||||
|
* @param ceesWaiTeacher
|
||||||
|
* @param pageNo
|
||||||
|
* @param pageSize
|
||||||
|
* @param req
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
//@AutoLog(value = "外校老师管理-分页列表查询")
|
||||||
|
@ApiOperation(value="外校老师管理-分页列表查询", notes="外校老师管理-分页列表查询")
|
||||||
|
@GetMapping(value = "/list")
|
||||||
|
public Result<IPage<CeesWaiTeacher>> queryPageList(CeesWaiTeacher ceesWaiTeacher,
|
||||||
|
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||||
|
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
||||||
|
HttpServletRequest req) {
|
||||||
|
QueryWrapper<CeesWaiTeacher> queryWrapper = QueryGenerator.initQueryWrapper(ceesWaiTeacher, req.getParameterMap());
|
||||||
|
Page<CeesWaiTeacher> page = new Page<CeesWaiTeacher>(pageNo, pageSize);
|
||||||
|
IPage<CeesWaiTeacher> pageList = ceesWaiTeacherService.page(page, queryWrapper);
|
||||||
|
return Result.OK(pageList);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 添加
|
||||||
|
*
|
||||||
|
* @param ceesWaiTeacher
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@AutoLog(value = "外校老师管理-添加")
|
||||||
|
@ApiOperation(value="外校老师管理-添加", notes="外校老师管理-添加")
|
||||||
|
@PostMapping(value = "/add")
|
||||||
|
public Result<String> add(@RequestBody CeesWaiTeacher ceesWaiTeacher) {
|
||||||
|
ceesWaiTeacherService.save(ceesWaiTeacher);
|
||||||
|
return Result.OK("添加成功!");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 编辑
|
||||||
|
*
|
||||||
|
* @param ceesWaiTeacher
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@AutoLog(value = "外校老师管理-编辑")
|
||||||
|
@ApiOperation(value="外校老师管理-编辑", notes="外校老师管理-编辑")
|
||||||
|
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
|
||||||
|
public Result<String> edit(@RequestBody CeesWaiTeacher ceesWaiTeacher) {
|
||||||
|
ceesWaiTeacherService.updateById(ceesWaiTeacher);
|
||||||
|
return Result.OK("编辑成功!");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 通过id删除
|
||||||
|
*
|
||||||
|
* @param id
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@AutoLog(value = "外校老师管理-通过id删除")
|
||||||
|
@ApiOperation(value="外校老师管理-通过id删除", notes="外校老师管理-通过id删除")
|
||||||
|
@DeleteMapping(value = "/delete")
|
||||||
|
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
|
||||||
|
ceesWaiTeacherService.removeById(id);
|
||||||
|
return Result.OK("删除成功!");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除
|
||||||
|
*
|
||||||
|
* @param ids
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@AutoLog(value = "外校老师管理-批量删除")
|
||||||
|
@ApiOperation(value="外校老师管理-批量删除", notes="外校老师管理-批量删除")
|
||||||
|
@DeleteMapping(value = "/deleteBatch")
|
||||||
|
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
||||||
|
this.ceesWaiTeacherService.removeByIds(Arrays.asList(ids.split(",")));
|
||||||
|
return Result.OK("批量删除成功!");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 通过id查询
|
||||||
|
*
|
||||||
|
* @param id
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
//@AutoLog(value = "外校老师管理-通过id查询")
|
||||||
|
@ApiOperation(value="外校老师管理-通过id查询", notes="外校老师管理-通过id查询")
|
||||||
|
@GetMapping(value = "/queryById")
|
||||||
|
public Result<CeesWaiTeacher> queryById(@RequestParam(name="id",required=true) String id) {
|
||||||
|
CeesWaiTeacher ceesWaiTeacher = ceesWaiTeacherService.getById(id);
|
||||||
|
if(ceesWaiTeacher==null) {
|
||||||
|
return Result.error("未找到对应数据");
|
||||||
|
}
|
||||||
|
return Result.OK(ceesWaiTeacher);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出excel
|
||||||
|
*
|
||||||
|
* @param request
|
||||||
|
* @param ceesWaiTeacher
|
||||||
|
*/
|
||||||
|
@RequestMapping(value = "/exportXls")
|
||||||
|
public ModelAndView exportXls(HttpServletRequest request, CeesWaiTeacher ceesWaiTeacher) {
|
||||||
|
return super.exportXls(request, ceesWaiTeacher, CeesWaiTeacher.class, "外校老师管理");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 通过excel导入数据
|
||||||
|
*
|
||||||
|
* @param request
|
||||||
|
* @param response
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
||||||
|
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
||||||
|
return super.importExcel(request, response, CeesWaiTeacher.class);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,156 @@
|
||||||
|
package org.jeecg.modules.contoller;
|
||||||
|
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import org.jeecg.common.api.vo.Result;
|
||||||
|
import org.jeecg.common.aspect.annotation.AutoLog;
|
||||||
|
import org.jeecg.common.system.base.controller.JeecgController;
|
||||||
|
import org.jeecg.common.system.query.QueryGenerator;
|
||||||
|
import org.jeecg.modules.entity.Student;
|
||||||
|
import org.jeecg.modules.service.IStudentService;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
import org.springframework.web.servlet.ModelAndView;
|
||||||
|
|
||||||
|
import javax.servlet.http.HttpServletRequest;
|
||||||
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
import java.util.Arrays;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description: 研究生表
|
||||||
|
* @Author: jeecg-boot
|
||||||
|
* @Date: 2025-03-03
|
||||||
|
* @Version: V1.0
|
||||||
|
*/
|
||||||
|
@Api(tags="研究生表")
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/cees/student")
|
||||||
|
@Slf4j
|
||||||
|
public class StudentController extends JeecgController<Student, IStudentService> {
|
||||||
|
@Autowired
|
||||||
|
private IStudentService studentService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 分页列表查询
|
||||||
|
*
|
||||||
|
* @param student
|
||||||
|
* @param pageNo
|
||||||
|
* @param pageSize
|
||||||
|
* @param req
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
//@AutoLog(value = "研究生表-分页列表查询")
|
||||||
|
@ApiOperation(value="研究生表-分页列表查询", notes="研究生表-分页列表查询")
|
||||||
|
@GetMapping(value = "/list")
|
||||||
|
public Result<IPage<Student>> queryPageList(Student student,
|
||||||
|
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||||
|
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
||||||
|
HttpServletRequest req) {
|
||||||
|
QueryWrapper<Student> queryWrapper = QueryGenerator.initQueryWrapper(student, req.getParameterMap());
|
||||||
|
Page<Student> page = new Page<Student>(pageNo, pageSize);
|
||||||
|
IPage<Student> pageList = studentService.page(page, queryWrapper);
|
||||||
|
return Result.OK(pageList);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 添加
|
||||||
|
*
|
||||||
|
* @param student
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@AutoLog(value = "研究生表-添加")
|
||||||
|
@ApiOperation(value="研究生表-添加", notes="研究生表-添加")
|
||||||
|
@PostMapping(value = "/add")
|
||||||
|
public Result<String> add(@RequestBody Student student) {
|
||||||
|
studentService.save(student);
|
||||||
|
return Result.OK("添加成功!");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 编辑
|
||||||
|
*
|
||||||
|
* @param student
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@AutoLog(value = "研究生表-编辑")
|
||||||
|
@ApiOperation(value="研究生表-编辑", notes="研究生表-编辑")
|
||||||
|
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
|
||||||
|
public Result<String> edit(@RequestBody Student student) {
|
||||||
|
studentService.updateById(student);
|
||||||
|
return Result.OK("编辑成功!");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 通过id删除
|
||||||
|
*
|
||||||
|
* @param id
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@AutoLog(value = "研究生表-通过id删除")
|
||||||
|
@ApiOperation(value="研究生表-通过id删除", notes="研究生表-通过id删除")
|
||||||
|
@DeleteMapping(value = "/delete")
|
||||||
|
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
|
||||||
|
studentService.removeById(id);
|
||||||
|
return Result.OK("删除成功!");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除
|
||||||
|
*
|
||||||
|
* @param ids
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@AutoLog(value = "研究生表-批量删除")
|
||||||
|
@ApiOperation(value="研究生表-批量删除", notes="研究生表-批量删除")
|
||||||
|
@DeleteMapping(value = "/deleteBatch")
|
||||||
|
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
||||||
|
this.studentService.removeByIds(Arrays.asList(ids.split(",")));
|
||||||
|
return Result.OK("批量删除成功!");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 通过id查询
|
||||||
|
*
|
||||||
|
* @param id
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
//@AutoLog(value = "研究生表-通过id查询")
|
||||||
|
@ApiOperation(value="研究生表-通过id查询", notes="研究生表-通过id查询")
|
||||||
|
@GetMapping(value = "/queryById")
|
||||||
|
public Result<Student> queryById(@RequestParam(name="id",required=true) String id) {
|
||||||
|
Student student = studentService.getById(id);
|
||||||
|
if(student==null) {
|
||||||
|
return Result.error("未找到对应数据");
|
||||||
|
}
|
||||||
|
return Result.OK(student);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出excel
|
||||||
|
*
|
||||||
|
* @param request
|
||||||
|
* @param student
|
||||||
|
*/
|
||||||
|
@RequestMapping(value = "/exportXls")
|
||||||
|
public ModelAndView exportXls(HttpServletRequest request, Student student) {
|
||||||
|
return super.exportXls(request, student, Student.class, "研究生表");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 通过excel导入数据
|
||||||
|
*
|
||||||
|
* @param request
|
||||||
|
* @param response
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
||||||
|
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
||||||
|
return super.importExcel(request, response, Student.class);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -1,4 +0,0 @@
|
||||||
package org.jeecg.modules.contoller;
|
|
||||||
|
|
||||||
public class UserController {
|
|
||||||
}
|
|
|
@ -0,0 +1,71 @@
|
||||||
|
package org.jeecg.modules.entity;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.IdType;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||||
|
import org.springframework.format.annotation.DateTimeFormat;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description: 宿舍信息表
|
||||||
|
* @Author: jeecg-boot
|
||||||
|
* @Date: 2025-03-03
|
||||||
|
* @Version: V1.0
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@TableName("cees_dormitory_info")
|
||||||
|
@Accessors(chain = true)
|
||||||
|
@EqualsAndHashCode(callSuper = false)
|
||||||
|
@ApiModel(value="cees_dormitory_info对象", description="宿舍信息表")
|
||||||
|
public class CeesDormitoryInfo implements Serializable {
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/**主键*/
|
||||||
|
@TableId(type = IdType.ASSIGN_ID)
|
||||||
|
@ApiModelProperty(value = "主键")
|
||||||
|
private String id;
|
||||||
|
/**创建人*/
|
||||||
|
@ApiModelProperty(value = "创建人")
|
||||||
|
private String createBy;
|
||||||
|
/**创建日期*/
|
||||||
|
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||||
|
@ApiModelProperty(value = "创建日期")
|
||||||
|
private Date createTime;
|
||||||
|
/**更新人*/
|
||||||
|
@ApiModelProperty(value = "更新人")
|
||||||
|
private String updateBy;
|
||||||
|
/**更新日期*/
|
||||||
|
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||||
|
@ApiModelProperty(value = "更新日期")
|
||||||
|
private Date updateTime;
|
||||||
|
/**所属部门*/
|
||||||
|
@ApiModelProperty(value = "所属部门")
|
||||||
|
private String sysOrgCode;
|
||||||
|
/**宿舍信息*/
|
||||||
|
@Excel(name = "宿舍信息", width = 15)
|
||||||
|
@ApiModelProperty(value = "宿舍信息")
|
||||||
|
private String dormitory;
|
||||||
|
/**男/女*/
|
||||||
|
@Excel(name = "男/女", width = 15)
|
||||||
|
@ApiModelProperty(value = "男/女")
|
||||||
|
private String dormitoryType;
|
||||||
|
/**宿舍人数*/
|
||||||
|
@Excel(name = "宿舍人数", width = 15)
|
||||||
|
@ApiModelProperty(value = "宿舍人数")
|
||||||
|
private Integer dormitoryNum;
|
||||||
|
/**宿舍状态0没满,1已满*/
|
||||||
|
@Excel(name = "宿舍状态0没满,1已满", width = 15)
|
||||||
|
@ApiModelProperty(value = "宿舍状态0没满,1已满")
|
||||||
|
private String dormitoryStatus;
|
||||||
|
}
|
|
@ -0,0 +1,91 @@
|
||||||
|
package org.jeecg.modules.entity;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.IdType;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||||
|
import org.springframework.format.annotation.DateTimeFormat;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description: 本校教师表
|
||||||
|
* @Author: jeecg-boot
|
||||||
|
* @Date: 2025-03-03
|
||||||
|
* @Version: V1.0
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@TableName("cees_local_teacher")
|
||||||
|
@Accessors(chain = true)
|
||||||
|
@EqualsAndHashCode(callSuper = false)
|
||||||
|
@ApiModel(value="cees_local_teacher对象", description="本校教师表")
|
||||||
|
public class CeesLocalTeacher implements Serializable {
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/**主键*/
|
||||||
|
@TableId(type = IdType.ASSIGN_ID)
|
||||||
|
@ApiModelProperty(value = "主键")
|
||||||
|
private String id;
|
||||||
|
/**创建人*/
|
||||||
|
@ApiModelProperty(value = "创建人")
|
||||||
|
private String createBy;
|
||||||
|
/**创建日期*/
|
||||||
|
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||||
|
@ApiModelProperty(value = "创建日期")
|
||||||
|
private Date createTime;
|
||||||
|
/**更新人*/
|
||||||
|
@ApiModelProperty(value = "更新人")
|
||||||
|
private String updateBy;
|
||||||
|
/**更新日期*/
|
||||||
|
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||||
|
@ApiModelProperty(value = "更新日期")
|
||||||
|
private Date updateTime;
|
||||||
|
/**所属部门*/
|
||||||
|
@ApiModelProperty(value = "所属部门")
|
||||||
|
private String sysOrgCode;
|
||||||
|
/**用户id*/
|
||||||
|
@Excel(name = "用户id", width = 15)
|
||||||
|
@ApiModelProperty(value = "用户id")
|
||||||
|
private String userId;
|
||||||
|
/**用户名*/
|
||||||
|
@Excel(name = "用户名", width = 15)
|
||||||
|
@ApiModelProperty(value = "用户名")
|
||||||
|
private String userName;
|
||||||
|
/**专业id,0表示未选择*/
|
||||||
|
@Excel(name = "专业id,0表示未选择", width = 15)
|
||||||
|
@ApiModelProperty(value = "专业id,0表示未选择")
|
||||||
|
private Integer majorId;
|
||||||
|
/**用户专业id*/
|
||||||
|
@Excel(name = "用户专业id", width = 15)
|
||||||
|
@ApiModelProperty(value = "用户专业id")
|
||||||
|
private String userMajorId;
|
||||||
|
/**用户专业id*/
|
||||||
|
@Excel(name = "用户专业id", width = 15)
|
||||||
|
@ApiModelProperty(value = "用户专业id")
|
||||||
|
private String teacherId;
|
||||||
|
/**手机号*/
|
||||||
|
@Excel(name = "手机号", width = 15)
|
||||||
|
@ApiModelProperty(value = "手机号")
|
||||||
|
private String phone;
|
||||||
|
/**组id*/
|
||||||
|
@Excel(name = "组id", width = 15)
|
||||||
|
@ApiModelProperty(value = "组id")
|
||||||
|
private Integer groupId;
|
||||||
|
/**使用次数*/
|
||||||
|
@Excel(name = "使用次数", width = 15)
|
||||||
|
@ApiModelProperty(value = "使用次数")
|
||||||
|
private Integer numberuse;
|
||||||
|
/**状态:0正常 1禁用*/
|
||||||
|
@Excel(name = "状态:0正常 1禁用", width = 15)
|
||||||
|
@ApiModelProperty(value = "状态:0正常 1禁用")
|
||||||
|
private Integer status;
|
||||||
|
}
|
|
@ -0,0 +1,147 @@
|
||||||
|
package org.jeecg.modules.entity;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.IdType;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||||
|
import org.springframework.format.annotation.DateTimeFormat;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description: 外校老师管理
|
||||||
|
* @Author: jeecg-boot
|
||||||
|
* @Date: 2025-03-03
|
||||||
|
* @Version: V1.0
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@TableName("cees_wai_teacher")
|
||||||
|
@Accessors(chain = true)
|
||||||
|
@EqualsAndHashCode(callSuper = false)
|
||||||
|
@ApiModel(value="cees_wai_teacher对象", description="外校老师管理")
|
||||||
|
public class CeesWaiTeacher implements Serializable {
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/**主键*/
|
||||||
|
@TableId(type = IdType.ASSIGN_ID)
|
||||||
|
@ApiModelProperty(value = "主键")
|
||||||
|
private String id;
|
||||||
|
/**创建人*/
|
||||||
|
@ApiModelProperty(value = "创建人")
|
||||||
|
private String createBy;
|
||||||
|
/**创建日期*/
|
||||||
|
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||||
|
@ApiModelProperty(value = "创建日期")
|
||||||
|
private Date createTime;
|
||||||
|
/**更新人*/
|
||||||
|
@ApiModelProperty(value = "更新人")
|
||||||
|
private String updateBy;
|
||||||
|
/**更新日期*/
|
||||||
|
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||||
|
@ApiModelProperty(value = "更新日期")
|
||||||
|
private Date updateTime;
|
||||||
|
/**所属部门*/
|
||||||
|
@ApiModelProperty(value = "所属部门")
|
||||||
|
private String sysOrgCode;
|
||||||
|
/**用户id*/
|
||||||
|
@Excel(name = "用户id", width = 15)
|
||||||
|
@ApiModelProperty(value = "用户id")
|
||||||
|
private String userId;
|
||||||
|
/**专业id*/
|
||||||
|
@Excel(name = "专业id", width = 15)
|
||||||
|
@ApiModelProperty(value = "专业id")
|
||||||
|
private Integer majorId;
|
||||||
|
/**用户专业id*/
|
||||||
|
@Excel(name = "用户专业id", width = 15)
|
||||||
|
@ApiModelProperty(value = "用户专业id")
|
||||||
|
private String userMajorId;
|
||||||
|
/**用户名*/
|
||||||
|
@Excel(name = "用户名", width = 15)
|
||||||
|
@ApiModelProperty(value = "用户名")
|
||||||
|
private String userName;
|
||||||
|
/**手机号*/
|
||||||
|
@Excel(name = "手机号", width = 15)
|
||||||
|
@ApiModelProperty(value = "手机号")
|
||||||
|
private String phone;
|
||||||
|
/**职称*/
|
||||||
|
@Excel(name = "职称", width = 15)
|
||||||
|
@ApiModelProperty(value = "职称")
|
||||||
|
private String jobTitle;
|
||||||
|
/**银行卡号*/
|
||||||
|
@Excel(name = "银行卡号", width = 15)
|
||||||
|
@ApiModelProperty(value = "银行卡号")
|
||||||
|
private String pyCard;
|
||||||
|
/**饭卡*/
|
||||||
|
@Excel(name = "饭卡", width = 15)
|
||||||
|
@ApiModelProperty(value = "饭卡")
|
||||||
|
private String mealCard;
|
||||||
|
/**办公位*/
|
||||||
|
@Excel(name = "办公位", width = 15)
|
||||||
|
@ApiModelProperty(value = "办公位")
|
||||||
|
private String office;
|
||||||
|
/**工作名称*/
|
||||||
|
@Excel(name = "工作名称", width = 15)
|
||||||
|
@ApiModelProperty(value = "工作名称")
|
||||||
|
private String workName;
|
||||||
|
/**固定电话*/
|
||||||
|
@Excel(name = "固定电话", width = 15)
|
||||||
|
@ApiModelProperty(value = "固定电话")
|
||||||
|
private String workPhone;
|
||||||
|
/**身份证*/
|
||||||
|
@Excel(name = "身份证", width = 15)
|
||||||
|
@ApiModelProperty(value = "身份证")
|
||||||
|
private String identityId;
|
||||||
|
/**车牌号*/
|
||||||
|
@Excel(name = "车牌号", width = 15)
|
||||||
|
@ApiModelProperty(value = "车牌号")
|
||||||
|
private String carNumber;
|
||||||
|
/**性别*/
|
||||||
|
@Excel(name = "性别", width = 15)
|
||||||
|
@ApiModelProperty(value = "性别")
|
||||||
|
private String sex;
|
||||||
|
/**年龄*/
|
||||||
|
@Excel(name = "年龄", width = 15)
|
||||||
|
@ApiModelProperty(value = "年龄")
|
||||||
|
private Integer age;
|
||||||
|
/**车辆是否入校*/
|
||||||
|
@Excel(name = "车辆是否入校", width = 15)
|
||||||
|
@ApiModelProperty(value = "车辆是否入校")
|
||||||
|
private Integer carStatus;
|
||||||
|
/**宿舍信息*/
|
||||||
|
@Excel(name = "宿舍信息", width = 15)
|
||||||
|
@ApiModelProperty(value = "宿舍信息")
|
||||||
|
private String dormitory;
|
||||||
|
/**是否住宿*/
|
||||||
|
@Excel(name = "是否住宿", width = 15)
|
||||||
|
@ApiModelProperty(value = "是否住宿")
|
||||||
|
private String dormitoryStatus;
|
||||||
|
/**开户所在地*/
|
||||||
|
@Excel(name = "开户所在地", width = 15)
|
||||||
|
@ApiModelProperty(value = "开户所在地")
|
||||||
|
private String bankAddress;
|
||||||
|
/**开户行*/
|
||||||
|
@Excel(name = "开户行", width = 15)
|
||||||
|
@ApiModelProperty(value = "开户行")
|
||||||
|
private String bankName;
|
||||||
|
/**组id*/
|
||||||
|
@Excel(name = "组id", width = 15)
|
||||||
|
@ApiModelProperty(value = "组id")
|
||||||
|
private Integer groupId;
|
||||||
|
/**使用次数*/
|
||||||
|
@Excel(name = "使用次数", width = 15)
|
||||||
|
@ApiModelProperty(value = "使用次数")
|
||||||
|
private Integer numberuse;
|
||||||
|
/**状态:0已报道 1未报到*/
|
||||||
|
@Excel(name = "状态:0已报道 1未报到", width = 15)
|
||||||
|
@ApiModelProperty(value = "状态:0已报道 1未报到")
|
||||||
|
private Integer status;
|
||||||
|
}
|
|
@ -0,0 +1,95 @@
|
||||||
|
package org.jeecg.modules.entity;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.IdType;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||||
|
import org.springframework.format.annotation.DateTimeFormat;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description: 研究生表
|
||||||
|
* @Author: jeecg-boot
|
||||||
|
* @Date: 2025-03-03
|
||||||
|
* @Version: V1.0
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@TableName("cees_student")
|
||||||
|
@Accessors(chain = true)
|
||||||
|
@EqualsAndHashCode(callSuper = false)
|
||||||
|
@ApiModel(value="student对象", description="研究生表")
|
||||||
|
public class Student implements Serializable {
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/**主键*/
|
||||||
|
@TableId(type = IdType.ASSIGN_ID)
|
||||||
|
@ApiModelProperty(value = "主键")
|
||||||
|
private String id;
|
||||||
|
/**创建人*/
|
||||||
|
@ApiModelProperty(value = "创建人")
|
||||||
|
private String createBy;
|
||||||
|
/**创建日期*/
|
||||||
|
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||||
|
@ApiModelProperty(value = "创建日期")
|
||||||
|
private Date createTime;
|
||||||
|
/**更新人*/
|
||||||
|
@ApiModelProperty(value = "更新人")
|
||||||
|
private String updateBy;
|
||||||
|
/**更新日期*/
|
||||||
|
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||||
|
@ApiModelProperty(value = "更新日期")
|
||||||
|
private Date updateTime;
|
||||||
|
/**所属部门*/
|
||||||
|
@ApiModelProperty(value = "所属部门")
|
||||||
|
private String sysOrgCode;
|
||||||
|
/**用户id*/
|
||||||
|
@Excel(name = "用户id", width = 15)
|
||||||
|
@ApiModelProperty(value = "用户id")
|
||||||
|
private String userId;
|
||||||
|
/**用户名*/
|
||||||
|
@Excel(name = "用户名", width = 15)
|
||||||
|
@ApiModelProperty(value = "用户名")
|
||||||
|
private String userName;
|
||||||
|
/**专业id,0表示未选择*/
|
||||||
|
@Excel(name = "专业id,0表示未选择", width = 15)
|
||||||
|
@ApiModelProperty(value = "专业id,0表示未选择")
|
||||||
|
private Integer majorId;
|
||||||
|
/**用户专业id*/
|
||||||
|
@Excel(name = "用户专业id", width = 15)
|
||||||
|
@ApiModelProperty(value = "用户专业id")
|
||||||
|
private String userMajorId;
|
||||||
|
/**学生id*/
|
||||||
|
@Excel(name = "学生id", width = 15)
|
||||||
|
@ApiModelProperty(value = "学生id")
|
||||||
|
private String studentId;
|
||||||
|
/**手机号*/
|
||||||
|
@Excel(name = "手机号", width = 15)
|
||||||
|
@ApiModelProperty(value = "手机号")
|
||||||
|
private String phone;
|
||||||
|
/**是否第一次阅卷*/
|
||||||
|
@Excel(name = "是否第一次阅卷", width = 15)
|
||||||
|
@ApiModelProperty(value = "是否第一次阅卷")
|
||||||
|
private String checked;
|
||||||
|
/**组id*/
|
||||||
|
@Excel(name = "组id", width = 15)
|
||||||
|
@ApiModelProperty(value = "组id")
|
||||||
|
private Integer groupId;
|
||||||
|
/**使用次数*/
|
||||||
|
@Excel(name = "使用次数", width = 15)
|
||||||
|
@ApiModelProperty(value = "使用次数")
|
||||||
|
private Integer numberuse;
|
||||||
|
/**状态:0正常 1禁用*/
|
||||||
|
@Excel(name = "状态:0正常 1禁用", width = 15)
|
||||||
|
@ApiModelProperty(value = "状态:0正常 1禁用")
|
||||||
|
private Integer status;
|
||||||
|
}
|
|
@ -0,0 +1,16 @@
|
||||||
|
package org.jeecg.modules.mapper;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import org.jeecg.modules.entity.CeesDormitoryInfo;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description: 宿舍信息表
|
||||||
|
* @Author: jeecg-boot
|
||||||
|
* @Date: 2025-03-03
|
||||||
|
* @Version: V1.0
|
||||||
|
*/
|
||||||
|
public interface CeesDormitoryInfoMapper extends BaseMapper<CeesDormitoryInfo> {
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,15 @@
|
||||||
|
package org.jeecg.modules.mapper;
|
||||||
|
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import org.jeecg.modules.entity.CeesLocalTeacher;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description: 本校教师表
|
||||||
|
* @Author: jeecg-boot
|
||||||
|
* @Date: 2025-03-03
|
||||||
|
* @Version: V1.0
|
||||||
|
*/
|
||||||
|
public interface CeesLocalTeacherMapper extends BaseMapper<CeesLocalTeacher> {
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,15 @@
|
||||||
|
package org.jeecg.modules.mapper;
|
||||||
|
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import org.jeecg.modules.entity.CeesWaiTeacher;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description: 外校老师管理
|
||||||
|
* @Author: jeecg-boot
|
||||||
|
* @Date: 2025-03-03
|
||||||
|
* @Version: V1.0
|
||||||
|
*/
|
||||||
|
public interface CeesWaiTeacherMapper extends BaseMapper<CeesWaiTeacher> {
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,15 @@
|
||||||
|
package org.jeecg.modules.mapper;
|
||||||
|
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import org.jeecg.modules.entity.Student;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description: 研究生表
|
||||||
|
* @Author: jeecg-boot
|
||||||
|
* @Date: 2025-03-03
|
||||||
|
* @Version: V1.0
|
||||||
|
*/
|
||||||
|
public interface StudentMapper extends BaseMapper<Student> {
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,5 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="org.jeecg.modules.mapper.CeesDormitoryInfoMapper">
|
||||||
|
|
||||||
|
</mapper>
|
|
@ -0,0 +1,5 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="org.jeecg.modules.mapper.CeesLocalTeacherMapper">
|
||||||
|
|
||||||
|
</mapper>
|
|
@ -0,0 +1,5 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="org.jeecg.modules.mapper.CeesWaiTeacherMapper">
|
||||||
|
|
||||||
|
</mapper>
|
|
@ -0,0 +1,5 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="org.jeecg.modules.mapper.StudentMapper">
|
||||||
|
|
||||||
|
</mapper>
|
|
@ -0,0 +1,14 @@
|
||||||
|
package org.jeecg.modules.service;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import org.jeecg.modules.entity.CeesDormitoryInfo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description: 宿舍信息表
|
||||||
|
* @Author: jeecg-boot
|
||||||
|
* @Date: 2025-03-03
|
||||||
|
* @Version: V1.0
|
||||||
|
*/
|
||||||
|
public interface ICeesDormitoryInfoService extends IService<CeesDormitoryInfo> {
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,15 @@
|
||||||
|
package org.jeecg.modules.service;
|
||||||
|
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import org.jeecg.modules.entity.CeesLocalTeacher;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description: 本校教师表
|
||||||
|
* @Author: jeecg-boot
|
||||||
|
* @Date: 2025-03-03
|
||||||
|
* @Version: V1.0
|
||||||
|
*/
|
||||||
|
public interface ICeesLocalTeacherService extends IService<CeesLocalTeacher> {
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,15 @@
|
||||||
|
package org.jeecg.modules.service;
|
||||||
|
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import org.jeecg.modules.entity.CeesWaiTeacher;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description: 外校老师管理
|
||||||
|
* @Author: jeecg-boot
|
||||||
|
* @Date: 2025-03-03
|
||||||
|
* @Version: V1.0
|
||||||
|
*/
|
||||||
|
public interface ICeesWaiTeacherService extends IService<CeesWaiTeacher> {
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,14 @@
|
||||||
|
package org.jeecg.modules.service;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import org.jeecg.modules.entity.Student;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description: 研究生表
|
||||||
|
* @Author: jeecg-boot
|
||||||
|
* @Date: 2025-03-03
|
||||||
|
* @Version: V1.0
|
||||||
|
*/
|
||||||
|
public interface IStudentService extends IService<Student> {
|
||||||
|
|
||||||
|
}
|
|
@ -1,4 +0,0 @@
|
||||||
package org.jeecg.modules.service;
|
|
||||||
|
|
||||||
public class UserService {
|
|
||||||
}
|
|
|
@ -0,0 +1,19 @@
|
||||||
|
package org.jeecg.modules.service.impl;
|
||||||
|
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import org.jeecg.modules.entity.CeesDormitoryInfo;
|
||||||
|
import org.jeecg.modules.mapper.CeesDormitoryInfoMapper;
|
||||||
|
import org.jeecg.modules.service.ICeesDormitoryInfoService;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description: 宿舍信息表
|
||||||
|
* @Author: jeecg-boot
|
||||||
|
* @Date: 2025-03-03
|
||||||
|
* @Version: V1.0
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class CeesDormitoryInfoServiceImpl extends ServiceImpl<CeesDormitoryInfoMapper, CeesDormitoryInfo> implements ICeesDormitoryInfoService {
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,19 @@
|
||||||
|
package org.jeecg.modules.service.impl;
|
||||||
|
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import org.jeecg.modules.entity.CeesLocalTeacher;
|
||||||
|
import org.jeecg.modules.mapper.CeesLocalTeacherMapper;
|
||||||
|
import org.jeecg.modules.service.ICeesLocalTeacherService;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description: 本校教师表
|
||||||
|
* @Author: jeecg-boot
|
||||||
|
* @Date: 2025-03-03
|
||||||
|
* @Version: V1.0
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class CeesLocalTeacherServiceImpl extends ServiceImpl<CeesLocalTeacherMapper, CeesLocalTeacher> implements ICeesLocalTeacherService {
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,19 @@
|
||||||
|
package org.jeecg.modules.service.impl;
|
||||||
|
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import org.jeecg.modules.entity.CeesWaiTeacher;
|
||||||
|
import org.jeecg.modules.mapper.CeesWaiTeacherMapper;
|
||||||
|
import org.jeecg.modules.service.ICeesWaiTeacherService;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description: 外校老师管理
|
||||||
|
* @Author: jeecg-boot
|
||||||
|
* @Date: 2025-03-03
|
||||||
|
* @Version: V1.0
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class CeesWaiTeacherServiceImpl extends ServiceImpl<CeesWaiTeacherMapper, CeesWaiTeacher> implements ICeesWaiTeacherService {
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,19 @@
|
||||||
|
package org.jeecg.modules.service.impl;
|
||||||
|
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import org.jeecg.modules.entity.Student;
|
||||||
|
import org.jeecg.modules.mapper.StudentMapper;
|
||||||
|
import org.jeecg.modules.service.IStudentService;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description: 研究生表
|
||||||
|
* @Author: jeecg-boot
|
||||||
|
* @Date: 2025-03-03
|
||||||
|
* @Version: V1.0
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class StudentServiceImpl extends ServiceImpl<StudentMapper, Student> implements IStudentService {
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue