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 11e5ee57
authored
Jul 24, 2023
by
wangli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增查询
1 parent
bf4eddef
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
project-order/src/main/java/com/dituhui/pea/order/dao/OrderInfoMPDao.java
project-order/src/main/java/com/dituhui/pea/order/dao/OrderInfoMPDao.java
View file @
11e5ee5
...
...
@@ -3,6 +3,7 @@ package com.dituhui.pea.order.dao;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.dituhui.pea.order.entity.OrderInfo
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Select
;
import
java.time.LocalDate
;
...
...
@@ -18,4 +19,8 @@ public interface OrderInfoMPDao extends BaseMapper<OrderInfo> {
@Select
(
"select * from order_info where order_id=#{orderId}"
)
List
<
OrderInfo
>
selectByOrderId
(
String
orderId
);
@Select
(
"<script> select * from order_request where dt=#{dt} and order_id in "
+
"<foreach item='orderId' index='index' collection='orderIds' open='(' separator=',' close=')'>#{orderId}</foreach></script>"
)
List
<
OrderInfo
>
selectByDtAndOrderIds
(
@Param
(
"dt"
)
LocalDate
dt
,
@Param
(
"orderIds"
)
List
<
String
>
orderIds
);
}
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