由SpringBoot+VUE+Mysql實(shí)現(xiàn)的網(wǎng)站的設(shè)計(jì)
功能模塊
設(shè)計(jì)思路:主要分為管理員、畢業(yè)生、招聘企業(yè)三大身份模塊
?首先是登錄界面
注冊(cè)界面
其次就是公共頁(yè)面
公共頁(yè)面又分為首頁(yè)、空中宣講會(huì)、招聘崗位、求職信息、論壇信息、試卷列表、招聘資訊、個(gè)人中心和后臺(tái)管理、設(shè)計(jì)考試試題等
首頁(yè)
空中宣講會(huì)界面
?
?求職信息
此界面可以進(jìn)行崗位要求精準(zhǔn)查詢(xún)功能
使用查詢(xún)功能
部分核心代碼
@RequestMapping("/lists")
public R list( QiuzhixinxiEntity qiuzhixinxi){
EntityWrapper<QiuzhixinxiEntity> ew = new EntityWrapper<QiuzhixinxiEntity>();
ew.allEq(MPUtil.allEQMapPre( qiuzhixinxi, "qiuzhixinxi"));
return R.ok().put("data", qiuzhixinxiService.selectListView(ew));
}
@RequestMapping("/query")
public R query(QiuzhixinxiEntity qiuzhixinxi){
EntityWrapper< QiuzhixinxiEntity> ew = new EntityWrapper< QiuzhixinxiEntity>();
ew.allEq(MPUtil.allEQMapPre( qiuzhixinxi, "qiuzhixinxi"));
QiuzhixinxiView qiuzhixinxiView = qiuzhixinxiService.selectView(ew);
return R.ok("查詢(xún)求職信息成功").put("data", qiuzhixinxiView);
}
@RequestMapping("/info/{id}")
public R info(@PathVariable("id") String id){
QiuzhixinxiEntity qiuzhixinxi = qiuzhixinxiService.selectById(id);
return R.ok().put("data", qiuzhixinxi);
}
@RequestMapping("/detail/{id}")
public R detail(@PathVariable("id") String id){
QiuzhixinxiEntity qiuzhixinxi = qiuzhixinxiService.selectById(id);
return R.ok().put("data", qiuzhixinxi);
}
@RequestMapping("/save")
public R save(@RequestBody QiuzhixinxiEntity qiuzhixinxi, HttpServletRequest request){
qiuzhixinxi.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(qiuzhixinxi);
qiuzhixinxiService.insert(qiuzhixinxi);
return R.ok();
}
@RequestMapping("/add")
public R add(@RequestBody QiuzhixinxiEntity qiuzhixinxi, HttpServletRequest request){
qiuzhixinxi.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(qiuzhixinxi);
qiuzhixinxiService.insert(qiuzhixinxi);
return R.ok();
}
模塊1 管理員功能權(quán)限
管理員主要功能:訪(fǎng)問(wèn)頁(yè)面、個(gè)人中心管理、企業(yè)管理、空中宣講會(huì)管理、招聘崗位管理、畢業(yè)生管理、個(gè)人簡(jiǎn)歷管理、求職信息管理、信息咨詢(xún)管理、崗位應(yīng)聘管理
管理員后臺(tái)
管理員主要權(quán)限包括了畢業(yè)生、企業(yè)的所有功能,即擁有超級(jí)權(quán)限,可以修改、查詢(xún)?nèi)魏涡畔ⅰ?/p>
?
部分核心代碼:
@RequestMapping("/save")
public R save(@RequestBody QiyeEntity qiye, HttpServletRequest request){
qiye.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(qiye);
QiyeEntity user = qiyeService.selectOne(new EntityWrapper<QiyeEntity>().eq("qiyebianhao", qiye.getQiyebianhao()));
if(user!=null) {
return R.error("用戶(hù)已存在");
}
qiye.setId(new Date().getTime());
qiyeService.insert(qiye);
return R.ok();
}
@RequestMapping("/remind/{columnName}/{type}")
public R remindCount(@PathVariable("columnName") String columnName, HttpServletRequest request,
@PathVariable("type") String type,@RequestParam Map<String, Object> map) {
map.put("column", columnName);
map.put("type", type);
if(type.equals("2")) {
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
Calendar c = Calendar.getInstance();
Date remindStartDate = null;
Date remindEndDate = null;
if(map.get("remindstart")!=null) {
Integer remindStart = Integer.parseInt(map.get("remindstart").toString());
c.setTime(new Date());
c.add(Calendar.DAY_OF_MONTH,remindStart);
remindStartDate = c.getTime();
map.put("remindstart", sdf.format(remindStartDate));
}
if(map.get("remindend")!=null) {
Integer remindEnd = Integer.parseInt(map.get("remindend").toString());
c.setTime(new Date());
c.add(Calendar.DAY_OF_MONTH,remindEnd);
remindEndDate = c.getTime();
map.put("remindend", sdf.format(remindEndDate));
}
}
Wrapper<QiyeEntity> wrapper = new EntityWrapper<QiyeEntity>();
if(map.get("remindstart")!=null) {
wrapper.ge(columnName, map.get("remindstart"));
}
if(map.get("remindend")!=null) {
wrapper.le(columnName, map.get("remindend"));
}
int count = qiyeService.selectCount(wrapper);
return R.ok().put("count", count);
}
@RestController
@RequestMapping("/examrecord")
public class ExamrecordController {
@Autowired
private ExamrecordService examrecordService;
@RequestMapping("/groupby")
public R page2(@RequestParam Map<String, Object> params,ExamrecordEntity examrecord, HttpServletRequest request){
if(!request.getSession().getAttribute("role").toString().equals("管理員")) {
examrecord.setUserid((Long)request.getSession().getAttribute("userId"));
}
EntityWrapper<ExamrecordEntity> ew = new EntityWrapper<ExamrecordEntity>();
PageUtils page = examrecordService.queryPageGroupBy(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, examrecord), params), params));
return R.ok().put("data", page);
}
@RequestMapping("/page")
public R page(@RequestParam Map<String, Object> params,ExamrecordEntity examrecord, HttpServletRequest request){
if(!request.getSession().getAttribute("role").toString().equals("管理員")) {
examrecord.setUserid((Long)request.getSession().getAttribute("userId"));
}
EntityWrapper<ExamrecordEntity> ew = new EntityWrapper<ExamrecordEntity>();
PageUtils page = examrecordService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, examrecord), params), params));
return R.ok().put("data", page);
}
@RequestMapping("/list")
public R list(@RequestParam Map<String, Object> params,ExamrecordEntity examrecord, HttpServletRequest request){
if(!request.getSession().getAttribute("role").toString().equals("管理員")) {
examrecord.setUserid((Long)request.getSession().getAttribute("userId"));
}
EntityWrapper<ExamrecordEntity> ew = new EntityWrapper<ExamrecordEntity>();
PageUtils page = examrecordService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, examrecord), params), params));
return R.ok().put("data", page);
}
?修改企業(yè)信息
可以對(duì)企業(yè)的相關(guān)信息進(jìn)行一系列操作
@RequestMapping("/page")
public R page(@RequestParam Map<String, Object> params,ZhaopingangweiEntity zhaopingangwei, HttpServletRequest request){
String tableName = request.getSession().getAttribute("tableName").toString();
if(tableName.equals("qiye")) {
zhaopingangwei.setQiyebianhao((String)request.getSession().getAttribute("username"));
}
EntityWrapper<ZhaopingangweiEntity> ew = new EntityWrapper<ZhaopingangweiEntity>();
PageUtils page = zhaopingangweiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, zhaopingangwei), params), params));
return R.ok().put("data", page);
}
@IgnoreAuth
@RequestMapping("/list")
public R list(@RequestParam Map<String, Object> params,ZhaopingangweiEntity zhaopingangwei, HttpServletRequest request){
EntityWrapper<ZhaopingangweiEntity> ew = new EntityWrapper<ZhaopingangweiEntity>();
PageUtils page = zhaopingangweiService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, zhaopingangwei), params), params));
return R.ok().put("data", page);
}
模塊2 畢業(yè)生功能權(quán)限
畢業(yè)生主要功能:訪(fǎng)問(wèn)首頁(yè)、個(gè)人中心管理、個(gè)人簡(jiǎn)歷管理、信息咨詢(xún)管理、崗位搜索、訪(fǎng)問(wèn)考試并參與等
畢業(yè)生個(gè)人中心
此頁(yè)面可以進(jìn)行修改個(gè)人信息,也可以查看自己的收藏、包括考試記錄等。
@IgnoreAuth
@RequestMapping(value = "/login")
public R login(String username, String password, String captcha, HttpServletRequest request) {
BiyeshengEntity user = biyeshengService.selectOne(new EntityWrapper<BiyeshengEntity>().eq("yonghuming", username));
if(user==null || !user.getMima().equals(password)) {
return R.error("賬號(hào)或密碼不正確");
}
String token = tokenService.generateToken(user.getId(), username,"biyesheng", "畢業(yè)生" );
return R.ok().put("token", token);
}
@IgnoreAuth
@RequestMapping("/register")
public R register(@RequestBody BiyeshengEntity biyesheng){
//ValidatorUtils.validateEntity(biyesheng);
BiyeshengEntity user = biyeshengService.selectOne(new EntityWrapper<BiyeshengEntity>().eq("yonghuming", biyesheng.getYonghuming()));
if(user!=null) {
return R.error("注冊(cè)用戶(hù)已存在");
}
Long uId = new Date().getTime();
biyesheng.setId(uId);
biyeshengService.insert(biyesheng);
return R.ok();
}
@RequestMapping("/logout")
public R logout(HttpServletRequest request) {
request.getSession().invalidate();
return R.ok("退出成功");
}
@RequestMapping("/session")
public R getCurrUser(HttpServletRequest request){
Long id = (Long)request.getSession().getAttribute("userId");
BiyeshengEntity user = biyeshengService.selectById(id);
return R.ok().put("data", user);
}
畢業(yè)生查看招聘試題功能
查看招聘試題功能
?
@RequestMapping("/save")
public R save(@RequestBody ExamrecordEntity examrecord, HttpServletRequest request){
examrecord.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(examrecord);
examrecord.setUserid((Long)request.getSession().getAttribute("userId"));
examrecordService.insert(examrecord);
return R.ok();
}
@RequestMapping("/add")
public R add(@RequestBody ExamrecordEntity examrecord, HttpServletRequest request){
examrecord.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(examrecord);
examrecord.setUserid((Long)request.getSession().getAttribute("userId"));
examrecordService.insert(examrecord);
return R.ok();
}
@RequestMapping("/update")
public R update(@RequestBody ExamrecordEntity examrecord, HttpServletRequest request){
//ValidatorUtils.validateEntity(examrecord);
examrecordService.updateById(examrecord);//全部更新
return R.ok();
}
@RequestMapping("/delete")
public R delete(@RequestBody Long[] ids){
examrecordService.deleteBatchIds(Arrays.asList(ids));
return R.ok();
}
@RequestMapping("/remind/{columnName}/{type}")
public R remindCount(@PathVariable("columnName") String columnName, HttpServletRequest request,
@PathVariable("type") String type,@RequestParam Map<String, Object> map) {
map.put("column", columnName);
map.put("type", type);
@RequestMapping("/save")
public R save(@RequestBody BiyeshengEntity biyesheng, HttpServletRequest request){
biyesheng.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(biyesheng);
BiyeshengEntity user = biyeshengService.selectOne(new EntityWrapper<BiyeshengEntity>().eq("yonghuming", biyesheng.getYonghuming()));
if(user!=null) {
return R.error("用戶(hù)已存在");
}
biyesheng.setId(new Date().getTime());
biyeshengService.insert(biyesheng);
return R.ok();
}
@RequestMapping("/add")
public R add(@RequestBody BiyeshengEntity biyesheng, HttpServletRequest request){
biyesheng.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(biyesheng);
BiyeshengEntity user = biyeshengService.selectOne(new EntityWrapper<BiyeshengEntity>().eq("yonghuming", biyesheng.getYonghuming()));
if(user!=null) {
return R.error("用戶(hù)已存在");
}
biyesheng.setId(new Date().getTime());
biyeshengService.insert(biyesheng);
return R.ok();
}
?模塊3 企業(yè)功能權(quán)限
?企業(yè)主要功能有訪(fǎng)問(wèn)主頁(yè)、個(gè)人中心管理、空中宣講會(huì)管理、招聘崗位管理、信息咨詢(xún)管理、崗位應(yīng)聘管理等
?企業(yè)后臺(tái)頁(yè)面
崗位應(yīng)聘頁(yè)面
在此頁(yè)面企業(yè)可以查看畢業(yè)生對(duì)企業(yè)發(fā)起的求職信息,在此對(duì)畢業(yè)生進(jìn)行線(xiàn)上面試
?
主要核心代碼
@RestController
@RequestMapping("/mianshihuifu")
public class MianshihuifuController {
@Autowired
private MianshihuifuService mianshihuifuService;
@RequestMapping("/page")
public R page(@RequestParam Map<String, Object> params,MianshihuifuEntity mianshihuifu, HttpServletRequest request){
String tableName = request.getSession().getAttribute("tableName").toString();
if(tableName.equals("qiye")) {
mianshihuifu.setQiyebianhao((String)request.getSession().getAttribute("username"));
}
if(tableName.equals("biyesheng")) {
mianshihuifu.setYonghuming((String)request.getSession().getAttribute("username"));
}
EntityWrapper<MianshihuifuEntity> ew = new EntityWrapper<MianshihuifuEntity>();
PageUtils page = mianshihuifuService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, mianshihuifu), params), params));
return R.ok().put("data", page);
}
@RequestMapping("/list")
public R list(@RequestParam Map<String, Object> params,MianshihuifuEntity mianshihuifu, HttpServletRequest request){
EntityWrapper<MianshihuifuEntity> ew = new EntityWrapper<MianshihuifuEntity>();
PageUtils page = mianshihuifuService.queryPage(params, MPUtil.sort(MPUtil.between(MPUtil.likeOrEq(ew, mianshihuifu), params), params));
return R.ok().put("data", page);
}
@RequestMapping("/lists")
public R list( MianshihuifuEntity mianshihuifu){
EntityWrapper<MianshihuifuEntity> ew = new EntityWrapper<MianshihuifuEntity>();
ew.allEq(MPUtil.allEQMapPre( mianshihuifu, "mianshihuifu"));
return R.ok().put("data", mianshihuifuService.selectListView(ew));
}
@RequestMapping("/query")
public R query(MianshihuifuEntity mianshihuifu){
EntityWrapper< MianshihuifuEntity> ew = new EntityWrapper< MianshihuifuEntity>();
ew.allEq(MPUtil.allEQMapPre( mianshihuifu, "mianshihuifu"));
MianshihuifuView mianshihuifuView = mianshihuifuService.selectView(ew);
return R.ok("查詢(xún)面試回復(fù)成功").put("data", mianshihuifuView);
}
@RequestMapping("/info/{id}")
public R info(@PathVariable("id") String id){
MianshihuifuEntity mianshihuifu = mianshihuifuService.selectById(id);
return R.ok().put("data", mianshihuifu);
}
@RequestMapping("/detail/{id}")
public R detail(@PathVariable("id") String id){
MianshihuifuEntity mianshihuifu = mianshihuifuService.selectById(id);
return R.ok().put("data", mianshihuifu);
}
@RequestMapping("/save")
public R save(@RequestBody MianshihuifuEntity mianshihuifu, HttpServletRequest request){
mianshihuifu.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(mianshihuifu);
mianshihuifuService.insert(mianshihuifu);
return R.ok();
}
?招聘問(wèn)題管理
?部分核心代碼
@RequestMapping("/add")
public R add(@RequestBody ExamquestionEntity examquestion, HttpServletRequest request){
examquestion.setId(new Date().getTime()+new Double(Math.floor(Math.random()*1000)).longValue());
//ValidatorUtils.validateEntity(examquestion);
examquestionService.insert(examquestion);
return R.ok();
}
@RequestMapping("/update")
public R update(@RequestBody ExamquestionEntity examquestion, HttpServletRequest request){
//ValidatorUtils.validateEntity(examquestion);
examquestionService.updateById(examquestion);//全部更新
return R.ok();
}
@RequestMapping("/delete")
public R delete(@RequestBody Long[] ids){
examquestionService.deleteBatchIds(Arrays.asList(ids));
return R.ok();
}
@RequestMapping("/remind/{columnName}/{type}")
public R remindCount(@PathVariable("columnName") String columnName, HttpServletRequest request,
@PathVariable("type") String type,@RequestParam Map<String, Object> map) {
map.put("column", columnName);
map.put("type", type);
if(type.equals("2")) {
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
Calendar c = Calendar.getInstance();
Date remindStartDate = null;
Date remindEndDate = null;
if(map.get("remindstart")!=null) {
Integer remindStart = Integer.parseInt(map.get("remindstart").toString());
c.setTime(new Date());
c.add(Calendar.DAY_OF_MONTH,remindStart);
remindStartDate = c.getTime();
map.put("remindstart", sdf.format(remindStartDate));
}
if(map.get("remindend")!=null) {
Integer remindEnd = Integer.parseInt(map.get("remindend").toString());
c.setTime(new Date());
c.add(Calendar.DAY_OF_MONTH,remindEnd);
remindEndDate = c.getTime();
map.put("remindend", sdf.format(remindEndDate));
}
}
?設(shè)計(jì)說(shuō)明文檔
?下面是功能設(shè)計(jì)文檔部分內(nèi)容
文檔一共分為六個(gè)部分
1、緒論
2、相關(guān)技術(shù)原理和開(kāi)發(fā)工具
3、系統(tǒng)分析
4、系統(tǒng)設(shè)計(jì)
5、系統(tǒng)功能模塊的實(shí)現(xiàn)
6、系統(tǒng)測(cè)試
?
文章來(lái)源:http://www.zghlxwxcb.cn/news/detail-605088.html
如果有問(wèn)題可以直接私信文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-605088.html
到了這里,關(guān)于畢業(yè)生求職招聘網(wǎng)站的設(shè)計(jì)與實(shí)現(xiàn)JAVA(SpringBoot+VUE+Mysql)的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!