Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
dj
/
rop-dj-script
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 2a11f9c0
authored
Dec 22, 2025
by
杨卫
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat:1047852:我的事项,添加事项
1 parent
d1ccff21
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
src/main/java/cn/com/glsx/dj/script/controller/BiAnalyseBackgroundController.java
src/test/java/cn/com/glsx/dj/script/controller/BiAnalyseBackgroundControllerTest.java
src/main/java/cn/com/glsx/dj/script/controller/BiAnalyseBackgroundController.java
View file @
2a11f9c
...
@@ -225,9 +225,7 @@ public class BiAnalyseBackgroundController {
...
@@ -225,9 +225,7 @@ public class BiAnalyseBackgroundController {
@ServiceMethod
(
method
=
"dj.api.script.province.organization.list"
,
needInSession
=
NeedInSessionType
.
YES
)
@ServiceMethod
(
method
=
"dj.api.script.province.organization.list"
,
needInSession
=
NeedInSessionType
.
YES
)
public
RopResponse
<
RpcPagination
<
ProvinceOrganizationResp
>>
provinceOrganizationList
(
ProvinceOrganizationQryPageReq
request
)
{
public
RopResponse
<
RpcPagination
<
ProvinceOrganizationResp
>>
provinceOrganizationList
(
ProvinceOrganizationQryPageReq
request
)
{
try
{
try
{
RpcPagination
<?>
rpcPagination
=
new
RpcPagination
<>();
RpcPagination
<?>
rpcPagination
=
CommonUtil
.
getRpcPagination
(
MerchantProfitRecordQryDTO
.
class
);
rpcPagination
.
setPageNum
(
request
.
getPageNum
());
rpcPagination
.
setPageSize
(
request
.
getPageSize
());
RpcResponse
<
RpcPagination
<
ProvinceOrganizationDTO
>>
response
=
biAnalyseBackgroundRemote
.
provinceOrganizationList
(
rpcPagination
);
RpcResponse
<
RpcPagination
<
ProvinceOrganizationDTO
>>
response
=
biAnalyseBackgroundRemote
.
provinceOrganizationList
(
rpcPagination
);
if
(
response
.
isFailed
())
{
if
(
response
.
isFailed
())
{
...
@@ -299,11 +297,11 @@ public class BiAnalyseBackgroundController {
...
@@ -299,11 +297,11 @@ public class BiAnalyseBackgroundController {
.
orElseThrow
(()
->
new
RpcServiceException
(
BiErrorEnum
.
LOGIN_USER_NOT_EXIST
));
.
orElseThrow
(()
->
new
RpcServiceException
(
BiErrorEnum
.
LOGIN_USER_NOT_EXIST
));
String
userName
=
loginUserDTO
.
getUserName
();
String
userName
=
loginUserDTO
.
getUserName
();
String
loginAccount
=
loginUserDTO
.
getLoginAccout
();
String
uuid
=
loginUserDTO
.
getUuid
();
MerchantBiMatterHandleDTO
merchantBiMatterHandleDTO
=
BeanUtil
.
copyProperties
(
request
,
MerchantBiMatterHandleDTO
.
class
);
MerchantBiMatterHandleDTO
merchantBiMatterHandleDTO
=
BeanUtil
.
copyProperties
(
request
,
MerchantBiMatterHandleDTO
.
class
);
merchantBiMatterHandleDTO
.
setOperator
(
userName
);
merchantBiMatterHandleDTO
.
setOperator
(
userName
);
merchantBiMatterHandleDTO
.
setOperatorUniqueKey
(
loginAccount
);
merchantBiMatterHandleDTO
.
setOperatorUniqueKey
(
uuid
);
RpcResponse
<
Boolean
>
rpcResponse
=
biAnalyseBackgroundRemote
.
merchantBiMatterHandle
(
merchantBiMatterHandleDTO
);
RpcResponse
<
Boolean
>
rpcResponse
=
biAnalyseBackgroundRemote
.
merchantBiMatterHandle
(
merchantBiMatterHandleDTO
);
if
(
rpcResponse
.
isFailed
())
{
if
(
rpcResponse
.
isFailed
())
{
throw
new
RpcServiceException
(
rpcResponse
.
getError
(),
rpcResponse
.
getMessage
());
throw
new
RpcServiceException
(
rpcResponse
.
getError
(),
rpcResponse
.
getMessage
());
...
...
src/test/java/cn/com/glsx/dj/script/controller/BiAnalyseBackgroundControllerTest.java
View file @
2a11f9c
...
@@ -15,8 +15,10 @@ public class BiAnalyseBackgroundControllerTest extends BaseControllerTest {
...
@@ -15,8 +15,10 @@ public class BiAnalyseBackgroundControllerTest extends BaseControllerTest {
public
void
testMerchantProfitRecordPage
()
throws
Exception
{
public
void
testMerchantProfitRecordPage
()
throws
Exception
{
MultiValueMap
<
String
,
String
>
params
=
new
LinkedMultiValueMap
<
String
,
String
>();
MultiValueMap
<
String
,
String
>
params
=
new
LinkedMultiValueMap
<
String
,
String
>();
params
.
add
(
"v"
,
"1.0.0"
);
params
.
add
(
"v"
,
"1.0.0"
);
params
.
add
(
"monthYear"
,
"2025-10"
);
params
.
add
(
"method"
,
"dj.api.script.merchant.profit.record.page"
);
params
.
add
(
"method"
,
"dj.api.script.merchant.profit.record.page"
);
params
.
add
(
"sessionId"
,
"9551b3d6-4486-45ee-9141-ee91f3de604b"
);
params
.
add
(
"currentPage"
,
"5"
);
params
.
add
(
"sessionId"
,
"a03ee900-f6ac-47c9-8f04-3019a6ea331c"
);
System
.
out
.
println
(
post
(
params
));
System
.
out
.
println
(
post
(
params
));
}
}
...
@@ -28,9 +30,9 @@ public class BiAnalyseBackgroundControllerTest extends BaseControllerTest {
...
@@ -28,9 +30,9 @@ public class BiAnalyseBackgroundControllerTest extends BaseControllerTest {
params
.
add
(
"method"
,
"dj.api.script.merchant.profit.record.add"
);
params
.
add
(
"method"
,
"dj.api.script.merchant.profit.record.add"
);
params
.
add
(
"storeId"
,
"44190381"
);
params
.
add
(
"storeId"
,
"44190381"
);
params
.
add
(
"businessType"
,
"2"
);
params
.
add
(
"businessType"
,
"2"
);
params
.
add
(
"monthYear"
,
"202
5
10"
);
params
.
add
(
"monthYear"
,
"202
4-
10"
);
params
.
add
(
"profitAmount"
,
"123.23"
);
params
.
add
(
"profitAmount"
,
"123.23"
);
params
.
add
(
"sessionId"
,
"
e5536def-32aa-4de5-bce6-94ee77456af
c"
);
params
.
add
(
"sessionId"
,
"
a03ee900-f6ac-47c9-8f04-3019a6ea331
c"
);
System
.
out
.
println
(
post
(
params
));
System
.
out
.
println
(
post
(
params
));
}
}
...
@@ -63,8 +65,8 @@ public class BiAnalyseBackgroundControllerTest extends BaseControllerTest {
...
@@ -63,8 +65,8 @@ public class BiAnalyseBackgroundControllerTest extends BaseControllerTest {
params
.
add
(
"v"
,
"1.0.0"
);
params
.
add
(
"v"
,
"1.0.0"
);
params
.
add
(
"method"
,
"dj.api.script.merchant.bi.matter.handle"
);
params
.
add
(
"method"
,
"dj.api.script.merchant.bi.matter.handle"
);
params
.
add
(
"id"
,
"2"
);
params
.
add
(
"id"
,
"2"
);
params
.
add
(
"handlingStrategy"
,
"giao"
);
params
.
add
(
"handlingStrategy"
,
"giao
giaogiaogiao,hahahaha,nika lufu
"
);
params
.
add
(
"sessionId"
,
"
e5536def-32aa-4de5-bce6-94ee77456afc
"
);
params
.
add
(
"sessionId"
,
"
6daef60d-58aa-4503-a4b8-d7d55785f452
"
);
System
.
out
.
println
(
post
(
params
));
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