liding
5 天以前 9bad4cfca9b9f51f433bf0caf5b5d166d1fc55a7
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>