Merge branch 'dev' into docker_package
This commit is contained in:
commit
93766456dc
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue