开发运行环境:

神舟笔记本K650D-G6D1 i5-6400 GTX950M

Windows 10 专业版

Nginx 或 Apache Web 服务器软件

MySQL5.7.x 数据库

PHP7.1.0

PHPStrom 2017

PowerDesigner 16.5

Axure RP8

原型设计图(招聘申请)

数据库表(招聘申请):招聘申请ID,申请日期,岗位,岗位编制人数,到岗时间,隶属部门,在岗人数,招聘人数,招聘原因,招聘原因其它,职责说明,任职资格说明,学历,学科知识,职能等级,综合能力,语言能力,计算机水平,工作经验,性别,年龄,其它,添加时间,编辑时间,添加人,编辑人,是否删除。

招聘申请表SQL代码:

create table zy_recruit_apply

(

apply_id int not null auto_increment comment '招聘申请ID',

apply_date int not null default 0 comment '申请日期',

post char(50) not null default '' comment '岗位',

post_count smallint not null default 0 comment '岗位编制人数',

arrival_time int not null default 0 comment '到岗时间',

org_dpm_id int not null default 0 comment '隶属部门',

on_post_count smallint not null default 0 comment '在岗人数',

recruit_count smallint not null default 0 comment '招聘人数',

recruit_reason char(100) not null default '' comment '招聘原因:0-其它 1-储备人才 2-兼职 3-离职补充 4-扩大编制 (多选用 "," 分隔)',

recruit_reason_other char(100) not null default '' comment '招聘原因其它:记录招聘原因-其它选项的说明',

duty_explain text comment '职责说明',

post_explain varchar(500) not null default '' comment '任职资格说明',

education char(50) not null default '' comment '学历',

subject_knowledge char(200) not null default '' comment '学科知识',

function_level char(255) not null default '' comment '职能等级',

composite_ability char(255) not null default '' comment '综合能力',

language_ability char(255) not null default '' comment '语言能力',

computer_level char(255) not null default '' comment '计算机水平',

work_experience char(255) not null default '' comment '工作经验',

sex tinyint not null default 0 comment '性别:0 不限 1 男 2 女',

age char(50) not null default '' comment '年龄',

other char(255) not null default '' comment '其它',

add_time int not null default 0 comment '添加时间',

edit_time int not null default 0 comment '编辑时间',

add_uid int not null default 0 comment '添加人',

edit_uid int not null default 0 comment '编辑人',

is_del tinyint not null default 0 comment '是否删除:0否 1是',

primary key (apply_id)

);

alter table zy_recruit_apply comment '招聘申请';

招聘申请表单界面:

PHP实现代码:

public function add(){

$orgDpmLogic = new OrgDepartmentLogic();

$listTree = $orgDpmLogic->listOrderTree(0);

$this->assign('listTree',$listTree);

$recruitReason = config('recruit_reason');

$this->assign('recruitReason',$recruitReason);

$this->assign('sex',[0=>'不限',1=>'男',2=>'女']);

//审批模板类型 - 1 招聘申请

$templateType = 1;

$approvalTypeLogic = new ApprovalTypeLogic();

$approvalType = $approvalTypeLogic->getRecordByTemplateType($templateType);

if(!$approvalType){

$this->error('审批模板不存在!');

exit;

}

//获取招聘申请流程

$approvalFlowLogic = new ApprovalFlowLogic();

$approvalFlowList = $approvalFlowLogic->getRecordList($approvalType['type_id']);

$this->assign('approvalType',$approvalType);

$this->assign('approvalFlowList',$approvalFlowList);

return $this->fetch();

}

public function add_save(){

$result = new Result();

if($this->request->isPost() == false){

$result->msg = '添加失败:非法操作!';

$result->success = false;

return $result;

}

$postData = $this->request->post();

$result = $this->addEditEmptyCheck($postData);

if(!$result->success) return $result;

$postData['apply_date'] = strtotime($postData['apply_date']);

$postData['arrival_time'] = strtotime($postData['arrival_time']);

if(isset($postData['recruit_reason']) && count($postData['recruit_reason'])){

$postData['recruit_reason'] = implode(',',$postData['recruit_reason']);

}else{

$postData['recruit_reason'] = '';

}

$uid = $this->userId;

$time = time();

$postData['add_time'] = $time;

$postData['add_uid'] = $uid;

$postData['edit_time'] = $time;

$postData['edit_uid'] = $uid;

$detail = $postData['detail'];

unset($postData['detail']);

$typeId = $postData['type_id'];

unset($postData['type_id']);

$result = $this->logic->addRecruitApply($postData);

//发起审批

if($result->success){

$approval = array();

$approval['type_id'] = $typeId;

$approval['title'] = '招聘申请-'.date('YmdHis',time());

$approval['approval_status'] = 0;

$approval['initiate_uid'] = $this->userId;

$approval['source_id'] = $result->data;

$detailList = array();

foreach($detail['approval_uid'] as $k=>$v){

$data = array();

$data['approval_id'] = 0;

$data['approval_uid'] = $v;

$data['flow_id'] = $detail['flow_id'][$k];

$data['approval_weight'] = $detail['approval_weight'][$k];

array_push($detailList,$data);

}

$approvalLogic = new ApprovalLogic();

$approvalLogic->startApproval($approval,$detailList);

}

return $result;

}

这是Controller层的代码,业务实现逻辑都放到了Logic业务逻辑层实现。

原创作者:ACRM保险师,kjuQ-kjuQ:282130106。

如有转载,敬请注明原创作者与出处,谢谢。

招聘PHP聚合系统,Thinkphp5开发OA办公系统之招聘申请相关推荐

  1. Thinkphp5 开发 OA 办公系统 - 数据库设计

    2019独角兽企业重金招聘Python工程师标准>>> 自从接触到用PowerDesigner做数据库建模后,喜欢它就停不下来了.我发现现在很多2-20人的团队在做数据库结构设计时, ...

  2. 协同办公系统运用的PHP框架,Thinkphp5 开发 OA 办公系统 - 项目管理

    多人协作开发方面,目前主要是用 svn 来管理团队代码提交,看到网上很多人都开始转去用 git 了.想想自己用 svn 都能满足现在的需求,就暂时先不去熟悉 git 了,有用到的时候再熟悉一下就行. ...

  3. oa 招聘 java_Thinkphp5开发OA办公系统之招聘申请

    开发运行环境: 神舟笔记本K650D-G6D1 i5-6400 GTX950M Windows 10 专业版 Nginx 或 Apache Web 服务器软件 MySQL5.7.x 数据库 PHP7. ...

  4. oa办公系统都有哪家?

    2022目前国内做的好的oa办公系统都有哪家?下面和织信一起来看看吧! 1.泛微weaver 上海泛微网络科技股份有限公司成立于2001年,总部设立于上海,专注于协同管理软件领域,帮助组织构建统一的数 ...

  5. 如何高效开发一个OA办公系统?

    如何才能高效开发一个OA办公系统?这篇教你使用零代码工具从0-1搭建一个OA办公系统,无需代码基础,只要你懂业务,只需3步即可搭建! 先来看看效果-- 系统模板>>https://www. ...

  6. OA办公系统的开发为企业带来的好处

    随着企业的发展,管理各方面的事务变得越来越复杂,而手动处理这些事务可能会消耗大量的时间和资源,从而影响企业的效率和生产力.为了解决这个问题,越来越多的企业开始采用OA办公系统. OA办公系统是一种集成 ...

  7. ​如何高效开发一个OA办公系统​?

    如何才能高效开发一个OA办公系统?这篇教你使用零代码工具从0-1搭建一个OA办公系统,无需代码基础,只要你懂业务,只需3步即可搭建! 先来看看效果-- 系统模板>> https://www ...

  8. OA应用案例:采矿业如何应用OA办公系统

    OA应用案例:采矿业如何应用OA办公系统经过多日洽谈交流,近日大连华天软件有限公司与山东油服井下作业有限公司达成合作协议.华天OA系统将从个人办公.文档中心.综合行政.客户管理.人力资源等全面助力山东 ...

  9. 基于springboot2的开源OA办公系统

    Active4j-oa是基于active4j-jsp快速开发框架构建而来的OA办公系统.基于springboot2.0,以Spring Framework为核心容器,Spring MVC为模型视图控制 ...

  10. java毕业设计OA办公系统mybatis+源码+调试部署+系统+数据库+lw

    java毕业设计OA办公系统mybatis+源码+调试部署+系统+数据库+lw java毕业设计OA办公系统mybatis+源码+调试部署+系统+数据库+lw 本源码技术栈: 项目架构:B/S架构 开 ...

最新文章

  1. const与define相比优点_const与#define的区别、优点
  2. Leetcode: Spiral Matrix
  3. redis transaction和connection命令操作
  4. pat天梯赛L1-052. 2018我们要赢
  5. Codeforces 993C. Careful Maneuvering(详细注解)
  6. 深入理解事件循环机制
  7. Java 常见的 30 个误区与细节!
  8. 【Elastischearch】Elastischearch bulk 请求源码
  9. mysql with-embedded-server_终于成功实验程序实现Embedded MySQL Server启动(C/C++)
  10. 三相锁相 c 语言 程序,轻松玩转DSP——基于TMS320F2833x(Word+PDF+ePub+PPT)
  11. 【具体数学 读书笔记】1.2 Lines in the Plane
  12. css固定姓名显示长度,排列更整齐
  13. laravel 下载图片跨域问题
  14. 串联电阻分压计算器---实际常用电阻表
  15. gitlab增加p3c-hook强制代码规范
  16. mysql front不能上到_mysqlfront不能上到Mysql服务器连接quot;192.168.5.*_MySQL
  17. WIN10投影的无限显示器安装失败快速助手无法正常打开
  18. 小米电视/盒子 访问群晖 需要打开 设置“SMB1”
  19. 找完工作后的感受总结,用以共勉
  20. 一次Flannel和Docker网络不通定位问题

热门文章

  1. 快手作者视频如何批量下载
  2. 韦东山嵌入式Linux第一期视频-韦东山-专题视频课程
  3. 模板方法模式-Template Method Pattern
  4. java爬虫 教程_Java爬虫其实也很简单,教你实用的入门级爬虫
  5. TwinCAT与台达伺服驱动器连接调试控制电机正反转
  6. ISO/IEC 20000 信息技术(IT)服务管理体系及全套最新标准资料
  7. caffee2安装 踩坑记录
  8. Oracle修改字段长度
  9. 代码审计工具学习之RISP(安装以及初步操作)
  10. ZK(1)——分布式系统概念与ZK简介