From fdf7922d9b5f72bdef38d9e362516656cf8c7b4d Mon Sep 17 00:00:00 2001 From: wangliwen Date: Tue, 19 Jul 2022 09:56:32 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=82=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../processForm/controller/TAbilityApplicationController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/renren-admin/src/main/java/io/renren/modules/processForm/controller/TAbilityApplicationController.java b/renren-admin/src/main/java/io/renren/modules/processForm/controller/TAbilityApplicationController.java index 786ca080..a9c036e2 100644 --- a/renren-admin/src/main/java/io/renren/modules/processForm/controller/TAbilityApplicationController.java +++ b/renren-admin/src/main/java/io/renren/modules/processForm/controller/TAbilityApplicationController.java @@ -130,7 +130,7 @@ public class TAbilityApplicationController { if (params.containsKey("ended")) { index.setEnded(Boolean.valueOf(params.get("ended").toString())); } else { - String sql = String.format("SELECT IF(COUNT(id) >0 ,TRUE,FALSE) AS ended FROM t_ability_application WHERE apply_flag = '%s' AND EXISTS (SELECT 1 FROM t_ability_application t1 WHERE t1.apply_flag = t_ability_application.apply_flag AND approve_status = '审核中');", index.getApplyFlag()); + String sql = String.format("SELECT IF(COUNT(id) >0 ,FALSE,TRUE) AS ended FROM t_ability_application WHERE apply_flag = '%s' AND EXISTS (SELECT 1 FROM t_ability_application t1 WHERE t1.apply_flag = t_ability_application.apply_flag AND approve_status = '审核中');", index.getApplyFlag()); Boolean ended = jdbcTemplate.queryForObject(sql, Boolean.class); index.setEnded(Boolean.valueOf(ended)); }