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/resources/mapper/mcs/MmItemOutputDao.xml | 49 +++++++------------------------------------------ 1 files changed, 7 insertions(+), 42 deletions(-) diff --git a/iailab-module-model/iailab-module-model-biz/src/main/resources/mapper/mcs/MmItemOutputDao.xml b/iailab-module-model/iailab-module-model-biz/src/main/resources/mapper/mcs/MmItemOutputDao.xml index d925891..be28aad 100644 --- a/iailab-module-model/iailab-module-model-biz/src/main/resources/mapper/mcs/MmItemOutputDao.xml +++ b/iailab-module-model/iailab-module-model-biz/src/main/resources/mapper/mcs/MmItemOutputDao.xml @@ -3,47 +3,12 @@ <mapper namespace="com.iailab.module.model.mcs.pre.dao.MmItemOutputDao"> - <resultMap id="MmItemOutputVO" type="com.iailab.module.model.mdk.vo.MmItemOutputVO"> - <result property="id" column="ID"/> - <result property="itemId" column="ITEMID"/> - <result property="pointId" column="POINTID"/> - <result property="resultTableName" column="TABLENAME"/> - <result property="order" column="OUTPUTORDER"/> - </resultMap> - - <select id="getOutPutById" resultMap="MmItemOutputVO"> - SELECT t1.id, - t1.itemid, - t1.pointid, - t2.tablename, - t1.outputorder - FROM t_mm_item_output t1, - t_mm_result_table t2 - WHERE t1.id = #{value} - AND t1.resulttableid = t2.id - </select> - <select id="getOutPutByItemId" resultMap="MmItemOutputVO"> - SELECT t1.id, - t1.itemid, - t1.pointid, - t2.tablename, - t1.outputorder - FROM t_mm_item_output t1, - t_mm_result_table t2 - WHERE t1.itemid = #{value} - AND t1.resulttableid = t2.id - ORDER BY t1.outputorder - </select> - <select id="getOutPutByPointId" resultMap="MmItemOutputVO"> - SELECT t1.id, - t1.itemid, - t1.pointid, - t2.tablename, - t1.outputorder - FROM t_mm_item_output t1, - t_mm_result_table t2 - WHERE t1.pointid = #{value} - AND t1.resulttableid = t2.id - ORDER BY t1.outputorder + <select id="queryList" resultType="com.iailab.module.model.mcs.pre.dto.MmItemOutputDTO"> + select * from t_mm_item_output t + <where> + <if test="params.itemid != null and params.itemid != ''"> + AND t.itemid LIKE CONCAT('%', #{params.itemid},'%') + </if> + </where> </select> </mapper> \ No newline at end of file -- Gitblit v1.9.3