Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
D
data-server
Project
Project
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
licc
data-server
Commits
acfcda6c
Commit
acfcda6c
authored
Apr 07, 2021
by
licc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
获取订单列表sql fix
parent
a7b52619
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
OrderMapper.xml
wisenergy-mapper/src/main/resources/mapper/OrderMapper.xml
+5
-1
TeamPerformanceMapper.xml
...apper/src/main/resources/mapper/TeamPerformanceMapper.xml
+2
-1
No files found.
wisenergy-mapper/src/main/resources/mapper/OrderMapper.xml
View file @
acfcda6c
...
@@ -148,9 +148,13 @@
...
@@ -148,9 +148,13 @@
from
from
<include
refid=
"table"
/>
<include
refid=
"table"
/>
<where>
<where>
pay_type != 0
and user_id != null
and user_id !=''
<if
test=
"created != null "
>
<if
test=
"created != null "
>
YEAR(created) = YEAR(#{created})
and (
YEAR(created) = YEAR(#{created})
AND MONTH(created) = MONTH(#{created})
AND MONTH(created) = MONTH(#{created})
)
</if>
</if>
</where>
</where>
</select>
</select>
...
...
wisenergy-mapper/src/main/resources/mapper/TeamPerformanceMapper.xml
View file @
acfcda6c
...
@@ -78,8 +78,9 @@
...
@@ -78,8 +78,9 @@
from
from
<include
refid=
"table"
/>
<include
refid=
"table"
/>
<where>
<where>
1=1
<if
test=
"userId != null"
>
<if
test=
"userId != null"
>
user_id = #{userId}
and
user_id = #{userId}
</if>
</if>
<if
test=
"yearMonth != null"
>
<if
test=
"yearMonth != null"
>
and `year_month`=#{yearMonth}
and `year_month`=#{yearMonth}
...
...
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