|
@@ -677,7 +677,14 @@ public interface FsStoreOrderMapper
|
|
|
" <if test=\"maps.userPhone != null and maps.userPhone != ''\"> and so.user_phone = #{maps.userPhone}</if>\n" +
|
|
|
" <if test=\"maps.totalNum != null and maps.totalNum != ''\"> and so.total_num = #{maps.totalNum}</if>\n" +
|
|
|
" <if test=\"maps.totalPrice != null \"> and so.total_price = #{maps.totalPrice}</if>\n" +
|
|
|
- " <if test=\"maps.status != null \"> and so.status = #{maps.status}</if>\n" +
|
|
|
+ " <if test=\"maps.status != null and maps.status != 6\"> and so.status = #{maps.status}</if>\n" +
|
|
|
+ " <if test=\"maps.status == 6\">\n" +
|
|
|
+ " and so.`status`= 2\n" +
|
|
|
+ " and (\n" +
|
|
|
+ " so.store_id in (select store_id from fs_store where delivery_type=2 or delivery_type=1)\n" +
|
|
|
+ " )\n" +
|
|
|
+ " and (so.extend_order_id is null or so.extend_order_id like '')\n" +
|
|
|
+ " </if>" +
|
|
|
" <if test=\"maps.refundStatus != null and maps.refundStatus != ''\"> and so.refund_status = #{maps.refundStatus}</if>\n" +
|
|
|
" <if test=\"maps.refundExplain != null and maps.refundExplain != ''\"> and so.refund_explain = #{maps.refundExplain}</if>\n" +
|
|
|
" <if test=\"maps.deliverySn != null and maps.deliverySn != ''\"> and so.delivery_sn = #{maps.deliverySn}</if>\n" +
|
|
@@ -978,7 +985,15 @@ public interface FsStoreOrderMapper
|
|
|
" <if test=\"maps.userPhone != null and maps.userPhone != ''\"> and so.user_phone = #{maps.userPhone}</if>\n" +
|
|
|
" <if test=\"maps.totalNum != null and maps.totalNum != ''\"> and so.total_num = #{maps.totalNum}</if>\n" +
|
|
|
" <if test=\"maps.totalPrice != null \"> and so.total_price = #{maps.totalPrice}</if>\n" +
|
|
|
- " <if test=\"maps.status != null \"> and so.status = #{maps.status}</if>\n" +
|
|
|
+ " <if test=\"maps.status != null and maps.status != 6\"> and so.status = #{maps.status}</if>\n" +
|
|
|
+ " <if test=\"maps.status == 6\">\n" +
|
|
|
+ " and so.`status`= 2\n" +
|
|
|
+ " and (\n" +
|
|
|
+ " so.store_id in (select store_id from fs_store where delivery_type=2 or delivery_type=1)\n" +
|
|
|
+ " )\n" +
|
|
|
+ " and (so.extend_order_id is null or so.extend_order_id like '')\n" +
|
|
|
+ " </if>" +
|
|
|
+
|
|
|
" <if test=\"maps.refundStatus != null and maps.refundStatus != ''\"> and so.refund_status = #{maps.refundStatus}</if>\n" +
|
|
|
" <if test=\"maps.refundExplain != null and maps.refundExplain != ''\"> and so.refund_explain = #{maps.refundExplain}</if>\n" +
|
|
|
" <if test=\"maps.deliverySn != null and maps.deliverySn != ''\"> and so.delivery_sn = #{maps.deliverySn}</if>\n" +
|