Compare commits

..

3 Commits

Author SHA1 Message Date
wangliwen 4a438a4ecb Merge branch 'master' into docker_package 2023-01-10 11:39:58 +08:00
wangliwen b30439de67 Merge branch 'dev' 2023-01-10 11:39:52 +08:00
wangliwen 9f9c631f77 过滤能力资源不存在的申请供评分 2023-01-10 11:39:45 +08:00
1 changed files with 3 additions and 2 deletions

View File

@ -83,10 +83,11 @@ public class TAbilityApplicationServiceImpl extends CrudServiceImpl<TAbilityAppl
case "score": case "score":
boolean score = Boolean.valueOf(params.get("score").toString()); boolean score = Boolean.valueOf(params.get("score").toString());
String sql = "SELECT 1 FROM tb_resource_score t1 WHERE t1.user_id = t_ability_application.user_id AND t1.resource_id = t_ability_application.resource_id"; String sql = "SELECT 1 FROM tb_resource_score t1 WHERE t1.user_id = t_ability_application.user_id AND t1.resource_id = t_ability_application.resource_id";
String resource_sql = "SELECT 1 FROM tb_data_resource WHERE tb_data_resource.del_flag = 0 AND t_ability_application.resource_id = tb_data_resource.id";
if (score) { if (score) {
wrapper.exists(sql).ne("approve_status", "不通过"); wrapper.exists(sql).exists(resource_sql).ne("approve_status", "不通过");
} else { } else {
wrapper.notExists(sql).ne("approve_status", "不通过"); wrapper.notExists(sql).exists(resource_sql).ne("approve_status", "不通过");
} }
break; break;
} }