Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
dj
/
rop-dj-strategy
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 d91e8af6
authored
Jan 21, 2026
by
谢海旭
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
202601月底版本 策略中心:兜底目标、策略列表
1 parent
65a86bf3
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
51 additions
and
5 deletions
src/main/java/cn/com/glsx/dj/strategy/config/dubbo/MindworkplateDubboConfig.java
src/main/java/cn/com/glsx/dj/strategy/controller/MerchantAnalysisController.java
src/main/java/cn/com/glsx/dj/strategy/controller/StrategyInfoController.java
src/main/java/cn/com/glsx/dj/strategy/request/MerchantStaffHistoryRecordRequest.java
src/main/java/cn/com/glsx/dj/strategy/config/dubbo/MindworkplateDubboConfig.java
0 → 100644
View file @
d91e8af
package
cn
.
com
.
glsx
.
dj
.
strategy
.
config
.
dubbo
;
import
cn.com.glsx.dj.mindworkplate.remote.EarlyWarningMsgRemote
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
@Configuration
public
class
MindworkplateDubboConfig
extends
DubboConfig
{
@Bean
public
EarlyWarningMsgRemote
recruitmentDemandRemote
()
{
return
factory
.
builder
(
EarlyWarningMsgRemote
.
class
).
check
(
check
)
/*.url("dubbo://localhost:20885")*/
.
timeout
(
timeout
).
build
();
}
}
src/main/java/cn/com/glsx/dj/strategy/controller/MerchantAnalysisController.java
View file @
d91e8af
...
@@ -4,6 +4,7 @@ import cn.com.glsx.dj.mindworkplate.dto.monitoring.MonitorFilterRequest;
...
@@ -4,6 +4,7 @@ import cn.com.glsx.dj.mindworkplate.dto.monitoring.MonitorFilterRequest;
import
cn.com.glsx.dj.mindworkplate.dto.monitoring.StoreItemResponse
;
import
cn.com.glsx.dj.mindworkplate.dto.monitoring.StoreItemResponse
;
import
cn.com.glsx.dj.mindworkplate.dto.warning.EarlyWarningThresholdConfigHistoryDTO
;
import
cn.com.glsx.dj.mindworkplate.dto.warning.EarlyWarningThresholdConfigHistoryDTO
;
import
cn.com.glsx.dj.mindworkplate.model.MonitorTypeDict
;
import
cn.com.glsx.dj.mindworkplate.model.MonitorTypeDict
;
import
cn.com.glsx.dj.mindworkplate.remote.EarlyWarningMsgRemote
;
import
cn.com.glsx.dj.mindworkplate.remote.MonitoringRemote
;
import
cn.com.glsx.dj.mindworkplate.remote.MonitoringRemote
;
import
cn.com.glsx.dj.peanalysis.dto.req.output.SceneBaseReq
;
import
cn.com.glsx.dj.peanalysis.dto.req.output.SceneBaseReq
;
import
cn.com.glsx.dj.peanalysis.dto.res.output.EmployeeDetailSummaryResponse
;
import
cn.com.glsx.dj.peanalysis.dto.res.output.EmployeeDetailSummaryResponse
;
...
@@ -27,6 +28,7 @@ import cn.com.glsx.framework.core.exception.RpcServiceException;
...
@@ -27,6 +28,7 @@ import cn.com.glsx.framework.core.exception.RpcServiceException;
import
cn.com.glsx.framework.core.util.RpcAssert
;
import
cn.com.glsx.framework.core.util.RpcAssert
;
import
cn.com.glsx.framework.rop.response.RopResponse
;
import
cn.com.glsx.framework.rop.response.RopResponse
;
import
cn.com.glsx.merchants.model.response.merchant.MerchantBasicInfoListResponse
;
import
cn.com.glsx.merchants.model.response.merchant.MerchantBasicInfoListResponse
;
import
com.rop.annotation.IgnoreSignType
;
import
com.rop.annotation.NeedInSessionType
;
import
com.rop.annotation.NeedInSessionType
;
import
com.rop.annotation.ServiceMethod
;
import
com.rop.annotation.ServiceMethod
;
import
com.rop.annotation.ServiceMethodBean
;
import
com.rop.annotation.ServiceMethodBean
;
...
@@ -59,6 +61,9 @@ public class MerchantAnalysisController {
...
@@ -59,6 +61,9 @@ public class MerchantAnalysisController {
private
LoginService
loginService
;
private
LoginService
loginService
;
@Autowired
@Autowired
private
EarlyWarningMsgRemote
earlyWarningMsgRemote
;
@Autowired
private
Environment
environment
;
private
Environment
environment
;
...
@@ -209,9 +214,22 @@ public class MerchantAnalysisController {
...
@@ -209,9 +214,22 @@ public class MerchantAnalysisController {
}
}
@ApiOperation
(
"策略中心-门店分析-历史兜底指标"
)
@ApiOperation
(
"策略中心-门店分析-历史兜底指标"
)
@ServiceMethod
(
method
=
"dj.api.strategy.merchant.analysis.index.history"
,
needInSession
=
NeedInSessionType
.
YES
)
// @ServiceMethod(method = "dj.api.strategy.merchant.analysis.index.history", needInSession = NeedInSessionType.YES)
@ServiceMethod
(
method
=
"dj.api.strategy.merchant.analysis.index.history"
,
needInSession
=
NeedInSessionType
.
NO
,
ignoreSign
=
IgnoreSignType
.
YES
)
public
RopResponse
<
List
<
EarlyWarningThresholdConfigHistoryDTO
>>
merchantAnalysisIndexHistory
(
MerchantStaffHistoryRecordRequest
request
)
{
public
RopResponse
<
List
<
EarlyWarningThresholdConfigHistoryDTO
>>
merchantAnalysisIndexHistory
(
MerchantStaffHistoryRecordRequest
request
)
{
return
null
;
try
{
RpcResponse
<
List
<
EarlyWarningThresholdConfigHistoryDTO
>>
response
=
earlyWarningMsgRemote
.
listMerchantAnalysisIndexHistory
(
request
.
getMerchantId
().
toString
());
if
(
response
.
isSuccess
())
{
return
RopResponse
.
success
(
response
.
getResult
());
}
return
RopResponse
.
error
(
response
.
getMessage
());
}
catch
(
RpcServiceException
e
)
{
log
.
error
(
"=====dj.api.strategy.merchant.analysis.index.history rpcServiceException:{}"
,
e
.
getMessage
());
return
RopResponse
.
error
(
e
);
}
catch
(
Exception
e
)
{
log
.
error
(
"=====dj.api.strategy.merchant.analysis.index.history exception:{}"
,
e
.
getMessage
(),
e
);
return
RopResponse
.
error
(
e
.
getMessage
());
}
}
}
@ApiOperation
(
"延保/权益/轻改-查询门店是否鸿蒙"
)
@ApiOperation
(
"延保/权益/轻改-查询门店是否鸿蒙"
)
...
...
src/main/java/cn/com/glsx/dj/strategy/controller/StrategyInfoController.java
View file @
d91e8af
...
@@ -17,6 +17,7 @@ import cn.com.glsx.framework.core.beans.rpc.RpcPagination;
...
@@ -17,6 +17,7 @@ import cn.com.glsx.framework.core.beans.rpc.RpcPagination;
import
cn.com.glsx.framework.core.beans.rpc.RpcResponse
;
import
cn.com.glsx.framework.core.beans.rpc.RpcResponse
;
import
cn.com.glsx.framework.core.exception.RpcServiceException
;
import
cn.com.glsx.framework.core.exception.RpcServiceException
;
import
cn.com.glsx.framework.rop.response.RopResponse
;
import
cn.com.glsx.framework.rop.response.RopResponse
;
import
com.rop.annotation.IgnoreSignType
;
import
com.rop.annotation.NeedInSessionType
;
import
com.rop.annotation.NeedInSessionType
;
import
com.rop.annotation.ServiceMethod
;
import
com.rop.annotation.ServiceMethod
;
import
com.rop.annotation.ServiceMethodBean
;
import
com.rop.annotation.ServiceMethodBean
;
...
@@ -41,9 +42,20 @@ public class StrategyInfoController {
...
@@ -41,9 +42,20 @@ public class StrategyInfoController {
@ApiOperation
(
"策略分页列表"
)
@ApiOperation
(
"策略分页列表"
)
@ServiceMethod
(
method
=
"dj.api.strategy.info.page"
)
@ServiceMethod
(
method
=
"dj.api.strategy.info.page"
,
needInSession
=
NeedInSessionType
.
NO
,
ignoreSign
=
IgnoreSignType
.
YES
)
public
RopResponse
<
RpcPagination
<
StrategyInfo
>>
strategyInfoPage
(
StaffInfoPageRequest
request
)
{
public
RopResponse
<
RpcPagination
<
StrategyInfo
>>
strategyInfoPage
(
StaffInfoPageRequest
request
)
{
return
null
;
try
{
RpcPagination
<
StrategyInfo
>
pagination
=
CommonUtil
.
getRpcPagination
(
StrategyInfo
.
class
);
RpcResponse
<
RpcPagination
<
StrategyInfo
>>
response
=
strategyInfoRemote
.
selectStrategyInfoPage
(
pagination
);
if
(
response
.
hasError
())
{
log
.
error
(
response
.
getMessage
());
return
RopResponse
.
error
(
response
.
getError
(),
response
.
getMessage
());
}
return
RopResponse
.
success
(
response
.
getResult
());
}
catch
(
Exception
e
)
{
log
.
error
(
"=====dj.api.strategy.info.page exception:{}"
,
e
.
getMessage
(),
e
);
return
RopResponse
.
error
(
e
.
getMessage
());
}
}
}
@ApiOperation
(
"创建策略"
)
@ApiOperation
(
"创建策略"
)
...
...
src/main/java/cn/com/glsx/dj/strategy/request/MerchantStaffHistoryRecordRequest.java
View file @
d91e8af
...
@@ -10,7 +10,7 @@ public class MerchantStaffHistoryRecordRequest extends AbstractRopRequest {
...
@@ -10,7 +10,7 @@ public class MerchantStaffHistoryRecordRequest extends AbstractRopRequest {
@ApiModelProperty
(
notes
=
"业务类型(1.延保 2.轻改 3.权益)"
)
@ApiModelProperty
(
notes
=
"业务类型(1.延保 2.轻改 3.权益)"
)
private
Integer
bizs
;
private
Integer
bizs
;
@ApiModelProperty
(
notes
=
"门店号
列表
"
)
@ApiModelProperty
(
notes
=
"门店号"
)
private
Integer
merchantId
;
private
Integer
merchantId
;
}
}
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