Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
8
8timerapiv200
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
8timerv2
8timerapiv200
Commits
66699862
Commit
66699862
authored
Apr 20, 2022
by
284718418@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
应聘登记通知
测评通知
parent
932bb82e
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
31 additions
and
28 deletions
+31
-28
src/main/java/cn/timer/api/controller/zpgl/ZpglController.java
+0
-0
src/main/java/cn/timer/api/controller/zpgl/sevice/ZpglServiceImpl.java
+0
-0
src/main/java/cn/timer/api/controller/zpgl/sevice/ZpglWxgzptService.java
+8
-0
src/main/java/cn/timer/api/controller/zpgl/sevice/ZpglWxgzptServiceImpl.java
+13
-27
src/main/java/cn/timer/api/dto/template/InterviewNotice.java
+4
-0
src/main/java/cn/timer/api/dto/wxgzh/MessageQueueDto.java
+1
-1
src/main/java/cn/timer/api/utils/ZpglMessageTemplate.java
+5
-0
No files found.
src/main/java/cn/timer/api/controller/zpgl/ZpglController.java
View file @
66699862
This diff is collapsed.
Click to expand it.
src/main/java/cn/timer/api/controller/zpgl/sevice/ZpglServiceImpl.java
View file @
66699862
This diff is collapsed.
Click to expand it.
src/main/java/cn/timer/api/controller/zpgl/sevice/ZpglWxgzptService.java
View file @
66699862
...
...
@@ -25,4 +25,12 @@ public interface ZpglWxgzptService {
* @return
*/
String
addInterviewMessageQueue
(
InterviewNotice
interviewNotice
);
/**
* 发起应聘登记 or 测评
* 添加消息队列
* @param interviewNotice
* @return
*/
String
sendApplyOrCePin
(
InterviewNotice
interviewNotice
);
}
src/main/java/cn/timer/api/controller/zpgl/sevice/ZpglWxgzptServiceImpl.java
View file @
66699862
...
...
@@ -48,18 +48,23 @@ public class ZpglWxgzptServiceImpl implements ZpglWxgzptService {
*/
@Override
public
String
addInterviewMessageQueue
(
InterviewNotice
interviewNotice
)
{
return
HttpUtil
.
post
(
serverUrl
+
"/wxgzh/addMessageQueue"
,
this
.
copyMessageQueueToMap
(
interviewNotice
));
}
@Override
public
String
sendApplyOrCePin
(
InterviewNotice
interviewNotice
)
{
return
HttpUtil
.
post
(
serverUrl
+
"/wxgzh/addMessageQueue"
,
this
.
copyMessageQueueToMap
(
interviewNotice
));
}
private
Map
copyMessageQueueToMap
(
InterviewNotice
interviewNotice
){
//消息队列对象
MessageQueueDto
mqd
=
new
MessageQueueDto
();
BeanUtils
.
copyProperties
(
interviewNotice
,
mqd
);
/** 模板消息内容 start */
List
<
TemplateData
>
templateData
=
new
ArrayList
<>();
if
(
MessageTemplate
.
TEMPLATE_ID_TO_INTERVIEWER
.
equals
(
interviewNotice
.
getTemplateId
()))
{
TemplateData
key1
=
new
TemplateData
(
"first"
,
"您好,"
+
interviewNotice
.
getZpglZwxxName
()
+
interviewNotice
.
getName
()
+
"已安排由您面试"
,
"#000000"
);
templateData
.
add
(
key1
);
}
else
if
(
MessageTemplate
.
TEMPLATE_ID_TO_INTERVIEWEE
.
equals
(
interviewNotice
.
getTemplateId
()))
{
TemplateData
key1
=
new
TemplateData
(
"first"
,
"候选人"
+
interviewNotice
.
getName
()
+
"你好!你所投递的"
+
interviewNotice
.
getZpglZwxxName
()
+
"为你安排了面试"
,
"#000000"
);
templateData
.
add
(
key1
);
}
// 内容
TemplateData
key1
=
new
TemplateData
(
"first"
,
interviewNotice
.
getContentStr
(),
"#000000"
);
templateData
.
add
(
key1
);
// 面试职位
TemplateData
key2
=
new
TemplateData
(
"keyword1"
,
interviewNotice
.
getZpglZwxxName
(),
"#000000"
);
templateData
.
add
(
key2
);
...
...
@@ -76,26 +81,7 @@ public class ZpglWxgzptServiceImpl implements ZpglWxgzptService {
mqd
.
setContent
(
content
);
/** 模板消息内容 end */
/**
* //消息内容模板消息 json格式 普通消息字符串类型
* //手机号
* mqd.setMobile("18212310017");
* //类型(1 短信,2 邮件,3 微信模板消息)
* mqd.setType(2);
* //公众号类型 1:8小时企业管理 2:优领人才网
* mqd.setWxgzhType(1);
* //1 即时发送,2 定时发送
* mqd.setTiming(1);
* //模板id
* mqd.setTemplateId(interviewNotice.getTemplateId());
* //网页地址
* mqd.setUrl(null);
* //小程序页面地址
* mqd.setWxxcxPageId(null);
*/
Map
map
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
mqd
),
Map
.
class
);
return
HttpUtil
.
post
(
serverUrl
+
"/wxgzh/addMessageQueue"
,
map
)
;
return
map
;
}
}
src/main/java/cn/timer/api/dto/template/InterviewNotice.java
View file @
66699862
...
...
@@ -34,6 +34,10 @@ public class InterviewNotice extends MessageQueueDto {
* 备注
*/
private
String
remark
;
/**
* 内容
*/
private
String
contentStr
;
public
void
setInterviewTime
(
Date
interviewTime
){
this
.
interviewTime
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
).
format
(
interviewTime
);
...
...
src/main/java/cn/timer/api/dto/wxgzh/MessageQueueDto.java
View file @
66699862
...
...
@@ -35,7 +35,7 @@ public class MessageQueueDto {
private
String
content
;
/**
* 类型
(1 短信,2 邮件,3 微信模板消息)
* 类型
1:全部 2:短信 3:邮件 4.微信公众号
*/
private
Integer
type
;
...
...
src/main/java/cn/timer/api/utils/ZpglMessageTemplate.java
View file @
66699862
...
...
@@ -22,6 +22,11 @@ public class ZpglMessageTemplate {
public
static
final
String
INTERVIEWED_ENTRYING
=
"{0} 将候选人状态从[{3}]更改为[面试淘汰], 淘汰原因:{1},备注:{2}"
;
public
static
final
String
OFFER_ENTRYING
=
"{0} 将候选人状态从[{3}}]更改为[录用淘汰], 淘汰原因:{1},备注:{2}"
;
public
static
final
String
TO_INTERVIEWER
=
"您好,{0}{1}已安排由您面试"
;
public
static
final
String
TO_INTERVIEWEE
=
"候选人{0}你好!你所投递的 {1} 职位为你安排了面试"
;
public
static
final
String
TO_APPLY
=
"候选人{0}您好!请您认真填写应聘登记表"
;
public
static
final
String
TO_CEPIN
=
"候选人{0}您好!请您认真填写FPA测评试卷"
;
public
static
final
String
OFFER_TEMPLATE
=
"<!DOCTYPE html><html lang=\"en\" xmlns=\"http://www.w3.org/1999/xhtml\" xmlns:th=\"http://www.thymeleaf.org\"><body><div><p style=\" line-height: 1.5;\">尊敬的<span>{0}</span></p>"
+
"<p style=\" line-height: 1.5;\"><br></p>"
+
"<p style=\"text-indent: 2em; line-height: 1.5;\">感谢您对公司的认可,非常荣幸地通知您,您已被我司正式录用,欢迎您加入<span>{1}</span></p>"
+
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment