Commit 75a592c5 by 郑云飞

init

parent 27dba34e
...@@ -60,6 +60,7 @@ public class OrderMainAppController { ...@@ -60,6 +60,7 @@ public class OrderMainAppController {
pinfo.setCurRecord(curRecord); pinfo.setCurRecord(curRecord);
item.setPageinfo(pinfo); item.setPageinfo(pinfo);
} }
item.setAppflag(1);
// 2.1 执行主表 查询 // 2.1 执行主表 查询
List<OrderMain> items=this.orderService.selectByParamPageList(item); List<OrderMain> items=this.orderService.selectByParamPageList(item);
......
...@@ -128,4 +128,7 @@ public class OrderMain { ...@@ -128,4 +128,7 @@ public class OrderMain {
@TableField(exist = false) @TableField(exist = false)
private Long groupBuyId; private Long groupBuyId;
@TableField(exist = false)
private Integer appflag;
} }
...@@ -134,17 +134,10 @@ ...@@ -134,17 +134,10 @@
<!-- 带参数分页查询 S --> <!-- 带参数分页查询 S -->
<select id="selectByParamPageList" resultMap="BaseResultMap" parameterType="com.yunniu.farming.webadmin.model.OrderMain"> <select id="selectByParamPageList" resultMap="BaseResultMap" parameterType="com.yunniu.farming.webadmin.model.OrderMain">
SELECT 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> <where>
<if test="appflag != null and appflag != ''">
ordermain.itype = 10 ordermain.itype = 10
</if>
<if test="id != null"> <if test="id != null">
AND ordermain.id = #{id,jdbcType=INTEGER} AND ordermain.id = #{id,jdbcType=INTEGER}
</if> </if>
...@@ -176,6 +169,15 @@ ...@@ -176,6 +169,15 @@
</if> </if>
</where> </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 ORDER BY ordermain.tordertime DESC
</select> </select>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment