Parcourir la source

定时任务完善

yq il y a 3 ans
Parent
commit
7f367f47e1

+ 1 - 2
src/main/java/com/usky/dxtop/service/impl/CallApiLogServiceImpl.java

@@ -46,7 +46,6 @@ public class CallApiLogServiceImpl extends ServiceImpl<CallApiLogMapper, CallApi
         LambdaQueryWrapper<CallApiLog> queryWrapper = Wrappers.lambdaQuery();
         queryWrapper.eq(CallApiLog::getOrderNumber,orderNumber)
                 .eq(CallApiLog::getName,apiName);
-        List<CallApiLog> list = this.list(queryWrapper);
-        return list.get(0);
+        return this.getOne(queryWrapper);
     }
 }