src/main/resources/mapper/quality/QualityInspectMapper.xml
@@ -443,6 +443,23 @@
        ORDER BY rn;
    </select>
    <select id="selectOneData" resultType="com.ruoyi.quality.pojo.QualityInspect">
        select *,
               case
                   when inspect_material_condition = '检验用液剂情况' then
                       '☐'
                   else
                       '☑'
                   end as inspect_material_condition_a,
               case
                   when inspect_material_condition = '检验用粉剂情况' then
                       '☐'
                   else
                       '☑'
                   end as inspect_material_condition_b
        from quality_inspect
        where id = #{id};
    </select>
</mapper>