记得上下班打卡 | git大法好,push需谨慎

Commit 3959cad2 authored by anjiabin's avatar anjiabin
parents 9c38f3b8 6b3903c9
...@@ -28,6 +28,7 @@ import org.springframework.beans.factory.annotation.Value; ...@@ -28,6 +28,7 @@ import org.springframework.beans.factory.annotation.Value;
import org.springframework.data.mongodb.core.MongoTemplate; import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.data.mongodb.core.query.Criteria; import org.springframework.data.mongodb.core.query.Criteria;
import org.springframework.data.mongodb.core.query.Query; import org.springframework.data.mongodb.core.query.Query;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import java.io.File; import java.io.File;
...@@ -528,7 +529,7 @@ public class PerformancesExpressServiceImpl extends ServiceImpl<KylinOrderExpres ...@@ -528,7 +529,7 @@ public class PerformancesExpressServiceImpl extends ServiceImpl<KylinOrderExpres
return ResponseDto.success(); return ResponseDto.success();
} }
// @Async @Async
public void batchPlaceOrder(String performanceId) { public void batchPlaceOrder(String performanceId) {
int count; int count;
int limitNum = 10; // 因单个那边判断了如果数量不大于1如果有错误直接返回 所以这里必须大于1 int limitNum = 10; // 因单个那边判断了如果数量不大于1如果有错误直接返回 所以这里必须大于1
...@@ -551,7 +552,7 @@ public class PerformancesExpressServiceImpl extends ServiceImpl<KylinOrderExpres ...@@ -551,7 +552,7 @@ public class PerformancesExpressServiceImpl extends ServiceImpl<KylinOrderExpres
} while (count >= limitNum); } while (count >= limitNum);
} }
// @Async @Async
public void batchCancelOrder(String performanceId) { public void batchCancelOrder(String performanceId) {
int count; int count;
int limitNum = 10; // 因单个那边判断了如果数量不大于1如果有错误直接返回 所以这里必须大于1 int limitNum = 10; // 因单个那边判断了如果数量不大于1如果有错误直接返回 所以这里必须大于1
......
...@@ -315,16 +315,14 @@ ...@@ -315,16 +315,14 @@
FROM kylin_order_tickets kot FROM kylin_order_tickets kot
INNER join kylin_order_ticket_status kots ON kot.order_tickets_id = kots.order_id INNER join kylin_order_ticket_status kots ON kot.order_tickets_id = kots.order_id
INNER join kylin_order_ticket_relations kotr ON kot.order_tickets_id = kotr.order_id INNER join kylin_order_ticket_relations kotr ON kot.order_tickets_id = kotr.order_id
LEFT join kylin_order_express koe ON kot.order_tickets_id = koe.order_tickets_id
<where> <where>
kotr.performance_id = #{performanceId} kotr.performance_id = #{performanceId}
AND kot.get_ticket_type = 'express' AND kot.get_ticket_type = 'express'
AND kots.status IN (1, 6) AND kots.status IN (1, 6)
AND kots.pay_status = 1 AND kots.pay_status = 1
AND koe.express_status NOT IN (2) -- 申请成功的不可再申请 后面加状态可能需要改
AND kot.mid > ${mid} AND kot.mid > ${mid}
</where> </where>
GROUP BY kot.order_tickets_id ORDER BY mid ASC
LIMIT ${limitNum} LIMIT ${limitNum}
</select> </select>
</mapper> </mapper>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment