...
|
...
|
@@ -11,6 +11,7 @@ import org.slf4j.Logger; |
|
|
import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.core.ParameterizedTypeReference;
|
|
|
import org.springframework.ui.Model;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
...
|
...
|
@@ -34,7 +35,12 @@ public class SqlOperateCtrl { |
|
|
跳转到sql通用查询界面
|
|
|
*/
|
|
|
@RequestMapping("/toSqlOperate")
|
|
|
public ModelAndView toSqlOperate(){
|
|
|
public ModelAndView toSqlOperate(Model model){
|
|
|
//查询dbsource
|
|
|
BaseResponse dbSourceResponse=httpClient.defaultGet(HttpUriContants.SQLOPERATE_QUERY_DB_SOURCE_LIST,BaseResponse.class);
|
|
|
if(dbSourceResponse!=null&&dbSourceResponse.getCode()==200){
|
|
|
model.addAttribute("dbSourceList",dbSourceResponse.getData());
|
|
|
}
|
|
|
return new ModelAndView("sqloperate/sqloperate");
|
|
|
}
|
|
|
|
...
|
...
|
|