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 a2141fda
authored
Oct 19, 2023
by
刘鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DOC: 申请加单为返回单条数据-- 9.26变更
1 parent
008b5b48
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
project-order/src/main/java/com/dituhui/pea/order/controller/PeaApiController.java
project-order/src/main/java/com/dituhui/pea/order/service/PeaOuterAPIService.java
project-order/src/main/java/com/dituhui/pea/order/service/impl/PeaOuterAPIServiceImpl.java
project-order/src/main/java/com/dituhui/pea/order/controller/PeaApiController.java
View file @
a2141fd
...
@@ -215,7 +215,7 @@ public class PeaApiController {
...
@@ -215,7 +215,7 @@ public class PeaApiController {
* @apiNote 技术员发起申请,根据技术员当前位置和空闲时间段,返回附近的n张尚未分配,且不需要备件的工单,技术员逐条顺序联系客户确认
* @apiNote 技术员发起申请,根据技术员当前位置和空闲时间段,返回附近的n张尚未分配,且不需要备件的工单,技术员逐条顺序联系客户确认
*/
*/
@PostMapping
(
"/order/increase/query"
)
@PostMapping
(
"/order/increase/query"
)
public
Result
<
List
<
Order
>
>
orderIncrease
(
@Validated
@RequestBody
EngineerOrderParam
requestParam
)
{
public
Result
<
Order
>
orderIncrease
(
@Validated
@RequestBody
EngineerOrderParam
requestParam
)
{
return
Result
.
success
(
peaOuterAPIService
.
orderIncreaseQuery
(
requestParam
.
getEngineerCode
(),
requestParam
.
getLocation
(),
return
Result
.
success
(
peaOuterAPIService
.
orderIncreaseQuery
(
requestParam
.
getEngineerCode
(),
requestParam
.
getLocation
(),
requestParam
.
getIdleDuration
()));
requestParam
.
getIdleDuration
()));
...
...
project-order/src/main/java/com/dituhui/pea/order/service/PeaOuterAPIService.java
View file @
a2141fd
...
@@ -33,7 +33,7 @@ public interface PeaOuterAPIService {
...
@@ -33,7 +33,7 @@ public interface PeaOuterAPIService {
* @param idleDuration 空闲时长 至少空闲多久以上,单位:分钟
* @param idleDuration 空闲时长 至少空闲多久以上,单位:分钟
* @return 不需要的备件且符合条件的多个未分配工单
* @return 不需要的备件且符合条件的多个未分配工单
*/
*/
List
<
Order
>
orderIncreaseQuery
(
String
engineerCode
,
Location
location
,
Integer
idleDuration
);
Order
orderIncreaseQuery
(
String
engineerCode
,
Location
location
,
Integer
idleDuration
);
OrderDTO
.
AppointResult
engineerCode
(
String
engineerCode
,
LocalDate
localDate
);
OrderDTO
.
AppointResult
engineerCode
(
String
engineerCode
,
LocalDate
localDate
);
...
...
project-order/src/main/java/com/dituhui/pea/order/service/impl/PeaOuterAPIServiceImpl.java
View file @
a2141fd
...
@@ -59,7 +59,7 @@ public class PeaOuterAPIServiceImpl implements PeaOuterAPIService {
...
@@ -59,7 +59,7 @@ public class PeaOuterAPIServiceImpl implements PeaOuterAPIService {
@Override
@Override
public
List
<
Order
>
orderIncreaseQuery
(
String
engineerCode
,
Location
location
,
Integer
idleDuration
)
{
public
Order
orderIncreaseQuery
(
String
engineerCode
,
Location
location
,
Integer
idleDuration
)
{
OrderInfoEntity
sss
=
orderInfoDao
.
findTopBySkillAndAppointmentStatus
(
"标准安装"
,
"INIT"
);
OrderInfoEntity
sss
=
orderInfoDao
.
findTopBySkillAndAppointmentStatus
(
"标准安装"
,
"INIT"
);
...
@@ -81,7 +81,7 @@ public class PeaOuterAPIServiceImpl implements PeaOuterAPIService {
...
@@ -81,7 +81,7 @@ public class PeaOuterAPIServiceImpl implements PeaOuterAPIService {
orderLocation
.
setLatitude
(
Double
.
parseDouble
(
sss
.
getY
()));
orderLocation
.
setLatitude
(
Double
.
parseDouble
(
sss
.
getY
()));
order
.
setLocation
(
orderLocation
);
order
.
setLocation
(
orderLocation
);
return
List
.
of
(
order
)
;
return
order
;
}
}
@Override
@Override
...
...
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