Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gjjs-bd-common
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
s_guodong
gjjs-bd-common
Commits
5b817ccc
Commit
5b817ccc
authored
Aug 16, 2023
by
吴佳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CommonMapper类 和 commonmapper.xml 位置调整,不用转换生成
parent
2b133309
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
1 deletions
+29
-1
commonmapper.xml
gjjs-bd-business/src/main/resources/mapper/commonmapper.xml
+13
-0
MyBatisDaoSession.java
...com/brilliance/mda/support/mybatis/MyBatisDaoSession.java
+1
-1
CommonMapper.java
...liance/mda/support/mybatis/count/mapper/CommonMapper.java
+15
-0
No files found.
gjjs-bd-business/src/main/resources/mapper/commonmapper.xml
0 → 100644
View file @
5b817ccc
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.brilliance.mda.support.mybatis.count.mapper.CommonMapper"
>
<select
id=
"dyncRead"
resultType=
"java.util.HashMap"
>
${sql}
</select>
</mapper>
gjjs-bd-mybatis-support/src/main/java/com/brilliance/mda/support/mybatis/MyBatisDaoSession.java
View file @
5b817ccc
...
...
@@ -266,7 +266,7 @@ public class MyBatisDaoSession extends AbstractDaoSession implements IDaoSession
//多表查询时,走CommonMapper查询
if
(
lists
.
length
>
1
)
{
//调用commonMapper中的dyncRead
List
<
HashMap
<
String
,
Object
>>
result
=
sqlSessionTemplate
.
selectList
(
"com.
ceb.gjjs.mda.dao
.CommonMapper.dyncRead"
,
List
<
HashMap
<
String
,
Object
>>
result
=
sqlSessionTemplate
.
selectList
(
"com.
brilliance.mda.support.mybatis.count.mapper
.CommonMapper.dyncRead"
,
adapter
.
getSqlParams
());
if
(
result
!=
null
&&
result
.
size
()>
0
){
...
...
gjjs-bd-mybatis-support/src/main/java/com/brilliance/mda/support/mybatis/count/mapper/CommonMapper.java
0 → 100644
View file @
5b817ccc
package
com
.
brilliance
.
mda
.
support
.
mybatis
.
count
.
mapper
;
import
org.apache.ibatis.annotations.Mapper
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
@Mapper
public
interface
CommonMapper
{
List
<
HashMap
<
String
,
Object
>>
dyncRead
(
Map
<
String
,
Object
>
dyncMap
);
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment