|
@@ -44,6 +44,9 @@
|
|
|
<if test='hasProduct !=null and hasProduct == "N"'>
|
|
<if test='hasProduct !=null and hasProduct == "N"'>
|
|
|
and t.product_id is null
|
|
and t.product_id is null
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test='hasProduct !=null and hasProduct == "Y"'>
|
|
|
|
|
+ and t.product_id is not null
|
|
|
|
|
+ </if>
|
|
|
order by t.create_time desc
|
|
order by t.create_time desc
|
|
|
<if test="page != -1 and page != null ">
|
|
<if test="page != -1 and page != null ">
|
|
|
limit #{page}, #{row}
|
|
limit #{page}, #{row}
|
|
@@ -100,6 +103,9 @@
|
|
|
<if test='hasProduct !=null and hasProduct == "N"'>
|
|
<if test='hasProduct !=null and hasProduct == "N"'>
|
|
|
and t.product_id is null
|
|
and t.product_id is null
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test='hasProduct !=null and hasProduct == "Y"'>
|
|
|
|
|
+ and t.product_id is not null
|
|
|
|
|
+ </if>
|
|
|
|
|
|
|
|
|
|
|
|
|
</select>
|
|
</select>
|