Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
peizhen-java
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PeiZhen-Java
peizhen-java
Commits
dc989528
Commit
dc989528
authored
a year ago
by
邹磊浩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改代码
parent
94a97290
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
11 deletions
+14
-11
pz-system/src/main/resources/mapper/system/StoreIncomeMapper.xml
+14
-11
No files found.
pz-system/src/main/resources/mapper/system/StoreIncomeMapper.xml
View file @
dc989528
<?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">
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.pz.system.mapper.StoreIncomeMapper"
>
<resultMap
type=
"com.pz.system.domain.StoreIncome"
id=
"StoreIncomeResult"
>
...
...
@@ -21,15 +21,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select
id=
"findStoreIncomeVoPage"
resultType=
"com.pz.system.domain.vo.StoreIncomeVo"
>
select sin.name as storeName,si.* from store_income AS si
left join store_info AS sin on sin.id = si.store_id
<if
test=
"bo.storeName != null and bo.storeName != ''"
>
where sin.name LIKE CONCAT('%', #{bo.storeName}, '%')
</if>
<if
test=
"bo.storeId != null"
>
where si.store_id = #{storeId}
</if>
<if
test=
"bo.status != null"
>
where si.status = #{bo.status}
</if>
<where>
<if
test=
"bo.storeName != null and bo.storeName != ''"
>
and sin.name LIKE CONCAT('%', #{bo.storeName}, '%')
</if>
<if
test=
"bo.storeId != null"
>
and si.store_id = #{bo.storeId}
</if>
<if
test=
"bo.status != null"
>
and si.status = #{bo.status}
</if>
</where>
</select>
...
...
This diff is collapsed.
Click to expand it.
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