XMTT 7 年之前
父节点
当前提交
30e8348f23
共有 1 个文件被更改,包括 7 次插入1 次删除
  1. 7 1
      src/main/java/com/ekexiu/console/system/service/ProfessorService.java

+ 7 - 1
src/main/java/com/ekexiu/console/system/service/ProfessorService.java

@ -442,9 +442,15 @@ public class ProfessorService {
442 442
        return ret;
443 443
    }
444 444
445
    private void updateOrgName(Connection con, String id) throws SQLException {
445
    private void updateOrgName(Connection con, final String id) throws SQLException {
446 446
        this.professorDao.updateOrgAuth(con, id, "0");
447 447
        this.demandDao.closeByCreator(con, id);
448 448
        this.orgResStaffDao.deletePro(con, id);
449
        JdbcUtil.execute(con,"DELETE FROM WARE_PRO WHERE PROFESSOR=?",new PreparedStatementConfig() {
450
            @Override
451
            public void config(PreparedStatement ps) throws SQLException {
452
                ps.setString(1, id);
453
            }
454
        });
449 455
    }
450 456
}