Browse Source

fix bug: 修复编辑拓扑图时快速点击两次保存时图片丢失问题

lijie 2 years ago
parent
commit
130fe1ec1a

+ 19 - 13
labsl/src/main/kotlin/com/persagy/labsl/controller/GraphController.kt

@@ -5,6 +5,7 @@ import com.persagy.labsl.Opts
 import com.persagy.labsl.models.entities.tpt.Graph
 import com.persagy.labsl.models.entities.tpt.pub.GraphPub
 import com.persagy.labsl.models.response.SCommonResponse
+import com.persagy.labsl.services.GraphLogicService
 import com.persagy.labsl.services.GraphService
 import com.persagy.labsl.services.pub.GraphPubService
 import com.persagy.service.models.requests.SCreateRequest
@@ -15,7 +16,10 @@ import com.persagy.service.models.responses.SCreateResponse
 import com.persagy.service.models.responses.SQueryResponse
 import io.swagger.v3.oas.annotations.Operation
 import io.swagger.v3.oas.annotations.tags.Tag
-import org.springframework.web.bind.annotation.*
+import org.springframework.web.bind.annotation.PostMapping
+import org.springframework.web.bind.annotation.RequestBody
+import org.springframework.web.bind.annotation.RequestMapping
+import org.springframework.web.bind.annotation.RestController
 
 /**
  * 图形
@@ -27,16 +31,18 @@ import org.springframework.web.bind.annotation.*
 @RequestMapping("/graph")
 class GraphController {
 
+    lateinit var graphLogicService: GraphLogicService
+
     /**
      * 创建图
      *
      * @param request     待图对象列表
      * @return 创建完成图对象列表
      */
-   @Operation(summary ="草稿箱-创建图", description = "id和graphId为必填,图中会包含多个节点,详细节点结构见示例")
+    @Operation(summary ="草稿箱-创建图", description = "id和graphId为必填,图中会包含多个节点,详细节点结构见示例")
     @PostMapping("/drafts/create")
     fun create(@RequestBody request: SCreateRequest<Graph>): SCreateResponse<Graph> {
-        return GraphService.draftsCreate(request)
+        return graphLogicService.draftsCreate(request)
     } // Function create()
 
     /**
@@ -45,10 +51,10 @@ class GraphController {
      * @param  graph   待图对象
      * @return  图对象列表
      */
-   @Operation(summary = "草稿箱-保存图形", description = "")
+    @Operation(summary = "草稿箱-保存图形", description = "")
     @PostMapping("/drafts/save")
     fun save(@RequestBody graph: Graph): SCreateResponse<Graph> {
-        return GraphService.save(graph)
+        return graphLogicService.save(graph)
     } // Function save()
 
     /**
@@ -60,7 +66,7 @@ class GraphController {
    @Operation(summary="草稿箱-发布图形", description =" Id 和 GraphId 必须填写")
     @PostMapping("/drafts/publish")
     fun pubDrawings(@RequestBody graph: GraphPub): SCreateResponse<GraphPub>{
-        return GraphService.pubDrawings(graph)
+        return graphLogicService.pubDrawings(graph)
     } // Function pubDrawings()
 
 
@@ -73,7 +79,7 @@ class GraphController {
    @Operation(summary = "草稿箱-移至回收站", description = " Id 和 GraphId 必填")
     @PostMapping(value = ["/drafts/recycle"])
     fun recycle(@RequestBody idList: ArrayList<Graph>): SBaseResponse {
-        return GraphService.recycle(idList)
+        return graphLogicService.recycle(idList)
     } // Function recycle()
 
     /**
@@ -85,7 +91,7 @@ class GraphController {
    @Operation(summary = "已发布-图形移至回收站", description = "Id 和 GraphId 必填")
     @PostMapping(value = ["/pub/recycle"])
     fun recyclePub(@RequestBody idList: ArrayList<Graph>): SBaseResponse{
-        return GraphService.recyclePub(idList)
+        return graphLogicService.recyclePub(idList)
     } // Function recyclePub()
 
     /**
@@ -97,7 +103,7 @@ class GraphController {
    @Operation(summary = "草稿箱-更新图形信息", description = "Id 和 GraphId 必填")
     @PostMapping(value = ["/drafts/update"])
     fun update(@RequestBody request: SUpdateRequest<Graph>): SBaseResponse {
-        return GraphService.draftsUpdate(request)
+        return graphLogicService.draftsUpdate(request)
     } // Function update()
 
     /**
@@ -157,7 +163,7 @@ class GraphController {
    @Operation(summary = "已发布-更新图形信息", description = "")
     @PostMapping(value = ["/pub/update"])
     fun updatePub(@RequestBody request: SUpdateRequest<GraphPub>): SBaseResponse {
-        return GraphService.pubUpdate(request)
+        return graphLogicService.pubUpdate(request)
     } // Function update()
 
     /**
@@ -166,10 +172,10 @@ class GraphController {
      * @param graph  图对象
      * @return 恢复结果
      */
-   @Operation(summary = "回收站- 恢复图形", description = "Id 和 GraphId 必填 ")
+    @Operation(summary = "回收站- 恢复图形", description = "Id 和 GraphId 必填 ")
     @PostMapping(value = ["recycle/recovery"])
     fun recovery(@RequestBody graph: Graph): SBaseResponse{
-    return GraphService.recovery(graph)
+    return graphLogicService.recovery(graph)
     } // Fun recovery()
 
     /**
@@ -181,7 +187,7 @@ class GraphController {
    @Operation(summary = "回收站-根据id删除图形信息,删除草稿箱图形", description = "Id 和 GraphId 必填 ")
     @PostMapping(value = ["recycle/delete"])
     fun delete(@RequestBody idList: ArrayList<Graph>): SBaseResponse {
-        return GraphService.deleteByKeysList(idList)
+        return graphLogicService.deleteByKeysList(idList)
     } // Function delete()
 
 

+ 7 - 3
labsl/src/main/kotlin/com/persagy/labsl/controller/MarkersController.kt

@@ -1,6 +1,7 @@
 package com.persagy.labsl.controller
 
 import com.persagy.labsl.models.entities.tpt.Markers
+import com.persagy.labsl.services.MarkersLogicService
 import com.persagy.labsl.services.MarkersService
 import com.persagy.service.models.requests.SCreateRequest
 import com.persagy.service.models.requests.SQueryRequest
@@ -25,6 +26,9 @@ import org.springframework.web.bind.annotation.RestController
 @RequestMapping("/marker")
 class MarkersController {
 
+    lateinit var markersLogicService: MarkersLogicService
+
+
     /**
      * 注释说明
      *
@@ -34,7 +38,7 @@ class MarkersController {
    @Operation(summary="注释说明创建", description ="id 为系统图的图对象id,graphId 为系统图的图 id ,markerId 为当前标识的id,id 和 graphId 必须填为某一个系统图中的 id,markerId 是当前要创建的对象id不传会自动生成(32位uuid)")
     @PostMapping("/create")
     fun create(@RequestBody request: SCreateRequest<Markers>): SCreateResponse<Markers> {
-        return MarkersService.creates(request)
+        return markersLogicService.creates(request)
     }
 
     /**
@@ -46,7 +50,7 @@ class MarkersController {
    @Operation(summary = "根据批量删除标识信息对象", description = "创建中有介绍id的说明请查看,删除时必须传入 id、graphId、markerId 才能确认删除的是当前的标识对象")
     @PostMapping(value = ["/delete"])
     fun delete(@RequestBody idList: ArrayList<Markers>): SBaseResponse {
-        return MarkersService.deletes(idList)
+        return markersLogicService.deletes(idList)
     }
 
     /**
@@ -58,7 +62,7 @@ class MarkersController {
    @Operation(summary = "批量更新标识信息", description = "创建中有介绍id的说明请查看,id、graphId、markerId 为必填信息点,参考创建后的对象信息点,修改哪个信息点直接写在对象里面即可,详细的使用方式参考 web 端接口使用规范")
     @PostMapping(value = ["/update"])
     fun update(@RequestBody request: SUpdateRequest<Markers>): SBaseResponse {
-        return MarkersService.updateList(request)
+        return markersLogicService.updateList(request)
     }
 
     /**

+ 7 - 9
labsl/src/main/kotlin/com/persagy/labsl/controller/NodeController.kt

@@ -1,6 +1,7 @@
 package com.persagy.labsl.controller
 
 import com.persagy.labsl.models.entities.tpt.Node
+import com.persagy.labsl.services.NodeLogicService
 import com.persagy.labsl.services.NodeService
 import com.persagy.service.models.requests.SCreateRequest
 import com.persagy.service.models.requests.SQueryRequest
@@ -10,7 +11,7 @@ import com.persagy.service.models.responses.SCreateResponse
 import com.persagy.service.models.responses.SQueryResponse
 import io.swagger.v3.oas.annotations.Operation
 import io.swagger.v3.oas.annotations.tags.Tag
-import org.slf4j.LoggerFactory
+import lombok.extern.slf4j.Slf4j
 import org.springframework.web.bind.annotation.PostMapping
 import org.springframework.web.bind.annotation.RequestBody
 import org.springframework.web.bind.annotation.RequestMapping
@@ -24,13 +25,10 @@ import org.springframework.web.bind.annotation.RestController
 @Tag(name = "002、系统图设备节点,与数据中台设备实例对应关系(绑定信息点在该设备上进行)- 系统图下子对象")
 @RestController
 @RequestMapping("/node")
+@Slf4j
 class NodeController {
-    companion object {
-        /** 日志 */
-        private val logger = LoggerFactory.getLogger(NodeController::class.java)
 
-
-    } // Companion object
+    lateinit var nodeLogicService: NodeLogicService
 
     /**
      * 图例节点
@@ -41,7 +39,7 @@ class NodeController {
    @Operation(summary="创建设备节点", description ="id 为系统图的图对象id,graphId 为系统图的图id ,nodeId 为当前节点的id,id 和 graphId 必须填为某一个系统图中的 id,nodeId 是当前要创建的对象id不传会自动生成(32位uuid)")
     @PostMapping("/create")
     fun create(@RequestBody request: SCreateRequest<Node>): SCreateResponse<Node> {
-        return NodeService.creates(request)
+        return nodeLogicService.creates(request)
     } // Function create()
 
     /**
@@ -53,7 +51,7 @@ class NodeController {
    @Operation(summary = "根据id删除图例节点信息", description = "创建中有介绍id的说明请查看,删除时必须传入 id、graphId、nodeId 才能确认删除的是当前的设备节点")
     @PostMapping(value = ["/delete"])
     fun delete(@RequestBody idList: ArrayList<Node>): SBaseResponse {
-        return NodeService.deletes(idList)
+        return nodeLogicService.deletes(idList)
     } // Function delete()
 
     /**
@@ -65,7 +63,7 @@ class NodeController {
    @Operation(summary = "更新图例节点信息", description = "创建中有介绍 id 的说明请查看,id、graphId、nodeId 为必填信息点,参考创建后的对象信息点,然后修改了哪个信息点传哪个信息点,详细的使用方式参考 web 端接口使用规范")
     @PostMapping(value = ["/update"])
     fun update(@RequestBody request: SUpdateRequest<Node>): SBaseResponse {
-        return NodeService.updateList(request)
+        return nodeLogicService.updateList(request)
     } // Function update()
 
     /**

+ 6 - 3
labsl/src/main/kotlin/com/persagy/labsl/controller/RelationController.kt

@@ -1,6 +1,7 @@
 package com.persagy.labsl.controller
 
 import com.persagy.labsl.models.entities.tpt.Relation
+import com.persagy.labsl.services.RelationLogicService
 import com.persagy.labsl.services.RelationService
 import com.persagy.service.models.requests.SCreateRequest
 import com.persagy.service.models.requests.SQueryRequest
@@ -25,6 +26,8 @@ import org.springframework.web.bind.annotation.RestController
 @RequestMapping("/relation")
 class RelationController {
 
+    lateinit var relationLogicService: RelationLogicService
+
     /**
      * 管线创建
      *
@@ -34,7 +37,7 @@ class RelationController {
    @Operation(summary="管线创建", description ="id 为系统图的图对象id,graphId 为系统图的图id ,relationId 为当前管线对象的id,id 和 graphId 必须填为某一个系统图中的id,relationId 是当前要创建的对象 id 不传会自动生成(32位uuid)")
     @PostMapping("/create")
     fun create(@RequestBody request: SCreateRequest<Relation>): SCreateResponse<Relation> {
-        return RelationService.creates(request)
+        return relationLogicService.creates(request)
     }
 
     /**
@@ -46,7 +49,7 @@ class RelationController {
    @Operation(summary = "根据id删除管线信息", description = "创建中有介绍id的说明请查看,删除时必须传入 id、graphId、relationId 才能确认删除的是当前的标识对象")
     @PostMapping(value = ["/delete"])
     fun delete(@RequestBody idList: ArrayList<Relation>): SBaseResponse {
-        return RelationService.deletes(idList)
+        return relationLogicService.deletes(idList)
     }
 
     /**
@@ -58,7 +61,7 @@ class RelationController {
    @Operation(summary = "更新管线信息", description = "创建中有介绍id的说明请查看,id、graphId、relationId 为必填信息点,参考创建后的对象信息点,修改哪个信息点直接写在对象里面即可,详细的使用方式参考 web 端接口使用规范")
     @PostMapping(value = ["/update"])
     fun update(@RequestBody request: SUpdateRequest<Relation>): SBaseResponse {
-        return RelationService.updateList(request)
+        return relationLogicService.updateList(request)
     }
 
     /**

+ 76 - 0
labsl/src/main/kotlin/com/persagy/labsl/services/GraphLogicService.kt

@@ -0,0 +1,76 @@
+package com.persagy.labsl.services
+
+import com.persagy.labsl.models.entities.tpt.Graph
+import com.persagy.labsl.models.entities.tpt.pub.GraphPub
+import com.persagy.service.models.requests.SCreateRequest
+import com.persagy.service.models.requests.SUpdateRequest
+import com.persagy.service.models.responses.SBaseResponse
+import com.persagy.service.models.responses.SCreateResponse
+
+/**
+ * 图像处理逻辑
+ * @author : lijie
+ * Update By 2022/5/27 17:00
+ */
+interface GraphLogicService {
+    /**
+     * 创建草稿
+     * @param request 请求参数
+     * @return : com.persagy.service.models.responses.SCreateResponse<com.persagy.labsl.models.entities.tpt.Graph>
+     * @author : lijie
+     * Update By 2022/5/27 18:24
+     */
+    fun draftsCreate(request: SCreateRequest<Graph>): SCreateResponse<Graph>
+
+    /**
+     * 保存草稿
+     * @param graph 请求参数
+     * @return : com.persagy.service.models.responses.SCreateResponse<com.persagy.labsl.models.entities.tpt.Graph>
+     * @author : lijie
+     * Update By 2022/5/27 18:24
+     */
+    fun save(graph: Graph): SCreateResponse<Graph>
+    /**
+     * 发布图形
+     * @author : lijie
+     * Update By 2022/5/27 18:42
+     */
+    fun pubDrawings(graph: GraphPub): SCreateResponse<GraphPub>
+
+    /**
+     * 图移至/移出回收站
+     * @author : lijie
+     * Update By 2022/5/31 19:20
+     */
+    fun recycle(idList: ArrayList<Graph>): SBaseResponse
+    /**
+     * 已发布图形移至/移出回收站
+     * @author : lijie
+     * Update By 2022/5/31 19:23
+     */
+    fun recyclePub(idList: ArrayList<Graph>): SBaseResponse
+    /**
+     * 草稿图形的更新操作
+     * @author : lijie
+     * Update By 2022/5/31 19:27
+     */
+    fun draftsUpdate(request: SUpdateRequest<Graph>): SBaseResponse
+    /**
+     * 已发布图形的更新操作
+     * @author : lijie
+     * Update By 2022/5/31 19:30
+     */
+    fun pubUpdate(request: SUpdateRequest<GraphPub>): SBaseResponse
+    /**
+     * 恢复回收站的图形
+     * @author : lijie
+     * Update By 2022/5/31 19:39
+     */ 
+    fun recovery(graph: Graph): SBaseResponse
+    /**
+     * 根据id删除图形
+     * @author : lijie
+     * Update By 2022/5/31 19:42
+     */
+    fun deleteByKeysList(idList: ArrayList<Graph>): SBaseResponse
+}

+ 1 - 5
labsl/src/main/kotlin/com/persagy/labsl/services/GraphService.kt

@@ -1,6 +1,5 @@
 package com.persagy.labsl.services
 
-import com.persagy.labsl.utils.IdUtils
 import com.persagy.base.extensions.toJson
 import com.persagy.database.SFilter
 import com.persagy.labsl.Opts
@@ -9,6 +8,7 @@ import com.persagy.labsl.models.entities.tpt.Graph
 import com.persagy.labsl.models.entities.tpt.pub.*
 import com.persagy.labsl.models.response.SCommonResponse
 import com.persagy.labsl.services.pub.GraphPubService
+import com.persagy.labsl.utils.IdUtils
 import com.persagy.mybatis.SMybatisDao
 import com.persagy.service.SObjectService
 import com.persagy.service.models.enums.SResponseType
@@ -204,10 +204,6 @@ object GraphService : SObjectService<Graph>(SMybatisDao(
 
 
 
-
-
-
-
     /**
      * 创建图
      *

+ 34 - 0
labsl/src/main/kotlin/com/persagy/labsl/services/MarkersLogicService.kt

@@ -0,0 +1,34 @@
+package com.persagy.labsl.services
+
+import com.persagy.labsl.models.entities.tpt.Markers
+import com.persagy.service.models.requests.SCreateRequest
+import com.persagy.service.models.requests.SUpdateRequest
+import com.persagy.service.models.responses.SBaseResponse
+import com.persagy.service.models.responses.SCreateResponse
+
+/**
+ * 备注逻辑处理接口 
+ * @author : lijie
+ * Update By 2022/5/31 19:48
+ */
+interface MarkersLogicService {
+
+    /**
+     * 创建注释说明
+     * @author : lijie
+     * Update By 2022/5/31 19:51
+     */
+    fun creates(request: SCreateRequest<Markers>): SCreateResponse<Markers>
+    /**
+     * 删除注释说明
+     * @author : lijie
+     * Update By 2022/5/31 19:52
+     */
+    fun deletes(idList: ArrayList<Markers>): SBaseResponse
+    /**
+     * 更新注释说明
+     * @author : lijie
+     * Update By 2022/5/31 19:53
+     */
+    fun updateList(request: SUpdateRequest<Markers>): SBaseResponse
+}

+ 34 - 0
labsl/src/main/kotlin/com/persagy/labsl/services/NodeLogicService.kt

@@ -0,0 +1,34 @@
+package com.persagy.labsl.services
+
+import com.persagy.labsl.models.entities.tpt.Node
+import com.persagy.service.models.requests.SCreateRequest
+import com.persagy.service.models.requests.SUpdateRequest
+import com.persagy.service.models.responses.SBaseResponse
+import com.persagy.service.models.responses.SCreateResponse
+
+/**
+ * 备注逻辑处理接口 
+ * @author : lijie
+ * Update By 2022/5/31 19:48
+ */
+interface NodeLogicService {
+
+    /**
+     * 创建注释说明
+     * @author : lijie
+     * Update By 2022/5/31 19:51
+     */
+    fun creates(request: SCreateRequest<Node>): SCreateResponse<Node>
+    /**
+     * 删除注释说明
+     * @author : lijie
+     * Update By 2022/5/31 19:52
+     */
+    fun deletes(idList: ArrayList<Node>): SBaseResponse
+    /**
+     * 更新注释说明
+     * @author : lijie
+     * Update By 2022/5/31 19:53
+     */
+    fun updateList(request: SUpdateRequest<Node>): SBaseResponse
+}

+ 34 - 0
labsl/src/main/kotlin/com/persagy/labsl/services/RelationLogicService.kt

@@ -0,0 +1,34 @@
+package com.persagy.labsl.services
+
+import com.persagy.labsl.models.entities.tpt.Relation
+import com.persagy.service.models.requests.SCreateRequest
+import com.persagy.service.models.requests.SUpdateRequest
+import com.persagy.service.models.responses.SBaseResponse
+import com.persagy.service.models.responses.SCreateResponse
+
+/**
+ * 备注逻辑处理接口 
+ * @author : lijie
+ * Update By 2022/5/31 19:48
+ */
+interface RelationLogicService {
+
+    /**
+     * 创建注释说明
+     * @author : lijie
+     * Update By 2022/5/31 19:51
+     */
+    fun creates(request: SCreateRequest<Relation>): SCreateResponse<Relation>
+    /**
+     * 删除注释说明
+     * @author : lijie
+     * Update By 2022/5/31 19:52
+     */
+    fun deletes(idList: ArrayList<Relation>): SBaseResponse
+    /**
+     * 更新注释说明
+     * @author : lijie
+     * Update By 2022/5/31 19:53
+     */
+    fun updateList(request: SUpdateRequest<Relation>): SBaseResponse
+}

+ 104 - 0
labsl/src/main/kotlin/com/persagy/labsl/services/impl/GraphLogicServiceImpl.kt

@@ -0,0 +1,104 @@
+package com.persagy.labsl.services.impl
+
+import com.persagy.labsl.models.entities.tpt.Graph
+import com.persagy.labsl.models.entities.tpt.pub.GraphPub
+import com.persagy.labsl.services.GraphLogicService
+import com.persagy.labsl.services.GraphService
+import com.persagy.service.models.requests.SCreateRequest
+import com.persagy.service.models.requests.SUpdateRequest
+import com.persagy.service.models.responses.SBaseResponse
+import com.persagy.service.models.responses.SCreateResponse
+import lombok.extern.slf4j.Slf4j
+import org.springframework.stereotype.Service
+import org.springframework.transaction.annotation.Transactional
+
+/**
+ * 图逻辑处理
+ * @author : lijie
+ * Update By 2022/5/27 18:25
+ */
+@Slf4j
+@Service
+open class GraphLogicServiceImpl : GraphLogicService {
+    /**
+     * 草稿箱-创建图
+     * @author : lijie
+     * Update By 2022/5/27 18:26
+     */
+    @Transactional
+    override fun draftsCreate(request: SCreateRequest<Graph>): SCreateResponse<Graph> {
+        return GraphService.draftsCreate(request);
+    }
+    /**
+     * 草稿箱-保存图
+     * @author : lijie
+     * Update By 2022/5/27 18:35
+     */
+    @Transactional
+    override fun save(graph: Graph): SCreateResponse<Graph> {
+        return GraphService.save(graph);
+    }
+    /**
+     * 发布草稿图
+     * @author : lijie
+     * Update By 2022/5/27 18:48
+     */
+    @Transactional
+    override fun pubDrawings(graph: GraphPub): SCreateResponse<GraphPub> {
+        return GraphService.pubDrawings(graph)
+    }
+    /**
+     * 草稿移出/移至回收站
+     * @author : lijie
+     * Update By 2022/5/31 19:23
+     */
+    @Transactional
+    override fun recycle(idList: ArrayList<Graph>): SBaseResponse {
+        return GraphService.recycle(idList)
+    }
+    /**
+     * 已发布图形移出/移至回收站
+     * @author : lijie
+     * Update By 2022/5/31 19:24
+     */
+    @Transactional
+    override fun recyclePub(idList: ArrayList<Graph>): SBaseResponse {
+        return GraphService.recyclePub(idList)
+    }
+    /**
+     * 草稿的更新操作
+     * @author : lijie
+     * Update By 2022/5/31 19:31
+     */
+    @Transactional
+    override fun draftsUpdate(request: SUpdateRequest<Graph>): SBaseResponse {
+        return GraphService.draftsUpdate(request)
+    }
+    /**
+     * 已发布操作的更新操作
+     * @author : lijie
+     * Update By 2022/5/31 19:31
+     */
+    @Transactional
+    override fun pubUpdate(request: SUpdateRequest<GraphPub>): SBaseResponse {
+       return GraphService.pubUpdate(request)
+    }
+    /**
+     * 从回收站恢复图形
+     * @author : lijie
+     * Update By 2022/5/31 19:40
+     */
+    @Transactional
+    override fun recovery(graph: Graph): SBaseResponse {
+       return GraphService.recovery(graph)
+    }
+    /**
+     * 根据id删除图形
+     * @author : lijie
+     * Update By 2022/5/31 19:43
+     */
+    @Transactional
+    override fun deleteByKeysList(idList: ArrayList<Graph>): SBaseResponse {
+       return GraphService.deleteByKeysList(idList)
+    }
+}

+ 44 - 0
labsl/src/main/kotlin/com/persagy/labsl/services/impl/MarkersLogicServiceImpl.kt

@@ -0,0 +1,44 @@
+package com.persagy.labsl.services.impl
+
+import com.persagy.labsl.models.entities.tpt.Markers
+import com.persagy.labsl.services.MarkersLogicService
+import com.persagy.labsl.services.MarkersService
+import com.persagy.service.models.requests.SCreateRequest
+import com.persagy.service.models.requests.SUpdateRequest
+import com.persagy.service.models.responses.SBaseResponse
+import com.persagy.service.models.responses.SCreateResponse
+import lombok.extern.slf4j.Slf4j
+import org.springframework.stereotype.Service
+import org.springframework.transaction.annotation.Transactional
+
+@Slf4j
+@Service
+open class MarkersLogicServiceImpl: MarkersLogicService {
+    /**
+     * 批量创建注释说明
+     * @author : lijie
+     * Update By 2022/5/31 19:54
+     */
+    @Transactional
+    override fun creates(request: SCreateRequest<Markers>): SCreateResponse<Markers> {
+        return MarkersService.creates(request)
+    }
+    /**
+     * 批量删除注释说明
+     * @author : lijie
+     * Update By 2022/5/31 19:54
+     */
+    @Transactional
+    override fun deletes(idList: ArrayList<Markers>): SBaseResponse {
+        return MarkersService.deletes(idList)
+    }
+    /**
+     * 批量更新注释说明
+     * @author : lijie
+     * Update By 2022/5/31 19:55
+     */
+    @Transactional
+    override fun updateList(request: SUpdateRequest<Markers>): SBaseResponse {
+        return MarkersService.updateList(request)
+    }
+}

+ 44 - 0
labsl/src/main/kotlin/com/persagy/labsl/services/impl/NodeLogicServiceImpl.kt

@@ -0,0 +1,44 @@
+package com.persagy.labsl.services.impl
+
+import com.persagy.labsl.models.entities.tpt.Node
+import com.persagy.labsl.services.NodeLogicService
+import com.persagy.labsl.services.NodeService
+import com.persagy.service.models.requests.SCreateRequest
+import com.persagy.service.models.requests.SUpdateRequest
+import com.persagy.service.models.responses.SBaseResponse
+import com.persagy.service.models.responses.SCreateResponse
+import lombok.extern.slf4j.Slf4j
+import org.springframework.stereotype.Service
+import org.springframework.transaction.annotation.Transactional
+
+@Slf4j
+@Service
+open class NodeLogicServiceImpl: NodeLogicService {
+    /**
+     * 批量创建注释说明
+     * @author : lijie
+     * Update By 2022/5/31 19:54
+     */
+    @Transactional
+    override fun creates(request: SCreateRequest<Node>): SCreateResponse<Node> {
+        return NodeService.creates(request)
+    }
+    /**
+     * 批量删除注释说明
+     * @author : lijie
+     * Update By 2022/5/31 19:54
+     */
+    @Transactional
+    override fun deletes(idList: ArrayList<Node>): SBaseResponse {
+        return NodeService.deletes(idList)
+    }
+    /**
+     * 批量更新注释说明
+     * @author : lijie
+     * Update By 2022/5/31 19:55
+     */
+    @Transactional
+    override fun updateList(request: SUpdateRequest<Node>): SBaseResponse {
+        return NodeService.updateList(request)
+    }
+}

+ 44 - 0
labsl/src/main/kotlin/com/persagy/labsl/services/impl/RelationLogicServiceImpl.kt

@@ -0,0 +1,44 @@
+package com.persagy.labsl.services.impl
+
+import com.persagy.labsl.models.entities.tpt.Relation
+import com.persagy.labsl.services.RelationLogicService
+import com.persagy.labsl.services.RelationService
+import com.persagy.service.models.requests.SCreateRequest
+import com.persagy.service.models.requests.SUpdateRequest
+import com.persagy.service.models.responses.SBaseResponse
+import com.persagy.service.models.responses.SCreateResponse
+import lombok.extern.slf4j.Slf4j
+import org.springframework.stereotype.Service
+import org.springframework.transaction.annotation.Transactional
+
+@Slf4j
+@Service
+open class RelationLogicServiceImpl: RelationLogicService {
+    /**
+     * 批量创建注释说明
+     * @author : lijie
+     * Update By 2022/5/31 19:54
+     */
+    @Transactional
+    override fun creates(request: SCreateRequest<Relation>): SCreateResponse<Relation> {
+        return RelationService.creates(request)
+    }
+    /**
+     * 批量删除注释说明
+     * @author : lijie
+     * Update By 2022/5/31 19:54
+     */
+    @Transactional
+    override fun deletes(idList: ArrayList<Relation>): SBaseResponse {
+        return RelationService.deletes(idList)
+    }
+    /**
+     * 批量更新注释说明
+     * @author : lijie
+     * Update By 2022/5/31 19:55
+     */
+    @Transactional
+    override fun updateList(request: SUpdateRequest<Relation>): SBaseResponse {
+        return RelationService.updateList(request)
+    }
+}