Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
doc_wei
Skyeye
提交
df0751f2
S
Skyeye
项目概览
doc_wei
/
Skyeye
通知
1173
Star
154
Fork
127
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
Skyeye
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
df0751f2
编写于
11月 30, 2021
作者:
doc_wei
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'company_server' of
https://gitee.com/doc_wei01/skyeye
into company_server
上级
c7c67b43
1693d09f
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
44 addition
and
25 deletion
+44
-25
skyeye-boss/src/main/java/com/skyeye/service/impl/BossIntervieweeServiceImpl.java
...a/com/skyeye/service/impl/BossIntervieweeServiceImpl.java
+13
-25
skyeye-common/src/main/java/com/skyeye/common/constans/IntervieweeStatusEnum.java
...ava/com/skyeye/common/constans/IntervieweeStatusEnum.java
+31
-0
未找到文件。
skyeye-boss/src/main/java/com/skyeye/service/impl/BossIntervieweeServiceImpl.java
浏览文件 @
df0751f2
...
...
@@ -5,6 +5,7 @@
package
com.skyeye.service.impl
;
import
cn.hutool.core.collection.CollectionUtil
;
import
com.skyeye.common.constans.IntervieweeStatusEnum
;
import
com.skyeye.common.object.InputObject
;
import
com.skyeye.common.object.OutputObject
;
import
com.skyeye.common.util.DateUtil
;
...
...
@@ -31,21 +32,6 @@ public class BossIntervieweeServiceImpl implements BossIntervieweeService {
@Autowired
private
BossIntervieweeDao
bossIntervieweeDao
;
// 待面试状态
private
static
final
Integer
PENDING_INTERVIEW_STATUS
=
0
;
// 面试中状态
private
static
final
Integer
INTERVIEW_STATUS
=
1
;
// 面试通过状态
private
static
final
Integer
INTERVIEW_PASS_STATUS
=
2
;
// 面试不通过状态
private
static
final
Integer
INTERVIEW_FAILED_STATUS
=
3
;
// 拒绝入职状态
private
static
final
Integer
REJECTED_STATUS
=
4
;
@Override
public
void
queryBossIntervieweeList
(
InputObject
inputObject
,
OutputObject
outputObject
)
throws
Exception
{
Map
<
String
,
Object
>
inputParams
=
inputObject
.
getParams
();
...
...
@@ -63,7 +49,7 @@ public class BossIntervieweeServiceImpl implements BossIntervieweeService {
return
;
}
// 状态(0.待面试 1.面试中 2.面试通过 3.全部面试不通过 4.拒绝入职)
inputParams
.
put
(
"state"
,
PENDING_INTERVIEW_STATUS
);
inputParams
.
put
(
"state"
,
IntervieweeStatusEnum
.
PENDING_INTERVIEW_STATUS
.
getStatus
()
);
inputParams
.
put
(
"id"
,
ToolUtil
.
getSurFaceId
());
inputParams
.
put
(
"createTime"
,
DateUtil
.
getTimeAndToString
());
inputParams
.
put
(
"userId"
,
inputObject
.
getLogParams
().
get
(
"id"
));
...
...
@@ -82,11 +68,12 @@ public class BossIntervieweeServiceImpl implements BossIntervieweeService {
return
false
;
}
Integer
state
=
Integer
.
valueOf
(
bossIntervieweeBean
.
get
(
"state"
).
toString
());
List
<
Integer
>
needCheckStates
=
Arrays
.
asList
(
PENDING_INTERVIEW_STATUS
,
INTERVIEW_STATUS
,
INTERVIEW_FAILED_STATUS
);
List
<
Integer
>
needCheckStates
=
Arrays
.
asList
(
IntervieweeStatusEnum
.
PENDING_INTERVIEW_STATUS
.
getStatus
(),
IntervieweeStatusEnum
.
INTERVIEW_STATUS
.
getStatus
(),
IntervieweeStatusEnum
.
INTERVIEW_FAILED_STATUS
.
getStatus
());
if
(
needCheckStates
.
contains
(
state
))
{
outputObject
.
setreturnMessage
(
"同一个姓名、手机号的面试者已存在, 请重新确认面试者信息!"
);
return
true
;
}
else
if
(
I
NTERVIEW_PASS_STATUS
.
equals
(
state
))
{
}
else
if
(
I
ntervieweeStatusEnum
.
INTERVIEW_PASS_STATUS
.
getStatus
()
.
equals
(
state
))
{
Date
lastJoinTimeDate
=
DateUtil
.
getPointTime
(
bossIntervieweeBean
.
get
(
"lastJoinTime"
).
toString
(),
DateUtil
.
YYYY_MM_DD
);
// 比较当前时间与最后入职的日期相差几个月
long
differMonth
=
cn
.
hutool
.
core
.
date
.
DateUtil
.
betweenMonth
(
lastJoinTimeDate
,
new
Date
(),
true
);
...
...
@@ -94,10 +81,10 @@ public class BossIntervieweeServiceImpl implements BossIntervieweeService {
outputObject
.
setreturnMessage
(
"该面试者通过面试未没有超过半年,则不允许录入"
);
return
true
;
}
}
else
if
(
REJECTED_STATUS
.
equals
(
state
))
{
Date
lastJoin
TimeDate
=
DateUtil
.
getPointTime
(
bossIntervieweeBean
.
get
(
"refuseTime"
).
toString
(),
DateUtil
.
YYYY_MM_DD
);
}
else
if
(
IntervieweeStatusEnum
.
REJECTED_STATUS
.
getStatus
()
.
equals
(
state
))
{
Date
refuse
TimeDate
=
DateUtil
.
getPointTime
(
bossIntervieweeBean
.
get
(
"refuseTime"
).
toString
(),
DateUtil
.
YYYY_MM_DD
);
// 比较当前时间与最后入职的日期相差几个月
long
differMonth
=
cn
.
hutool
.
core
.
date
.
DateUtil
.
betweenMonth
(
lastJoin
TimeDate
,
new
Date
(),
true
);
long
differMonth
=
cn
.
hutool
.
core
.
date
.
DateUtil
.
betweenMonth
(
refuse
TimeDate
,
new
Date
(),
true
);
if
(
differMonth
<
6
)
{
outputObject
.
setreturnMessage
(
"该面试者不通过面试未没有超过半年,则不允许录入"
);
return
true
;
...
...
@@ -128,15 +115,16 @@ public class BossIntervieweeServiceImpl implements BossIntervieweeService {
}
Integer
state
=
Integer
.
valueOf
(
bossIntervieweeBean
.
get
(
"state"
).
toString
());
// state=0/1可以进行编辑
if
(
state
.
equals
(
PENDING_INTERVIEW_STATUS
)
||
state
.
equals
(
INTERVIEW_STATUS
))
{
if
(
IntervieweeStatusEnum
.
PENDING_INTERVIEW_STATUS
.
getStatus
().
equals
(
state
)
||
IntervieweeStatusEnum
.
INTERVIEW_STATUS
.
getStatus
().
equals
(
state
))
{
if
(
repeatVerification
(
outputObject
,
inputParams
,
id
)){
return
;
}
// 入参state
Integer
inputState
=
Integer
.
valueOf
(
inputParams
.
get
(
"state"
).
toString
());
if
(
I
NTERVIEW_PASS_STATUS
.
equals
(
inputState
))
{
if
(
I
ntervieweeStatusEnum
.
INTERVIEW_PASS_STATUS
.
getStatus
()
.
equals
(
inputState
))
{
inputParams
.
put
(
"lastJoinTime"
,
DateUtil
.
getYmdTimeAndToString
());
}
else
if
(
REJECTED_STATUS
.
equals
(
inputState
))
{
}
else
if
(
IntervieweeStatusEnum
.
REJECTED_STATUS
.
getStatus
()
.
equals
(
inputState
))
{
inputParams
.
put
(
"refuseTime"
,
DateUtil
.
getYmdTimeAndToString
());
}
inputParams
.
put
(
"userId"
,
inputObject
.
getLogParams
().
get
(
"id"
));
...
...
@@ -154,7 +142,7 @@ public class BossIntervieweeServiceImpl implements BossIntervieweeService {
Map
<
String
,
Object
>
bossIntervieweeBean
=
bossIntervieweeDao
.
queryBossIntervieweeById
(
id
);
if
(
bossIntervieweeBean
!=
null
)
{
Integer
state
=
Integer
.
valueOf
(
bossIntervieweeBean
.
get
(
"state"
).
toString
());
if
(!
state
.
equals
(
0
))
{
if
(!
IntervieweeStatusEnum
.
PENDING_INTERVIEW_STATUS
.
getStatus
().
equals
(
state
))
{
outputObject
.
setreturnMessage
(
"删除失败, 只有待面试状态的数据可删除!"
);
return
;
}
...
...
skyeye-common/src/main/java/com/skyeye/common/constans/IntervieweeStatusEnum.java
0 → 100644
浏览文件 @
df0751f2
package
com.skyeye.common.constans
;
/**
*
* @ClassName: IntervieweeStatusEnum
* @Description: 面试状态
* @author: skyeye云系列--郑杰
* @date: 2021/11/30 23:04
*
* @Copyright: 2021 https://gitee.com/doc_wei01/skyeye Inc. All rights reserved.
* 注意:本内容仅限购买后使用.禁止私自外泄以及用于其他的商业目的
*/
public
enum
IntervieweeStatusEnum
{
PENDING_INTERVIEW_STATUS
(
0
,
"待面试"
),
INTERVIEW_STATUS
(
1
,
"面试中"
),
INTERVIEW_PASS_STATUS
(
2
,
"面试通过"
),
INTERVIEW_FAILED_STATUS
(
3
,
"待面试"
),
REJECTED_STATUS
(
4
,
"拒绝入职状态"
);
private
Integer
status
;
private
String
name
;
IntervieweeStatusEnum
(
Integer
status
,
String
name
)
{
this
.
status
=
status
;
this
.
name
=
name
;
}
public
Integer
getStatus
()
{
return
status
;
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录