Commit 75a592c5 by 郑云飞

init

parent 27dba34e
......@@ -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);
......
......@@ -128,4 +128,7 @@ public class OrderMain {
@TableField(exist = false)
private Long groupBuyId;
@TableField(exist = false)
private Integer appflag;
}
......@@ -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>
<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>
......
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