perf: 拆分清空rptparamindex表

dev
huangfeng 8 months ago
parent 5aaf229240
commit ff37dd5c31

@ -65,4 +65,11 @@ public class ParamIndexController extends BasicController {
return Response.success("OK"); return Response.success("OK");
} }
@PostMapping("clearParamindex")
@ApiOperation("清空rptparamindex表数据")
public Response<String> clearParamindex() throws Exception {
service.clearAll();
return Response.success("OK");
}
} }

@ -14,4 +14,6 @@ public interface ParamIndexService {
BindDetail getRpt(Integer sensorId) throws Exception; BindDetail getRpt(Integer sensorId) throws Exception;
void updateRpt(BindingModel item) throws Exception; void updateRpt(BindingModel item) throws Exception;
void clearAll();
} }

@ -206,7 +206,6 @@ public class IcdFileConfigServiceImpl implements IcdFileConfigService {
configRepository.deleteAll(); configRepository.deleteAll();
fileRepository.deleteAll(); fileRepository.deleteAll();
iedRepository.deleteAll(); iedRepository.deleteAll();
rptparamindexRepository.deleteAll();
} }
@Override @Override

@ -113,4 +113,9 @@ public class ParamIndexServiceImpl implements ParamIndexService {
} }
} }
} }
@Override
public void clearAll() {
rptparamindexRepository.deleteAll();
}
} }

Loading…
Cancel
Save