Browse Source

机构查看订单权限控制

zhijiezhao 3 năm trước cách đây
mục cha
commit
e0350b26d0
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      src/main/resources/mapper/OrderClubMapper.xml

+ 2 - 0
src/main/resources/mapper/OrderClubMapper.xml

@@ -332,6 +332,7 @@
         <if test="endTime != null and endTime != '' ">
             AND orderTime <![CDATA[<=]]> #{endTime}
         </if>
+        and orderSeen != '2'
         ORDER BY orderTime DESC
     </select>
     <select id="getOrderListByKeyword" resultType="com.caimei365.order.model.vo.OrderVo">
@@ -385,6 +386,7 @@
         LEFT JOIN cm_order_product cop ON co.orderID = cop.orderID
         WHERE co.delFlag = 0 AND co.userID = #{userId}
         AND cop.name LIKE CONCAT('%',#{searchWord},'%')
+        and co.orderSeen != '2'
         GROUP BY co.orderID, co.orderTime
         ORDER BY co.orderTime DESC
     </select>