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 6829893f
authored
Jan 13, 2026
by
春觉晓
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
添加策略信息中心接口定义
1 parent
18ba0eb2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
142 additions
and
2 deletions
src/main/java/cn/com/glsx/dj/strategy/config/dubbo/DubboConfig.java
src/main/java/cn/com/glsx/dj/strategy/controller/MerchantAnalysisController.java
src/main/java/cn/com/glsx/dj/strategy/request/SceneMerchantBaseRequest.java
src/main/java/cn/com/glsx/dj/strategy/config/dubbo/DubboConfig.java
View file @
6829893
package
cn
.
com
.
glsx
.
dj
.
strategy
.
config
.
dubbo
;
import
cn.com.glsx.dj.peanalysis.remote.BusinessSceneAnalysisRemote
;
import
cn.com.glsx.dj.smartcarlife.remote.StaffInfoRemote
;
import
cn.com.glsx.dj.strategy.remote.StrategyInfoRemote
;
import
cn.com.glsx.scrm.proxy.remote.CommonProxyRemote
;
...
...
@@ -35,4 +36,9 @@ public class DubboConfig {
public
StaffInfoRemote
staffInfoRemote
()
{
return
factory
.
builder
(
StaffInfoRemote
.
class
).
check
(
check
).
timeout
(
timeout
).
version
(
"1.0.0"
).
build
();
}
@Bean
public
BusinessSceneAnalysisRemote
businessSceneAnalysisRemote
()
{
return
factory
.
builder
(
BusinessSceneAnalysisRemote
.
class
).
check
(
check
).
timeout
(
timeout
).
version
(
"1.0.0"
).
build
();
}
}
src/main/java/cn/com/glsx/dj/strategy/controller/MerchantAnalysisController.java
0 → 100644
View file @
6829893
package
cn
.
com
.
glsx
.
dj
.
strategy
.
controller
;
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.GoodsCategorySummaryResponse
;
import
cn.com.glsx.dj.peanalysis.dto.res.output.StoreDetailSummaryResponse
;
import
cn.com.glsx.dj.peanalysis.dto.strategy.GoodsCategorySummaryWithWarn
;
import
cn.com.glsx.dj.peanalysis.dto.strategy.StaffAnalysisDTO
;
import
cn.com.glsx.dj.peanalysis.dto.strategy.StaffSummaryDTO
;
import
cn.com.glsx.dj.peanalysis.remote.BusinessSceneAnalysisRemote
;
import
cn.com.glsx.dj.smartcarlife.dto.StaffInfoDTO
;
import
cn.com.glsx.dj.strategy.request.SceneMerchantBaseRequest
;
import
cn.com.glsx.dj.strategy.request.StaffInfoSearchRequest
;
import
cn.com.glsx.dj.strategy.uitl.CommonUtil
;
import
cn.com.glsx.framework.core.beans.rpc.RpcPagination
;
import
cn.com.glsx.framework.core.beans.rpc.RpcResponse
;
import
cn.com.glsx.framework.core.exception.RpcServiceException
;
import
cn.com.glsx.framework.rop.response.RopResponse
;
import
com.rop.annotation.NeedInSessionType
;
import
com.rop.annotation.ServiceMethod
;
import
com.rop.annotation.ServiceMethodBean
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
java.util.Collections
;
import
java.util.List
;
@Slf4j
@ServiceMethodBean
(
version
=
"1.0.0"
,
needInSession
=
NeedInSessionType
.
YES
)
@Api
(
"策略中心-门店看板"
)
public
class
MerchantAnalysisController
{
@Autowired
private
BusinessSceneAnalysisRemote
businessSceneAnalysisRemote
;
@ApiOperation
(
"查询驻店员工列表"
)
@ServiceMethod
(
method
=
"dj.api.strategy.staff.list.analysis"
)
public
RopResponse
<
List
<
StaffAnalysisDTO
>>
listStaffAnalysis
(
SceneMerchantBaseRequest
request
)
{
try
{
SceneBaseReq
req
=
CommonUtil
.
convertRequest
(
SceneBaseReq
.
class
);
RpcResponse
<
List
<
StaffAnalysisDTO
>>
response
=
businessSceneAnalysisRemote
.
listStaffAnalysis
(
req
);
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.api.strategy.staff.list.analysis rpcServiceException:{}"
,
e
.
getMessage
());
return
RopResponse
.
error
(
e
);
}
catch
(
Exception
e
)
{
log
.
error
(
"=====dj.api.strategy.staff.list.analysis exception:{}"
,
e
.
getMessage
(),
e
);
return
RopResponse
.
error
(
e
.
getMessage
());
}
}
@ApiOperation
(
"查询驻店员工时长信息"
)
@ServiceMethod
(
method
=
"dj.api.strategy.staff.summary.duration"
)
public
RopResponse
<
StaffSummaryDTO
>
summaryStaffDuration
(
SceneMerchantBaseRequest
request
)
{
try
{
SceneBaseReq
req
=
CommonUtil
.
convertRequest
(
SceneBaseReq
.
class
);
RpcResponse
<
StaffSummaryDTO
>
response
=
businessSceneAnalysisRemote
.
summaryStaffDuration
(
req
);
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.api.strategy.staff.list.analysis rpcServiceException:{}"
,
e
.
getMessage
());
return
RopResponse
.
error
(
e
);
}
catch
(
Exception
e
)
{
log
.
error
(
"=====dj.api.strategy.staff.list.analysis exception:{}"
,
e
.
getMessage
(),
e
);
return
RopResponse
.
error
(
e
.
getMessage
());
}
}
@ApiOperation
(
"策略中心-门店分析-门店经营概况"
)
@ServiceMethod
(
method
=
"dj.api.strategy.merchant.analysis.store.detail.summary"
,
needInSession
=
NeedInSessionType
.
YES
)
public
RopResponse
<
StoreDetailSummaryResponse
>
merchantDetailSummary
(
SceneMerchantBaseRequest
request
)
{
try
{
SceneBaseReq
req
=
CommonUtil
.
convertRequest
(
SceneBaseReq
.
class
);
RpcResponse
<
StoreDetailSummaryResponse
>
response
=
businessSceneAnalysisRemote
.
storeDetailSummary
(
req
);
if
(
response
.
isSuccess
())
{
return
RopResponse
.
success
(
response
.
getResult
());
}
return
RopResponse
.
error
(
response
.
getMessage
());
}
catch
(
Exception
e
)
{
log
.
error
(
"接口异常"
,
e
);
return
RopResponse
.
error
(
e
.
getMessage
());
}
}
@ApiOperation
(
"策略中心-门店商品品类分析"
)
@ServiceMethod
(
method
=
"dj.api.strategy.merchant.analysis.goods.summary.withWarn"
,
needInSession
=
NeedInSessionType
.
YES
)
public
RopResponse
<
GoodsCategorySummaryWithWarn
>
merchantGoodsSummaryWithWarm
(
SceneMerchantBaseRequest
request
)
{
try
{
SceneBaseReq
req
=
CommonUtil
.
convertRequest
(
SceneBaseReq
.
class
);
RpcResponse
<
GoodsCategorySummaryWithWarn
>
response
=
businessSceneAnalysisRemote
.
merchantGoodsSummaryWithWarm
(
req
);
if
(
response
.
isSuccess
())
{
return
RopResponse
.
success
(
response
.
getResult
());
}
return
RopResponse
.
error
(
response
.
getMessage
());
}
catch
(
Exception
e
)
{
log
.
error
(
"接口异常"
,
e
);
return
RopResponse
.
error
(
e
.
getMessage
());
}
}
@ApiOperation
(
"策略中心-门店分析-驻店员工分析"
)
@ServiceMethod
(
method
=
"dj.api.strategy.merchant.analysis.employee.summary"
,
needInSession
=
NeedInSessionType
.
YES
)
public
RopResponse
<
EmployeeDetailSummaryResponse
>
storeEmployeeSummary
(
SceneMerchantBaseRequest
request
)
{
try
{
SceneBaseReq
req
=
CommonUtil
.
convertRequest
(
SceneBaseReq
.
class
);
req
.
setExts
(
"staffIds"
);
RpcResponse
<
EmployeeDetailSummaryResponse
>
response
=
businessSceneAnalysisRemote
.
storeEmployeeSummary
(
req
);
if
(
response
.
isSuccess
())
{
return
RopResponse
.
success
(
response
.
getResult
());
}
return
RopResponse
.
error
(
response
.
getMessage
());
}
catch
(
Exception
e
)
{
log
.
error
(
"接口异常"
,
e
);
return
RopResponse
.
error
(
e
.
getMessage
());
}
}
}
src/main/java/cn/com/glsx/dj/strategy/request/SceneMerchantBaseRequest.java
View file @
6829893
...
...
@@ -25,6 +25,11 @@ public class SceneMerchantBaseRequest extends AbstractRopRequest {
@ApiModelProperty
(
notes
=
"结束时间"
)
private
String
endTime
;
@ApiModelProperty
(
notes
=
"门店号"
)
private
Integer
merchantId
;
@ApiModelProperty
(
notes
=
"门店号列表"
)
private
List
<
Integer
>
merchantIds
;
@ApiModelProperty
(
notes
=
"员工编号列表"
)
private
List
<
String
>
staffUuids
;
@ApiModelProperty
(
notes
=
"驻店员工手机号"
)
private
String
staffPhone
;
}
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