Parcourir la source

修改limit 1

songyh il y a 4 ans
Parent
commit
e511f5e2fc

+ 1 - 0
jeecg-boot-module-system/src/main/java/cn/com/ctop/kuaishou/modules/ai/controller/KuaishouVideoDirectionalPackageController.java

@@ -222,6 +222,7 @@ public class KuaishouVideoDirectionalPackageController {
         Result<KuaishouVideoDirectionalPackage> result = new Result<>();
         QueryWrapper<KuaishouVideoDirectionalPackage> advertiserQueryWrapper = new QueryWrapper<>();
         advertiserQueryWrapper.eq("video_get_id", id);
+        advertiserQueryWrapper.last("limit 1");
         KuaishouVideoDirectionalPackage kuaishouVideoDirectionalPackage = kuaishouVideoDirectionalPackageService.getOne(advertiserQueryWrapper);
         if (kuaishouVideoDirectionalPackage == null) {
             return Result.ok("该素材未配置定向");