|
@ -12,6 +12,7 @@ import com.ai.ipu.data.impl.JsonMap;
|
12
|
12
|
import com.ai.ipu.database.dao.IpuDaoManager;
|
13
|
13
|
import com.ai.ipu.sql.mgmt.DbSqlMgmtDao;
|
14
|
14
|
import com.ai.ipu.sql.mgmt.FileSqlMgmtDao;
|
|
15
|
import com.ai.ipu.sql.mgmt.SqlManager;
|
15
|
16
|
|
16
|
17
|
@Controller
|
17
|
18
|
@RequestMapping("/db/mgmt")
|
|
@ -43,4 +44,14 @@ public class DbSqlMgmtController {
|
43
|
44
|
result.put("result", dataResult);
|
44
|
45
|
return result;
|
45
|
46
|
}
|
|
47
|
|
|
48
|
@ResponseBody
|
|
49
|
@RequestMapping("/refresh")
|
|
50
|
public JMap refreshSqlRepository(JMap param) throws Exception {
|
|
51
|
// TODO Auto-generated method stub
|
|
52
|
JMap result = new JsonMap();
|
|
53
|
SqlManager.refreshSqlCache();
|
|
54
|
result.put("msg", "刷新成功");
|
|
55
|
return result;
|
|
56
|
}
|
46
|
57
|
}
|