From edd98c54519f1f36fb561bdc1cb7aa33c6d68530 Mon Sep 17 00:00:00 2001 From: 朱佳吉 <1527963051@qq.com> Date: 星期二, 07 五月 2024 17:35:17 +0800 Subject: [PATCH] 通过pid获取检验单当前试验室所有项目是否有检验结果后进行判断检验单是否更改成"已检"状态 --- cnas-server/src/main/resources/mapper/LaboratoryMapper.xml | 19 +++++++++++++++++-- 1 files changed, 17 insertions(+), 2 deletions(-) diff --git a/cnas-server/src/main/resources/mapper/LaboratoryMapper.xml b/cnas-server/src/main/resources/mapper/LaboratoryMapper.xml index d4da968..bba2d21 100644 --- a/cnas-server/src/main/resources/mapper/LaboratoryMapper.xml +++ b/cnas-server/src/main/resources/mapper/LaboratoryMapper.xml @@ -4,7 +4,6 @@ "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <mapper namespace="com.yuanchu.mom.mapper.LaboratoryMapper"> - <select id="selectItemParameter" resultType="com.yuanchu.mom.pojo.Laboratory"> select * from ( @@ -13,7 +12,7 @@ laboratory_number, phone_number, head, - address, + l.address, u1.name create_user_name, l.create_time from laboratory l @@ -23,4 +22,20 @@ ${ew.customSqlSegment} </if> </select> + + <select id="obtainItemParameterList" resultType="java.lang.Object"> + select * from + ( + select l.id, + laboratory_name, + laboratory_number, + phone_number, + head, + l.address, + u1.name create_user_name, + l.create_time + from laboratory l + left join user u1 on l.create_user = u1.id + ) a + </select> </mapper> -- Gitblit v1.9.3