Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
dj
/
rop-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 db63fd75
authored
Dec 24, 2025
by
杨卫
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat:1047852:自测+企微卡片消息发送
1 parent
f51811d7
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
117 additions
and
13 deletions
src/main/java/cn/com/glsx/dj/controller/BiMatterController.java
src/main/java/cn/com/glsx/dj/request/biAnalyse/MerchantBiMatterAddReq.java
src/main/java/cn/com/glsx/dj/request/biAnalyse/MerchantOperatorReq.java
src/main/java/cn/com/glsx/dj/response/bianalysis/MerchantOperatorDetailResp.java
src/test/java/cn/com/glsx/dj/controller/BiMatterControllerTest.java
src/main/java/cn/com/glsx/dj/controller/BiMatterController.java
View file @
db63fd7
...
...
@@ -2,11 +2,15 @@ package cn.com.glsx.dj.controller;
import
cn.com.glsx.dj.peanalysis.dto.analysis.MerchantBiMatterAddDTO
;
import
cn.com.glsx.dj.peanalysis.dto.analysis.MerchantBiMatterHandleDTO
;
import
cn.com.glsx.dj.peanalysis.dto.analysis.MerchantOperatorDTO
;
import
cn.com.glsx.dj.peanalysis.dto.analysis.MerchantOperatorDetailDTO
;
import
cn.com.glsx.dj.peanalysis.enums.BiErrorEnum
;
import
cn.com.glsx.dj.peanalysis.remote.BiAnalyseBackgroundRemote
;
import
cn.com.glsx.dj.request.biAnalyse.MerchantBiMatterAddReq
;
import
cn.com.glsx.dj.request.biAnalyse.MerchantBiMatterHandleReq
;
import
cn.com.glsx.dj.request.biAnalyse.MerchantOperatorReq
;
import
cn.com.glsx.dj.response.LoginUserInfoResponse
;
import
cn.com.glsx.dj.response.bianalysis.MerchantOperatorDetailResp
;
import
cn.com.glsx.dj.util.CommonUtil
;
import
cn.com.glsx.framework.core.beans.rpc.RpcResponse
;
import
cn.com.glsx.framework.core.enums.DefaultErrorEnum
;
...
...
@@ -90,4 +94,26 @@ public class BiMatterController {
return
RopResponse
.
result
(
DefaultErrorEnum
.
SERVICE_ERROR
);
}
}
@ApiOperation
(
"BI-获取指定店铺的区域运营与线上运营"
)
@ServiceMethod
(
method
=
"dj.api.smartcarlife.business.analysis.merchant.bi.operator"
,
needInSession
=
NeedInSessionType
.
YES
)
public
RopResponse
<
MerchantOperatorDetailResp
>
findMerchantOperator
(
MerchantOperatorReq
request
)
{
try
{
MerchantOperatorDTO
merchantOperatorDTO
=
BeanUtil
.
copyProperties
(
request
,
MerchantOperatorDTO
.
class
);
RpcResponse
<
MerchantOperatorDetailDTO
>
rpcResponse
=
biAnalyseBackgroundRemote
.
findMerchantOperator
(
merchantOperatorDTO
);
if
(
rpcResponse
.
isFailed
())
{
throw
new
RpcServiceException
(
rpcResponse
.
getError
(),
rpcResponse
.
getMessage
());
}
MerchantOperatorDetailDTO
merchantOperatorDetailDTO
=
rpcResponse
.
getResult
();
MerchantOperatorDetailResp
merchantOperatorDetailResp
=
BeanUtil
.
copyProperties
(
merchantOperatorDetailDTO
,
MerchantOperatorDetailResp
.
class
);
return
RopResponse
.
success
(
merchantOperatorDetailResp
);
}
catch
(
RpcServiceException
e
)
{
log
.
info
(
"dj.api.smartcarlife.business.analysis.merchant.bi.operator occur error!"
,
e
);
return
RopResponse
.
error
(
e
);
}
catch
(
Exception
e
)
{
log
.
info
(
"dj.api.smartcarlife.business.analysis.merchant.bi.operator occur error!"
,
e
);
return
RopResponse
.
result
(
DefaultErrorEnum
.
SERVICE_ERROR
);
}
}
}
src/main/java/cn/com/glsx/dj/request/biAnalyse/MerchantBiMatterAddReq.java
View file @
db63fd7
...
...
@@ -40,8 +40,7 @@ public class MerchantBiMatterAddReq extends AbstractRopRequest implements Serial
@ApiModelProperty
(
name
=
"businessType"
,
notes
=
"bi侧业务类型,1.延保 2.轻改 3.权益 4.二手车"
,
example
=
"金秋销售冲刺"
,
required
=
true
example
=
"金秋销售冲刺"
)
private
String
businessType
;
...
...
src/main/java/cn/com/glsx/dj/request/biAnalyse/MerchantOperatorReq.java
0 → 100644
View file @
db63fd7
package
cn
.
com
.
glsx
.
dj
.
request
.
biAnalyse
;
import
com.rop.AbstractRopRequest
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
java.io.Serializable
;
/**
* BI-获取指定店铺的区域运营与线上运营
* @author yangwei
* @version 1.0
* @since 2025/12/12 14:32
*/
@Data
@ApiModel
(
"BI-获取指定店铺的区域运营与线上运营"
)
@EqualsAndHashCode
(
callSuper
=
true
)
public
class
MerchantOperatorReq
extends
AbstractRopRequest
implements
Serializable
{
private
static
final
long
serialVersionUID
=
8189206294528780125L
;
@ApiModelProperty
(
name
=
"storeNo"
,
notes
=
"商户号"
,
example
=
"1"
,
required
=
true
)
private
Integer
storeNo
;
@ApiModelProperty
(
name
=
"businessType"
,
notes
=
"bi侧业务类型,1.延保 2.轻改 3.权益,不传为全业务"
,
example
=
"1"
)
private
String
businessType
;
}
src/main/java/cn/com/glsx/dj/response/bianalysis/MerchantOperatorDetailResp.java
0 → 100644
View file @
db63fd7
package
cn
.
com
.
glsx
.
dj
.
response
.
bianalysis
;
import
cn.com.glsx.dj.peanalysis.dto.analysis.MerchantBiMatterDTO
;
import
com.google.common.collect.Lists
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.util.List
;
/**
* BI-获取指定店铺的区域运营与线上运营
* @author yangwei
* @version 1.0
* @since 2025/12/23 14:38
*/
@Data
public
class
MerchantOperatorDetailResp
implements
Serializable
{
private
static
final
long
serialVersionUID
=
-
1212590423246836477L
;
/** 门店编号 */
private
String
storeNo
;
/** 线上运营 */
private
List
<
MerchantBiMatterDTO
.
OperatorDTO
>
onlineOperator
=
Lists
.
newArrayList
();
/** 区域运营 */
private
List
<
MerchantBiMatterDTO
.
OperatorDTO
>
areaOperator
=
Lists
.
newArrayList
();
}
src/test/java/cn/com/glsx/dj/controller/BiMatterControllerTest.java
View file @
db63fd7
...
...
@@ -16,17 +16,17 @@ public class BiMatterControllerTest extends BaseControllerTest {
MultiValueMap
<
String
,
String
>
params
=
new
LinkedMultiValueMap
<
String
,
String
>();
params
.
add
(
"v"
,
"1.0.0"
);
params
.
add
(
"method"
,
"dj.api.smartcarlife.business.analysis.merchant.bi.matter.add"
);
params
.
add
(
"storeNo"
,
"44211
668
"
);
params
.
add
(
"storeName"
,
"明明
长岭4s店B222
"
);
params
.
add
(
"storeNo"
,
"44211
227
"
);
params
.
add
(
"storeName"
,
"明明
崇文4s店A
"
);
params
.
add
(
"businessType"
,
"1"
);
params
.
add
(
"description"
,
"
请大声说大碗宽面~~
"
);
params
.
add
(
"onlineOperator[0].uuid"
,
"
8104840424a0455db573c5fb84ab7383
"
);
params
.
add
(
"onlineOperator[0].username"
,
"
区域督导天天
"
);
params
.
add
(
"onlineOperator[1].uuid"
,
"
17f70bc28c8f40ef9c260d05dbe2878
7"
);
params
.
add
(
"onlineOperator[1].username"
,
"
陈希
"
);
params
.
add
(
"areaOperator[0].uuid"
,
"c
359e4838e2547aaa140d9a67ec0b165
"
);
params
.
add
(
"areaOperator[0].username"
,
"
狗蛋
"
);
params
.
add
(
"sessionId"
,
"
f57db715-128a-4fd1-bc40-abec63519bdc
"
);
params
.
add
(
"description"
,
"
i am iron man2
"
);
params
.
add
(
"onlineOperator[0].uuid"
,
"
c76164900b104472ba47b084b0d3e0e8
"
);
params
.
add
(
"onlineOperator[0].username"
,
"
周海宝
"
);
params
.
add
(
"onlineOperator[1].uuid"
,
"
d0b8bcc8372c4e8d992bd767bf97eb1
7"
);
params
.
add
(
"onlineOperator[1].username"
,
"
督导天明a
"
);
params
.
add
(
"areaOperator[0].uuid"
,
"c
76164900b104472ba47b084b0d3e0e8
"
);
params
.
add
(
"areaOperator[0].username"
,
"
周海宝
"
);
params
.
add
(
"sessionId"
,
"
b0b2c6e2-daf9-494e-b078-30919f85e992
"
);
System
.
out
.
println
(
post
(
params
));
}
...
...
@@ -39,7 +39,19 @@ public class BiMatterControllerTest extends BaseControllerTest {
params
.
add
(
"method"
,
"dj.api.smartcarlife.business.analysis.merchant.bi.matter.handle"
);
params
.
add
(
"id"
,
"9"
);
params
.
add
(
"handlingStrategy"
,
"你看这个面,他又大又宽,你看这个碗,又大又圆,"
);
params
.
add
(
"sessionId"
,
"f57db715-128a-4fd1-bc40-abec63519bdc"
);
params
.
add
(
"sessionId"
,
"d9833ee4-4bef-4e1a-9a7c-bf2ed33d4731"
);
System
.
out
.
println
(
post
(
params
));
}
@Test
public
void
testFindMerchantOperator
()
throws
Exception
{
MultiValueMap
<
String
,
String
>
params
=
new
LinkedMultiValueMap
<
String
,
String
>();
params
.
add
(
"v"
,
"1.0.0"
);
params
.
add
(
"method"
,
"dj.api.smartcarlife.business.analysis.merchant.bi.operator"
);
params
.
add
(
"storeNo"
,
"44211227"
);
// params.add("businessType", "1");
params
.
add
(
"sessionId"
,
"d9833ee4-4bef-4e1a-9a7c-bf2ed33d4731"
);
System
.
out
.
println
(
post
(
params
));
}
...
...
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