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 ff949c47
authored
Jan 12, 2026
by
春觉晓
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
策略中心,添加展业概况查询接口
1 parent
7cec9063
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
168 additions
and
3 deletions
pom.xml
src/main/java/cn/com/glsx/dj/strategy/config/dubbo/DubboConfig.java
src/main/java/cn/com/glsx/dj/strategy/controller/StrategyInfoController.java
src/main/java/cn/com/glsx/dj/strategy/request/MerchantBusinessRequest.java
src/main/java/cn/com/glsx/dj/strategy/request/SceneMerchantBaseRequest.java
src/main/java/cn/com/glsx/dj/strategy/request/StaffInfoSearchRequest.java
pom.xml
View file @
ff949c4
...
...
@@ -27,7 +27,7 @@
<dependency>
<groupId>
cn.com.glsx.dj
</groupId>
<artifactId>
rpc-dj-smartcarlife-api
</artifactId>
<version>
5.6.
0
-SNAPSHOT
</version>
<version>
5.6.
1
-SNAPSHOT
</version>
</dependency>
</dependencies>
...
...
src/main/java/cn/com/glsx/dj/strategy/config/dubbo/DubboConfig.java
View file @
ff949c4
package
cn
.
com
.
glsx
.
dj
.
strategy
.
config
.
dubbo
;
import
cn.com.glsx.dj.smartcarlife.remote.StaffInfoRemote
;
import
cn.com.glsx.dj.strategy.remote.StrategyInfoRemote
;
import
cn.com.glsx.scrm.proxy.remote.CommonProxyRemote
;
import
org.oreframework.boot.autoconfigure.dubbo.reference.ReferenceBuilderFactory
;
...
...
@@ -29,4 +30,9 @@ public class DubboConfig {
public
StrategyInfoRemote
strategyInfoRemote
()
{
return
factory
.
builder
(
StrategyInfoRemote
.
class
).
check
(
check
).
timeout
(
timeout
).
version
(
"1.0.0"
).
build
();
}
@Bean
public
StaffInfoRemote
staffInfoRemote
()
{
return
factory
.
builder
(
StaffInfoRemote
.
class
).
check
(
check
).
timeout
(
timeout
).
version
(
"1.0.0"
).
build
();
}
}
src/main/java/cn/com/glsx/dj/strategy/controller/StrategyInfoController.java
View file @
ff949c4
package
cn
.
com
.
glsx
.
dj
.
strategy
.
controller
;
import
cn.com.glsx.dj.smartcarlife.dto.StaffInfoDTO
;
import
cn.com.glsx.dj.smartcarlife.model.StaffInfo
;
import
cn.com.glsx.dj.smartcarlife.remote.StaffInfoRemote
;
import
cn.com.glsx.dj.strategy.dto.BatchInsertStrategyInfo
;
import
cn.com.glsx.dj.strategy.dto.MerchantBusinessInfo
;
import
cn.com.glsx.dj.strategy.dto.MerchantBusinessOverview
;
import
cn.com.glsx.dj.strategy.model.StrategyInfo
;
import
cn.com.glsx.dj.strategy.model.StrategyMerchantTimeline
;
import
cn.com.glsx.dj.strategy.remote.StrategyInfoRemote
;
import
cn.com.glsx.dj.strategy.request.BatchInsertStrategyInfoRequest
;
import
cn.com.glsx.dj.strategy.request.DeleteStrategyRequest
;
import
cn.com.glsx.dj.strategy.request.*
;
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
;
...
...
@@ -27,6 +33,10 @@ public class StrategyInfoController {
@Autowired
private
StrategyInfoRemote
strategyInfoRemote
;
@Autowired
private
StaffInfoRemote
staffInfoRemote
;
@ApiOperation
(
"创建策略"
)
@ServiceMethod
(
method
=
"dj.api.strategy.info.batch.create"
)
public
RopResponse
<
Boolean
>
batchCreate
(
BatchInsertStrategyInfoRequest
request
)
{
...
...
@@ -72,4 +82,65 @@ public class StrategyInfoController {
}
}
@ApiOperation
(
"查询驻店员工/区域运营/飞行督导列表"
)
@ServiceMethod
(
method
=
"dj.api.strategy.staff.page"
)
public
RopResponse
<
RpcPagination
<
StaffInfoDTO
>>
listStaffWithPage
(
StaffInfoSearchRequest
request
)
{
try
{
RpcPagination
<
StaffInfoDTO
>
pagination
=
CommonUtil
.
getRpcPagination
(
StaffInfoDTO
.
class
);
RpcResponse
<
RpcPagination
<
StaffInfoDTO
>>
response
=
staffInfoRemote
.
listMultipleRolesStaffWithPage
(
pagination
);
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.page rpcServiceException:{}"
,
e
.
getMessage
());
return
RopResponse
.
error
(
e
);
}
catch
(
Exception
e
)
{
log
.
error
(
"=====dj.api.strategy.staff.page exception:{}"
,
e
.
getMessage
(),
e
);
return
RopResponse
.
error
(
e
.
getMessage
());
}
}
@ApiOperation
(
"查询门店展业时间线"
)
@ServiceMethod
(
method
=
"dj.api.strategy.merchant.timeline"
)
public
RopResponse
<
MerchantBusinessOverview
>
listStrategyMerchantTimeline
(
MerchantBusinessRequest
request
)
{
try
{
MerchantBusinessInfo
merchantBusinessInfo
=
CommonUtil
.
convertRequest
(
MerchantBusinessInfo
.
class
);
RpcResponse
<
MerchantBusinessOverview
>
response
=
strategyInfoRemote
.
listStrategyMerchantTimeline
(
merchantBusinessInfo
);
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.merchant.timeline rpcServiceException:{}"
,
e
.
getMessage
());
return
RopResponse
.
error
(
e
);
}
catch
(
Exception
e
)
{
log
.
error
(
"=====dj.api.strategy.merchant.timeline exception:{}"
,
e
.
getMessage
(),
e
);
return
RopResponse
.
error
(
e
.
getMessage
());
}
}
@ApiOperation
(
"停止门店展业"
)
@ServiceMethod
(
method
=
"dj.api.strategy.merchant.stop.business"
)
public
RopResponse
<
Boolean
>
stopMerchantBusiness
(
MerchantBusinessRequest
request
)
{
try
{
MerchantBusinessInfo
merchantBusinessInfo
=
CommonUtil
.
convertRequest
(
MerchantBusinessInfo
.
class
);
String
accountName
=
CommonUtil
.
getAccountName
();
merchantBusinessInfo
.
setUpdatedBy
(
accountName
);
RpcResponse
<
Boolean
>
response
=
strategyInfoRemote
.
stopMerchantBusiness
(
merchantBusinessInfo
);
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.merchant.stop.business rpcServiceException:{}"
,
e
.
getMessage
());
return
RopResponse
.
error
(
e
);
}
catch
(
Exception
e
)
{
log
.
error
(
"=====dj.api.strategy.merchant.stop.business exception:{}"
,
e
.
getMessage
(),
e
);
return
RopResponse
.
error
(
e
.
getMessage
());
}
}
}
src/main/java/cn/com/glsx/dj/strategy/request/MerchantBusinessRequest.java
0 → 100644
View file @
ff949c4
package
cn
.
com
.
glsx
.
dj
.
strategy
.
request
;
import
cn.com.glsx.dj.smartcarlife.enums.SceneTypeEnum
;
import
com.rop.AbstractRopRequest
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
org.springframework.format.annotation.DateTimeFormat
;
import
java.util.Date
;
@Data
public
class
MerchantBusinessRequest
extends
AbstractRopRequest
{
@ApiModelProperty
(
notes
=
"业务场景(0.会员权益,1.精品升级),必须,默认会员权益"
)
private
Byte
sceneType
=
SceneTypeEnum
.
SCENE1_0
.
getValue
();
@ApiModelProperty
(
notes
=
"业务类型(1.延保 2.轻改 3.权益)"
)
private
Integer
bizs
;
@ApiModelProperty
(
notes
=
"门店号"
)
private
Integer
merchantId
;
@ApiModelProperty
(
notes
=
"时间节点,yyyy-MM-dd HH:mm:ss"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
private
Date
nodeDate
;
}
src/main/java/cn/com/glsx/dj/strategy/request/SceneMerchantBaseRequest.java
0 → 100644
View file @
ff949c4
package
cn
.
com
.
glsx
.
dj
.
strategy
.
request
;
import
cn.com.glsx.dj.smartcarlife.enums.SceneTypeEnum
;
import
com.rop.AbstractRopRequest
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
java.util.List
;
@Data
public
class
SceneMerchantBaseRequest
extends
AbstractRopRequest
{
@ApiModelProperty
(
notes
=
"业务场景(0.会员权益,1.精品升级),必须,默认会员权益"
)
private
Byte
sceneType
=
SceneTypeEnum
.
SCENE1_0
.
getValue
();
@ApiModelProperty
(
notes
=
"业务类型(1.延保 2.轻改 3.权益)"
)
private
Integer
bizs
;
@ApiModelProperty
(
notes
=
"周期类型(1.按天,2.按周,3.按月,4.自定义,5.按年),必须"
)
private
Integer
cycleType
;
@ApiModelProperty
(
notes
=
"开始时间"
,
required
=
true
)
private
String
startTime
;
@ApiModelProperty
(
notes
=
"结束时间"
)
private
String
endTime
;
@ApiModelProperty
(
notes
=
"门店号"
)
private
Integer
merchantId
;
}
src/main/java/cn/com/glsx/dj/strategy/request/StaffInfoSearchRequest.java
0 → 100644
View file @
ff949c4
package
cn
.
com
.
glsx
.
dj
.
strategy
.
request
;
import
cn.com.glsx.dj.smartcarlife.enums.SceneTypeEnum
;
import
com.rop.AbstractRopRequest
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
javax.validation.constraints.NotNull
;
import
java.util.List
;
@Data
public
class
StaffInfoSearchRequest
extends
AbstractRopRequest
{
@ApiModelProperty
(
notes
=
"业务场景(0.会员权益,1.精品升级),必须,默认会员权益"
)
private
Byte
sceneType
=
SceneTypeEnum
.
SCENE1_0
.
getValue
();
@ApiModelProperty
(
notes
=
"员工姓名"
)
private
String
staffName
;
@NotNull
(
message
=
"门店ID列表不能为空"
)
@ApiModelProperty
(
notes
=
"门店ID列表"
)
private
List
<
Integer
>
merchantIdList
;
@ApiModelProperty
(
notes
=
"页码,默认1"
,
required
=
true
)
private
Integer
pageNum
=
1
;
@ApiModelProperty
(
notes
=
"每页数量,默认10"
,
required
=
true
)
private
Integer
pageSize
=
10
;
@NotNull
(
message
=
"岗位类型列表不能为空"
)
@ApiModelProperty
(
notes
=
"岗位类型列表,岗位类型,0:驻店,6:飞行督导,9:2.1区域运营"
,
required
=
true
)
private
List
<
Integer
>
positionTypeList
;
}
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