Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
haoban3.0
haoban-manage3.0
Commits
61a50ef6
Commit
61a50ef6
authored
Apr 19, 2023
by
songyinghui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 月报参数
parent
85601bb1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
MaterialReportContext.java
...ervice/pojo/bo/content/context/MaterialReportContext.java
+1
-1
MaterialReportServiceTest.java
...age3-service/src/test/java/MaterialReportServiceTest.java
+4
-4
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/pojo/bo/content/context/MaterialReportContext.java
View file @
61a50ef6
...
@@ -150,7 +150,7 @@ public class MaterialReportContext {
...
@@ -150,7 +150,7 @@ public class MaterialReportContext {
JSONObject
params
=
new
JSONObject
();
JSONObject
params
=
new
JSONObject
();
// 此处页面链接 最长128个字节
// 此处页面链接 最长128个字节
// storeId_reportType_bizDate
// storeId_reportType_bizDate
String
key
=
String
.
format
(
"%s_%s_%s"
,
storeId
,
this
.
reportType
,
this
.
bizDate
);
String
key
=
String
.
format
(
"%s_%s_%s"
,
StringUtils
.
isBlank
(
storeId
)
?
""
:
storeId
,
this
.
reportType
,
this
.
bizDate
);
params
.
put
(
"k"
,
key
);
params
.
put
(
"k"
,
key
);
// params.put("t", this.reportType);
// params.put("t", this.reportType);
return
params
.
toJSONString
();
return
params
.
toJSONString
();
...
...
haoban-manage3-service/src/test/java/MaterialReportServiceTest.java
View file @
61a50ef6
...
@@ -53,16 +53,16 @@ public class MaterialReportServiceTest {
...
@@ -53,16 +53,16 @@ public class MaterialReportServiceTest {
String
eid
=
"ff8080815dacd3a2015dacd3ef5c0000"
;
String
eid
=
"ff8080815dacd3a2015dacd3ef5c0000"
;
String
wxEid
=
"ca66a01b79474c40b3e7c7f93daf1a3b"
;
String
wxEid
=
"ca66a01b79474c40b3e7c7f93daf1a3b"
;
//
String staffId = "e608b51b267e4943b87e222a343b4f25";
String
staffId
=
"e608b51b267e4943b87e222a343b4f25"
;
String
staffId
=
"fb4096b75d524c5e943c036cb4079723"
;
//
String staffId = "fb4096b75d524c5e943c036cb4079723";
String
storeId
=
"ff8080816e216c04016e34294282004a"
;
String
storeId
=
"ff8080816e216c04016e34294282004a"
;
String
clerkId
=
"300b60c7f8874ca2b9cc696ad6b6a480"
;
String
clerkId
=
"300b60c7f8874ca2b9cc696ad6b6a480"
;
@Test
@Test
public
void
handlerMaterialWeekReportTest
()
{
public
void
handlerMaterialWeekReportTest
()
{
System
.
setProperty
(
"gic.module.name"
,
"haoban-manage3-service"
);
System
.
setProperty
(
"gic.module.name"
,
"haoban-manage3-service"
);
materialReportService
.
handlerMaterialReport
(
"8a809083802bbf5201804af08b0d0095"
,
"7ef8811007ac45f7a49e299509c8859a"
,
MaterialReportType
.
WEEK
.
getCode
());
materialReportService
.
handlerMaterialReport
(
eid
,
staffId
,
MaterialReportType
.
WEEK
.
getCode
());
materialReportService
.
handlerMaterialReport
(
"8a809083802bbf5201804af08b0d0095"
,
"7ef8811007ac45f7a49e299509c8859a"
,
MaterialReportType
.
MONTH
.
getCode
());
materialReportService
.
handlerMaterialReport
(
eid
,
staffId
,
MaterialReportType
.
MONTH
.
getCode
());
}
}
@Test
@Test
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment