完善维护列表
parent
877903c5f3
commit
b029766585
|
@ -43,7 +43,7 @@ public class EngineVersion extends BaseEntity {
|
|||
* 版本类名
|
||||
*/
|
||||
@Excel(name = "版本类名")
|
||||
private String versionClass;
|
||||
private String versionClass;
|
||||
|
||||
/**
|
||||
* 版本名称
|
||||
|
|
|
@ -112,26 +112,26 @@ public class EngIneController extends BaseController {
|
|||
engineMaintenanceExcelUtil.exportExcel(httpServletResponse, list, "规则引擎版本");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过引擎维护编号禁用引擎
|
||||
*/
|
||||
@PostMapping("/forbiddenEngine/{id}")
|
||||
public Result forbiddenEngine(@PathVariable Integer id) {
|
||||
//使用mybatis-plus的禁用方法
|
||||
// engIneService.forbiddenEngine(id);
|
||||
return engIneService.forbiddenEngine(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过引擎维护编号开启引擎
|
||||
*/
|
||||
@PostMapping("/onEngine/{id}")
|
||||
public Result onEngine(@PathVariable Integer id) {
|
||||
//使用mybatis-plus的开启方法
|
||||
// /**
|
||||
// * 通过引擎维护编号禁用引擎
|
||||
// */
|
||||
// @PostMapping("/forbiddenEngine/{id}")
|
||||
// public Result forbiddenEngine(@PathVariable Integer id) {
|
||||
// //使用mybatis-plus的禁用方法
|
||||
//// engIneService.forbiddenEngine(id);
|
||||
// return engIneService.forbiddenEngine(id);
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * 通过引擎维护编号开启引擎
|
||||
// */
|
||||
// @PostMapping("/onEngine/{id}")
|
||||
// public Result onEngine(@PathVariable Integer id) {
|
||||
// //使用mybatis-plus的开启方法
|
||||
//// engIneService.onEngine(id);
|
||||
// engIneService.onEngine(id);
|
||||
engIneService.onEngine(id);
|
||||
return Result.success();
|
||||
}
|
||||
// return Result.success();
|
||||
// }
|
||||
|
||||
/**
|
||||
* 通过引擎维护编号关闭引擎
|
||||
|
|
|
@ -20,12 +20,12 @@
|
|||
</update>
|
||||
<update id="closeEngine">
|
||||
update engine_maintenance
|
||||
set status = 3
|
||||
set status = 2
|
||||
where id = #{id}
|
||||
</update>
|
||||
<update id="activateEngine">
|
||||
update engine_maintenance
|
||||
set status = 4
|
||||
set status = 1
|
||||
where id = #{id}
|
||||
</update>
|
||||
<delete id="deletes">
|
||||
|
|
|
@ -1634,3 +1634,11 @@ java.net.SocketException: Connection reset
|
|||
16:29:39.734 [SpringApplicationShutdownHook] INFO c.a.d.p.DruidDataSource - [close,2277] - {dataSource-1} closed
|
||||
16:29:39.735 [SpringApplicationShutdownHook] INFO c.b.d.d.d.DefaultDataSourceDestroyer - [destroy,98] - dynamic-datasource close the datasource named [master] success,
|
||||
16:29:39.735 [SpringApplicationShutdownHook] INFO c.b.d.d.DynamicRoutingDataSource - [destroy,219] - dynamic-datasource all closed success,bye
|
||||
18:51:41.197 [main] INFO c.m.EngineApplication - [logStartupProfileInfo,660] - The following 1 profile is active: "dev"
|
||||
18:51:44.340 [main] INFO o.a.c.c.StandardService - [log,173] - Starting service [Tomcat]
|
||||
18:51:44.341 [main] INFO o.a.c.c.StandardEngine - [log,173] - Starting Servlet engine: [Apache Tomcat/10.1.24]
|
||||
18:51:44.440 [main] INFO o.a.c.c.C.[.[.[/] - [log,173] - Initializing Spring embedded WebApplicationContext
|
||||
18:51:45.958 [main] INFO c.a.d.p.DruidDataSource - [init,1002] - {dataSource-1,master} inited
|
||||
18:51:45.959 [main] INFO c.b.d.d.DynamicRoutingDataSource - [addDataSource,158] - dynamic-datasource - add a datasource named [master] success
|
||||
18:51:45.959 [main] INFO c.b.d.d.DynamicRoutingDataSource - [afterPropertiesSet,241] - dynamic-datasource initial loaded [1] datasource,primary datasource named [master]
|
||||
18:51:47.466 [main] INFO c.a.c.s.SentinelWebMvcConfigurer - [addInterceptors,52] - [Sentinel Starter] register SentinelWebInterceptor with urlPatterns: [/**].
|
||||
|
|
Loading…
Reference in New Issue