Merge branch 'dev' into docker_package

This commit is contained in:
wangliwen 2022-07-19 09:56:40 +08:00
commit 93766456dc
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ public class TAbilityApplicationController {
if (params.containsKey("ended")) { if (params.containsKey("ended")) {
index.setEnded(Boolean.valueOf(params.get("ended").toString())); index.setEnded(Boolean.valueOf(params.get("ended").toString()));
} else { } 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); Boolean ended = jdbcTemplate.queryForObject(sql, Boolean.class);
index.setEnded(Boolean.valueOf(ended)); index.setEnded(Boolean.valueOf(ended));
} }