Browse Source

fix bug: 修复拓扑图和平面图的增删改操作未进行整体事务控制问题

lijie 2 years ago
parent
commit
14ad2b4cdb

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

@@ -63,7 +63,7 @@ class GraphController {
    @Operation(summary="草稿箱-发布图形", description =" Id 和 GraphId 必须填写")
     @PostMapping("/drafts/publish")
     fun pubDrawings(@RequestBody graph: GraphPub): SCreateResponse<GraphPub>{
-        return GraphService.pubDrawings(graph)
+        return GraphService.pubDrawingsLogic(graph)
     } // Function pubDrawings()
 
 
@@ -76,7 +76,7 @@ class GraphController {
    @Operation(summary = "草稿箱-移至回收站", description = " Id 和 GraphId 必填")
     @PostMapping(value = ["/drafts/recycle"])
     fun recycle(@RequestBody idList: ArrayList<Graph>): SBaseResponse {
-        return GraphService.recycle(idList)
+        return GraphService.recycleLogic(idList)
     } // Function recycle()
 
     /**
@@ -88,7 +88,7 @@ class GraphController {
    @Operation(summary = "已发布-图形移至回收站", description = "Id 和 GraphId 必填")
     @PostMapping(value = ["/pub/recycle"])
     fun recyclePub(@RequestBody idList: ArrayList<Graph>): SBaseResponse{
-        return GraphService.recyclePub(idList)
+        return GraphService.recyclePubLogic(idList)
     } // Function recyclePub()
 
     /**
@@ -100,7 +100,7 @@ class GraphController {
    @Operation(summary = "草稿箱-更新图形信息", description = "Id 和 GraphId 必填")
     @PostMapping(value = ["/drafts/update"])
     fun update(@RequestBody request: SUpdateRequest<Graph>): SBaseResponse {
-        return GraphService.draftsUpdate(request)
+        return GraphService.draftsUpdateLogic(request)
     } // Function update()
 
     /**
@@ -160,7 +160,7 @@ class GraphController {
    @Operation(summary = "已发布-更新图形信息", description = "")
     @PostMapping(value = ["/pub/update"])
     fun updatePub(@RequestBody request: SUpdateRequest<GraphPub>): SBaseResponse {
-        return GraphService.pubUpdate(request)
+        return GraphService.pubUpdateLogic(request)
     } // Function update()
 
     /**
@@ -172,7 +172,7 @@ class GraphController {
     @Operation(summary = "回收站- 恢复图形", description = "Id 和 GraphId 必填 ")
     @PostMapping(value = ["recycle/recovery"])
     fun recovery(@RequestBody graph: Graph): SBaseResponse{
-    return GraphService.recovery(graph)
+    return GraphService.recoveryLogic(graph)
     } // Fun recovery()
 
     /**
@@ -184,7 +184,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 GraphService.deleteByKeysListLogic(idList)
     } // Function delete()
 
 

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

@@ -34,7 +34,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 MarkersService.createsLogic(request)
     }
 
     /**
@@ -46,7 +46,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 MarkersService.deletesLogic(idList)
     }
 
     /**
@@ -58,7 +58,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 MarkersService.updateListLogic(request)
     }
 
     /**

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

@@ -36,7 +36,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 NodeService.createsLogic(request)
     } // Function create()
 
     /**
@@ -48,7 +48,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 NodeService.deletesLogic(idList)
     } // Function delete()
 
     /**
@@ -60,7 +60,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 NodeService.updateListLogic(request)
     } // Function update()
 
     /**

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

@@ -34,7 +34,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 RelationService.createsLogic(request)
     }
 
     /**
@@ -46,7 +46,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 RelationService.deletesLogic(idList)
     }
 
     /**
@@ -58,7 +58,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 RelationService.updateListLogic(request)
     }
 
     /**

+ 10 - 10
labsl/src/main/kotlin/com/persagy/labsl/controller/planar/PlanarGraphController.kt

@@ -1,8 +1,8 @@
 package com.persagy.labsl.controller.planar
 
+import com.persagy.labsl.models.entities.pbs.Building
 import com.persagy.labsl.models.entities.pbs.PlanarGraph
 import com.persagy.labsl.models.entities.pbs.PlanarGraphPub
-import com.persagy.labsl.models.entities.pbs.Building
 import com.persagy.labsl.models.response.SCommonResponse
 import com.persagy.labsl.services.planar.PlanarGraphService
 import com.persagy.service.models.requests.SQueryRequest
@@ -36,7 +36,7 @@ class PlanarGraphController {
     @Operation(summary ="-未发布-单个图形创建", description = "id和graphId为必填,图中会包含多个节点,详细节点结构见示例")
     @PostMapping("/drafts/create")
     fun create(@RequestBody planarGraph: PlanarGraph): SCreateResponse<PlanarGraph> {
-        return PlanarGraphService.create(planarGraph)
+        return PlanarGraphService.createLogic(planarGraph)
     }
 
     /**
@@ -48,7 +48,7 @@ class PlanarGraphController {
    @Operation(summary = "未发布-保存图形", description = "")
     @PostMapping("/drafts/save")
     fun save(@RequestBody graph: PlanarGraph): SCreateResponse<PlanarGraph> {
-        return PlanarGraphService.save(graph)
+        return PlanarGraphService.saveLogic(graph)
     } // Function save()
 
     /**
@@ -60,7 +60,7 @@ class PlanarGraphController {
     @Operation(summary="未发布-发布图形", description =" Id 和 GraphId 必须填写")
     @PostMapping("/drafts/publish")
     fun pubDrawings(@RequestBody graph: PlanarGraphPub): SCreateResponse<PlanarGraphPub>{
-        return PlanarGraphService.pubDrawings(graph)
+        return PlanarGraphService.pubDrawingsLogic(graph)
     }
 
 
@@ -73,7 +73,7 @@ class PlanarGraphController {
     @Operation(summary = "未发布-移至回收站", description = " Id 和 GraphId 必填")
     @PostMapping(value = ["/drafts/recycle"])
     fun recycle(@RequestBody idList: ArrayList<PlanarGraph>): SBaseResponse {
-        return PlanarGraphService.recycle(idList)
+        return PlanarGraphService.recycleLogic(idList)
     }
 
     /**
@@ -85,7 +85,7 @@ class PlanarGraphController {
     @Operation(summary = "已发布-图形移至回收站", description = "Id 和 GraphId 必填")
     @PostMapping(value = ["/pub/recycle"])
     fun recyclePub(@RequestBody idList: ArrayList<PlanarGraph>): SBaseResponse{
-        return PlanarGraphService.recyclePub(idList)
+        return PlanarGraphService.recyclePubLogic(idList)
     }
 
     /**
@@ -97,7 +97,7 @@ class PlanarGraphController {
     @Operation(summary = "未发布-更新图形信息", description = "Id 和 GraphId 必填")
     @PostMapping(value = ["/drafts/update"])
     fun updates(@RequestBody request: SUpdateRequest<PlanarGraph>): SBaseResponse {
-        return PlanarGraphService.draftsUpdate(request)
+        return PlanarGraphService.draftsUpdateLogic(request)
     }
 
     /**
@@ -157,7 +157,7 @@ class PlanarGraphController {
     @Operation(summary = "已发布-更新图形信息", description = "")
     @PostMapping(value = ["/pub/update"])
     fun updatePub(@RequestBody request: SUpdateRequest<PlanarGraphPub>): SBaseResponse {
-        return PlanarGraphService.pubUpdate(request)
+        return PlanarGraphService.pubUpdateLogic(request)
     }
 
     /**
@@ -183,7 +183,7 @@ class PlanarGraphController {
    @Operation(summary = "回收站- 恢复图形", description = "Id 和 GraphId 必填 ")
     @PostMapping(value = ["recycle/recovery"])
     fun recovery(@RequestBody graph: PlanarGraph): SBaseResponse{
-    return PlanarGraphService.recovery(graph)
+    return PlanarGraphService.recoveryLogic(graph)
     }
 
     /**
@@ -195,7 +195,7 @@ class PlanarGraphController {
     @Operation(summary = "回收站-根据id删除图形信息,删除图形", description = "Id 和 GraphId 必填 ")
     @PostMapping(value = ["recycle/delete"])
     fun delete(@RequestBody idList: ArrayList<PlanarGraph>): SBaseResponse {
-        return PlanarGraphService.deleteByKeysList(idList)
+        return PlanarGraphService.deleteByKeysListLogic(idList)
     }
 
 }

+ 1 - 1
labsl/src/main/kotlin/com/persagy/labsl/controller/planar/PlanarQbsRuleController.kt

@@ -31,7 +31,7 @@ class PlanarQbsRuleController {
     @Operation(summary ="创建规则", description = "id和graphId为必填,图中会包含多个节点,详细节点结构见示例")
     @PostMapping("/create")
     fun create(@RequestBody request: SCreateRequest<PlanarQbsRule>): SCreateResponse<PlanarQbsRule> {
-        return PlanarQbsRuleService.createList(request)
+        return PlanarQbsRuleService.createListLogic(request)
     }
 
 

+ 3 - 3
labsl/src/main/kotlin/com/persagy/labsl/controller/planar/QbsFolderController.kt

@@ -39,7 +39,7 @@ class QbsFolderController {
     @Operation(summary ="创建文件夹", description = "name 不可以为空,不可以与已存在文件夹名称重复")
     @PostMapping("/create")
     fun create(@RequestBody request: SCreateRequest<QbsFolder>): SCreateResponse<QbsFolder> {
-        return QbsFolderService.creates(request)
+        return QbsFolderService.createsLogic(request)
     }
 
     /**
@@ -51,7 +51,7 @@ class QbsFolderController {
     @Operation(summary = "根据id删除文件夹", description = "id  必填 ")
     @PostMapping(value = ["/delete"])
     fun delete(@RequestBody idList: ArrayList<QbsFolder>): SBaseResponse {
-        return QbsFolderService.deletes(idList)
+        return QbsFolderService.deletesLogic(idList)
     }
 
     /**
@@ -63,7 +63,7 @@ class QbsFolderController {
     @Operation(summary = "更新文件夹信息", description = "id 必填")
     @PostMapping(value = ["/update"])
     fun update(@RequestBody request: SUpdateRequest<QbsFolder>): SBaseResponse {
-        return QbsFolderService.updates(request)
+        return QbsFolderService.updatesLogic(request)
     }
 
     /**

+ 72 - 0
labsl/src/main/kotlin/com/persagy/labsl/services/planar/PlanarGraphLogicService.kt

@@ -0,0 +1,72 @@
+package com.persagy.labsl.services.planar
+
+import com.persagy.labsl.models.entities.pbs.PlanarGraph
+import com.persagy.labsl.models.entities.pbs.PlanarGraphPub
+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/6/1 12:26
+ */
+interface PlanarGraphLogicService {
+    /**
+     * 创建未发布平面图
+     * @author : lijie
+     * Update By 2022/6/1 12:30
+     */
+    fun createLogic(planarGraph: PlanarGraph): SCreateResponse<PlanarGraph>
+    /**
+     * 保存未发布平面图
+     * @author : lijie
+     * Update By 2022/6/1 12:33
+     */
+    fun saveLogic(graph: PlanarGraph): SCreateResponse<PlanarGraph>
+    /**
+     * 发布未发布平面图
+     * @author : lijie
+     * Update By 2022/6/1 12:33
+     */
+    fun pubDrawingsLogic(graph: PlanarGraphPub): SCreateResponse<PlanarGraphPub>
+
+    /**
+     * 图移至/移出回收站
+     * @author : lijie
+     * Update By 2022/6/1 12:34
+     */
+    fun recycleLogic(idList: ArrayList<PlanarGraph>): SBaseResponse
+
+    /**
+     * 已发布图形移至回收站
+     * @author : lijie
+     * Update By 2022/6/1 12:36
+     */
+    fun recyclePubLogic(idList: ArrayList<PlanarGraph>): SBaseResponse
+    /**
+     * 未发布图形更新
+     * @author : lijie
+     * Update By 2022/6/1 12:38
+     */
+    fun draftsUpdateLogic(request: SUpdateRequest<PlanarGraph>): SBaseResponse
+    /**
+     * 已发布图形更新
+     * @author : lijie
+     * Update By 2022/6/1 12:39
+     */
+    fun pubUpdateLogic(request: SUpdateRequest<PlanarGraphPub>): SBaseResponse
+
+    /**
+     * 恢复图形
+     * @author : lijie
+     * Update By 2022/6/1 12:40
+     */
+    fun recoveryLogic(graph: PlanarGraph): SBaseResponse
+    /**
+     * 删除图形
+     * @author : lijie
+     * Update By 2022/6/1 12:41
+     */
+    fun deleteByKeysListLogic(idList: ArrayList<PlanarGraph>): SBaseResponse
+}

+ 86 - 1
labsl/src/main/kotlin/com/persagy/labsl/services/planar/PlanarGraphService.kt

@@ -6,6 +6,7 @@ import com.persagy.base.extensions.toJson
 import com.persagy.database.SFilter
 import com.persagy.labsl.Opts
 import com.persagy.labsl.models.entities.pbs.*
+import com.persagy.labsl.models.entities.tpt.Node
 import com.persagy.labsl.models.response.SCommonResponse
 import com.persagy.labsl.services.DmpBaseService
 import com.persagy.labsl.utils.AdmEntityTransferUtil
@@ -21,6 +22,7 @@ import com.persagy.service.models.responses.SQueryResponse
 import org.apache.poi.ss.formula.functions.T
 import org.slf4j.LoggerFactory
 import org.springframework.beans.factory.annotation.Autowired
+import org.springframework.transaction.annotation.Transactional
 import java.text.SimpleDateFormat
 import java.util.*
 
@@ -29,7 +31,7 @@ import java.util.*
  *
  * @author wx  <zhangweixin@sagacloud.com>
  */
-object PlanarGraphService : SObjectService<PlanarGraph>(SMybatisDao(PlanarGraph::class.java)) {
+object PlanarGraphService : SObjectService<PlanarGraph>(SMybatisDao(PlanarGraph::class.java)),PlanarGraphLogicService {
 
     /** 日志 */
     private val logger = LoggerFactory.getLogger(PlanarGraphService::class.java)
@@ -1357,5 +1359,88 @@ object PlanarGraphService : SObjectService<PlanarGraph>(SMybatisDao(PlanarGraph:
         val format = df.format(Date())
         return df.parse(format)
     }
+    /**
+     * 创建未发布平面图
+     * @author : lijie
+     * Update By 2022/6/1 12:30
+     */
+    @Transactional
+    override fun createLogic(planarGraph: PlanarGraph): SCreateResponse<PlanarGraph>{
+        return create(planarGraph)
+    }
+    /**
+     * 保存未发布平面图
+     * @author : lijie
+     * Update By 2022/6/1 12:33
+     */
+    @Transactional
+    override fun saveLogic(graph: PlanarGraph): SCreateResponse<PlanarGraph>{
+        return save(graph)
+    }
+    /**
+     * 发布未发布平面图
+     * @author : lijie
+     * Update By 2022/6/1 12:33
+     */
+    @Transactional
+    override fun pubDrawingsLogic(graph: PlanarGraphPub): SCreateResponse<PlanarGraphPub>{
+        return pubDrawings(graph)
+    }
+
+    /**
+     * 图移至/移出回收站
+     * @author : lijie
+     * Update By 2022/6/1 12:34
+     */
+    @Transactional
+    override fun recycleLogic(idList: ArrayList<PlanarGraph>): SBaseResponse{
+        return recycle(idList)
+    }
+
+    /**
+     * 已发布图形移至回收站
+     * @author : lijie
+     * Update By 2022/6/1 12:36
+     */
+    @Transactional
+    override fun recyclePubLogic(idList: ArrayList<PlanarGraph>): SBaseResponse{
+        return recyclePub(idList)
+    }
+    /**
+     * 未发布图形更新
+     * @author : lijie
+     * Update By 2022/6/1 12:38
+     */
+    @Transactional
+    override fun draftsUpdateLogic(request: SUpdateRequest<PlanarGraph>): SBaseResponse{
+        return draftsUpdate(request)
+    }
+    /**
+     * 已发布图形更新
+     * @author : lijie
+     * Update By 2022/6/1 12:39
+     */
+    @Transactional
+    override fun pubUpdateLogic(request: SUpdateRequest<PlanarGraphPub>): SBaseResponse{
+        return pubUpdate(request)
+    }
 
+    /**
+     * 恢复图形
+     * @author : lijie
+     * Update By 2022/6/1 12:40
+     */
+    @Transactional
+    override fun recoveryLogic(graph: PlanarGraph): SBaseResponse{
+        return recovery(graph)
+    }
+    /**
+     * 删除图形
+     * @author : lijie
+     * Update By 2022/6/1 12:41
+     */
+    @Transactional
+    override fun deleteByKeysListLogic(idList: ArrayList<PlanarGraph>): SBaseResponse{
+        return deleteByKeysList(idList)
+    }
 }

+ 21 - 0
labsl/src/main/kotlin/com/persagy/labsl/services/planar/PlanarQbsLogicService.kt

@@ -0,0 +1,21 @@
+package com.persagy.labsl.services.planar
+
+import com.persagy.labsl.models.entities.pbs.PlanarQbsRule
+import com.persagy.service.models.requests.SCreateRequest
+import com.persagy.service.models.responses.SCreateResponse
+
+/**
+ * 平面图逻辑处理接口
+ * @author : lijie
+ * Update By 2022/6/1 12:28
+ */
+interface PlanarQbsLogicService {
+
+    /**
+     * 创建qbs列表
+     * @author : lijie
+     * Update By 2022/6/1 12:57
+     */
+    fun createListLogic(request: SCreateRequest<PlanarQbsRule>): SCreateResponse<PlanarQbsRule>
+
+}

+ 13 - 2
labsl/src/main/kotlin/com/persagy/labsl/services/planar/PlanarQbsRuleService.kt

@@ -4,6 +4,9 @@ import com.persagy.labsl.models.entities.pbs.PlanarQbsRule
 import com.persagy.labsl.utils.IdUtils
 import com.persagy.mybatis.SMybatisDao
 import com.persagy.service.SObjectService
+import com.persagy.service.models.requests.SCreateRequest
+import com.persagy.service.models.responses.SCreateResponse
+import org.springframework.transaction.annotation.Transactional
 
 /**
  * 规则
@@ -11,7 +14,7 @@ import com.persagy.service.SObjectService
  * @author wx  <zhangweixin@sagacloud.com>
  * @date  2020/12/13 9:34
  */
-object PlanarQbsRuleService : SObjectService<PlanarQbsRule>(SMybatisDao(PlanarQbsRule::class.java)) {
+object PlanarQbsRuleService : SObjectService<PlanarQbsRule>(SMybatisDao(PlanarQbsRule::class.java)),PlanarQbsLogicService {
 
 
     override fun onCreateBefore(entity: PlanarQbsRule): Boolean {
@@ -21,7 +24,15 @@ object PlanarQbsRuleService : SObjectService<PlanarQbsRule>(SMybatisDao(PlanarQb
 
         return super.onCreateBefore(entity)
     }
-
+    /**
+     * 创建qbs列表
+     * @author : lijie
+     * Update By 2022/6/1 12:57
+     */
+    @Transactional
+    override fun createListLogic(request: SCreateRequest<PlanarQbsRule>): SCreateResponse<PlanarQbsRule>{
+        return createList(request)
+    }
 
 
 }

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

@@ -0,0 +1,34 @@
+package com.persagy.labsl.services.planar
+
+import com.persagy.labsl.models.entities.pbs.QbsFolder
+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/6/1 12:28
+ */
+interface QbsFolderLogicService {
+
+    /**
+     * 创建文件夹
+     * @author : lijie
+     * Update By 2022/6/1 13:00
+     */
+    fun createsLogic(request: SCreateRequest<QbsFolder>): SCreateResponse<QbsFolder>
+    /**
+     * 删除文件夹
+     * @author : lijie
+     * Update By 2022/6/1 13:01
+     */
+    fun deletesLogic(idList: ArrayList<QbsFolder>): SBaseResponse
+    /**
+     * 更新文件夹
+     * @author : lijie
+     * Update By 2022/6/1 13:02
+     */
+    fun updatesLogic(request: SUpdateRequest<QbsFolder>): SBaseResponse
+}

+ 29 - 2
labsl/src/main/kotlin/com/persagy/labsl/services/planar/QbsFolderService.kt

@@ -12,6 +12,7 @@ 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 org.springframework.transaction.annotation.Transactional
 
 /**
  * 文件夹服务
@@ -19,7 +20,7 @@ import com.persagy.service.models.responses.SCreateResponse
  * @author wx  <zhangweixin@sagacloud.com>
  * @date  2020/12/1 15:37
  */
-object QbsFolderService : SObjectService<QbsFolder>(SMybatisDao(QbsFolder::class.java)) {
+object QbsFolderService : SObjectService<QbsFolder>(SMybatisDao(QbsFolder::class.java)),QbsFolderLogicService {
 
     /** 已发布 */
     val planarGraphPubService = SObjectService(SMybatisDao(PlanarGraphPub::class.java))
@@ -132,5 +133,31 @@ object QbsFolderService : SObjectService<QbsFolder>(SMybatisDao(QbsFolder::class
         return  sBaseResponse
     }
 
-
+    /**
+     * 创建文件夹
+     * @author : lijie
+     * Update By 2022/6/1 13:00
+     */
+    @Transactional
+    override fun createsLogic(request: SCreateRequest<QbsFolder>): SCreateResponse<QbsFolder>{
+        return creates(request)
+    }
+    /**
+     * 删除文件夹
+     * @author : lijie
+     * Update By 2022/6/1 13:01
+     */
+    @Transactional
+    override fun deletesLogic(idList: ArrayList<QbsFolder>): SBaseResponse{
+        return deletes(idList)
+    }
+    /**
+     * 更新文件夹
+     * @author : lijie
+     * Update By 2022/6/1 13:02
+     */
+    @Transactional
+    override fun updatesLogic(request: SUpdateRequest<QbsFolder>): SBaseResponse{
+        return updates(request)
+    }
 }