This commit is contained in:
Paidax
2025-06-04 10:51:35 +08:00
parent 7decda0510
commit 482e6da554
2 changed files with 29 additions and 8 deletions
@@ -217,4 +217,16 @@ public class MHealthCheckupListController {
dao.execute(sql);
return sql.getResult();
}
@At
@RequiresAuthentication
public Object getUserChoose(String projectId){
HealthCheckupUserSelection fetch = dao.fetch(HealthCheckupUserSelection.class, Cnd.where("projectId", "=", projectId).and("selectUserId", "=", ShiroUtil.getUserId()));
if (Lang.isNotEmpty(fetch)) {
return Result.success().addData(fetch.getId());
} else {
return Result.error();
}
}
}