Commit ce955462 by 郑云飞

init

parent 9797a596
...@@ -134,8 +134,17 @@ ...@@ -134,8 +134,17 @@
<!-- 带参数分页查询 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 or appflag != ''"> <if test="appflag == null or appflag == ''">
ordermain.itype = 10 ordermain.itype = 10
</if> </if>
<if test="id != null"> <if test="id != null">
...@@ -169,15 +178,6 @@ ...@@ -169,15 +178,6 @@
</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