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
75a592c5
Commit
75a592c5
authored
May 16, 2023
by
郑云飞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
27dba34e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
10 deletions
+16
-10
src/main/java/com/yunniu/farming/app/OrderMainAppController.java
+1
-0
src/main/java/com/yunniu/farming/webadmin/model/OrderMain.java
+3
-0
src/main/resources/mappings/OrderMainMapper.xml
+12
-10
No files found.
src/main/java/com/yunniu/farming/app/OrderMainAppController.java
View file @
75a592c5
...
...
@@ -60,6 +60,7 @@ public class OrderMainAppController {
pinfo
.
setCurRecord
(
curRecord
);
item
.
setPageinfo
(
pinfo
);
}
item
.
setAppflag
(
1
);
// 2.1 执行主表 查询
List
<
OrderMain
>
items
=
this
.
orderService
.
selectByParamPageList
(
item
);
...
...
src/main/java/com/yunniu/farming/webadmin/model/OrderMain.java
View file @
75a592c5
...
...
@@ -128,4 +128,7 @@ public class OrderMain {
@TableField
(
exist
=
false
)
private
Long
groupBuyId
;
@TableField
(
exist
=
false
)
private
Integer
appflag
;
}
src/main/resources/mappings/OrderMainMapper.xml
View file @
75a592c5
...
...
@@ -134,17 +134,10 @@
<!-- 带参数分页查询 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>
ordermain.itype = 10
<if
test=
"appflag != null and appflag != ''"
>
ordermain.itype = 10
</if>
<if
test=
"id != null"
>
AND ordermain.id = #{id,jdbcType=INTEGER}
</if>
...
...
@@ -176,6 +169,15 @@
</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