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 4bd3ec8b
authored
Jun 21, 2023
by
wangli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增自定义sql
1 parent
11fc2225
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
1 deletions
project-order/src/main/java/com/dituhui/pea/order/dao/EngineerInfoMPDao.java
project-order/src/main/java/com/dituhui/pea/order/dao/OrgGroupMPDao.java
project-order/src/main/java/com/dituhui/pea/order/dao/EngineerInfoMPDao.java
View file @
4bd3ec8
...
@@ -3,8 +3,22 @@ package com.dituhui.pea.order.dao;
...
@@ -3,8 +3,22 @@ package com.dituhui.pea.order.dao;
import
com.dituhui.pea.order.entity.EngineerInfo
;
import
com.dituhui.pea.order.entity.EngineerInfo
;
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
EngineerInfoMPDao
extends
BaseMapper
<
EngineerInfo
>
{
public
interface
EngineerInfoMPDao
extends
BaseMapper
<
EngineerInfo
>
{
}
@Select
(
"select * from engineer_info where engineer_code = #{engineerCode}"
)
EngineerInfo
getByEngineerCode
(
String
engineerCode
);
@Select
(
"select * from engineer_info where engineer_code = #{engineerCode}"
)
List
<
EngineerInfo
>
selectByEngineerCode
(
String
engineerCode
);
@Select
(
"select * from engineer_info where engineer_code in #{engineerCodes}"
)
List
<
EngineerInfo
>
selectByEngineerCodes
(
List
<
String
>
engineerCodes
);
@Select
(
"select * from engineer_info where group_id = #{groupId}"
)
List
<
EngineerInfo
>
selectByGroupId
(
String
groupId
);
}
\ No newline at end of file
project-order/src/main/java/com/dituhui/pea/order/dao/OrgGroupMPDao.java
View file @
4bd3ec8
...
@@ -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.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.Select
;
import
java.util.List
;
@Mapper
@Mapper
public
interface
OrgGroupMPDao
extends
BaseMapper
<
OrgGroup
>
{
public
interface
OrgGroupMPDao
extends
BaseMapper
<
OrgGroup
>
{
@Select
(
"select * from org_group where group_id = #{groupId}"
)
OrgGroup
getByGroupId
(
String
groupId
);
@Select
(
"select * from org_group where group_id = #{groupId}"
)
List
<
OrgGroup
>
selectByGroupId
(
String
groupId
);
}
}
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