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 4854ec54
authored
Dec 01, 2023
by
Ren Ping
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop' into develop
2 parents
2e6da54c
fcc0464e
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
3 deletions
project-order/src/main/java/com/dituhui/pea/order/service/impl/BeanRemoteServiceImpl.java
project-order/src/main/java/com/dituhui/pea/order/service/impl/OrderAssignImpl.java
project-order/src/main/java/com/dituhui/pea/order/utils/OrderUtil.java
project-order/src/main/java/com/dituhui/pea/order/service/impl/BeanRemoteServiceImpl.java
View file @
4854ec5
...
@@ -244,7 +244,6 @@ public class BeanRemoteServiceImpl {
...
@@ -244,7 +244,6 @@ public class BeanRemoteServiceImpl {
engineerInfo
.
setGender
(
userDetailInfo
.
getGender
());
engineerInfo
.
setGender
(
userDetailInfo
.
getGender
());
engineerInfo
.
setBirth
(
StringUtils
.
isBlank
(
userDetailInfo
.
getBirthday
())
?
""
:
getYear
(
userDetailInfo
.
getBirthday
()));
engineerInfo
.
setBirth
(
StringUtils
.
isBlank
(
userDetailInfo
.
getBirthday
())
?
""
:
getYear
(
userDetailInfo
.
getBirthday
()));
engineerInfo
.
setAddress
(
""
);
engineerInfo
.
setPhone
(
userDetailInfo
.
getCellPhone
());
engineerInfo
.
setPhone
(
userDetailInfo
.
getCellPhone
());
engineerInfo
.
setKind
(
1
==
userDetailInfo
.
getPartTimeRepair
()
?
2
:
1
);
engineerInfo
.
setKind
(
1
==
userDetailInfo
.
getPartTimeRepair
()
?
2
:
1
);
engineerInfo
.
setGrade
(
Objects
.
isNull
(
userDetailInfo
.
getGrade
())
?
""
:
userDetailInfo
.
getGrade
());
engineerInfo
.
setGrade
(
Objects
.
isNull
(
userDetailInfo
.
getGrade
())
?
""
:
userDetailInfo
.
getGrade
());
...
@@ -256,7 +255,10 @@ public class BeanRemoteServiceImpl {
...
@@ -256,7 +255,10 @@ public class BeanRemoteServiceImpl {
//fixme 工作地址存贮
//fixme 工作地址存贮
if
(
Objects
.
nonNull
(
address
))
{
if
(
Objects
.
nonNull
(
address
))
{
engineerInfo
.
setAddress
(
address
.
getAddress
());
engineerInfo
.
setWorkAddress
(
address
.
getAddress
());
engineerInfo
.
setWorkAddress
(
address
.
getAddress
());
engineerInfo
.
setWorkX
(
Objects
.
isNull
(
address
.
getLongitude
())
?
""
:
String
.
valueOf
(
address
.
getLongitude
()));
engineerInfo
.
setWorkY
(
Objects
.
isNull
(
address
.
getLatitude
())
?
""
:
String
.
valueOf
(
address
.
getLatitude
()));
}
else
{
}
else
{
engineerInfo
.
setWorkAddress
(
""
);
engineerInfo
.
setWorkAddress
(
""
);
}
}
...
...
project-order/src/main/java/com/dituhui/pea/order/service/impl/OrderAssignImpl.java
View file @
4854ec5
...
@@ -243,9 +243,9 @@ public class OrderAssignImpl implements OrderAssign {
...
@@ -243,9 +243,9 @@ public class OrderAssignImpl implements OrderAssign {
}
}
entity
=
entityResult
.
getResult
();
entity
=
entityResult
.
getResult
();
if
(
req
.
getIsSub
()){
if
(
req
.
getIsSub
())
{
entity
.
setEngineerCodeSub
(
engineer
.
getEngineerCode
());
entity
.
setEngineerCodeSub
(
engineer
.
getEngineerCode
());
}
else
{
}
else
{
entity
.
setEngineerCode
(
engineer
.
getEngineerCode
());
entity
.
setEngineerCode
(
engineer
.
getEngineerCode
());
entity
.
setEngineerName
(
engineer
.
getName
());
entity
.
setEngineerName
(
engineer
.
getName
());
entity
.
setEngineerPhone
(
engineer
.
getPhone
());
entity
.
setEngineerPhone
(
engineer
.
getPhone
());
...
@@ -280,6 +280,9 @@ public class OrderAssignImpl implements OrderAssign {
...
@@ -280,6 +280,9 @@ public class OrderAssignImpl implements OrderAssign {
Integer
cutoff
=
CommonUtil
.
isCutoff
(
order
.
getExpectTimeBegin
(),
orgTeam
.
getWorkOff
());
Integer
cutoff
=
CommonUtil
.
isCutoff
(
order
.
getExpectTimeBegin
(),
orgTeam
.
getWorkOff
());
order
.
setAppointmentStatus
(
OrderFlowEnum
.
INIT
.
name
());
order
.
setAppointmentStatus
(
OrderFlowEnum
.
INIT
.
name
());
order
.
setServiceStatus
(
OrderFlowEnum
.
INIT
.
name
());
order
.
setServiceStatus
(
OrderFlowEnum
.
INIT
.
name
());
order
.
setPlanStartTime
(
order
.
getExpectTimeBegin
());
order
.
setPlanEndTime
(
order
.
getExpectTimeEnd
());
order
=
OrderUtil
.
handleSubOrder
(
order
);
if
(
cutoff
>
0
)
{
if
(
cutoff
>
0
)
{
// cutoff更新order_request表为人工指派
// cutoff更新order_request表为人工指派
order
.
setAppointmentMethod
(
AppointmentMethodEnum
.
MANUAL
.
name
());
order
.
setAppointmentMethod
(
AppointmentMethodEnum
.
MANUAL
.
name
());
...
...
project-order/src/main/java/com/dituhui/pea/order/utils/OrderUtil.java
View file @
4854ec5
...
@@ -29,6 +29,20 @@ public class OrderUtil {
...
@@ -29,6 +29,20 @@ public class OrderUtil {
order
.
setEngineerCode
(
null
);
order
.
setEngineerCode
(
null
);
return
order
;
return
order
;
}
}
/**
* 分处理辅助工程师数据
*
* @param order
* @return
*/
public
static
OrderInfoEntity
handleSubOrder
(
OrderInfoEntity
order
)
{
order
.
setSubPlanStartTime
(
null
);
order
.
setSubPlanEndTime
(
null
);
order
.
setSubDistance
(
0
);
order
.
setSubElapsed
(
0
);
order
.
setEngineerCodeSub
(
null
);
return
order
;
}
/**
/**
* 分单,超派,特殊时间等处理工单指派工程师,网点等数据
* 分单,超派,特殊时间等处理工单指派工程师,网点等数据
...
...
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