可见性修改

master
OathK1per 2022-09-08 17:34:52 +08:00
parent 06935c0f0d
commit c961e32e2d
1 changed files with 21 additions and 0 deletions

View File

@ -871,6 +871,27 @@ public class ProjectBudgetService {
public void budgetApprove(Integer approveStatusBudget, Project projectInDb, Admin admin) throws Exception {
projectInstanceService.startBudgetProcessInstance(projectInDb, admin);
// int type = projectInDb.getType();
// List<SysUserRole> userIds = new ArrayList<>();
// if (type == 1) {
// String sql = "select sur.user_id from sys_role sr left join sys_user_role sur on sr.id = sur.role_id where sr.is_deleted = 0 and sur.is_deleted = 0 and sr.level in (1,2,3,4,5,6)";
// userIds = pagination.find(sql, SysUserRole.class);
// } else if (type == 2) {
// String sql = "select sur.user_id from sys_role sr left join sys_user_role sur on sr.id = sur.role_id where sr.is_deleted = 0 and sur.is_deleted = 0 and sr.level in (1,2,3,5,6)";
// userIds = pagination.find(sql, SysUserRole.class);
// } else if (type == 3) {
// String sql = "select sur.user_id from sys_role sr left join sys_user_role sur on sr.id = sur.role_id where sr.is_deleted = 0 and sur.is_deleted = 0 and sr.level in (1,2,3,6)";
// userIds = pagination.find(sql, SysUserRole.class);
// }
// List<ProjectVisible> pvs = new ArrayList<>();
// for (SysUserRole sysUserRole : userIds) {
// ProjectVisible pv = new ProjectVisible();
// pv.setProjectId(projectInDb.getId());
// pv.setType(2);
// pv.setTid(sysUserRole.getUserId());
// pvs.add(pv);
// }
// projectVisibleRepository.save(pvs);
}
/**