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 74f7ebe3
authored
Jul 24, 2023
by
wangli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
1 parent
37e6881a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 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 @
74f7ebe
...
...
@@ -3,7 +3,19 @@ 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.Select
;
import
java.time.LocalDate
;
import
java.util.List
;
@Mapper
public
interface
OrderInfoMPDao
extends
BaseMapper
<
OrderInfo
>
{
@Select
(
"select * from order_info where order_id=#{orderId} order by dt desc"
)
OrderInfo
getByOrderId
(
String
orderId
);
@Select
(
"select * from order_info where order_id=#{orderId} and dt=#{dt}"
)
OrderInfo
getByOrderIdAndDt
(
String
orderId
,
LocalDate
dt
);
@Select
(
"select * from order_info where order_id=#{orderId}"
)
List
<
OrderInfo
>
selectByOrderId
(
String
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