lxw
2023-06-21 7d44bdbaeaf3788f1cb1d1107fa2c65e7433554d
sop查询
1个文件已修改
5 ■■■■■ 已修改文件
src/main/resources/mapper/SOPMapper.xml 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/mapper/SOPMapper.xml
@@ -22,10 +22,9 @@
        </collection>
    </resultMap>
    <select id="getSopInfo" resultMap="sopList">
        select *, tb_sop_product.id as sid from tb_sop
        LEFT JOIN tb_sop_product on tb_sop.id=tb_sop_product.sop_id
        select *,tb_sop_product.id as sid from tb_sop,tb_sop_product
        <where>
            1=1
            tb_sop.id=tb_sop_product.sop_id
            <if test="code!=null">
                and code LIKE '%${code}%'
            </if>