Jelajahi Sumber

团长分成

qin 1 tahun lalu
induk
melakukan
850901eccd
1 mengubah file dengan 4 tambahan dan 4 penghapusan
  1. 4 4
      src/main/resources/mapper/ipos/SplitWithdrawMapper.xml

+ 4 - 4
src/main/resources/mapper/ipos/SplitWithdrawMapper.xml

@@ -6,7 +6,7 @@
             ${dbName}_order.o_order_${operatorId} o
         set od.with_draw_id = #{withdrawId}
         where o.order_id=od.order_id
-          and od.with_draw_id is null
+          and od.with_draw_id =0
           and od.split_status = 2
           and o.group_leader_id=#{groupLeaderId}
     </update>
@@ -20,7 +20,7 @@
     <update id="updateWithdrawFail">
         update ${dbName}_order.o_order_detail_${operatorId} od,
             ${dbName}_order.o_order_${operatorId} o
-        set od.with_draw_id = NULL
+        set od.with_draw_id = 0
         where o.order_id=od.order_id
           and od.with_draw_id = #{withdrawId}
     </update>
@@ -36,7 +36,7 @@
           AND od.split_status = 2
           AND od.pay_status = 3
           AND o.order_status = 6
-          and od.with_draw_id is null
+          and od.with_draw_id = 0
           AND o.group_leader_id =#{groupLeaderId}
     </select>
 
@@ -51,7 +51,7 @@
           AND od.split_status >0
           AND od.pay_status = 3
           AND o.order_status = 6
-          and od.with_draw_id is null
+          and od.with_draw_id =0
           AND o.group_leader_id =#{groupLeaderId}
     </select>
 </mapper>