Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
J
jy_jxjy
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Administrator
jy_jxjy
Commits
b25eb1a6
提交
b25eb1a6
authored
11月 27, 2025
作者:
wangmenglong
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
增加消息发送
上级
ef1225f6
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
14 行增加
和
6 行删除
+14
-6
MessageSchedule.java
...c/main/java/com/jxjy/system/schedule/MessageSchedule.java
+11
-5
RecruitServiceImpl.java
...java/com/jxjy/system/service/impl/RecruitServiceImpl.java
+3
-1
没有找到文件。
jxjy-system/src/main/java/com/jxjy/system/schedule/MessageSchedule.java
浏览文件 @
b25eb1a6
...
@@ -5,9 +5,11 @@ import com.alibaba.fastjson.JSONObject;
...
@@ -5,9 +5,11 @@ import com.alibaba.fastjson.JSONObject;
import
com.jxjy.system.service.MessageRecordService
;
import
com.jxjy.system.service.MessageRecordService
;
import
com.jxjy.system.service.MessageService
;
import
com.jxjy.system.service.MessageService
;
import
com.jxjy.system.service.PersonService
;
import
com.jxjy.system.service.PersonService
;
import
com.jxjy.system.service.RecruitService
;
import
com.jxjy.system.util.weixin.TencentMessageUtil
;
import
com.jxjy.system.util.weixin.TencentMessageUtil
;
import
data.system.Message
;
import
data.system.Message
;
import
data.system.MessageRecord
;
import
data.system.MessageRecord
;
import
data.system.Recruit
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.data.redis.core.StringRedisTemplate
;
import
org.springframework.data.redis.core.StringRedisTemplate
;
...
@@ -35,6 +37,9 @@ public class MessageSchedule {
...
@@ -35,6 +37,9 @@ public class MessageSchedule {
@Autowired
@Autowired
private
StringRedisTemplate
stringRedisTemplate
;
private
StringRedisTemplate
stringRedisTemplate
;
@Autowired
private
RecruitService
recruitService
;
@Value
(
"${weixin.appid}"
)
@Value
(
"${weixin.appid}"
)
String
AppId
;
String
AppId
;
@Value
(
"${weixin.secret}"
)
@Value
(
"${weixin.secret}"
)
...
@@ -58,6 +63,7 @@ public class MessageSchedule {
...
@@ -58,6 +63,7 @@ public class MessageSchedule {
if
(
message
!=
null
){
if
(
message
!=
null
){
Recruit
recruit
=
recruitService
.
getDetails
(
message
.
getRecruitId
());
List
<
data
.
system
.
Person
>
personList
=
personService
.
getRecruitMessageList
(
message
.
getRecruitId
());
List
<
data
.
system
.
Person
>
personList
=
personService
.
getRecruitMessageList
(
message
.
getRecruitId
());
...
@@ -76,12 +82,12 @@ public class MessageSchedule {
...
@@ -76,12 +82,12 @@ public class MessageSchedule {
//发送微信消息
//发送微信消息
JSONObject
json
=
new
JSONObject
();
JSONObject
json
=
new
JSONObject
();
json
.
put
(
"thing
6"
,
JSONObject
.
parseObject
(
"{'value':'预支工资提醒
'}"
));
json
.
put
(
"thing
1"
,
JSONObject
.
parseObject
(
"{'value':'"
+
recruit
.
getOrg
().
getName
()+
"
'}"
));
json
.
put
(
"thing2"
,
JSONObject
.
parseObject
(
"{'value':'
预支已发放
'}"
));
json
.
put
(
"thing2"
,
JSONObject
.
parseObject
(
"{'value':'
"
+
recruit
.
getName
()+
"
'}"
));
json
.
put
(
"time9"
,
JSONObject
.
parseObject
(
"{'value':'"
+
DateUtil
.
now
()
+
"'}"
));
//
json.put("time9", JSONObject.parseObject("{'value':'" + DateUtil.now() + "'}"));
json
.
put
(
"thing
5
"
,
JSONObject
.
parseObject
(
"{'value':'点击查看详情'}"
));
json
.
put
(
"thing
3
"
,
JSONObject
.
parseObject
(
"{'value':'点击查看详情'}"
));
//发送消息并减少数量
//发送消息并减少数量
//TencentMessageUtil.send(stringRedisTemplate, AppId, Secret, MPTId, "/pages/home/advanceLog
/index", MMP, person.getOpenId(), json);
TencentMessageUtil
.
send
(
stringRedisTemplate
,
AppId
,
Secret
,
MPTId
,
"/pages/notice
/index"
,
MMP
,
person
.
getOpenId
(),
json
);
}
}
if
(
personList
.
size
()==
0
){
if
(
personList
.
size
()==
0
){
...
...
jxjy-system/src/main/java/com/jxjy/system/service/impl/RecruitServiceImpl.java
浏览文件 @
b25eb1a6
...
@@ -205,7 +205,9 @@ public class RecruitServiceImpl extends ServiceImpl<RecruitMapper, Recruit> impl
...
@@ -205,7 +205,9 @@ public class RecruitServiceImpl extends ServiceImpl<RecruitMapper, Recruit> impl
Industry
industry
=
industryService
.
getDetails
(
recruit
.
getIndustryId
());
Industry
industry
=
industryService
.
getDetails
(
recruit
.
getIndustryId
());
recruit
.
setIndustryCode
(
industry
.
getCode
());
if
(
industry
!=
null
){
recruit
.
setIndustryCode
(
industry
.
getCode
());
}
}
catch
(
Exception
e
){
}
catch
(
Exception
e
){
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论