修改报错

master
lwj 2024-09-02 21:15:35 +08:00
parent 4e1f6aadc5
commit e51ea13114
2 changed files with 4 additions and 3 deletions

View File

@ -19,9 +19,9 @@ public class AccreditServiceImpl implements AccreditService{
@Override @Override
public Accredit findAccredit(Long tableId) { public Accredit findAccredit(Long tableId) {
Accredit accredit = accreditMapper.findAccredit(tableId); Accredit accredit = accreditMapper.findAccredit(tableId);
if(accredit==null){ // if(accredit==null){
return accreditMapper.findAccreditBasic(tableId); // return accreditMapper.findAccreditBasic(tableId);
} // }
return accredit; return accredit;
} }

View File

@ -125,6 +125,7 @@ public class SourceServiceImpl extends ServiceImpl<SourceMapper, Source> impleme
Connection conn = null; Connection conn = null;
try { try {
conn = DriverManager.getConnection(url, user, password); conn = DriverManager.getConnection(url, user, password);
System.out.println("Connected to the MySQL server successfully."); System.out.println("Connected to the MySQL server successfully.");
TableInfo tableInfoInsert = TableInfo.builder() TableInfo tableInfoInsert = TableInfo.builder()