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
51ce0d67
Commit
51ce0d67
authored
Mar 01, 2021
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
# 更新
parent
4a8df4ea
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
OverTimeRecordServiceImpl.java
.../application/store/oa/impl/OverTimeRecordServiceImpl.java
+10
-0
CustomerBalanceServiceImplTest.java
...on/user/customer/impl/CustomerBalanceServiceImplTest.java
+1
-1
No files found.
src/main/java/com/gogirl/application/store/oa/impl/OverTimeRecordServiceImpl.java
View file @
51ce0d67
...
...
@@ -11,6 +11,8 @@ import com.gogirl.infrastructure.mapper.store.oa.OverTimeRecordMapper;
import
com.gogirl.shared.store.OrderTimeRecordPageQuery
;
import
org.springframework.stereotype.Service
;
import
java.time.LocalDateTime
;
import
java.time.Month
;
import
java.util.Calendar
;
import
java.util.Date
;
...
...
@@ -32,7 +34,15 @@ public class OverTimeRecordServiceImpl extends ServiceImpl<OverTimeRecordMapper,
cale
.
add
(
Calendar
.
MONTH
,
0
);
cale
.
set
(
Calendar
.
DAY_OF_MONTH
,
1
);
Date
firstDay
=
cale
.
getTime
();
Date
paramDate
=
new
Date
(
firstDay
.
getTime
()
-
7
*
24
*
60
*
60
*
1000
);
if
(
LocalDateTime
.
now
().
getMonth
().
equals
(
Month
.
MARCH
)
&&
LocalDateTime
.
now
().
getYear
()
==
2021
)
{
cale
.
add
(
Calendar
.
MONTH
,
-
1
);
cale
.
set
(
Calendar
.
DAY_OF_MONTH
,
1
);
firstDay
=
cale
.
getTime
();
paramDate
=
new
Date
(
firstDay
.
getTime
();
}
IPage
<
OverTimeRecord
>
page
=
new
Page
<>();
page
=
baseMapper
.
selectPage
(
page
,
new
LambdaQueryWrapper
<
OverTimeRecord
>()
.
eq
(
OverTimeRecord:
:
getTechnicianId
,
SessionUtils
.
getTechnicianId
())
...
...
src/test/java/com/gogirl/application/user/customer/impl/CustomerBalanceServiceImplTest.java
View file @
51ce0d67
...
...
@@ -46,7 +46,7 @@ public class CustomerBalanceServiceImplTest {
@org
.
junit
.
Test
public
void
order
()
{
List
<
OrderManage
>
orderManageList
=
orderManageMapper
.
selectList
(
new
LambdaQueryWrapper
<
OrderManage
>()
.
in
(
OrderManage:
:
getOrderNo
,
Lists
.
newArrayList
(
"BTD-GZJ-
BTD-GZJ-ZJH-210224-0013
"
)));
.
in
(
OrderManage:
:
getOrderNo
,
Lists
.
newArrayList
(
"BTD-GZJ-
ZJH-210224-0013
"
)));
orderManageList
.
forEach
(
orderManage
->
{
if
(
orderManage
.
getStatus
().
equals
(
2
))
{
orderManage
.
setStatus
(
11
);
...
...
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