数据同步

This commit is contained in:
yuezhihang
2021-09-07 09:51:59 +08:00
parent 81a65fcf36
commit 9729d04588
9 changed files with 166 additions and 2 deletions
@@ -59,4 +59,7 @@ public interface TsInstitutionDao extends BaseMapper<TsInstitution> {
@Select("select * from ts_institution order by rand() limit 1")
TsInstitution selectRand();
int clearData();
}
@@ -42,4 +42,6 @@ public interface ITsInstitutionService extends IService<TsInstitution> {
* @return
*/
public List<TsInstitution> getFirst();
int clearData();
}
@@ -213,4 +213,9 @@ public class TsInstitutionServiceImpl extends ServiceImpl<TsInstitutionDao, TsIn
return tsInstitutions;
}
@Override
public int clearData() {
return tsInstitutionDao.clearData();
}
}