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 4b33f23a
authored
Jun 25, 2023
by
王力
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev_bugfix_orderrequests' into 'master'
修改 See merge request !142
2 parents
92a89927
5daa7d03
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
8 deletions
project-order/src/main/java/com/dituhui/pea/order/dao/OrderAppointmentMPDao.java
project-order/src/main/java/com/dituhui/pea/order/service/impl/OrderServiceDetailImpl.java
project-order/src/main/java/com/dituhui/pea/order/dao/OrderAppointmentMPDao.java
View file @
4b33f23
...
@@ -3,7 +3,16 @@ package com.dituhui.pea.order.dao;
...
@@ -3,7 +3,16 @@ package com.dituhui.pea.order.dao;
import
com.dituhui.pea.order.entity.OrderAppointment
;
import
com.dituhui.pea.order.entity.OrderAppointment
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Select
;
import
java.util.List
;
@Mapper
@Mapper
public
interface
OrderAppointmentMPDao
extends
BaseMapper
<
OrderAppointment
>
{
public
interface
OrderAppointmentMPDao
extends
BaseMapper
<
OrderAppointment
>
{
@Select
(
"select * from order_appointment where order_id=#{orderId}"
)
OrderAppointment
getByOrderId
(
String
orderId
);
@Select
(
"select * from order_appointment where order_id=#{orderId}"
)
List
<
OrderAppointment
>
selectByOrderId
(
String
orderId
);
}
}
project-order/src/main/java/com/dituhui/pea/order/service/impl/OrderServiceDetailImpl.java
View file @
4b33f23
...
@@ -86,7 +86,7 @@ public class OrderServiceDetailImpl implements OrderServiceDetail {
...
@@ -86,7 +86,7 @@ public class OrderServiceDetailImpl implements OrderServiceDetail {
OrderAppointmentListResp
res
=
new
OrderAppointmentListResp
();
OrderAppointmentListResp
res
=
new
OrderAppointmentListResp
();
// 查询预约单列表
// 查询预约单列表
List
<
OrderAppointment
>
appoints
=
this
.
queryOrderAppointments
(
orderId
);
List
<
OrderAppointment
>
appoints
=
orderAppointmentMPDao
.
selectByOrderId
(
orderId
);
if
(
appoints
.
isEmpty
())
{
if
(
appoints
.
isEmpty
())
{
// 没有指派单列表,返回
// 没有指派单列表,返回
res
.
setOrderId
(
orderId
);
res
.
setOrderId
(
orderId
);
...
@@ -166,13 +166,6 @@ public class OrderServiceDetailImpl implements OrderServiceDetail {
...
@@ -166,13 +166,6 @@ public class OrderServiceDetailImpl implements OrderServiceDetail {
return
Result
.
success
(
res
);
return
Result
.
success
(
res
);
}
}
private
List
<
OrderAppointment
>
queryOrderAppointments
(
String
orderId
)
{
// 获取指派单记录列表
LambdaQueryWrapper
<
OrderAppointment
>
lqw
=
new
LambdaQueryWrapper
<>();
lqw
.
eq
(
OrderAppointment:
:
getOrderId
,
orderId
);
return
orderAppointmentMPDao
.
selectList
(
lqw
);
}
private
List
<
OrderEvent
>
queryOrderEvents
(
String
orderId
)
{
private
List
<
OrderEvent
>
queryOrderEvents
(
String
orderId
)
{
LambdaQueryWrapper
<
OrderEvent
>
lqw
=
new
LambdaQueryWrapper
<>();
LambdaQueryWrapper
<
OrderEvent
>
lqw
=
new
LambdaQueryWrapper
<>();
lqw
.
eq
(
OrderEvent:
:
getOrderId
,
orderId
);
lqw
.
eq
(
OrderEvent:
:
getOrderId
,
orderId
);
...
...
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