Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
farming
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
郑云飞
farming
Commits
ce955462
Commit
ce955462
authored
May 16, 2023
by
郑云飞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
9797a596
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
src/main/resources/mappings/OrderMainMapper.xml
+10
-10
No files found.
src/main/resources/mappings/OrderMainMapper.xml
View file @
ce955462
...
...
@@ -134,8 +134,17 @@
<!-- 带参数分页查询 S -->
<select
id=
"selectByParamPageList"
resultMap=
"BaseResultMap"
parameterType=
"com.yunniu.farming.webadmin.model.OrderMain"
>
SELECT
<include
refid=
"Full_Column_List"
/>
<!-- 关联子表信息 -->
,sub.id AS zid, sub.ipronum AS zipronum, sub.dprosum AS zdprosum,
sub.productid AS zproductid,sub.sgoodprice AS zsgoodprice,
sub.sproductname AS zsproductname,
sub.spshortpic AS zspshortpic
FROM
order_main ordermain
LEFT JOIN order_sub sub ON ordermain.id = sub.mainid
<where>
<if
test=
"appflag == null or appflag
!
= ''"
>
<if
test=
"appflag == null or appflag
=
= ''"
>
ordermain.itype = 10
</if>
<if
test=
"id != null"
>
...
...
@@ -169,15 +178,6 @@
</if>
</where>
<!-- 关联子表信息 -->
,sub.id AS zid, sub.ipronum AS zipronum, sub.dprosum AS zdprosum,
sub.productid AS zproductid,sub.sgoodprice AS zsgoodprice,
sub.sproductname AS zsproductname,
sub.spshortpic AS zspshortpic
FROM
order_main ordermain
LEFT JOIN order_sub sub ON ordermain.id = sub.mainid
<include
refid=
"Full_Column_List"
/>
<!-- 以时间倒序显示 -->
ORDER BY ordermain.tordertime DESC
</select>
...
...
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