app收样新需求

This commit is contained in:
hayu 2024-09-11 10:24:49 +08:00
parent 1140e9733f
commit 1b0df9249b
2 changed files with 10 additions and 5 deletions

View File

@ -646,13 +646,18 @@
<select id="getLsExperDevs" resultType="com.bonus.aqgqj.app.entity.ExperDevAppVo">
SELECT tsd.id,
tsd.dev_code AS devCode,
tsd.dev_module AS devModule,
tsd.dev_code AS devCode,
tsd.dev_module AS devModule,
tsd.dev_type_code AS devTypeCode,
tsd.dev_type_name AS devTypeName,
tsd.department_id AS departmentId,
tsd.id AS devId
tsd.id AS devId
FROM tb_sample_device tsd
LEFT JOIN tb_exper_dev ted ON tsd.id = ted.dev_id AND ted.exper_id = #{id}
WHERE tsd.sample_id = #{sampleId} AND tsd.dev_type_code = #{devTypeCode} AND tsd.del_falg = 0 AND ted.id IS NULL
WHERE tsd.sample_id = #{sampleId}
AND tsd.dev_type_code = #{devTypeCode}
AND tsd.del_falg = 0
AND ted.id IS NULL
ORDER BY tsd.id
</select>
</mapper>

View File

@ -264,7 +264,7 @@
tb_exper_config_info teci
LEFT JOIN tb_exper_config tec ON teci.config_id = tec.id
LEFT JOIN tb_config_items tci ON teci.item_id = tci.id
LEFT JOIN tb_sample_device tsd ON tec.dev_type_name = tsd.dev_type_name
LEFT JOIN tb_sample_device tsd ON tec.dev_type_name = tsd.dev_type_name and tsd.del_falg=0
WHERE
tsd.sample_id = #{id}
AND tec.del_flag = 0