Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gogirl-miniapp-backend
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
huluobin
gogirl-miniapp-backend
Commits
cc6d5651
Commit
cc6d5651
authored
Oct 19, 2020
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
067af822
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
43 additions
and
3 deletions
+43
-3
Schedule.java
...ain/java/com/gogirl/infrastructure/schedule/Schedule.java
+1
-1
AdminFeignTest.java
.../java/com/gogirl/infrastructure/feign/AdminFeignTest.java
+4
-2
ScheduleTest.java
...java/com/gogirl/infrastructure/schedule/ScheduleTest.java
+38
-0
No files found.
src/main/java/com/gogirl/infrastructure/schedule/Schedule.java
View file @
cc6d5651
...
...
@@ -213,7 +213,7 @@ public class Schedule {
}
//如果店铺id不为空
if
(
cbrt
!=
null
&&
cbrt
.
getDepartmentId
()
=
=
null
)
{
if
(
cbrt
!=
null
&&
cbrt
.
getDepartmentId
()
!
=
null
)
{
customerBalanceRecord
.
setDepartmentId
(
cbrt
.
getDepartmentId
());
}
...
...
src/test/java/com/gogirl/infrastructure/feign/AdminFeignTest.java
View file @
cc6d5651
...
...
@@ -116,6 +116,7 @@ public class AdminFeignTest {
.
sord
(
"asc"
)
//在职
.
status
(
1
)
.
api_brand_id
(
1
)
.
build
();
request
.
setDate_utc
(
Lists
.
newArrayList
(
"2020-09-20T15:00:00.000Z"
,
"2020-09-20T16:00:00.000Z"
));
AdminResult
<
AdminPage
<
AdminTechnicianScoreResp
>>
result
=
adminFeign
.
getTechnicianPage
(
request
);
...
...
@@ -128,13 +129,14 @@ public class AdminFeignTest {
AchievementsPersonaResultPageApiRequest
request
=
AchievementsPersonaResultPageApiRequest
.
builder
()
.
page
(
1
)
.
year
(
calendar
.
get
(
Calendar
.
YEAR
))
.
month
(
calendar
.
get
(
Calendar
.
MONTH
)
+
1
)
.
month
(
9
)
.
status
(
1
)
.
page
(
1
)
.
rows
(
30
)
.
api_brand_id
(
1
)
.
sidx
(
""
)
.
sord
(
"desc"
)
.
technician_id
(
127
)
//
.technician_id(127)
.
build
();
AdminResult
<
AdminPage
<
AchievementsPersonaResult
>>
result
=
adminFeign
.
achievementsPersonaResultPageApi
(
request
);
...
...
src/test/java/com/gogirl/infrastructure/schedule/ScheduleTest.java
0 → 100644
View file @
cc6d5651
package
com
.
gogirl
.
infrastructure
.
schedule
;
import
lombok.extern.slf4j.Slf4j
;
import
org.junit.Test
;
import
org.junit.runner.RunWith
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.boot.test.context.SpringBootTest
;
import
org.springframework.test.context.ActiveProfiles
;
import
org.springframework.test.context.junit4.SpringRunner
;
/**
* <p>
*
* </p>
*
* @author robbendev
* @since 2020/10/19 10:22 下午
*/
@ActiveProfiles
(
"prod"
)
@RunWith
(
SpringRunner
.
class
)
@SpringBootTest
@Slf4j
public
class
ScheduleTest
{
@Autowired
Schedule
schedule
;
@Test
public
void
setChargeReferees
()
{
for
(
int
i
=
7
;
i
<
10
;
i
++)
{
schedule
.
setChargeReferees
(
"2020-10-0"
+
i
);
}
for
(
int
i
=
10
;
i
<
20
;
i
++)
{
schedule
.
setChargeReferees
(
"2020-10-"
+
i
);
}
}
}
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