zoujiajian 2 年之前
父节点
当前提交
f233ef53e7
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      netflix-dao/src/main/resources/mapper/OrderDonMapper.xml

+ 6 - 0
netflix-dao/src/main/resources/mapper/OrderDonMapper.xml

@@ -335,6 +335,9 @@
         and o.status not in ('close', 'noPayment')
         and o.money > 0
         and o.money > ifnull(o.refund_money,0)
+        <if test="startTime != null">
+            and o.created_time >= #{startTime}
+        </if>
     </select>
 
     <select id="getTagUserDataPage" resultType="com.cyksj.model.views.UserOrderDetailView">
@@ -356,6 +359,9 @@
         and o.status not in ('close', 'noPayment')
         and o.money > 0
         and o.money > ifnull(o.refund_money,0)
+        <if test="startTime != null">
+            and o.created_time >= #{startTime}
+        </if>
         group by date_format(o.created_time,'%Y-%m-%d')
         order by date_format(o.created_time,'%Y-%m-%d') desc
     </select>