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 24c7182a
authored
Jul 26, 2023
by
wangli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
1 parent
3b2a48d0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
project-order/src/main/java/com/dituhui/pea/order/dao/OrgGroupMPDao.java
project-order/src/main/java/com/dituhui/pea/order/dao/OrgGroupMPDao.java
View file @
24c7182
package
com
.
dituhui
.
pea
.
order
.
dao
;
package
com
.
dituhui
.
pea
.
order
.
dao
;
import
com.dituhui.pea.order.entity.OrderInfo
;
import
com.dituhui.pea.order.entity.OrgGroup
;
import
com.dituhui.pea.order.entity.OrgGroup
;
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.Param
;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Select
;
import
org.apache.ibatis.annotations.Select
;
import
java.time.LocalDate
;
import
java.util.List
;
import
java.util.List
;
@Mapper
@Mapper
...
@@ -17,7 +19,7 @@ public interface OrgGroupMPDao extends BaseMapper<OrgGroup> {
...
@@ -17,7 +19,7 @@ public interface OrgGroupMPDao extends BaseMapper<OrgGroup> {
@Select
(
"select * from org_group where group_id = #{groupId}"
)
@Select
(
"select * from org_group where group_id = #{groupId}"
)
List
<
OrgGroup
>
selectByGroupId
(
String
groupId
);
List
<
OrgGroup
>
selectByGroupId
(
String
groupId
);
@Select
(
"select * from org_group where group_id in "
+
@Select
(
"
<script>
select * from org_group where group_id in "
+
"<foreach item='groupId' index='index' collection='groupIds' open='(' separator=',' close=')'>#{groupId}</foreach></script>"
)
"<foreach item='groupId' index='index' collection='groupIds' open='(' separator=',' close=')'>#{groupId}</foreach></script>"
)
List
<
OrgGroup
>
selectByGroupIds
(
@Param
(
"groupIds"
)
List
<
String
>
groupIds
);
List
<
OrgGroup
>
selectByGroupIds
(
@Param
(
"groupIds"
)
List
<
String
>
groupIds
);
}
}
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