From 90a1495b9d765c9e1d48f689dbcf977cbdb2768e Mon Sep 17 00:00:00 2001 From: dengzedong <dengzedong@email> Date: 星期二, 31 十二月 2024 17:23:13 +0800 Subject: [PATCH] 模型结果修改为存在唯一索引则修改,不存在插入。避免死锁问题 --- iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/service/MmPredictItemService.java | 19 ++++++++++++------- 1 files changed, 12 insertions(+), 7 deletions(-) diff --git a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/service/MmPredictItemService.java b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/service/MmPredictItemService.java index d77d7a9..72dc043 100644 --- a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/service/MmPredictItemService.java +++ b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/service/MmPredictItemService.java @@ -1,8 +1,6 @@ package com.iailab.module.model.mcs.pre.service; -import com.iailab.framework.common.page.PageData; import com.iailab.framework.common.pojo.PageResult; -import com.iailab.framework.common.service.BaseService; import com.iailab.module.model.mcs.pre.dto.MmPredictItemDTO; import com.iailab.module.model.mcs.pre.entity.MmPredictItemEntity; import com.iailab.module.model.mcs.pre.vo.MmPredictItemPageReqVO; @@ -10,8 +8,6 @@ import com.iailab.module.model.mdk.vo.ItemVO; import com.iailab.module.model.mdk.vo.MergeItemVO; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; import java.util.List; import java.util.Map; @@ -31,13 +27,22 @@ ItemVO getItemByItemNo(String itemNo); + ItemVO getItemByIdFromCache(String itemId); ItemVO getItemById(String itemId); + + ItemVO getItemByOutPutId(String outPutId); + + void clearCatch(); MergeItemVO getMergeItemByItemId(String itemId); - PageResult<MmPredictItemEntity> queryPage(MmPredictItemPageReqVO reqVO); + PageResult<MmPredictItemRespVO> queryPage(MmPredictItemPageReqVO reqVO); - void add(MmPredictItemEntity mmPredictItemEntity); + void add(MmPredictItemDTO mmPredictItemDto); - void update(MmPredictItemEntity mmPredictItemEntity); + void update(MmPredictItemDTO mmPredictItemDTO); + + List<MmPredictItemRespVO> list(Map<String, Object> params); + + MmPredictItemEntity getById(String id); } -- Gitblit v1.9.3