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

Commit 532351f8 authored by 胡佳晨's avatar 胡佳晨

Merge branch 'dev' into test

parents cb56619c cc781f97
...@@ -69,13 +69,37 @@ ...@@ -69,13 +69,37 @@
amo.payment_at, amo.payment_at,
amo.created_at, amo.created_at,
au.mobile, au.mobile,
amo.source amo.source,
amo.mode
from adam_member_order amo from adam_member_order amo
inner join adam_user_member aum inner join adam_user_member aum
on amo.uid = aum.uid on amo.uid = aum.uid
inner join adam_user au on aum.uid = au.uid inner join adam_user au on aum.uid = au.uid
<where> <where>
<if test="userId != null and userId != ''">and kot.user_id = #{userId}</if> <if test="orderNo != null and orderNo != ''">
and amo.order_no = #{orderNo}
</if>
<if test="mobile != null and mobile != ''">
and au.mobile = #{mobile}
</if>
<if test="payType != null and payType != ''">
and amo.pay_type = #{payType}
</if>
<if test="state != null and state != ''">
and amo.state = #{state}
</if>
<if test="mode != null and mode != ''">
and amo.mode = #{mode}
</if>
<if test="source != null and source != ''">
and amo.source = #{source}
</if>
<if test="paymentAtStart != null and paymentAtStart != ''">
and amo.payment_at &gt; #{paymentAtStart}
</if>
<if test="paymentAtEnd != null and paymentAtEnd != ''">
and amo.payment_at &lt; #{paymentAtEnd}
</if>
</where> </where>
</select> </select>
</mapper> </mapper>
...@@ -1016,7 +1016,7 @@ public class KylinOrderTicketsServiceImpl extends ServiceImpl<KylinOrderTicketsM ...@@ -1016,7 +1016,7 @@ public class KylinOrderTicketsServiceImpl extends ServiceImpl<KylinOrderTicketsM
@Override @Override
public boolean checkOrderTime(String userId) { public boolean checkOrderTime(String userId) {
String lock = "order_lock:checkOrderTime:" + userId; String lock = "orders_lock:checkOrderTime:" + userId;
if (redisLockUtil.tryLock(lock, 1, 3600)) { if (redisLockUtil.tryLock(lock, 1, 3600)) {
try { try {
List<OrderScriptDto> dtoData = orderTicketsMapper.orderScriptDto(userId); List<OrderScriptDto> dtoData = orderTicketsMapper.orderScriptDto(userId);
...@@ -1111,8 +1111,7 @@ public class KylinOrderTicketsServiceImpl extends ServiceImpl<KylinOrderTicketsM ...@@ -1111,8 +1111,7 @@ public class KylinOrderTicketsServiceImpl extends ServiceImpl<KylinOrderTicketsM
redisLockUtil.unlock(lock); redisLockUtil.unlock(lock);
Thread thread = new Thread(new Runnable(){ Thread thread = new Thread(() -> {
public void run(){
//redis 列表 //redis 列表
orderIdList.forEach(t -> { orderIdList.forEach(t -> {
String orderTicketId = t.split(",")[0]; String orderTicketId = t.split(",")[0];
...@@ -1126,7 +1125,7 @@ public class KylinOrderTicketsServiceImpl extends ServiceImpl<KylinOrderTicketsM ...@@ -1126,7 +1125,7 @@ public class KylinOrderTicketsServiceImpl extends ServiceImpl<KylinOrderTicketsM
dataUtils.changeBuyInfo(items.getUserId(), items.getEnterIdCode(), items.getPerformanceId(), items.getTicketId(), -1); dataUtils.changeBuyInfo(items.getUserId(), items.getEnterIdCode(), items.getPerformanceId(), items.getTicketId(), -1);
} }
}); });
}}); });
thread.start(); thread.start();
} }
......
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