Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
yangxiujun
/
paidan_demo
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit c10eb803
authored
Nov 08, 2023
by
刘鑫
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' of
https://gitlab.dituhui.com/bsh/project/project
into develop
2 parents
6cd6bfbe
1804c3ac
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
3 deletions
project-order/src/main/java/com/dituhui/pea/order/service/impl/OrderInfoServiceImpl.java
project-order/src/main/java/com/dituhui/pea/order/service/impl/OrderServiceListServiceImpl.java
project-order/src/main/java/com/dituhui/pea/order/service/impl/WorkbenchServiceImpl.java
project-order/src/main/java/com/dituhui/pea/order/service/impl/OrderInfoServiceImpl.java
View file @
c10eb80
...
@@ -151,6 +151,12 @@ public class OrderInfoServiceImpl implements OrderInfoService {
...
@@ -151,6 +151,12 @@ public class OrderInfoServiceImpl implements OrderInfoService {
if
(
StringUtils
.
isNotBlank
(
request
.
getDescription
()))
{
if
(
StringUtils
.
isNotBlank
(
request
.
getDescription
()))
{
orderInfo
.
setDescription
(
request
.
getDescription
());
orderInfo
.
setDescription
(
request
.
getDescription
());
}
}
if
(
BeanServiceFlowEnum
.
STARTED
.
getStatus
().
equals
(
BeanServiceFlowEnum
.
getStatusByName
(
request
.
getStage
())))
{
orderInfo
.
setActualStartTime
(
LocalDateTimeUtil
.
of
(
request
.
getHappen
()));
}
if
(
BeanServiceFlowEnum
.
FINISHED
.
getStatus
().
equals
(
BeanServiceFlowEnum
.
getStatusByName
(
request
.
getStage
())))
{
orderInfo
.
setActualEndTime
(
LocalDateTimeUtil
.
of
(
request
.
getHappen
()));
}
orderInfoDao
.
save
(
orderInfo
);
orderInfoDao
.
save
(
orderInfo
);
//记录流程
//记录流程
commonService
.
addOrderEvent
(
request
.
getOrderId
(),
""
,
"BEAN"
,
"BEAN"
,
OrderStatusEnum
.
NORMAL
.
getDescription
(),
request
.
getStage
(),
""
,
LocalDateTimeUtil
.
of
(
request
.
getHappen
()));
commonService
.
addOrderEvent
(
request
.
getOrderId
(),
""
,
"BEAN"
,
"BEAN"
,
OrderStatusEnum
.
NORMAL
.
getDescription
(),
request
.
getStage
(),
""
,
LocalDateTimeUtil
.
of
(
request
.
getHappen
()));
...
@@ -336,7 +342,7 @@ public class OrderInfoServiceImpl implements OrderInfoService {
...
@@ -336,7 +342,7 @@ public class OrderInfoServiceImpl implements OrderInfoService {
//处理一家多单
//处理一家多单
// order = handleMultipleOrders(order);
// order = handleMultipleOrders(order);
if
(!
orderDt
.
isEqual
(
expectBegin
.
toLocalDate
())){
if
(!
orderDt
.
isEqual
(
expectBegin
.
toLocalDate
()))
{
order
=
handleMultipleOrders
(
order
);
order
=
handleMultipleOrders
(
order
);
}
}
order
.
setOrgClusterId
(
clusterId
);
order
.
setOrgClusterId
(
clusterId
);
...
...
project-order/src/main/java/com/dituhui/pea/order/service/impl/OrderServiceListServiceImpl.java
View file @
c10eb80
...
@@ -159,7 +159,7 @@ public class OrderServiceListServiceImpl implements OrderServiceListService {
...
@@ -159,7 +159,7 @@ public class OrderServiceListServiceImpl implements OrderServiceListService {
record
.
setIsSpecialTime
(
o
.
getIsSpecialTime
());
record
.
setIsSpecialTime
(
o
.
getIsSpecialTime
());
record
.
setActualStartTime
(
ObjectUtil
.
isNull
(
o
.
getActualStartTime
())
?
""
:
TimeUtils
.
IsoTimestamp2DateTime
(
o
.
getActualStartTime
()));
record
.
setActualStartTime
(
ObjectUtil
.
isNull
(
o
.
getActualStartTime
())
?
""
:
TimeUtils
.
IsoTimestamp2DateTime
(
o
.
getActualStartTime
()));
record
.
setActualEndTime
(
ObjectUtil
.
isNull
(
o
.
getActual
Start
Time
())
?
""
:
TimeUtils
.
IsoTimestamp2DateTime
(
o
.
getActualEndTime
()));
record
.
setActualEndTime
(
ObjectUtil
.
isNull
(
o
.
getActual
End
Time
())
?
""
:
TimeUtils
.
IsoTimestamp2DateTime
(
o
.
getActualEndTime
()));
if
(
StringUtils
.
isNotEmpty
(
o
.
getMultipleOrders
()))
{
if
(
StringUtils
.
isNotEmpty
(
o
.
getMultipleOrders
()))
{
List
<
OrderInfoEntity
>
byMultipleOrders
=
orderInfoDao
.
findByMultipleOrdersAndOrderIdNot
(
o
.
getMultipleOrders
(),
o
.
getOrderId
());
List
<
OrderInfoEntity
>
byMultipleOrders
=
orderInfoDao
.
findByMultipleOrdersAndOrderIdNot
(
o
.
getMultipleOrders
(),
o
.
getOrderId
());
List
<
OrderServiceList
>
multipleItems
=
new
ArrayList
<>();
List
<
OrderServiceList
>
multipleItems
=
new
ArrayList
<>();
...
...
project-order/src/main/java/com/dituhui/pea/order/service/impl/WorkbenchServiceImpl.java
View file @
c10eb80
...
@@ -17,6 +17,7 @@ import org.springframework.beans.factory.annotation.Autowired;
...
@@ -17,6 +17,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.Page
;
import
org.springframework.data.domain.PageRequest
;
import
org.springframework.data.domain.PageRequest
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.data.domain.Pageable
;
import
org.springframework.data.domain.Sort
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
javax.persistence.EntityManager
;
import
javax.persistence.EntityManager
;
...
@@ -44,7 +45,8 @@ public class WorkbenchServiceImpl implements WorkbenchService {
...
@@ -44,7 +45,8 @@ public class WorkbenchServiceImpl implements WorkbenchService {
@Override
@Override
public
Result
<?>
getOrderChangeList
(
OrderChangeListDTO
.
Request
reqDTO
)
{
public
Result
<?>
getOrderChangeList
(
OrderChangeListDTO
.
Request
reqDTO
)
{
Pageable
pageable
=
PageRequest
.
of
(
reqDTO
.
getPage
()
-
1
,
reqDTO
.
getSize
());
Sort
sort
=
Sort
.
by
(
Sort
.
Order
.
desc
(
"createTime"
));
Pageable
pageable
=
PageRequest
.
of
(
reqDTO
.
getPage
()
-
1
,
reqDTO
.
getSize
(),
sort
);
Page
<
OrderEventEntity
>
page
;
Page
<
OrderEventEntity
>
page
;
String
levelType
=
reqDTO
.
getLevelType
();
String
levelType
=
reqDTO
.
getLevelType
();
String
levelValue
=
reqDTO
.
getLevelValue
();
String
levelValue
=
reqDTO
.
getLevelValue
();
...
...
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