Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
dj
/
rop-dj-pad
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 493fd309
authored
Jan 21, 2026
by
谢海旭
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
v5.6.0版本 策略中心:展业助手-全局提醒、优秀案例-列表、优秀案例-详情、查询任务型策略详情、更新业务策略推送消息
1 parent
46698815
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
55 additions
and
28 deletions
src/main/java/cn/com/glsx/dj/pad/controller/messagebox/NewPadMessageBoxController.java
src/main/java/cn/com/glsx/dj/pad/controller/study/StaffStudyController.java
src/main/java/cn/com/glsx/dj/pad/controller/messagebox/NewPadMessageBoxController.java
View file @
493fd30
package
cn
.
com
.
glsx
.
dj
.
pad
.
controller
.
messagebox
;
package
cn
.
com
.
glsx
.
dj
.
pad
.
controller
.
messagebox
;
import
cn.com.glsx.dj.carboutique.response.LoginUserInfoResponse
;
import
cn.com.glsx.dj.carboutique.response.LoginUserInfoResponse
;
import
cn.com.glsx.dj.mindworkplate.dto.messagebox.ActivityMessageDTO
;
import
cn.com.glsx.dj.mindworkplate.dto.messagebox.*
;
import
cn.com.glsx.dj.mindworkplate.dto.messagebox.ActivityMessageRespDTO
;
import
cn.com.glsx.dj.mindworkplate.dto.messagebox.NewPadMessageBoxDTO
;
import
cn.com.glsx.dj.mindworkplate.dto.messagebox.StatusRequestDTO
;
import
cn.com.glsx.dj.mindworkplate.dto.messagebox.StatusRequestDTO
;
import
cn.com.glsx.dj.mindworkplate.dto.script.*
;
import
cn.com.glsx.dj.mindworkplate.dto.script.*
;
import
cn.com.glsx.dj.mindworkplate.model.WarningNotification
;
import
cn.com.glsx.dj.mindworkplate.model.WarningNotification
;
...
@@ -57,35 +55,60 @@ public class NewPadMessageBoxController {
...
@@ -57,35 +55,60 @@ public class NewPadMessageBoxController {
@Autowired
@Autowired
private
PadMessageBoxRemote
padMessageBoxRemote
;
private
PadMessageBoxRemote
padMessageBoxRemote
;
@ServiceMethod
(
method
=
"dj.pad.api.new.pad.message.box.page"
,
needInSession
=
NeedInSessionType
.
YES
)
@ServiceMethod
(
method
=
"dj.pad.api.new.pad.message.box.page"
,
needInSession
=
NeedInSessionType
.
YES
)
@ApiOperation
(
"查询消息盒子消息分页列表"
)
@ApiOperation
(
"查询消息盒子消息分页列表"
)
public
RopResponse
<
RpcPagination
<
NewPadMessageBoxDTO
>>
page
(
NewPadMessageBoxPageRequest
request
)
{
public
RopResponse
<
RpcPagination
<
NewPadMessageBoxDTO
>>
page
(
NewPadMessageBoxPageRequest
request
)
{
LoginUserInfoResponse
userInfo
=
CommonUtil
.
getLoginUserInfo
();
try
{
NewPadMessageBoxDTO
dto
=
CommonUtil
.
convertRequest
(
NewPadMessageBoxDTO
.
class
);
RpcPagination
<
NewPadMessageBoxDTO
>
pagination
=
CommonUtil
.
getRpcPagination
(
NewPadMessageBoxDTO
.
class
);
dto
.
setPhone
(
userInfo
.
getPhone
());
NewPadMessageBoxDTO
condition
=
pagination
.
getCondition
();
// RpcResponse<RpcPagination<ScriptRecordPadPushDTO>> response = padMessageBoxRemote.getStaffStudyBoxMessagePage(dto);
// if (response.hasError()) {
LoginUserInfoResponse
userInfo
=
CommonUtil
.
getLoginUserInfo
();
// return RopResponse.error(response.getError(), response.getMessage());
condition
.
setPhone
(
userInfo
.
getPhone
());
// } else {
// return RopResponse.success(response.getResult());
RpcResponse
<
RpcPagination
<
NewPadMessageBoxDTO
>>
response
=
padMessageBoxRemote
.
pagePadMessageBox
(
pagination
);
// }
if
(
response
.
hasError
())
{
return
null
;
return
RopResponse
.
error
(
response
.
getError
(),
response
.
getMessage
());
}
else
{
return
RopResponse
.
success
(
response
.
getResult
());
}
}
catch
(
RpcServiceException
e
)
{
log
.
error
(
"=====dj.pad.api.new.pad.message.box.page rpcServiceException:{}"
,
e
.
getMessage
());
return
RopResponse
.
error
(
e
);
}
catch
(
Exception
e
)
{
log
.
error
(
"查询消息盒子消息分页列表异常: {}"
,
e
.
getMessage
(),
e
);
return
RopResponse
.
error
(
"查询消息盒子消息分页列表异常: "
+
e
.
getMessage
());
}
}
}
@ApiOperation
(
"查询消息盒子消息详情"
)
@ApiOperation
(
"查询消息盒子消息详情"
)
@ServiceMethod
(
method
=
"dj.pad.api.new.pad.message.box.detail"
,
needInSession
=
NeedInSessionType
.
YES
)
@ServiceMethod
(
method
=
"dj.pad.api.new.pad.message.box.detail"
,
needInSession
=
NeedInSessionType
.
YES
)
public
RopResponse
<
NewPadMessageBoxDTO
>
detail
(
CommonIdRequest
request
)
{
public
RopResponse
<
NewPadMessageBoxDTO
>
detail
(
CommonIdRequest
request
)
{
LoginUserInfoResponse
userInfo
=
CommonUtil
.
getLoginUserInfo
();
try
{
NewPadMessageBoxDTO
dto
=
CommonUtil
.
convertRequest
(
NewPadMessageBoxDTO
.
class
);
LoginUserInfoResponse
userInfo
=
CommonUtil
.
getLoginUserInfo
();
dto
.
setPhone
(
userInfo
.
getPhone
());
if
(
userInfo
==
null
||
userInfo
.
getPhone
()
==
null
)
{
// RpcResponse<RpcPagination<ScriptRecordPadPushDTO>> response = padMessageBoxRemote.getStaffStudyBoxMessagePage(dto);
return
RopResponse
.
error
(
"用户未登录或手机号信息缺失"
);
// if (response.hasError()) {
}
// return RopResponse.error(response.getError(), response.getMessage());
// } else {
String
phone
=
userInfo
.
getPhone
();
// return RopResponse.success(response.getResult());
NewPadMessageBoxDTO
dto
=
new
NewPadMessageBoxDTO
();
// }
dto
.
setId
(
request
.
getId
());
return
null
;
dto
.
setPhone
(
phone
);
RpcResponse
<
NewPadMessageBoxDTO
>
response
=
padMessageBoxRemote
.
getMessageBoxDetail
(
dto
);
if
(
response
.
hasError
())
{
log
.
error
(
"查询消息盒子消息详情失败: {}"
,
response
.
getMessage
());
return
RopResponse
.
error
(
response
.
getError
(),
response
.
getMessage
());
}
return
RopResponse
.
success
(
response
.
getResult
());
}
catch
(
RpcServiceException
e
)
{
log
.
error
(
"=====dj.pad.api.new.pad.message.box.detail rpcServiceException:{}"
,
e
.
getMessage
());
return
RopResponse
.
error
(
e
);
}
catch
(
Exception
e
)
{
log
.
error
(
"查询消息盒子消息详情异常: {}"
,
e
.
getMessage
(),
e
);
return
RopResponse
.
error
(
"查询消息盒子消息详情异常: "
+
e
.
getMessage
());
}
}
}
}
}
src/main/java/cn/com/glsx/dj/pad/controller/study/StaffStudyController.java
View file @
493fd30
...
@@ -52,16 +52,20 @@ public class StaffStudyController {
...
@@ -52,16 +52,20 @@ public class StaffStudyController {
return
RopResponse
.
result
(
contentManagerTaskRemote
.
getUnReadMessage
(
dto
));
return
RopResponse
.
result
(
contentManagerTaskRemote
.
getUnReadMessage
(
dto
));
}
}
@ApiOperation
(
"查询当前员工的消息弹窗-长课程
-旧
"
)
@ApiOperation
(
"查询当前员工的消息弹窗-长课程
(新-只用于展业助手)
"
)
@ServiceMethod
(
method
=
"dj.pad.api.staff.long.course.message.notify"
)
@ServiceMethod
(
method
=
"dj.pad.api.staff.long.course.message.notify"
)
public
RopResponse
<
StaffMessageNotifyDTO
>
getLongCourseMessageNotify
(
AbstractRopRequest
request
){
public
RopResponse
<
StaffMessageNotifyDTO
>
getLongCourseMessageNotify
(
AbstractRopRequest
request
){
return
null
;
LoginUserInfoResponse
userInfo
=
CommonUtil
.
getLoginUserInfo
();
StaffMessageNotifyDTO
dto
=
StaffMessageNotifyDTO
.
builder
().
staffPhone
(
userInfo
.
getPhone
()).
build
();
return
RopResponse
.
result
(
contentManagerTaskRemote
.
getLongCourseMessageNotify
(
dto
));
}
}
@ApiOperation
(
"查询当前员工的消息弹窗-系统提醒/企业通知
-旧
"
)
@ApiOperation
(
"查询当前员工的消息弹窗-系统提醒/企业通知
(新-只用于展业助手)
"
)
@ServiceMethod
(
method
=
"dj.pad.api.staff.enterprise.message.notify"
)
@ServiceMethod
(
method
=
"dj.pad.api.staff.enterprise.message.notify"
)
public
RopResponse
<
StaffMessageNotifyDTO
>
getEnterpriseMessageNotify
(
AbstractRopRequest
request
){
public
RopResponse
<
StaffMessageNotifyDTO
>
getEnterpriseMessageNotify
(
AbstractRopRequest
request
){
return
null
;
LoginUserInfoResponse
userInfo
=
CommonUtil
.
getLoginUserInfo
();
StaffMessageNotifyDTO
dto
=
StaffMessageNotifyDTO
.
builder
().
staffPhone
(
userInfo
.
getPhone
()).
build
();
return
RopResponse
.
result
(
contentManagerTaskRemote
.
getEnterpriseMessageNotify
(
dto
));
}
}
@ApiOperation
(
"确认消息弹窗"
)
@ApiOperation
(
"确认消息弹窗"
)
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment