Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
dj
/
rpc-dj-pe-analysis
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 bff534ab
authored
Mar 30, 2026
by
zhouhaibao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[+]月报周报推送相关类提交
1 parent
afaee7c2
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
205 additions
and
1 deletions
rpc-dj-pe-analysis-api/src/main/java/cn/com/glsx/dj/peanalysis/model/DjReportSubscribeConfig.java
rpc-dj-pe-analysis-api/src/main/java/cn/com/glsx/dj/peanalysis/remote/ReportSubscribeRemote.java
rpc-dj-pe-analysis/src/main/java/cn/com/glsx/dj/peanalysis/config/dubbo/ScrmDubboConfig.java
rpc-dj-pe-analysis/src/main/java/cn/com/glsx/dj/peanalysis/model/DjReportSubscribeConfig.java
rpc-dj-pe-analysis/src/main/java/cn/com/glsx/dj/peanalysis/service/WeComMessageService.java
rpc-dj-pe-analysis-api/src/main/java/cn/com/glsx/dj/peanalysis/model/DjReportSubscribeConfig.java
0 → 100644
View file @
bff534a
package
cn
.
com
.
glsx
.
dj
.
peanalysis
.
model
;
import
java.io.Serializable
;
import
java.util.Date
;
import
javax.persistence.Column
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.GenerationType
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
import
lombok.Data
;
@Data
@Table
(
name
=
"dj_report_subscribe_config"
)
public
class
DjReportSubscribeConfig
implements
Serializable
{
/**
* 主键
*/
@Id
@GeneratedValue
(
strategy
=
GenerationType
.
IDENTITY
)
private
Integer
id
;
/**
* 用户ID
*/
@Column
(
name
=
"user_id"
)
private
Integer
userId
;
/**
* 用户名称
*/
@Column
(
name
=
"user_name"
)
private
String
userName
;
/**
* 用户手机号
*/
@Column
(
name
=
"user_phone"
)
private
String
userPhone
;
/**
* 展业周报订阅状态:0:未订阅,1:已订阅
*/
@Column
(
name
=
"weekly_report_subscribe"
)
private
Integer
weeklyReportSubscribe
;
/**
* 展业月报订阅状态:0:未订阅,1:已订阅
*/
@Column
(
name
=
"monthly_report_subscribe"
)
private
Integer
monthlyReportSubscribe
;
/**
* 创建时间
*/
@Column
(
name
=
"created_time"
)
private
Date
createdTime
;
/**
* 更新时间
*/
@Column
(
name
=
"updated_time"
)
private
Date
updatedTime
;
private
static
final
long
serialVersionUID
=
1L
;
}
\ No newline at end of file
rpc-dj-pe-analysis-api/src/main/java/cn/com/glsx/dj/peanalysis/remote/ReportSubscribeRemote.java
0 → 100644
View file @
bff534a
package
cn
.
com
.
glsx
.
dj
.
peanalysis
.
remote
;
import
cn.com.glsx.dj.peanalysis.model.DjReportSubscribeConfig
;
import
cn.com.glsx.framework.core.annotation.ApiMethod
;
import
cn.com.glsx.framework.core.annotation.ApiParam
;
import
cn.com.glsx.framework.core.annotation.ApiParams
;
import
cn.com.glsx.framework.core.annotation.ApiResponse
;
import
cn.com.glsx.framework.core.annotation.ApiService
;
import
cn.com.glsx.framework.core.beans.rpc.RpcResponse
;
@ApiService
(
value
=
"数据报告订阅"
,
version
=
"1.0.0"
,
protocol
=
ApiService
.
ProtocolEnum
.
dubbo
,
type
=
ApiService
.
ApiTypeEnum
.
DUBBO
,
alias
=
"ReportSubscribeRemote"
,
owner
=
"system"
)
public
interface
ReportSubscribeRemote
{
@ApiMethod
(
"更新展业周报订阅状态"
)
@ApiResponse
(
"更新结果"
)
@ApiParams
({
@ApiParam
(
name
=
"userId"
,
notes
=
"用户ID"
,
dataType
=
ApiParam
.
DataTypeEnum
.
INTEGER
,
required
=
true
),
@ApiParam
(
name
=
"userName"
,
notes
=
"用户名称"
,
dataType
=
ApiParam
.
DataTypeEnum
.
STRING
,
required
=
true
),
@ApiParam
(
name
=
"userPhone"
,
notes
=
"用户手机号"
,
dataType
=
ApiParam
.
DataTypeEnum
.
STRING
,
required
=
true
),
@ApiParam
(
name
=
"subscribeStatus"
,
notes
=
"订阅状态:0:未订阅,1:已订阅"
,
dataType
=
ApiParam
.
DataTypeEnum
.
INTEGER
,
required
=
true
)
})
RpcResponse
<
Boolean
>
updateWeeklyReportSubscribe
(
Integer
userId
,
String
userName
,
String
userPhone
,
Integer
subscribeStatus
);
@ApiMethod
(
"更新展业月报订阅状态"
)
@ApiResponse
(
"更新结果"
)
@ApiParams
({
@ApiParam
(
name
=
"userId"
,
notes
=
"用户ID"
,
dataType
=
ApiParam
.
DataTypeEnum
.
INTEGER
,
required
=
true
),
@ApiParam
(
name
=
"userName"
,
notes
=
"用户名称"
,
dataType
=
ApiParam
.
DataTypeEnum
.
STRING
,
required
=
true
),
@ApiParam
(
name
=
"userPhone"
,
notes
=
"用户手机号"
,
dataType
=
ApiParam
.
DataTypeEnum
.
STRING
,
required
=
true
),
@ApiParam
(
name
=
"subscribeStatus"
,
notes
=
"订阅状态:0:未订阅,1:已订阅"
,
dataType
=
ApiParam
.
DataTypeEnum
.
INTEGER
,
required
=
true
)
})
RpcResponse
<
Boolean
>
updateMonthlyReportSubscribe
(
Integer
userId
,
String
userName
,
String
userPhone
,
Integer
subscribeStatus
);
@ApiMethod
(
"查询用户订阅配置"
)
@ApiResponse
(
"订阅配置"
)
@ApiParams
({
@ApiParam
(
name
=
"userId"
,
notes
=
"用户ID"
,
dataType
=
ApiParam
.
DataTypeEnum
.
INTEGER
,
required
=
true
)
})
RpcResponse
<
DjReportSubscribeConfig
>
getSubscribeConfig
(
Integer
userId
);
}
\ No newline at end of file
rpc-dj-pe-analysis/src/main/java/cn/com/glsx/dj/peanalysis/config/dubbo/ScrmDubboConfig.java
0 → 100644
View file @
bff534a
package
cn
.
com
.
glsx
.
dj
.
peanalysis
.
config
.
dubbo
;
import
cn.com.glsx.entmicro.remote.EntmicroStaffRemote
;
import
cn.com.glsx.scrm.wechat.remote.WorkWechatMessageRemote
;
import
lombok.RequiredArgsConstructor
;
import
org.oreframework.boot.autoconfigure.dubbo.reference.ReferenceBuilderFactory
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
/**
* scrm dubbo 配置
*/
@Configuration
@RequiredArgsConstructor
public
class
ScrmDubboConfig
{
private
final
ReferenceBuilderFactory
factory
;
@Bean
public
EntmicroStaffRemote
getEntmicroStaffRemote
()
{
return
factory
.
builder
(
EntmicroStaffRemote
.
class
)
.
check
(
false
)
.
timeout
(
30000
)
.
version
(
"1.0.0"
)
.
build
();
}
@Bean
public
WorkWechatMessageRemote
workWechatMessageRemote
()
{
return
factory
.
builder
(
WorkWechatMessageRemote
.
class
)
.
check
(
false
)
.
timeout
(
30000
)
.
version
(
"1.0.0"
)
.
build
();
}
}
\ No newline at end of file
rpc-dj-pe-analysis/src/main/java/cn/com/glsx/dj/peanalysis/model/DjReportSubscribeConfig.java
0 → 100644
View file @
bff534a
package
cn
.
com
.
glsx
.
dj
.
peanalysis
.
model
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.util.Date
;
import
javax.persistence.*
;
@Data
@Table
(
name
=
"dj_report_subscribe_config"
)
public
class
DjReportSubscribeConfig
implements
Serializable
{
/**
* 主键
*/
@Id
@GeneratedValue
(
strategy
=
GenerationType
.
IDENTITY
)
private
Integer
id
;
/**
* 用户ID
*/
@Column
(
name
=
"user_id"
)
private
Integer
userId
;
/**
* 用户名称
*/
@Column
(
name
=
"user_name"
)
private
String
userName
;
/**
* 用户手机号
*/
@Column
(
name
=
"user_phone"
)
private
String
userPhone
;
/**
* 展业周报订阅状态:0:未订阅,1:已订阅
*/
@Column
(
name
=
"weekly_report_subscribe"
)
private
Integer
weeklyReportSubscribe
;
/**
* 展业月报订阅状态:0:未订阅,1:已订阅
*/
@Column
(
name
=
"monthly_report_subscribe"
)
private
Integer
monthlyReportSubscribe
;
/**
* 创建时间
*/
@Column
(
name
=
"created_time"
)
private
Date
createdTime
;
/**
* 更新时间
*/
@Column
(
name
=
"updated_time"
)
private
Date
updatedTime
;
private
static
final
long
serialVersionUID
=
1L
;
}
\ No newline at end of file
rpc-dj-pe-analysis/src/main/java/cn/com/glsx/dj/peanalysis/service/WeComMessageService.java
View file @
bff534a
...
...
@@ -214,7 +214,7 @@ public class WeComMessageService {
requestDTO
.
setMerchantId
(
wwMerchantId
);
WorkWechatTextCardMessageDTO
textCard
=
new
WorkWechatTextCardMessageDTO
();
textCard
.
setTitle
(
title
);
textCard
.
setDescription
(
"<div class=\"gray\">"
+
subTitle
+
"</div><div class=\"normal\">"
+
dateRange
+
"</div>"
);
textCard
.
setDescription
(
"<div class=\"gray\">"
+
subTitle
+
"</div><
br/><
div class=\"normal\">"
+
dateRange
+
"</div>"
);
textCard
.
setUrl
(
linkUrl
);
textCard
.
setBtnTxt
(
"查看数据报告"
);
...
...
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