数据同步
This commit is contained in:
@@ -59,4 +59,7 @@ public interface TsInstitutionDao extends BaseMapper<TsInstitution> {
|
||||
|
||||
@Select("select * from ts_institution order by rand() limit 1")
|
||||
TsInstitution selectRand();
|
||||
|
||||
int clearData();
|
||||
|
||||
}
|
||||
|
||||
+2
@@ -42,4 +42,6 @@ public interface ITsInstitutionService extends IService<TsInstitution> {
|
||||
* @return
|
||||
*/
|
||||
public List<TsInstitution> getFirst();
|
||||
|
||||
int clearData();
|
||||
}
|
||||
|
||||
+5
@@ -213,4 +213,9 @@ public class TsInstitutionServiceImpl extends ServiceImpl<TsInstitutionDao, TsIn
|
||||
return tsInstitutions;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int clearData() {
|
||||
return tsInstitutionDao.clearData();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user