...
This commit is contained in:
parent
d574c7b99c
commit
4ac19db323
|
@ -82,11 +82,11 @@ public class TAbilityApplicationServiceImpl extends CrudServiceImpl<TAbilityAppl
|
|||
break;
|
||||
case "score":
|
||||
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 AND (t_ability_application.approve_status ='审核中' OR t_ability_application.approve_status ='通过')";
|
||||
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";
|
||||
if (score) {
|
||||
wrapper.exists(sql);
|
||||
wrapper.exists(sql).ne("approve_status", "不通过");
|
||||
} else {
|
||||
wrapper.notExists(sql);
|
||||
wrapper.notExists(sql).ne("approve_status", "不通过");
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue